Home
last modified time | relevance | path

Searched refs:getTranslation (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationMenuRowTest.java209 when(row.getTranslation()).thenReturn(30f); in testIsSwipedEnoughToShowMenu()
212 when(row.getTranslation()).thenReturn(50f); in testIsSwipedEnoughToShowMenu()
216 when(row.getTranslation()).thenReturn(-30f); in testIsSwipedEnoughToShowMenu()
219 when(row.getTranslation()).thenReturn(-50f); in testIsSwipedEnoughToShowMenu()
223 when(row.getTranslation()).thenReturn(30f); in testIsSwipedEnoughToShowMenu()
236 when(row.getTranslation()).thenReturn(40f); in testIsWithinSnapMenuThreshold()
240 when(row.getTranslation()).thenReturn(20f); in testIsWithinSnapMenuThreshold()
244 when(row.getTranslation()).thenReturn(60f); in testIsWithinSnapMenuThreshold()
249 when(row.getTranslation()).thenReturn(-40f); in testIsWithinSnapMenuThreshold()
253 when(row.getTranslation()).thenReturn(-20f); in testIsWithinSnapMenuThreshold()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java162 protected float getTranslation(View v) { in getTranslation() method in SwipeHelper
230 updateSwipeProgressFromOffset(animView, dismissable, getTranslation(animView)); in updateSwipeProgressFromOffset()
309 mTranslation = getTranslation(mTouchedView); in onInterceptTouchEvent()
334 mTranslation = getTranslation(mTouchedView); in onInterceptTouchEvent()
386 boolean animateUpForMenu = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) in dismissChild()
389 boolean animateLeftForRtl = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) in dismissChild()
392 (getTranslation(animView) < 0 && !isDismissAll); in dismissChild()
403 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
431 mFlingAnimationUtils.applyDismissing(anim, getTranslation(animView), in dismissChild()
516 float maxDistance = Math.abs(targetLeft - getTranslation(animView)); in snapChild()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableOutlineView.java86 int translation = !mDismissUsingRowTranslationX ? (int) getTranslation() : 0;
114 ? (int) getTranslation() : 0; in getClipPath()
204 boolean forTranslation = getTranslation() != 0 && !mDismissUsingRowTranslationX; in isClippingNeeded()
367 return (int) getTranslation(); in getOutlineTranslation()
DNotificationMenuRow.java218 protected float getTranslation() { in getTranslation() method in NotificationMenuRow
750 float translation = getTranslation(); in isWithinSnapMenuThreshold()
761 final float translation = getTranslation(); in isSwipedEnoughToShowMenu()
774 float translation = getTranslation(); in shouldSnapBack()
DExpandableView.java381 public float getTranslation() { in getTranslation() method in ExpandableView
DExpandableNotificationRow.java330 return object.getTranslation();
1887 float previousTranslation = getTranslation();
1927 public float getTranslation() {
2943 float translation = !mDismissUsingRowTranslationX ? getTranslation() : 0;
3274 pw.print(", translation: " + getTranslation());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DSwipeableView.java36 float getTranslation(); in getTranslation() method
DNotificationSection.java275 mBounds.left += Math.max(firstView.getTranslation(), 0); in updateBounds()
276 mBounds.right += Math.min(firstView.getTranslation(), 0); in updateBounds()
DNotificationSwipeHelper.java340 public float getTranslation(View v) { in getTranslation() method in NotificationSwipeHelper
342 return ((SwipeableView) v).getTranslation(); in getTranslation()
DNotificationStackScrollLayout.java867 if ((row.isPinned() || row.isHeadsUpAnimatingAway()) && row.getTranslation() < 0 in drawHeadsUpBackground()
1721 float targetLeft = child.getProvider().isMenuVisible() ? child.getTranslation() : 0;
2647 return Math.abs(child.getTranslation()) >= Math.abs(getTotalTranslationLength(child));
4216 (int) (previous.getOutlineTranslation() + previous.getTranslation())); in updateViewShadows()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelperTest.java292 doReturn(30f).when(mNotificationRow).getTranslation(); in testGetTranslation()
295 mSwipeHelper.getTranslation(mNotificationRow), 30f); in testGetTranslation()
297 verify(mNotificationRow, times(1)).getTranslation(); in testGetTranslation()