Home
last modified time | relevance | path

Searched refs:pointerIndex (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DAccessibilityInputConsumer.java87 int pointerIndex = ev.getActionIndex(); in onMotionEvent() local
88 int pointerId = ev.getPointerId(pointerIndex); in onMotionEvent()
90 final int newPointerIdx = pointerIndex == 0 ? 1 : 0; in onMotionEvent()
92 mTotalY += (ev.getY(pointerIndex) - mDownY); in onMotionEvent()
101 int pointerIndex = ev.getActionIndex(); in onMotionEvent() local
102 if (mDeviceState.isInSwipeUpTouchRegion(ev, pointerIndex) in onMotionEvent()
106 mActivePointerId = ev.getPointerId(pointerIndex); in onMotionEvent()
107 mDownY = ev.getY(pointerIndex); in onMotionEvent()
116 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onMotionEvent() local
117 if (pointerIndex == -1) { in onMotionEvent()
[all …]
DOverscrollInputConsumer.java169 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onMotionEvent() local
170 if (pointerIndex == -1) { in onMotionEvent()
173 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent()
DAssistantInputConsumer.java161 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onMotionEvent() local
162 if (pointerIndex == -1) { in onMotionEvent()
165 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent()
DOtherActivityInputConsumer.java253 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onMotionEvent() local
254 if (pointerIndex == INVALID_POINTER_ID) { in onMotionEvent()
257 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/touch/
DTouchPointView.java78 int pointerIndex = event.findPointerIndex(pointerId); in onTouchEvent() local
80 finger.point = new Point((int) event.getX(pointerIndex), in onTouchEvent()
81 (int) event.getY(pointerIndex)); in onTouchEvent()
97 int pointerIndex = event.findPointerIndex(pointerId); in logTouchEvents() local
100 Log.d(TAG, "TouchUp [x=" + event.getX(pointerIndex) + ", y=" + event.getY(pointerIndex) in logTouchEvents()
101 + " , pointerId=" + pointerId + ", pointerIndex=" + pointerIndex + ", duration=" in logTouchEvents()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DTouchPointView.java75 int pointerIndex = event.findPointerIndex(pointerId); in onTouchEvent() local
77 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex)); in onTouchEvent()
93 int pointerIndex = event.findPointerIndex(pointerId); in logTouchEvents() local
96 … Log.d(TAG, "TouchUp [x=" + event.getX(pointerIndex) + ", y=" + event.getY(pointerIndex) + in logTouchEvents()
97 " , pointerId=" + pointerId + ", pointerIndex=" + pointerIndex + ", duration=" + in logTouchEvents()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DBaseSwipeDetector.java164 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() local
165 if (pointerIndex == INVALID_POINTER_ID) { in onTouchEvent()
168 mDisplacement.set(ev.getX(pointerIndex) - mDownPos.x, in onTouchEvent()
169 ev.getY(pointerIndex) - mDownPos.y); in onTouchEvent()
184 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()
DPortraitPagedViewHandler.java106 public float getPrimaryDirection(MotionEvent event, int pointerIndex) { in getPrimaryDirection() argument
107 return event.getX(pointerIndex); in getPrimaryDirection()
DLandscapePagedViewHandler.java108 public float getPrimaryDirection(MotionEvent event, int pointerIndex) { in getPrimaryDirection() argument
109 return event.getY(pointerIndex); in getPrimaryDirection()
DPagedOrientationHandler.java60 float getPrimaryDirection(MotionEvent event, int pointerIndex); in getPrimaryDirection() argument
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java979 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in determineScrollingStart() local
980 if (pointerIndex == -1) return; in determineScrollingStart()
982 final float primaryDirection = mOrientationHandler.getPrimaryDirection(ev, pointerIndex); in determineScrollingStart()
1185 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1187 if (pointerIndex == -1) return true;
1189 float direction = mOrientationHandler.getPrimaryDirection(ev, pointerIndex);
1212 final int pointerIndex = ev.findPointerIndex(activePointerId);
1213 if (pointerIndex == -1) return true;
1216 pointerIndex);
1414 final int pointerIndex = ev.getActionIndex();
[all …]
DWorkspace.java1311 int pointerIndex = ev.getActionIndex(); in onWallpaperTap() local
1312 position[0] += (int) ev.getX(pointerIndex); in onWallpaperTap()
1313 position[1] += (int) ev.getY(pointerIndex); in onWallpaperTap()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownTouchHandler.java233 int pointerIndex = event.findPointerIndex(trackingPointer); in onTouch() local
234 if (pointerIndex < 0) { in onTouch()
235 pointerIndex = 0; in onTouch()
236 trackingPointer = event.getPointerId(pointerIndex); in onTouch()
238 final float pointerY = event.getY(pointerIndex); in onTouch()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsAnimationDeviceState.java561 public boolean isInSwipeUpTouchRegion(MotionEvent event, int pointerIndex) { in isInSwipeUpTouchRegion() argument
562 return mOrientationTouchTransformer.touchInValidSwipeRegions(event.getX(pointerIndex), in isInSwipeUpTouchRegion()
563 event.getY(pointerIndex)); in isInSwipeUpTouchRegion()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DMotionPauseDetector.java127 public void addPosition(MotionEvent ev, int pointerIndex) { in addPosition() argument
134 Float newVelocity = mVelocityProvider.addMotionEvent(ev, pointerIndex); in addPosition()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperPreview.java577 int pointerIndex = ev.getActionIndex(); in dispatchTouchEvent() local
580 (int) ev.getX(pointerIndex), (int) ev.getY(pointerIndex), 0, null); in dispatchTouchEvent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DPointerTracker.java751 final int pointerIndex = me.findPointerIndex(mPointerId); in onMoveEvent() local
754 final int historicalX = (int)me.getHistoricalX(pointerIndex, h); in onMoveEvent()
755 final int historicalY = (int)me.getHistoricalY(pointerIndex, h); in onMoveEvent()