Home
last modified time | relevance | path

Searched refs:yDiff (Results 1 – 11 of 11) 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()
27 if (!vertical || yDiff <= 0.0) { in evaluate()
38 if (!vertical || yDiff >= 0.0) { 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.java217 final int yDiff = loc2[1] - loc1[1]; in updateAnimators() local
223 translationYBuilder.addFloat(quickTileView, "translationY", 0, yDiff); in updateAnimators()
232 translationYBuilder.addFloat(tileView, "translationY", -yDiff, 0); in updateAnimators()
236 translationYBuilder.addFloat(quickTileView, "translationY", 0, yDiff); in updateAnimators()
255 final int yDiff = loc2[1] - loc1[1]; in updateAnimators() local
259 translationYBuilder.addFloat(tileView, "translationY", -yDiff, 0); in updateAnimators()
260 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.java152 final int yDiff = Math.abs(y - mDownY); in onTouchEvent() local
154 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java1864 final float yDiff = Math.abs(y - mInitialMotionY);
1865 if (DEBUG) Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
1875 if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
1884 } else if (yDiff > mTouchSlop) {
1988 final float yDiff = Math.abs(y - mLastMotionY);
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/
DPanelView.java441 float yDiff = y - mInitialTouchY; in isDirectionUpwards() local
442 if (yDiff >= 0) { in isDirectionUpwards()
445 return Math.abs(yDiff) >= Math.abs(xDiff); in isDirectionUpwards()
DNotificationPanelView.java2028 private boolean shouldQuickSettingsIntercept(float x, float y, float yDiff) { in shouldQuickSettingsIntercept() argument
2038 return onHeader || (yDiff < 0 && isInQsArea(x, y)); in shouldQuickSettingsIntercept()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java266 int yDiff = Math.abs(y - mDownY); in handleTouchEvent() local
268 if (Math.abs(y - mDownY) > mScrollTouchSlop && yDiff > xDiff) { in handleTouchEvent()
/frameworks/base/core/java/android/widget/
DScrollView.java640 final int yDiff = Math.abs(y - mLastMotionY); in onInterceptTouchEvent() local
641 if (yDiff > mTouchSlop && (getNestedScrollAxes() & SCROLL_AXIS_VERTICAL) == 0) { in onInterceptTouchEvent()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java3724 int yDiff = (int) ((oldy - y) * DIRECT_SHARE_EXPANSION_RATE);
3727 int newHeight = Math.min(prevHeight + yDiff, mDirectShareMaxHeight);
3729 yDiff = newHeight - prevHeight;
3731 if (view == null || view.getChildCount() == 0 || yDiff == 0) {
3741 child.offsetTopAndBottom(yDiff);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java3817 final int yDiff = Math.abs(deltaY);
3818 if (!mIsBeingDragged && yDiff > mTouchSlop && yDiff > xDiff) {
4093 final int yDiff = Math.abs(y - mLastMotionY);
4095 if (yDiff > mTouchSlop && yDiff > xDiff) {