Home
last modified time | relevance | path

Searched refs:xDiff (Results 1 – 13 of 13) 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()
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.java118 int xDiff = Math.abs(x - mTouchDownX); in onInterceptTouchEvent() local
121 ? xDiff > mScrollTouchSlop && xDiff > yDiff in onInterceptTouchEvent()
122 : yDiff > mScrollTouchSlop && yDiff > xDiff; in onInterceptTouchEvent()
190 int xDiff = Math.abs(x - mTouchDownX); in handleDragActionMoveEvent() local
197 ? yDiff > mScrollTouchSlop && yDiff > xDiff in handleDragActionMoveEvent()
198 : xDiff > mScrollTouchSlop && xDiff > yDiff; in handleDragActionMoveEvent()
DPanelView.java354 float xDiff = x - mInitialTouchX; in isDirectionUpwards() local
359 return Math.abs(yDiff) >= Math.abs(xDiff); in isDirectionUpwards()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java176 final int xDiff = loc2[0] - loc1[0]; in updateAnimators() local
180 translationXBuilder.addFloat(quickTileView, "translationX", 0, xDiff); in updateAnimators()
189 translationXBuilder.addFloat(label, "translationX", -xDiff, 0); in updateAnimators()
202 final int xDiff = loc2[0] - loc1[0]; in updateAnimators() local
206 translationXBuilder.addFloat(tileView, "translationX", -xDiff, 0); in updateAnimators()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DEmergencyButton.java144 final int xDiff = Math.abs(x - mDownX); in onTouchEvent() local
147 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java297 final float xDiff = ev.getRawX() - mInitialTouchX; in onInterceptTouchEvent() local
298 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onInterceptTouchEvent()
425 final float xDiff = ev.getRawX() - mInitialTouchX; in onTouchEvent() local
426 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java1854 final float xDiff = Math.abs(dx);
1857 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1867 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
1978 final float xDiff = Math.abs(x - mLastMotionX);
1981 … if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1982 if (xDiff > mTouchSlop && xDiff > yDiff) {
/frameworks/support/core-ui/java/android/support/v4/view/
DViewPager.java2098 final float xDiff = Math.abs(dx);
2101 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
2111 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
2238 final float xDiff = Math.abs(x - mLastMotionX);
2242 Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
2244 if (xDiff > mTouchSlop && xDiff > yDiff) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java264 int xDiff = Math.abs(x - mDownX); in handleTouchEvent() local
265 if (Math.abs(y - mDownY) > mScrollTouchSlop && yDiff > xDiff) { in handleTouchEvent()
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd130 final int xDiff = calculateDistanceX(ev);
134 if (xDiff > mTouchSlop) {
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java502 final int xDiff = (int) Math.abs(x - mLastMotionX); in onInterceptTouchEvent() local
503 if (xDiff > mTouchSlop) { in onInterceptTouchEvent()
DEditor.java4757 final float xDiff = x - mPrevX; in updatePosition() local
4764 isExpanding |= xDiff > 0; in updatePosition()
4766 isExpanding |= xDiff < 0; in updatePosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java1300 final int xDiff = Math.abs(x - mDownX); in onScrollTouch() local
1302 if (!mIsBeingDragged && yDiff > mTouchSlop && yDiff > xDiff) { in onScrollTouch()
2923 final int xDiff = Math.abs(x - mDownX); in onInterceptTouchEventScroll() local
2924 if (yDiff > mTouchSlop && yDiff > xDiff) { in onInterceptTouchEventScroll()