Home
last modified time | relevance | path

Searched refs:pointerId (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java371 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 …]
DMotionEventInjector.java460 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/
Dcom_android_server_tv_TvUinputBridge.cpp74 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/
DUinputBridge.java40 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()
DTvRemoteService.java179 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 …]
DTvRemoteProviderProxy.java264 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/
DSystemGesturesPointerEventListener.java197 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/
DTvRemoteProvider.java225 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/
DVelocityTracker_test.cpp102 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/
DITvRemoteServiceInput.aidl37 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/
DBallsView.java83 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/
DPhotoViewPager.java169 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/
DPipTouchState.java157 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local
158 if (pointerId == mActivePointerId) { in onTouchEvent()
/frameworks/base/core/java/android/view/
DGestureDetector.java738 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()
DMotionEvent.java1617 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/
DSwipeDismissLayout.java197 int pointerId = ev.getPointerId(actionIndex); in onInterceptTouchEvent() local
198 if (pointerId == mActiveTouchId) { in onInterceptTouchEvent()
DResolverDrawerLayout.java388 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/
DPrintContentView.java395 public boolean tryCaptureView(View child, int pointerId) { in tryCaptureView() argument
400 return child == mDynamicContent && pointerId == FIRST_POINTER_ID; in tryCaptureView()
/frameworks/native/libs/input/
DInput.cpp356 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/
DKeyguardSecurityContainer.java227 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/
DTaskStackViewTouchHandler.java320 int pointerId = ev.getPointerId(pointerIndex); in handleTouchEvent() local
321 if (pointerId == mActivePointerId) { in handleTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java388 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/
DInputDispatcher.cpp1375 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/
DInput.h601 ssize_t findPointerIndex(int32_t pointerId) const;
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp718 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()

12