Home
last modified time | relevance | path

Searched refs:xDiff (Results 1 – 12 of 12) 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.java350 float xDiff = x - mInitialTouchX; in isDirectionUpwards() local
355 return Math.abs(yDiff) >= Math.abs(xDiff); in isDirectionUpwards()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java175 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/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()
423 final float xDiff = ev.getRawX() - mInitialTouchX; in onTouchEvent() local
424 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java1881 final float xDiff = Math.abs(dx);
1884 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1894 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
2005 final float xDiff = Math.abs(x - mLastMotionX);
2008 … if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
2009 if (xDiff > mTouchSlop && xDiff > yDiff) {
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java2058 final float xDiff = Math.abs(dx);
2061 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
2071 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
2195 final float xDiff = Math.abs(x - mLastMotionX);
2198 … if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
2199 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.java494 final int xDiff = (int) Math.abs(x - mLastMotionX); in onInterceptTouchEvent() local
495 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.java1230 final int xDiff = Math.abs(x - mDownX); in onScrollTouch() local
1232 if (!mIsBeingDragged && yDiff > mTouchSlop && yDiff > xDiff) { in onScrollTouch()
2822 final int xDiff = Math.abs(x - mDownX); in onInterceptTouchEventScroll() local
2823 if (yDiff > mTouchSlop && yDiff > xDiff) { in onInterceptTouchEventScroll()