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()
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.java226 final int xDiff = loc2[0] - loc1[0]; in updateAnimators() local
232 translationXBuilder.addFloat(quickTileView, "translationX", 0, xDiff); in updateAnimators()
241 translationXBuilder.addFloat(tileView, "translationX", -xDiff, 0); in updateAnimators()
249 final int translationX = mQsPanel.isLayoutRtl() ? xDiff - width : xDiff + width; in updateAnimators()
264 final int xDiff = loc2[0] - loc1[0]; in updateAnimators() local
268 translationXBuilder.addFloat(tileView, "translationX", -xDiff, 0); in updateAnimators()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DSimpleMirrorWindowControl.java159 int xDiff = (int) (event.getRawX() - mLastDrag.x); in handleDragState() local
161 move(xDiff, yDiff); in handleDragState()
DWindowMagnificationController.java306 int xDiff = (int) (event.getRawX() - mLastDrag.x); in handleDragTouchEvent() local
308 moveMirrorWindow(xDiff, yDiff); in handleDragTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButton.java141 final int xDiff = Math.abs(x - mDownX); in onTouchEvent() local
144 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java314 final float xDiff = ev.getRawX() - mInitialTouchX; in onInterceptTouchEvent() local
315 if (yDiff > getTouchSlop(ev) && yDiff > Math.abs(xDiff)) { in onInterceptTouchEvent()
442 final float xDiff = ev.getRawX() - mInitialTouchX; in onTouchEvent() local
443 if (yDiff > getTouchSlop(ev) && yDiff > Math.abs(xDiff)) { in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DToggleRangeBehavior.kt340 xDiff: Float, in <lambda>()
349 val ratioDiff = -xDiff / v.width in <lambda>()
/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/src/com/android/systemui/statusbar/phone/
DPanelViewController.java340 float xDiff = x - mInitialTouchX; in isDirectionUpwards() local
345 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.java5794 final float xDiff = x - mPrevX; in updatePosition() local
5801 isExpanding |= xDiff > 0; in updatePosition()
5803 isExpanding |= xDiff < 0; in updatePosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java3983 final int xDiff = Math.abs(x - mDownX);
3986 if (!mIsBeingDragged && yDiff > touchSlop && yDiff > xDiff) {
4264 final int xDiff = Math.abs(x - mDownX);
4265 if (yDiff > getTouchSlop(ev) && yDiff > xDiff) {