Home
last modified time | relevance | path

Searched refs:xDiff (Results 1 – 5 of 5) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/
DVerticalViewPager.java93 final float xDiff = Math.abs(x - mLastMotionX); in onTouchEvent() local
96 if (xDiff > mTouchSlop && xDiff > yDiff) { // Swiping left and right in onTouchEvent()
98 } else if (yDiff > mTouchSlop && yDiff > xDiff) { //Swiping up and down in onTouchEvent()
DClockFragment.java168 float xDiff = Math.abs(event.getX() - mLastTouchX);
170 if (xDiff >= mMaxMovementAllowed || yDiff >= mMaxMovementAllowed) {
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewWithDraggableItems.java136 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineDraggingStart() local
141 boolean isUpwardMotion = (yDiff / (float) xDiff) > mDragSlopeThreshold; in determineDraggingStart()
DPagedView.java1104 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineScrollingStart() local
1108 boolean xPaged = xDiff > mPagingTouchSlop; in determineScrollingStart()
1109 boolean xMoved = xDiff > touchSlop; in determineScrollingStart()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1442 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineScrollingStart() local
1445 boolean xMoved = xDiff > touchSlop; in determineScrollingStart()