Home
last modified time | relevance | path

Searched refs:yDiff (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DDirectionEvaluator.java20 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()
36 if (!vertical || yDiff >= 0.0) { in evaluate()
41 if (xDiff < 0.0 && yDiff > 0.0) { in evaluate()
46 if (xDiff > 0.0 && yDiff > 0.0) { in evaluate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarGestureHelper.java125 int yDiff = Math.abs(y - mTouchDownY); in onInterceptTouchEvent() local
127 ? xDiff > mScrollTouchSlop && xDiff > yDiff in onInterceptTouchEvent()
128 : yDiff > mScrollTouchSlop && yDiff > xDiff; in onInterceptTouchEvent()
197 int yDiff = Math.abs(y - mTouchDownY); in handleDragActionMoveEvent() local
203 ? yDiff > mScrollTouchSlop && yDiff > xDiff in handleDragActionMoveEvent()
204 : xDiff > mScrollTouchSlop && xDiff > yDiff; in handleDragActionMoveEvent()
DPanelView.java402 float yDiff = y - mInitialTouchY; in isDirectionUpwards() local
403 if (yDiff >= 0) { in isDirectionUpwards()
406 return Math.abs(yDiff) >= Math.abs(xDiff); in isDirectionUpwards()
DNotificationPanelView.java1415 private boolean shouldQuickSettingsIntercept(float x, float y, float yDiff) { in shouldQuickSettingsIntercept() argument
1424 return onHeader || (yDiff < 0 && isInQsArea(x, y)); in shouldQuickSettingsIntercept()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java186 final int yDiff = loc2[1] - loc1[1]; in updateAnimators() local
190 translationYBuilder.addFloat(quickTileView, "translationY", 0, yDiff); in updateAnimators()
199 translationYBuilder.addFloat(tileView, "translationY", -yDiff, 0); in updateAnimators()
212 final int yDiff = loc2[1] - loc1[1]; in updateAnimators() local
216 translationYBuilder.addFloat(tileView, "translationY", -yDiff, 0); in updateAnimators()
217 translationYBuilder.addFloat(tileIcon, "translationY", -yDiff, 0); in updateAnimators()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java303 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/
DEmergencyButton.java145 final int yDiff = Math.abs(y - mDownY); in onTouchEvent() local
147 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
/frameworks/support/design/src/android/support/design/widget/
DHeaderBehavior.java91 final int yDiff = Math.abs(y - mLastMotionY); in onInterceptTouchEvent() local
92 if (yDiff > mTouchSlop) { in onInterceptTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java1856 final float yDiff = Math.abs(y - mInitialMotionY);
1857 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1867 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
1876 } else if (yDiff > mTouchSlop) {
1980 final float yDiff = Math.abs(y - mLastMotionY);
1981 … if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1982 if (xDiff > mTouchSlop && xDiff > yDiff) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java263 int yDiff = Math.abs(y - mDownY); in handleTouchEvent() local
265 if (Math.abs(y - mDownY) > mScrollTouchSlop && yDiff > xDiff) { in handleTouchEvent()
/frameworks/support/core-ui/java/android/support/v4/view/
DViewPager.java2068 final float yDiff = Math.abs(y - mInitialMotionY);
2069 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
2079 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
2088 } else if (yDiff > mTouchSlop) {
2208 final float yDiff = Math.abs(y - mLastMotionY);
2210 Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
2212 if (xDiff > mTouchSlop && xDiff > yDiff) {
/frameworks/support/core-ui/java/android/support/v4/widget/
DSwipeRefreshLayout.java1063 final float yDiff = y - mInitialDownY; in startDragging() local
1064 if (yDiff > mTouchSlop && !mIsBeingDragged) { in startDragging()
DNestedScrollView.java681 final int yDiff = Math.abs(y - mLastMotionY); in onInterceptTouchEvent() local
682 if (yDiff > mTouchSlop in onInterceptTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java1421 final int yDiff = Math.abs(deltaY); in onScrollTouch() local
1422 if (!mIsBeingDragged && yDiff > mTouchSlop && yDiff > xDiff) { in onScrollTouch()
3192 final int yDiff = Math.abs(y - mLastMotionY); in onInterceptTouchEventScroll() local
3194 if (yDiff > mTouchSlop && yDiff > xDiff) { in onInterceptTouchEventScroll()
/frameworks/base/core/java/android/widget/
DScrollView.java538 final int yDiff = Math.abs(y - mLastMotionY); in onInterceptTouchEvent() local
539 if (yDiff > mTouchSlop && (getNestedScrollAxes() & SCROLL_AXIS_VERTICAL) == 0) { in onInterceptTouchEvent()