/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
D | FastScroller.java | 66 mTouchDownY = me.getY(); in onTouch() 69 float thumbBottom = mScrollThumb.getY() + mScrollThumb.getHeight(); in onTouch() 72 if (!(me.getY() + mScrollTrackView.getY() < thumbBottom in onTouch() 73 && me.getY() + mScrollTrackView.getY() > mScrollThumb.getY())) { in onTouch() 78 float thumbCenter = mScrollThumb.getY() + mScrollThumb.getHeight() / 2.0f; in onTouch() 85 verticalScrollTo(thumbCenter + (me.getY() - mTouchDownY)); in onTouch() 86 mTouchDownY = me.getY(); in onTouch() 90 if (isClick(mTouchDownY, me.getY())) { in onTouch() 91 verticalScrollTo(me.getY() + mScrollTrackView.getY()); in onTouch() 116 float thumbCenter = mScrollThumb.getY() + mScrollThumb.getHeight() / 2.0f; in calculateScrollDistance() [all …]
|
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/quickstep/ |
D | OrientationTouchTransformerTest.java | 98 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 100 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 110 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 112 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 121 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 123 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 140 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in enableMultipleRegions_shouldOverrideFirstRegion() 142 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in enableMultipleRegions_shouldOverrideFirstRegion() 153 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in enableMultipleRegions_shouldOverrideFirstRegion() 155 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in enableMultipleRegions_shouldOverrideFirstRegion() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragDriver.java | 119 SystemClock.uptimeMillis(), motionAction, event.getX(), event.getY(), 0); in simulateSecondaryMotionEvent() 132 mLastY = event.getY(); in onDragEvent() 140 mLastY = event.getY(); in onDragEvent() 141 mEventListener.onDriverDragMove(event.getX(), event.getY()); in onDragEvent() 146 mLastY = event.getY(); in onDragEvent() 147 mEventListener.onDriverDragMove(event.getX(), event.getY()); in onDragEvent() 179 mEventListener.onDriverDragMove(ev.getX(), ev.getY()); in onTouchEvent() 182 mEventListener.onDriverDragMove(ev.getX(), ev.getY()); in onTouchEvent() 183 mEventListener.onDriverDragEnd(ev.getX(), ev.getY()); in onTouchEvent() 200 mEventListener.onDriverDragEnd(ev.getX(), ev.getY()); in onInterceptTouchEvent()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | FilmstripGestureRecognizer.java | 65 mListener.onUp(event.getX(), event.getY()); in onTouchEvent() 91 mListener.onLongPress(e.getX(), e.getY()); in onLongPress() 97 return mListener.onScroll(e2.getX(), e2.getY(), dx, dy); in onScroll() 108 mListener.onDown(e.getX(), e.getY()); in onDown() 121 return mListener.onSingleTapUp(e.getX(), e.getY()); in onSingleTapConfirmed() 126 return mListener.onDoubleTap(e.getX(), e.getY()); in onDoubleTap()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | NavBarGestureHandler.java | 170 mDownPos.set(event.getX(), event.getY()); in onTouch() 173 mAssistantLeftRegion.contains(event.getX(), event.getY()) in onTouch() 174 || mAssistantRightRegion.contains(event.getX(), event.getY()); in onTouch() 187 mLastPos.set(event.getX(), event.getY()); in onTouch() 244 mGestureCallback.setNavBarGestureProgress(event.getY() - mDownPos.y); in onTouch() 254 return mAssistantLeftRegion.contains(event.getX(), event.getY()) in onInterceptTouch() 255 || mAssistantRightRegion.contains(event.getX(), event.getY()) in onInterceptTouch() 256 || event.getY() >= mDisplaySize.y - mBottomGestureHeight; in onInterceptTouch()
|
D | EdgeBackGestureHandler.java | 150 return isWithinTouchRegion((int) motionEvent.getX(), (int) motionEvent.getY()); in onInterceptTouch() 183 mAllowGesture = isWithinTouchRegion((int) ev.getX(), (int) ev.getY()); in onMotionEvent() 184 mDownPoint.set(ev.getX(), ev.getY()); in onMotionEvent() 202 float dy = Math.abs(ev.getY() - mDownPoint.y); in onMotionEvent() 219 float dy = Math.abs(ev.getY() - mDownPoint.y); in onMotionEvent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GestureRecognizer.java | 79 return mListener.onSingleTapUp(e.getX(), e.getY()); in onSingleTapUp() 84 return mListener.onDoubleTap(e.getX(), e.getY()); in onDoubleTap() 91 dx, dy, e2.getX() - e1.getX(), e2.getY() - e1.getY()); in onScroll() 124 mListener.onDown(e.getX(), e.getY()); in onDown()
|
D | FlingScroller.java | 104 mFinalY = getY(1.0f); in fling() 112 mCurrY = getY(f); in computeScrollOffset() 126 private int getY(float f) { in getY() method in FlingScroller
|
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
D | FastScroller.java | 75 setContainerAndScrollBarPosition(event.getY()); in onTouchEvent() 76 setRecyclerViewPosition(event.getY()); in onTouchEvent() 104 if (scrollBar.getY() == 0) { in getScrolledPercentage() 106 } else if (scrollBar.getY() + scrollBar.getHeight() >= getHeight()) { in getScrolledPercentage()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | AccessibilityInputConsumer.java | 92 mTotalY += (ev.getY(pointerIndex) - mDownY); in onMotionEvent() 93 mDownY = ev.getY(newPointerIdx); in onMotionEvent() 108 mDownY = ev.getY(pointerIndex); in onMotionEvent() 131 mTotalY += (ev.getY() - mDownY); in onMotionEvent()
|
D | OtherActivityInputConsumer.java | 211 mLastPos.set(ev.getX(), ev.getY()); in onMotionEvent() 246 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 275 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 276 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 286 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 487 return ev.getY() - mDownPos.y;
|
D | OverscrollInputConsumer.java | 126 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 152 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 153 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 173 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent()
|
D | AssistantInputConsumer.java | 129 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 147 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 148 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 165 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | BaseSwipeDetector.java | 139 mDownPos.set(ev.getX(), ev.getY()); in onTouchEvent() 156 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent() 157 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent() 167 ev.getY(pointerIndex) - mDownPos.y); in onTouchEvent() 179 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()
|
D | WorkspaceTouchListener.java | 100 handleLongPress = mTempRect.contains((int) ev.getX(), (int) ev.getY()); in onTouch() 105 mTouchDownPoint.set(ev.getX(), ev.getY()); in onTouch() 131 mTouchDownPoint.x - ev.getX(), mTouchDownPoint.y - ev.getY()) > mTouchSlop) { in onTouch()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | StatusBarTouchController.java | 103 mDownEvents.put(pid, new PointF(ev.getX(), ev.getY())); in onControllerInterceptTouchEvent() 106 mDownEvents.put(pid, new PointF(ev.getX(idx), ev.getY(idx))); in onControllerInterceptTouchEvent() 112 float dy = ev.getY(idx) - mDownEvents.get(pid).y; in onControllerInterceptTouchEvent() 162 if (ev.getY() > (mLauncher.getDragLayer().getHeight() - dp.getInsets().bottom)) { in canInterceptTouch()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardParams.java | 97 if (lhs.getY() < rhs.getY()) return -1; 98 if (lhs.getY() > rhs.getY()) return 1;
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | TransformingTouchDelegate.java | 81 mDelegateTargeted = mTouchCheckBounds.contains(event.getX(), event.getY()); in onTouchEvent() 83 mWasTouchOutsideBounds = !mBounds.contains(event.getX(), event.getY()); in onTouchEvent() 99 float y = event.getY(); in onTouchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | OrientationTouchTransformer.java | 329 return mAssistantLeftRegion.contains(ev.getX(), ev.getY()) in touchInAssistantRegion() 330 || mAssistantRightRegion.contains(ev.getX(), ev.getY()); in touchInAssistantRegion() 335 return mOneHandedModeRegion.contains(ev.getX(), ev.getY()); in touchInOneHandedModeRegion() 469 mTmpPoint[1] = event.getY(); in applyTransform() 473 Log.d(TAG, "original: " + event.getX() + ", " + event.getY() in applyTransform()
|
D | RotationTouchHelper.java | 234 return mOrientationTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY()); in isInSwipeUpTouchRegion() 243 event.getY(pointerIndex)); in isInSwipeUpTouchRegion() 320 if (event.getX() < 0 || event.getY() < 0) { in setOrientationTransformIfNeeded() 321 event.setLocation(Math.max(0, event.getX()), Math.max(0, event.getY())); in setOrientationTransformIfNeeded()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | MoreKeysKeyboardAccessibilityDelegate.java | 70 final int y = (int)event.getY(actionIndex); in onHoverEnter() 81 final int y = (int)event.getY(actionIndex); in onHoverMove() 99 final int y = (int)event.getY(actionIndex); in onHoverExit()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | ShutterButton.java | 114 || m.getX() < 0 || m.getY() < 0 in dispatchTouchEvent() 115 || m.getX() >= getWidth() || m.getY() >= getHeight()) { in dispatchTouchEvent() 119 mTouchCoordinate = new TouchCoordinate(m.getX(), m.getY(), this.getMeasuredWidth(), in dispatchTouchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | TriggerSwipeUpTouchTracker.java | 90 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 96 float displacementY = ev.getY() - mDownPos.y; in onMotionEvent() 150 float displacementY = ev.getY() - mDownPos.y; in onGestureEnd()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripView.java | 346 final float dy = me.getY() - down.getY(); 362 mLastY = (int)me.getY(); in onInterceptTouchEvent() 372 final int y = (int)me.getY(index); in onInterceptTouchEvent() 408 final int y = mMoreSuggestionsView.translateY((int)me.getY(index)); in onTouchEvent()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | ActualKeyboardBuilder.java | 62 int lastY = filteredSortedKeys.get(0).getY(); in buildKeyboard() 64 if (lastY != key.getY()) { in buildKeyboard() 66 lastY = key.getY(); in buildKeyboard()
|