Home
last modified time | relevance | path

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

12

/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchState.java129 final int pointerId = event.getPointerId(event.getActionIndex()); in onInjectedMotionEvent() local
130 final int pointerFlag = (1 << pointerId); in onInjectedMotionEvent()
348 public boolean isInjectedPointerDown(int pointerId) { in isInjectedPointerDown() argument
349 final int pointerFlag = (1 << pointerId); in isInjectedPointerDown()
424 public boolean isReceivedPointerDown(int pointerId) { in isReceivedPointerDown() argument
425 final int pointerFlag = (1 << pointerId); in isReceivedPointerDown()
433 public float getReceivedPointerDownX(int pointerId) { in getReceivedPointerDownX() argument
434 return mReceivedPointers[pointerId].mX; in getReceivedPointerDownX()
441 public float getReceivedPointerDownY(int pointerId) { in getReceivedPointerDownY() argument
442 return mReceivedPointers[pointerId].mY; in getReceivedPointerDownY()
[all …]
DEventDispatcher.java273 final int pointerId = prototype.getPointerId(i); in sendDownForAllNotInjectedPointers() local
275 if (!mState.isInjectedPointerDown(pointerId)) { in sendDownForAllNotInjectedPointers()
276 pointerIdBits |= (1 << pointerId); in sendDownForAllNotInjectedPointers()
303 final int pointerId = prototype.getPointerId(i); in sendDownForAllNotInjectedPointersWithOriginalDown() local
305 if (!mState.isInjectedPointerDown(pointerId)) { in sendDownForAllNotInjectedPointersWithOriginalDown()
306 pointerIdBits |= (1 << pointerId); in sendDownForAllNotInjectedPointersWithOriginalDown()
328 final int pointerId = prototype.getPointerId(i); in computeInjectionDownEvent() local
329 final float x = mState.getReceivedPointerTracker().getReceivedPointerDownX(pointerId); in computeInjectionDownEvent()
330 final float y = mState.getReceivedPointerTracker().getReceivedPointerDownY(pointerId); in computeInjectionDownEvent()
335 properties[i].id = pointerId; in computeInjectionDownEvent()
[all …]
DMultiFingerSwipe.java129 final int pointerId = rawEvent.getPointerId(actionIndex); in onDown() local
131 if (pointerId < 0) { in onDown()
141 mPointerIds[pointerIndex] = pointerId; in onDown()
175 final int pointerId = rawEvent.getPointerId(actionIndex); in onPointerDown() local
176 if (pointerId < 0) { in onPointerDown()
187 mPointerIds[pointerIndex] = pointerId; in onPointerDown()
213 final int pointerId = event.getPointerId(actionIndex); in onPointerUp() local
214 if (pointerId < 0) { in onPointerUp()
219 final int pointerIndex = Arrays.binarySearch(mPointerIds, pointerId); in onPointerUp()
325 final int pointerId = event.getPointerId(actionIndex); in onUp() local
[all …]
DTouchExplorer.java424 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in onGestureCancelled() local
425 final int pointerIdBits = (1 << pointerId); in onGestureCancelled()
492 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in handleActionDown() local
493 final int pointerIdBits = (1 << pointerId); in handleActionDown()
602 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in handleActionMoveStateTouchInteracting() local
603 final int pointerIndex = event.findPointerIndex(pointerId); in handleActionMoveStateTouchInteracting()
604 int pointerIdBits = (1 << pointerId); in handleActionMoveStateTouchInteracting()
742 final int pointerId = event.getPointerId(event.getActionIndex()); in handleActionUp() local
743 final int pointerIdBits = (1 << pointerId); in handleActionUp()
762 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in handleActionMoveStateTouchExploring() local
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DUinputBridge.java38 private static native void nativeSendPointerDown(long ptr, int pointerId, int x, int y); in nativeSendPointerDown() argument
39 private static native void nativeSendPointerUp(long ptr, int pointerId); in nativeSendPointerUp() argument
150 public void sendPointerDown(IBinder token, int pointerId, int x, int y) { in sendPointerDown() argument
152 nativeSendPointerDown(mPtr, pointerId, x, y); in sendPointerDown()
156 public void sendPointerUp(IBinder token, int pointerId) { in sendPointerUp() argument
158 nativeSendPointerUp(mPtr, pointerId); in sendPointerUp()
DTvRemoteServiceInput.java227 public void sendPointerDown(IBinder token, int pointerId, int x, int y) { in sendPointerDown() argument
230 + pointerId + ", x: " + x + ", y: " + y); in sendPointerDown()
242 inputBridge.sendPointerDown(token, pointerId, x, y); in sendPointerDown()
250 public void sendPointerUp(IBinder token, int pointerId) { in sendPointerUp() argument
252 Slog.d(TAG, "sendPointerUp(), token: " + token + ", pointerId: " + pointerId); in sendPointerUp()
264 inputBridge.sendPointerUp(token, pointerId); in sendPointerUp()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java217 final int pointerId = event.getPointerId(pointerIndex); in captureDown() local
218 final int i = findIndex(pointerId); in captureDown()
219 if (DEBUG) Slog.d(TAG, "pointer " + pointerId in captureDown()
225 if (DEBUG) Slog.d(TAG, "pointer " + pointerId in captureDown()
234 private int findIndex(int pointerId) { in findIndex() argument
236 if (mDownPointerId[i] == pointerId) { in findIndex()
240 if (mDownPointers == MAX_TRACKED_POINTERS || pointerId == MotionEvent.INVALID_POINTER_ID) { in findIndex()
243 mDownPointerId[mDownPointers++] = pointerId; in findIndex()
251 final int pointerId = move.getPointerId(p); in detectSwipe() local
252 final int i = findIndex(pointerId); in detectSwipe()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp115 static int findSlot(int32_t pointerId) { in findSlot() argument
116 std::unordered_map<int, int>::iterator it = slotsMap.find(pointerId); in findSlot()
123 static int assignSlot(int32_t pointerId) { in assignSlot() argument
126 slotsMap[pointerId] = slot; in assignSlot()
132 static void unassignSlot(int32_t pointerId) { in unassignSlot() argument
133 int slot = findSlot(pointerId); in unassignSlot()
136 slotsMap.erase(pointerId); in unassignSlot()
450 jint pointerId, jint x, jint y) { in nativeSendPointerDown() argument
458 int32_t slot = findSlot(pointerId); in nativeSendPointerDown()
460 slot = assignSlot(pointerId); in nativeSendPointerDown()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java468 int pointerId = mStrokeIdToPointerId.get(touchPoints[i].mStrokeId, -1); in obtainMotionEvent() local
469 if (pointerId == -1) { in obtainMotionEvent()
470 pointerId = getUnusedPointerId(); in obtainMotionEvent()
471 mStrokeIdToPointerId.put(touchPoints[i].mStrokeId, pointerId); in obtainMotionEvent()
473 sPointerProps[i].id = pointerId; in obtainMotionEvent()
498 int pointerId = 0; in getUnusedPointerId() local
499 while (mStrokeIdToPointerId.indexOfValue(pointerId) >= 0) { in getUnusedPointerId()
500 pointerId++; in getUnusedPointerId()
501 if (pointerId >= MAX_POINTER_ID) { in getUnusedPointerId()
505 return pointerId; in getUnusedPointerId()
/frameworks/base/media/lib/tvremote/java/com/android/media/tv/remoteprovider/
DTvRemoteProvider.java360 public void sendPointerUp(@NonNull IBinder token, int pointerId) throws RuntimeException { in sendPointerUp() argument
363 ", pointerId: " + pointerId); in sendPointerUp()
365 mRemoteServiceInput.sendPointerUp(token, pointerId); in sendPointerUp()
381 public void sendPointerDown(@NonNull IBinder token, int pointerId, int x, int y) in sendPointerDown() argument
385 ", pointerId: " + pointerId); in sendPointerDown()
387 mRemoteServiceInput.sendPointerDown(token, pointerId, x, y); in sendPointerDown()
/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/native/libs/input/tests/
DVelocityTracker_test.cpp103 uint32_t pointerId = difference.clearFirstMarkedBit(); in getChangingPointerId() local
105 return pointerId; in getChangingPointerId()
118 uint32_t pointerId = getChangingPointerId(pointers, lastPointers); in resolveAction() local
120 (pointerId << AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT); in resolveAction()
127 uint32_t pointerId = getChangingPointerId(pointers, nextPointers); in resolveAction() local
129 (pointerId << AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT); in resolveAction()
164 uint32_t pointerId = pointers.clearFirstMarkedBit(); in createMotionEventStream() local
168 EXPECT_TRUE(entry.positions[pointerId].isValid()) << in createMotionEventStream()
170 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream()
171 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, entry.positions[pointerId].y); in createMotionEventStream()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DInputTarget.cpp58 int32_t pointerId = newPointerIds.clearFirstMarkedBit(); in addPointers() local
59 pointerTransforms[pointerId] = transform; in addPointers()
/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/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DTestHal.java172 public void onPointerDown(int pointerId, int x, int y, float minor, float major) { in createSession()
177 public void onPointerUp(int pointerId) { in createSession()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchState.java165 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local
166 if (pointerId == mActivePointerId) { in onTouchEvent()
/frameworks/base/core/java/android/view/
DGestureDetector.java756 final int pointerId = ev.getPointerId(0); in onTouchEvent() local
758 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent()
759 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent()
DMotionEvent.java1658 private static native int nativeFindPointerIndex(long nativePtr, int pointerId); in nativeFindPointerIndex() argument
2414 public final int findPointerIndex(int pointerId) { in findPointerIndex() argument
2415 return nativeFindPointerIndex(mNativePtr, pointerId); in findPointerIndex()
/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/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java423 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local
424 mActivePointerId = pointerId; in onTouchEvent()
505 final int pointerId = ev.getPointerId(pointerIndex);
506 if (pointerId == mActivePointerId) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsController.java308 private static float computePointerSpeed(@NonNull VelocityTracker tracker, int pointerId) { in computePointerSpeed() argument
309 final float vx = tracker.getXVelocity(pointerId); in computePointerSpeed()
310 final float vy = tracker.getYVelocity(pointerId); in computePointerSpeed()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java459 int pointerId = event.getPointerId(index); in onTouchEvent() local
460 if (pointerId == mActivePointerId) { in onTouchEvent()
/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/base/core/jni/
Dandroid_view_MotionEvent.cpp754 static jint android_view_MotionEvent_nativeFindPointerIndex(jlong nativePtr, jint pointerId) { in android_view_MotionEvent_nativeFindPointerIndex() argument
756 return jint(event->findPointerIndex(pointerId)); in android_view_MotionEvent_nativeFindPointerIndex()

12