Home
last modified time | relevance | path

Searched refs:xDiff (Results 1 – 10 of 10) 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()
43 if (xDiff < 0.0 && yDiff > 0.0) { in evaluate()
48 if (xDiff > 0.0 && yDiff > 0.0) { in evaluate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java216 final int xDiff = loc2[0] - loc1[0]; in updateAnimators() local
222 translationXBuilder.addFloat(quickTileView, "translationX", 0, xDiff); in updateAnimators()
231 translationXBuilder.addFloat(tileView, "translationX", -xDiff, 0); in updateAnimators()
239 final int translationX = mQsPanel.isLayoutRtl() ? xDiff - width : xDiff + width; in updateAnimators()
254 final int xDiff = loc2[0] - loc1[0]; in updateAnimators() local
258 translationXBuilder.addFloat(tileView, "translationX", -xDiff, 0); in updateAnimators()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButton.java151 final int xDiff = Math.abs(x - mDownX); in onTouchEvent() local
154 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java304 final float xDiff = ev.getRawX() - mInitialTouchX; in onInterceptTouchEvent() local
305 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onInterceptTouchEvent()
432 final float xDiff = ev.getRawX() - mInitialTouchX; in onTouchEvent() local
433 if (yDiff > mTouchSlop && yDiff > Math.abs(xDiff)) { in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java1862 final float xDiff = Math.abs(dx);
1865 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1875 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
1986 final float xDiff = Math.abs(x - mLastMotionX);
1989 … if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1990 if (xDiff > mTouchSlop && xDiff > yDiff) {
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java267 int xDiff = Math.abs(x - mDownX); in handleTouchEvent() local
268 if (Math.abs(y - mDownY) > mScrollTouchSlop && yDiff > xDiff) { in handleTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelView.java440 float xDiff = x - mInitialTouchX; in isDirectionUpwards() local
445 return Math.abs(yDiff) >= Math.abs(xDiff); in isDirectionUpwards()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java600 final int xDiff = (int) Math.abs(x - mLastMotionX); in onInterceptTouchEvent() local
601 if (xDiff > mTouchSlop) { in onInterceptTouchEvent()
DEditor.java5447 final float xDiff = x - mPrevX; in updatePosition() local
5454 isExpanding |= xDiff > 0; in updatePosition()
5456 isExpanding |= xDiff < 0; in updatePosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java3816 final int xDiff = Math.abs(x - mDownX);
3818 if (!mIsBeingDragged && yDiff > mTouchSlop && yDiff > xDiff) {
4094 final int xDiff = Math.abs(x - mDownX);
4095 if (yDiff > mTouchSlop && yDiff > xDiff) {