/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
D | FastScroller.java | 65 mTouchDownY = me.getY(); in onTouch() 68 float thumbBottom = mScrollThumb.getY() + mScrollThumb.getHeight(); in onTouch() 71 if (!(me.getY() + mScrollTrackView.getY() < thumbBottom in onTouch() 72 && me.getY() + mScrollTrackView.getY() > mScrollThumb.getY())) { in onTouch() 77 float thumbCenter = mScrollThumb.getY() + mScrollThumb.getHeight() / 2.0f; in onTouch() 84 verticalScrollTo(thumbCenter + (me.getY() - mTouchDownY)); in onTouch() 85 mTouchDownY = me.getY(); in onTouch() 89 if (isClick(mTouchDownY, me.getY())) { in onTouch() 90 verticalScrollTo(me.getY() + mScrollTrackView.getY()); in onTouch() 115 float thumbCenter = mScrollThumb.getY() + mScrollThumb.getHeight() / 2.0f; in calculateScrollDistance() [all …]
|
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/quickstep/ |
D | OrientationTouchTransformerTest.java | 77 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 79 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 88 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 90 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 99 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 101 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion() 115 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in enableMultipleRegions_shouldOverrideFirstRegion() 117 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in enableMultipleRegions_shouldOverrideFirstRegion() 128 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in enableMultipleRegions_shouldOverrideFirstRegion() 130 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/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/recents_ui_overrides/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 | 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 | OtherActivityInputConsumer.java | 220 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 249 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 250 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 260 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 465 return ev.getY() - mDownPos.y;
|
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 | 141 mDownPos.set(ev.getX(), ev.getY()); in onTouchEvent() 158 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent() 159 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent() 169 ev.getY(pointerIndex) - mDownPos.y); in onTouchEvent() 184 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()
|
/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/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | StatusBarTouchController.java | 105 mDownEvents.put(pid, new PointF(ev.getX(), ev.getY())); in onControllerInterceptTouchEvent() 108 mDownEvents.put(pid, new PointF(ev.getX(idx), ev.getY(idx))); in onControllerInterceptTouchEvent() 114 float dy = ev.getY(idx) - mDownEvents.get(pid).y; in onControllerInterceptTouchEvent() 167 if (ev.getY() > (mLauncher.getDragLayer().getHeight() - dp.getInsets().bottom)) { in canInterceptTouch()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | EdgeBackGestureHandler.java | 176 mAllowGesture = isWithinTouchRegion((int) ev.getX(), (int) ev.getY()); in onMotionEvent() 177 mDownPoint.set(ev.getX(), ev.getY()); in onMotionEvent() 195 float dy = Math.abs(ev.getY() - mDownPoint.y); in onMotionEvent() 212 float dy = Math.abs(ev.getY() - mDownPoint.y); in onMotionEvent()
|
D | NavBarGestureHandler.java | 171 mDownPos.set(event.getX(), event.getY()); in onTouch() 174 mAssistantLeftRegion.contains(event.getX(), event.getY()) in onTouch() 175 || mAssistantRightRegion.contains(event.getX(), event.getY()); in onTouch() 188 mLastPos.set(event.getX(), event.getY()); in onTouch() 246 mGestureCallback.setNavBarGestureProgress(event.getY() - mDownPos.y); in onTouch()
|
/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 | RotationTouchHelper.java | 206 return mOrientationTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY()); in isInSwipeUpTouchRegion() 215 event.getY(pointerIndex)); in isInSwipeUpTouchRegion() 275 if (event.getX() < 0 || event.getY() < 0) { in setOrientationTransformIfNeeded() 276 event.setLocation(Math.max(0, event.getX()), Math.max(0, event.getY())); in setOrientationTransformIfNeeded()
|
D | OrientationTouchTransformer.java | 262 return mAssistantLeftRegion.contains(ev.getX(), ev.getY()) in touchInAssistantRegion() 263 || mAssistantRightRegion.contains(ev.getX(), ev.getY()); in touchInAssistantRegion() 401 mTmpPoint[1] = event.getY(); in applyTransform() 405 Log.d(TAG, "original: " + event.getX() + ", " + event.getY() in applyTransform()
|
/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/recents_ui_overrides/src/com/android/quickstep/util/ |
D | TriggerSwipeUpTouchTracker.java | 88 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 94 float displacementY = ev.getY() - mDownPos.y; in onMotionEvent() 148 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/apps/Settings/src/com/android/settings/widget/ |
D | ChartSweepView.java | 420 return Math.abs(eventInParent.getY() - (getY() + getTargetInset())); in getTouchDistanceFromTarget() 440 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); in onTouchEvent() 441 acceptLabel = mLabelLayout != null ? event.getY() < mLabelLayout.getHeight() in onTouchEvent() 548 final float effectiveY = getY() - mMargins.top - parentContent.top; 744 return view.getY() + view.mContentOffset.top;
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ChartSweepView.java | 421 return Math.abs(eventInParent.getY() - (getY() + getTargetInset())); in getTouchDistanceFromTarget() 441 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); in onTouchEvent() 442 acceptLabel = mLabelLayout != null ? event.getY() < mLabelLayout.getHeight() in onTouchEvent() 549 final float effectiveY = getY() - mMargins.top - parentContent.top; 745 return view.getY() + view.mContentOffset.top;
|