/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 371 final int pointerId = event.getPointerId(pointerIndex); in onDoubleTapAndHold() local 380 mLongPressingPointerId = pointerId; in onDoubleTapAndHold() 417 final int pointerId = event.getPointerId(pointerIndex); in onDoubleTap() local 480 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in onGestureCancelled() local 481 final int pointerIdBits = (1 << pointerId); in onGestureCancelled() 535 final int pointerId = receivedTracker.getPrimaryPointerId(); in handleMotionEventStateTouchExploring() local 536 final int pointerIdBits = (1 << pointerId); in handleMotionEventStateTouchExploring() 553 final int pointerId = receivedTracker.getPrimaryPointerId(); in handleMotionEventStateTouchExploring() local 554 final int pointerIndex = event.findPointerIndex(pointerId); in handleMotionEventStateTouchExploring() 555 final int pointerIdBits = (1 << pointerId); in handleMotionEventStateTouchExploring() [all …]
|
D | MotionEventInjector.java | 460 int pointerId = mStrokeIdToPointerId.get(touchPoints[i].mStrokeId, -1); in obtainMotionEvent() local 461 if (pointerId == -1) { in obtainMotionEvent() 462 pointerId = getUnusedPointerId(); in obtainMotionEvent() 463 mStrokeIdToPointerId.put(touchPoints[i].mStrokeId, pointerId); in obtainMotionEvent() 465 sPointerProps[i].id = pointerId; in obtainMotionEvent() 490 int pointerId = 0; in getUnusedPointerId() local 491 while (mStrokeIdToPointerId.indexOfValue(pointerId) >= 0) { in getUnusedPointerId() 492 pointerId++; in getUnusedPointerId() 493 if (pointerId >= MAX_POINTER_ID) { in getUnusedPointerId() 497 return pointerId; in getUnusedPointerId()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvUinputBridge.cpp | 74 static int findSlot(int32_t pointerId) { in findSlot() argument 75 std::map<int,int>::iterator it = slotsMap.find(pointerId); in findSlot() 82 static int assignSlot(int32_t pointerId) { in assignSlot() argument 85 slotsMap[pointerId] = slot; in assignSlot() 91 static void unassignSlot(int32_t pointerId) { in unassignSlot() argument 92 int slot = findSlot(pointerId); in unassignSlot() 95 slotsMap.erase(pointerId); in unassignSlot() 221 jint pointerId, jint x, jint y) { in nativeSendPointerDown() argument 224 int32_t slot = findSlot(pointerId); in nativeSendPointerDown() 226 slot = assignSlot(pointerId); in nativeSendPointerDown() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | UinputBridge.java | 40 private static native void nativeSendPointerDown(long ptr, int pointerId, int x, int y); in nativeSendPointerDown() argument 41 private static native void nativeSendPointerUp(long ptr, int pointerId); in nativeSendPointerUp() argument 114 public void sendPointerDown(IBinder token, int pointerId, int x, int y) { in sendPointerDown() argument 116 nativeSendPointerDown(mPtr, pointerId, x, y); in sendPointerDown() 120 public void sendPointerUp(IBinder token, int pointerId) { in sendPointerUp() argument 122 nativeSendPointerUp(mPtr, pointerId); in sendPointerUp()
|
D | TvRemoteService.java | 179 private void sendPointerDownInternalLocked(IBinder token, int pointerId, int x, int y) { in sendPointerDownInternalLocked() argument 182 pointerId + ", x: " + x + ", y: " + y); in sendPointerDownInternalLocked() 187 inputBridge.sendPointerDown(token, pointerId, x, y); in sendPointerDownInternalLocked() 191 private void sendPointerUpInternalLocked(IBinder token, int pointerId) { in sendPointerUpInternalLocked() argument 194 pointerId); in sendPointerUpInternalLocked() 199 inputBridge.sendPointerUp(token, pointerId); in sendPointerUpInternalLocked() 334 public void sendPointerDown(TvRemoteProviderProxy provider, IBinder token, int pointerId, in sendPointerDown() argument 337 Slog.d(TAG, "sendPointerDown(), token: " + token + ", pointerId: " + pointerId); in sendPointerDown() 341 mService.sendPointerDownInternalLocked(token, pointerId, x, y); in sendPointerDown() 347 public void sendPointerUp(TvRemoteProviderProxy provider, IBinder token, int pointerId) { in sendPointerUp() argument [all …]
|
D | TvRemoteProviderProxy.java | 264 void sendPointerDown(TvRemoteProviderProxy provider, IBinder token, int pointerId, int x, in sendPointerDown() argument 267 void sendPointerUp(TvRemoteProviderProxy provider, IBinder token, int pointerId); in sendPointerUp() argument 475 void sendPointerDown(final IBinder token, final int pointerId, final int x, final int y) { in sendPointerDown() argument 480 " token=" + token + ", pointerId=" + pointerId); in sendPointerDown() 486 pointerId, x, y); in sendPointerDown() 501 void sendPointerUp(final IBinder token, final int pointerId) { in sendPointerUp() argument 506 " token=" + token + ", pointerId=" + pointerId); in sendPointerUp() 512 pointerId); in sendPointerUp() 623 public void sendPointerDown(IBinder token, int pointerId, int x, int y) in sendPointerDown() argument 627 connection.sendPointerDown(token, pointerId, x, y); in sendPointerDown() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SystemGesturesPointerEventListener.java | 197 final int pointerId = event.getPointerId(pointerIndex); in captureDown() local 198 final int i = findIndex(pointerId); in captureDown() 199 if (DEBUG) Slog.d(TAG, "pointer " + pointerId in captureDown() 205 if (DEBUG) Slog.d(TAG, "pointer " + pointerId in captureDown() 214 private int findIndex(int pointerId) { in findIndex() argument 216 if (mDownPointerId[i] == pointerId) { in findIndex() 220 if (mDownPointers == MAX_TRACKED_POINTERS || pointerId == MotionEvent.INVALID_POINTER_ID) { in findIndex() 223 mDownPointerId[mDownPointers++] = pointerId; in findIndex() 231 final int pointerId = move.getPointerId(p); in detectSwipe() local 232 final int i = findIndex(pointerId); in detectSwipe()
|
/frameworks/base/media/lib/tvremote/java/com/android/media/tv/remoteprovider/ |
D | TvRemoteProvider.java | 225 public void sendPointerUp(IBinder token, int pointerId) throws RuntimeException { in sendPointerUp() argument 227 ", pointerId: " + pointerId); in sendPointerUp() 229 mRemoteServiceInput.sendPointerUp(token, pointerId); in sendPointerUp() 245 public void sendPointerDown(IBinder token, int pointerId, int x, int y) in sendPointerDown() argument 248 ", pointerId: " + pointerId); in sendPointerDown() 250 mRemoteServiceInput.sendPointerDown(token, pointerId, x, y); in sendPointerDown()
|
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 102 uint32_t pointerId = difference.clearFirstMarkedBit(); in getChangingPointerId() local 104 return pointerId; in getChangingPointerId() 117 uint32_t pointerId = getChangingPointerId(pointers, lastPointers); in resolveAction() local 119 (pointerId << AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT); in resolveAction() 126 uint32_t pointerId = getChangingPointerId(pointers, nextPointers); in resolveAction() local 128 (pointerId << AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT); in resolveAction() 163 uint32_t pointerId = pointers.clearFirstMarkedBit(); in createMotionEventStream() local 167 EXPECT_TRUE(entry.positions[pointerId].isValid()) << in createMotionEventStream() 169 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream() 170 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, entry.positions[pointerId].y); in createMotionEventStream() [all …]
|
/frameworks/base/media/java/android/media/tv/ |
D | ITvRemoteServiceInput.aidl | 37 void sendPointerDown(IBinder token, int pointerId, int x, int y); in sendPointerDown() argument 39 void sendPointerUp(IBinder token, int pointerId); in sendPointerUp() argument
|
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/ |
D | BallsView.java | 83 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local 84 mRender.newTouchPosition(0, 0, 0, pointerId); in onTouchEvent()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewPager.java | 169 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); in onInterceptTouchEvent() local 170 if (pointerId == mActivePointerId) { in onInterceptTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchState.java | 157 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local 158 if (pointerId == mActivePointerId) { in onTouchEvent()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 738 final int pointerId = ev.getPointerId(0); in onTouchEvent() local 740 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent() 741 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent()
|
D | MotionEvent.java | 1617 private static native int nativeFindPointerIndex(long nativePtr, int pointerId); in nativeFindPointerIndex() argument 2351 public final int findPointerIndex(int pointerId) { in findPointerIndex() argument 2352 return nativeFindPointerIndex(mNativePtr, pointerId); in findPointerIndex()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SwipeDismissLayout.java | 197 int pointerId = ev.getPointerId(actionIndex); in onInterceptTouchEvent() local 198 if (pointerId == mActiveTouchId) { in onInterceptTouchEvent()
|
D | ResolverDrawerLayout.java | 388 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local 389 mActivePointerId = pointerId; in onTouchEvent() 461 final int pointerId = ev.getPointerId(pointerIndex); 462 if (pointerId == mActivePointerId) {
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PrintContentView.java | 395 public boolean tryCaptureView(View child, int pointerId) { in tryCaptureView() argument 400 return child == mDynamicContent && pointerId == FIRST_POINTER_ID; in tryCaptureView()
|
/frameworks/native/libs/input/ |
D | Input.cpp | 356 ssize_t MotionEvent::findPointerIndex(int32_t pointerId) const { in findPointerIndex() 359 if (mPointerProperties.itemAt(i).id == pointerId) { in findPointerIndex()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainer.java | 227 int pointerId = event.getPointerId(index); in onTouchEvent() local 228 if (pointerId == mActivePointerId) { in onTouchEvent()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/ |
D | TaskStackViewTouchHandler.java | 320 int pointerId = ev.getPointerId(pointerIndex); in handleTouchEvent() local 321 if (pointerId == mActivePointerId) { in handleTouchEvent()
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 388 final int pointerId = event.getPointerId(pointerIndex); 389 if (pointerId == mActivePointerId) { 2256 int pointerId = e.getPointerId(0); in onLongPress() local 2260 if (pointerId == mActivePointerId) { in onLongPress()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcher.cpp | 1375 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked() local 1376 pointerIds.markBit(pointerId); in findTouchedWindowTargetsLocked() 1626 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked() local 1631 touchedWindow.pointerIds.clearBit(pointerId); in findTouchedWindowTargetsLocked() 2516 uint32_t pointerId = uint32_t(pointerProperties.id); in splitMotionEvent() local 2517 if (pointerIds.hasBit(pointerId)) { in splitMotionEvent() 2546 uint32_t pointerId = uint32_t(pointerProperties.id); in splitMotionEvent() local 2547 if (pointerIds.hasBit(pointerId)) { in splitMotionEvent() 2556 while (pointerId != uint32_t(splitPointerProperties[splitPointerIndex].id)) { in splitMotionEvent()
|
/frameworks/native/include/input/ |
D | Input.h | 601 ssize_t findPointerIndex(int32_t pointerId) const;
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 718 static jint android_view_MotionEvent_nativeFindPointerIndex(jlong nativePtr, jint pointerId) { in android_view_MotionEvent_nativeFindPointerIndex() argument 720 return jint(event->findPointerIndex(pointerId)); in android_view_MotionEvent_nativeFindPointerIndex()
|