Searched refs:getTranslation (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationMenuRowTest.java | 201 when(row.getTranslation()).thenReturn(30f); in testIsSwipedEnoughToShowMenu() 204 when(row.getTranslation()).thenReturn(50f); in testIsSwipedEnoughToShowMenu() 208 when(row.getTranslation()).thenReturn(-30f); in testIsSwipedEnoughToShowMenu() 211 when(row.getTranslation()).thenReturn(-50f); in testIsSwipedEnoughToShowMenu() 215 when(row.getTranslation()).thenReturn(30f); in testIsSwipedEnoughToShowMenu() 227 when(row.getTranslation()).thenReturn(40f); in testIsWithinSnapMenuThreshold() 231 when(row.getTranslation()).thenReturn(20f); in testIsWithinSnapMenuThreshold() 235 when(row.getTranslation()).thenReturn(60f); in testIsWithinSnapMenuThreshold() 240 when(row.getTranslation()).thenReturn(-40f); in testIsWithinSnapMenuThreshold() 244 when(row.getTranslation()).thenReturn(-20f); in testIsWithinSnapMenuThreshold() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 140 protected float getTranslation(View v) { in getTranslation() method in SwipeHelper 208 updateSwipeProgressFromOffset(animView, dismissable, getTranslation(animView)); in updateSwipeProgressFromOffset() 290 mTranslation = getTranslation(mCurrView); in onInterceptTouchEvent() 328 mTranslation = getTranslation(mCurrView); in onInterceptTouchEvent() 375 boolean animateUpForMenu = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) in dismissChild() 378 boolean animateLeftForRtl = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) in dismissChild() 381 (getTranslation(animView) < 0 && !isDismissAll); in dismissChild() 392 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild() 420 mFlingAnimationUtils.applyDismissing(anim, getTranslation(animView), in dismissChild() 500 float maxDistance = Math.abs(targetLeft - getTranslation(animView)); in snapChild() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ExpandableOutlineView.java | 87 int translation = mShouldTranslateContents ? (int) getTranslation() : 0; 115 ? (int) getTranslation() : 0; in getClipPath() 251 return mAlwaysRoundBothCorners || mCustomOutline || getTranslation() != 0 ; in isClippingNeeded() 393 return mCustomOutline ? mOutlineRect.left : (int) getTranslation(); in getOutlineTranslation()
|
D | NotificationMenuRow.java | 217 protected float getTranslation() { in getTranslation() method in NotificationMenuRow 726 float translation = getTranslation(); in isWithinSnapMenuThreshold() 737 final float translation = getTranslation(); in isSwipedEnoughToShowMenu() 750 float translation = getTranslation(); in shouldSnapBack()
|
D | ExpandableView.java | 340 public float getTranslation() { in getTranslation() method in ExpandableView
|
D | ExpandableNotificationRow.java | 305 return object.getTranslation(); 1955 public float getTranslation() { 2927 if (header != null && header.isInTouchRect(x - getTranslation(), y)) { 3236 pw.print(", translation: " + getTranslation());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSection.java | 262 mBounds.left += Math.max(firstView.getTranslation(), 0); in updateBounds() 263 mBounds.right += Math.min(firstView.getTranslation(), 0); in updateBounds()
|
D | NotificationSwipeHelper.java | 322 public float getTranslation(View v) { in getTranslation() method in NotificationSwipeHelper 324 return ((ExpandableNotificationRow) v).getTranslation(); in getTranslation()
|
D | StackStateAnimator.java | 400 if (Math.abs(changingView.getTranslation()) == changingView.getWidth() in processAnimationEvents()
|
D | NotificationStackScrollLayout.java | 932 if ((row.isPinned() || row.isHeadsUpAnimatingAway()) && row.getTranslation() < 0 1771 float targetLeft = child.getProvider().isMenuVisible() ? child.getTranslation() : 0; 2941 || Math.abs(child.getTranslation()) != child.getWidth()) { 3526 childWasSwipedOut |= Math.abs(row.getTranslation()) == row.getWidth();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSwipeHelperTest.java | 290 doReturn(30f).when(mNotificationRow).getTranslation(); in testGetTranslation() 293 mSwipeHelper.getTranslation(mNotificationRow), 30f); in testGetTranslation() 295 verify(mNotificationRow, times(1)).getTranslation(); in testGetTranslation()
|