/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | DirectionEvaluator.java | 20 public static float evaluate(float xDiff, float yDiff, int type) { in evaluate() argument 22 boolean vertical = Math.abs(yDiff) >= Math.abs(xDiff); in evaluate() 26 if (!vertical || yDiff <= 0.0) { in evaluate() 37 if (!vertical || yDiff >= 0.0) { in evaluate() 42 if (xDiff < 0.0 && yDiff > 0.0) { in evaluate() 47 if (xDiff > 0.0 && yDiff > 0.0) { in evaluate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | QuickStepController.java | 228 int yDiff = Math.abs(y - mTouchDownY); in handleTouchEvent() local 235 yDiff > NavigationBarCompat.getQuickScrubTouchSlopPx() && yDiff > xDiff; in handleTouchEvent() 237 xDiff > NavigationBarCompat.getQuickStepTouchSlopPx() && xDiff > yDiff; in handleTouchEvent() 244 xDiff > NavigationBarCompat.getQuickScrubTouchSlopPx() && xDiff > yDiff; in handleTouchEvent() 246 yDiff > NavigationBarCompat.getQuickStepTouchSlopPx() && yDiff > xDiff; in handleTouchEvent()
|
D | NavigationBarGestureHelper.java | 207 int yDiff = Math.abs(y - mTouchDownY); in handleDragActionMoveEvent() local 213 ? yDiff > mScrollTouchSlop && yDiff > xDiff in handleDragActionMoveEvent() 214 : xDiff > mScrollTouchSlop && xDiff > yDiff; in handleDragActionMoveEvent()
|
D | PanelView.java | 432 float yDiff = y - mInitialTouchY; in isDirectionUpwards() local 433 if (yDiff >= 0) { in isDirectionUpwards() 436 return Math.abs(yDiff) >= Math.abs(xDiff); in isDirectionUpwards()
|
D | NotificationPanelView.java | 1507 private boolean shouldQuickSettingsIntercept(float x, float y, float yDiff) { in shouldQuickSettingsIntercept() argument 1516 return onHeader || (yDiff < 0 && isInQsArea(x, y)); in shouldQuickSettingsIntercept()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSAnimator.java | 193 final int yDiff = loc2[1] - loc1[1]; in updateAnimators() local 197 translationYBuilder.addFloat(quickTileView, "translationY", 0, yDiff); in updateAnimators() 206 translationYBuilder.addFloat(tileView, "translationY", -yDiff, 0); in updateAnimators() 219 final int yDiff = loc2[1] - loc1[1]; in updateAnimators() local 223 translationYBuilder.addFloat(tileView, "translationY", -yDiff, 0); in updateAnimators() 224 translationYBuilder.addFloat(tileIcon, "translationY", -yDiff, 0); in updateAnimators()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ExpandHelper.java | 303 final float yDiff = ev.getRawY() - mInitialTouchY; in onInterceptTouchEvent() local 305 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onInterceptTouchEvent() 306 if (DEBUG) Log.v(TAG, "got venetian gesture (dy=" + yDiff + "px)"); in onInterceptTouchEvent() 431 final float yDiff = ev.getRawY() - mInitialTouchY; in onTouchEvent() local 433 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onTouchEvent() 434 if (DEBUG) Log.v(TAG, "got venetian gesture (dy=" + yDiff + "px)"); in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | EmergencyButton.java | 145 final int yDiff = Math.abs(y - mDownY); in onTouchEvent() local 147 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 1858 final float yDiff = Math.abs(y - mInitialMotionY); 1859 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff); 1869 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) { 1878 } else if (yDiff > mTouchSlop) { 1982 final float yDiff = Math.abs(y - mLastMotionY); 1983 … if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff); 1984 if (xDiff > mTouchSlop && xDiff > yDiff) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskStackViewTouchHandler.java | 265 int yDiff = Math.abs(y - mDownY); in handleTouchEvent() local 267 if (Math.abs(y - mDownY) > mScrollTouchSlop && yDiff > xDiff) { in handleTouchEvent()
|
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/ |
D | ViewPager.java | 2076 final float yDiff = Math.abs(y - mInitialMotionY); 2077 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff); 2087 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) { 2096 } else if (yDiff > mTouchSlop) { 2216 final float yDiff = Math.abs(y - mLastMotionY); 2218 Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff); 2220 if (xDiff > mTouchSlop && xDiff > yDiff) {
|
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/ |
D | SwipeRefreshLayout.java | 1080 final float yDiff = y - mInitialDownY; in startDragging() local 1081 if (yDiff > mTouchSlop && !mIsBeingDragged) { in startDragging()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | NotificationStackScrollLayout.java | 1637 final int yDiff = Math.abs(deltaY); 1638 if (!mIsBeingDragged && yDiff > mTouchSlop && yDiff > xDiff) { 3465 final int yDiff = Math.abs(y - mLastMotionY); 3467 if (yDiff > mTouchSlop && yDiff > xDiff) {
|
/frameworks/base/core/java/android/widget/ |
D | ScrollView.java | 538 final int yDiff = Math.abs(y - mLastMotionY); in onInterceptTouchEvent() local 539 if (yDiff > mTouchSlop && (getNestedScrollAxes() & SCROLL_AXIS_VERTICAL) == 0) { in onInterceptTouchEvent()
|
/frameworks/support/compat/src/main/java/androidx/core/widget/ |
D | NestedScrollView.java | 729 final int yDiff = Math.abs(y - mLastMotionY); in onInterceptTouchEvent() local 730 if (yDiff > mTouchSlop in onInterceptTouchEvent()
|