Home
last modified time | relevance | path

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

123

/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchState.java147 final int pointerId = event.getPointerId(event.getActionIndex()); in onInjectedMotionEvent() local
148 final int pointerFlag = (1 << pointerId); in onInjectedMotionEvent()
381 public boolean isInjectedPointerDown(int pointerId) { in isInjectedPointerDown() argument
382 final int pointerFlag = (1 << pointerId); in isInjectedPointerDown()
469 public boolean isReceivedPointerDown(int pointerId) { in isReceivedPointerDown() argument
470 final int pointerFlag = (1 << pointerId); in isReceivedPointerDown()
478 public float getReceivedPointerDownX(int pointerId) { in getReceivedPointerDownX() argument
479 return mReceivedPointers[pointerId].mX; in getReceivedPointerDownX()
486 public float getReceivedPointerDownY(int pointerId) { in getReceivedPointerDownY() argument
487 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.java485 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in onGestureCancelled() local
486 final int pointerIdBits = (1 << pointerId); in onGestureCancelled()
553 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in handleActionDown() local
554 final int pointerIdBits = (1 << pointerId); in handleActionDown()
679 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in handleActionMoveStateTouchInteracting() local
680 final int pointerIndex = event.findPointerIndex(pointerId); in handleActionMoveStateTouchInteracting()
681 int pointerIdBits = (1 << pointerId); in handleActionMoveStateTouchInteracting()
829 final int pointerId = event.getPointerId(event.getActionIndex()); in handleActionUp() local
830 final int pointerIdBits = (1 << pointerId); in handleActionUp()
849 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in handleActionMoveStateTouchExploring() local
[all …]
/frameworks/native/services/inputflinger/
DUnwantedInteractionBlocker.cpp112 static int32_t getActionUpForPointerId(const NotifyMotionArgs& args, int32_t pointerId) { in getActionUpForPointerId() argument
114 if (pointerId == args.pointerProperties[i].id) { in getActionUpForPointerId()
119 LOG_ALWAYS_FATAL("Can't find pointerId %" PRId32 " in %s", pointerId, args.dump().c_str()); in getActionUpForPointerId()
155 const int32_t pointerId = args.pointerProperties[i].id; in removePointerIds() local
156 if (pointerIds.find(pointerId) != pointerIds.end()) { in removePointerIds()
281 const int32_t pointerId = oldArgs.pointerProperties[i].id; in cancelSuppressedPointers() local
282 if (newSuppressedPointerIds.find(pointerId) == newSuppressedPointerIds.end()) { in cancelSuppressedPointers()
286 if (pointerId == activePointerId && actionMasked == AMOTION_EVENT_ACTION_POINTER_DOWN) { in cancelSuppressedPointers()
288 removedArgs = removePointerIds(removedArgs, {pointerId}); in cancelSuppressedPointers()
303 out.back().action = getActionUpForPointerId(out.back(), pointerId); in cancelSuppressedPointers()
[all …]
DUnwantedInteractionBlocker.h134 std::optional<size_t> getSlotForPointerId(int32_t pointerId) const;
139 void processPointerId(int32_t pointerId, int32_t action);
/frameworks/native/services/inputflinger/dispatcher/
DDragState.h29 DragState(const sp<android::gui::WindowInfoHandle>& windowHandle, int32_t pointerId) in DragState()
30 : dragWindow(windowHandle), pointerId(pointerId) {} in DragState()
42 const int32_t pointerId; member
DInputTarget.cpp58 int32_t pointerId = newPointerIds.clearFirstMarkedBit(); in addPointers() local
59 pointerTransforms[pointerId] = transform; in addPointers()
/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/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessor.kt50 .map { it.pointerId } in processTouch()
92 val data = touch.data.find { it.pointerId == pointerOnSensorId } ?: NormalizedTouchData() in processActionMove()
93 ProcessedTouch(InteractionEvent.DOWN, data.pointerId, data) in processActionMove()
97 val data = touch.data.find { it.pointerId == pointerOnSensorId } ?: NormalizedTouchData() in processActionMove()
113 val data = touch.data.find { it.pointerId == pointerOnSensorId } ?: NormalizedTouchData() in processActionUp()
114 ProcessedTouch(InteractionEvent.UNCHANGED, data.pointerId, data) in processActionUp()
140 pointerId = getPointerId(pointerIndex), in normalize()
DNormalizedTouchData.kt29 val pointerId: Int = MotionEvent.INVALID_POINTER_ID, constant in com.android.systemui.biometrics.udfps.NormalizedTouchData
/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/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java239 final int pointerId = event.getPointerId(pointerIndex); in captureDown() local
240 final int i = findIndex(pointerId); in captureDown()
241 if (DEBUG) Slog.d(TAG, "pointer " + pointerId in captureDown()
247 if (DEBUG) Slog.d(TAG, "pointer " + pointerId in captureDown()
256 private int findIndex(int pointerId) { in findIndex() argument
258 if (mDownPointerId[i] == pointerId) { in findIndex()
262 if (mDownPointers == MAX_TRACKED_POINTERS || pointerId == MotionEvent.INVALID_POINTER_ID) { in findIndex()
265 mDownPointerId[mDownPointers++] = pointerId; in findIndex()
273 final int pointerId = move.getPointerId(p); in detectSwipe() local
274 final int i = findIndex(pointerId); in detectSwipe()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAlternateUdfpsTouchProvider.kt32 fun onPointerDown(pointerId: Long, x: Int, y: Int, minor: Float, major: Float)
43 fun onPointerUp(pointerId: Long)
/frameworks/base/core/java/android/accessibilityservice/
DTouchInteractionController.java290 public void requestDragging(int pointerId) { in requestDragging() argument
292 if (pointerId < 0 || pointerId > MAX_POINTER_COUNT) { in requestDragging()
293 throw new IllegalArgumentException("Invalid pointer id: " + pointerId); in requestDragging()
300 connection.requestDragging(mDisplayId, pointerId); in requestDragging()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java478 int pointerId = mStrokeIdToPointerId.get(touchPoints[i].mStrokeId, -1); in obtainMotionEvent() local
479 if (pointerId == -1) { in obtainMotionEvent()
480 pointerId = getUnusedPointerId(); in obtainMotionEvent()
481 mStrokeIdToPointerId.put(touchPoints[i].mStrokeId, pointerId); in obtainMotionEvent()
483 sPointerProps[i].id = pointerId; in obtainMotionEvent()
508 int pointerId = 0; in getUnusedPointerId() local
509 while (mStrokeIdToPointerId.indexOfValue(pointerId) >= 0) { in getUnusedPointerId()
510 pointerId++; in getUnusedPointerId()
511 if (pointerId >= MAX_POINTER_ID) { in getUnusedPointerId()
515 return pointerId; in getUnusedPointerId()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DTestHal.java174 public void onPointerDown(int pointerId, int x, int y, float minor, float major) { in createSession()
179 public void onPointerUp(int pointerId) { in createSession()
207 onPointerDown(context.pointerId, (int) context.x, (int) context.y, context.minor, in createSession()
213 onPointerUp(context.pointerId); in createSession()
/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/base/core/java/android/hardware/input/
DVirtualTouchEvent.java88 private VirtualTouchEvent(int pointerId, @ToolType int toolType, @Action int action, in VirtualTouchEvent() argument
90 mPointerId = pointerId; in VirtualTouchEvent()
210 public @NonNull Builder setPointerId(int pointerId) { in setPointerId() argument
211 mPointerId = pointerId; in setPointerId()
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp104 uint32_t pointerId = difference.clearFirstMarkedBit(); in getChangingPointerId() local
106 return pointerId; in getChangingPointerId()
119 uint32_t pointerId = getChangingPointerId(pointers, lastPointers); in resolveAction() local
121 (pointerId << AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT); in resolveAction()
128 uint32_t pointerId = getChangingPointerId(pointers, nextPointers); in resolveAction() local
130 (pointerId << AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT); in resolveAction()
165 uint32_t pointerId = pointers.clearFirstMarkedBit(); in createMotionEventStream() local
169 EXPECT_TRUE(entry.positions[pointerId].isValid()) << in createMotionEventStream()
171 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream()
172 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, entry.positions[pointerId].y); in createMotionEventStream()
[all …]
/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/tests/utils/src/com/android/systemui/biometrics/udfps/
DFakeOverlapDetector.kt25 return shouldReturn[touchData.pointerId] in isGoodOverlap()

123