Home
last modified time | relevance | path

Searched refs:downX (Results 1 – 4 of 4) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/section/
DScreenPreviewClickView.kt39 private var downX = 0f variable
47 downX = event.x in onInterceptTouchEvent()
53 if (isClick(event, downX, downY)) { in onInterceptTouchEvent()
61 downX in (leftXBound..rightXBound) -> onPreviewClicked?.invoke() in onInterceptTouchEvent()
62 downX < leftXBound -> onSideClicked?.invoke(!isRtl) in onInterceptTouchEvent()
63 downX > rightXBound -> onSideClicked?.invoke(isRtl) in onInterceptTouchEvent()
79 private fun isClick(event: MotionEvent, downX: Float, downY: Float): Boolean { in isClick()
88 distanceMoved(event, downX, downY) > ViewConfiguration.getTouchSlop() -> false in isClick()
98 private fun distanceMoved(event: MotionEvent, downX: Float, downY: Float): Float { in distanceMoved()
99 val deltaX = event.x - downX in distanceMoved()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DPreviewTabs.kt56 private var downX = 0f variable
115 downX = event.rawX in onInterceptTouchEvent()
122 if (isClick(event, downX, downY)) { in onInterceptTouchEvent()
125 if (primaryTabRect.contains(downX.toInt(), downY.toInt())) { in onInterceptTouchEvent()
128 } else if (secondaryTabRect.contains(downX.toInt(), downY.toInt())) { in onInterceptTouchEvent()
263 private fun isClick(event: MotionEvent, downX: Float, downY: Float): Boolean { in isClick()
272 distanceMoved(event, downX, downY) > ViewConfiguration.getTouchSlop() -> false in isClick()
282 private fun distanceMoved(event: MotionEvent, downX: Float, downY: Float): Float { in distanceMoved()
283 val deltaX = event.rawX - downX in distanceMoved()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java116 private void swipe(int downX, int downY, int upX, int upY, int steps, int button, in swipe() argument
127 xStep = ((double) (upX - downX)) / swipeSteps; in swipe()
131 touchDown(downX, downY, button); in swipe()
136 touchMove(downX + (int) (xStep * i), downY + (int) (yStep * i), button); in swipe()
/packages/apps/Car/Notification/src/com/android/car/notification/
DHeadsUpNotificationOnTouchListener.java261 float downX, float downY, MotionEvent motionEvent, Axis dismissAxis) { in getDeltaInAxis() argument
266 return motionEvent.getRawX() - downX; in getDeltaInAxis()