Home
last modified time | relevance | path

Searched refs:downY (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DTapClassifier.java47 float downY = motionEvents.get(0).getY(); in isTap() local
57 } else if (Math.abs(event.getY() - downY) >= mTouchSlop) { in isTap()
59 + Math.abs(event.getY() - downY) in isTap()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiScrollable.java425 int downY = 0; in scrollForward() local
435 downY = rect.bottom - swipeAreaAdjust; in scrollForward()
443 downY = rect.centerY(); in scrollForward()
447 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollForward()
504 int downY = 0; in scrollBackward() local
515 downY = rect.top + swipeAreaAdjust; in scrollBackward()
524 downY = rect.centerY(); in scrollBackward()
528 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollBackward()
DInteractionController.java346 public boolean scrollSwipe(final int downX, final int downY, final int upX, final int upY,
348 Log.d(LOG_TAG, "scrollSwipe (" + downX + ", " + downY + ", " + upX + ", "
354 swipe(downX, downY, upX, upY, steps);
387 } else if (downY == upY) {
422 public boolean swipe(int downX, int downY, int upX, int upY, int steps) {
423 return swipe(downX, downY, upX, upY, steps, false /*drag*/);
436 public boolean swipe(int downX, int downY, int upX, int upY, int steps, boolean drag) {
447 yStep = ((double)(upY - downY)) / swipeSteps;
450 ret = touchDown(downX, downY);
454 ret &= touchMove(downX + (int)(xStep * i), downY + (int)(yStep * i));
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/view/
DLongPressHandlingViewInteractionHandlerTest.kt78 val downY = 456 in <lambda>() constant
82 y = downY, in <lambda>()
90 verify(onLongPressDetected).invoke(downX, downY) in <lambda>()
/frameworks/base/core/java/android/view/
DNotificationTopLineView.java353 private boolean onTouchUp(float upX, float upY, float downX, float downY) { in onTouchUp() argument
356 || mFeedbackRect.contains((int) downX, (int) downY))) { in onTouchUp()
396 public boolean onTouchUp(float upX, float upY, float downX, float downY) { in onTouchUp() argument
400 return mTouchListener.onTouchUp(upX, upY, downX, downY); in onTouchUp()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java474 private void doTestDragDirection(float downX, float downY, float moveX, float moveY, in doTestDragDirection() argument
480 MotionEvent event1 = downEvent(event1Time, event1Time, downX, downY); in doTestDragDirection()
487 String msg = String.format("(%.0f,%.0f)=>(%.0f,%.0f)", downX, downY, moveX, moveY); in doTestDragDirection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DQuickSettingsControllerImpl.java717 boolean canPanelCollapseOnQQS(float downX, float downY) { in canPanelCollapseOnQQS() argument
723 && downY <= header.getBottom(); in canPanelCollapseOnQQS()