/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationMenuRowTest.java | 209 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() 270 when(row.getTranslation()).thenReturn(50f); in testShouldSnapBack() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 173 protected float getTranslation(View v) { in getTranslation() method in SwipeHelper 241 updateSwipeProgressFromOffset(animView, dismissable, getTranslation(animView)); in updateSwipeProgressFromOffset() 322 mTranslation = getTranslation(mTouchedView); in onInterceptTouchEvent() 347 mTranslation = getTranslation(mTouchedView); in onInterceptTouchEvent() 406 (getTranslation(animView) < 0 && !isDismissAll); in dismissChild() 445 mFlingAnimationUtils.applyDismissing(anim, getTranslation(animView), in dismissChild() 536 float maxDistance = Math.abs(targetLeft - getTranslation(animView)); in snapChild() 602 } else if (getTranslation(view) != 0) { in snapChildIfNeeded() 724 float translation = getTranslation(mTouchedView); in swipedFarEnough() 731 float translation = getTranslation(mTouchedView); in isDismissGesture() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
H A D | ExpandableOutlineView.java | 86 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()
|
H A D | NotificationMenuRow.java | 220 protected float getTranslation() { in getTranslation() method in NotificationMenuRow 752 float translation = getTranslation(); in isWithinSnapMenuThreshold() 763 final float translation = getTranslation(); in isSwipedEnoughToShowMenu() 776 float translation = getTranslation(); in shouldSnapBack()
|
H A D | ExpandableNotificationRow.java | 337 return object.getTranslation(); 1928 float previousTranslation = getTranslation(); 1968 public float getTranslation() { 3076 float translation = !mDismissUsingRowTranslationX ? getTranslation() : 0; 3408 ipw.print(", translation: " + getTranslation());
|
H A D | ExpandableView.java | 382 public float getTranslation() { in getTranslation() method in ExpandableView
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageShow.java | 231 Point translate = primary.getTranslation(); in getImageToScreenMatrix() 639 PrimaryImage.getImage().getTranslation()); in onTouchEvent() 651 Point translation = PrimaryImage.getImage().getTranslation(); in onTouchEvent() 680 Point translation = PrimaryImage.getImage().getTranslation(); in onTouchEvent() 706 Point translation = PrimaryImage.getImage().getTranslation(); in startAnimTranslation() 715 Point translation = PrimaryImage.getImage().getTranslation(); in startAnimTranslation() 727 Point translation = PrimaryImage.getImage().getTranslation(); in applyTranslationConstraints() 762 Point translation = PrimaryImage.getImage().getTranslation(); in onDoubleTap() 943 Point translation = PrimaryImage.getImage().getTranslation(); 953 Point pos = PrimaryImage.getImage().getTranslation();
|
H A D | PrimaryImage.java | 606 Point translation = getTranslation(); in computeImageToScreen() 630 Point translate = getTranslation(); in getImageToScreenMatrix() 742 public Point getTranslation() { in getTranslation() method in PrimaryImage
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
H A D | SwipeableView.java | 36 float getTranslation(); in getTranslation() method
|
H A D | NotificationSection.java | 275 mBounds.left += Math.max(firstView.getTranslation(), 0); in updateBounds() 276 mBounds.right += Math.min(firstView.getTranslation(), 0); in updateBounds()
|
H A D | NotificationSwipeHelper.java | 340 public float getTranslation(View v) { in getTranslation() method in NotificationSwipeHelper 342 return ((SwipeableView) v).getTranslation(); in getTranslation()
|
H A D | NotificationStackScrollLayout.java | 899 if ((row.isPinned() || row.isHeadsUpAnimatingAway()) && row.getTranslation() < 0 in drawHeadsUpBackground() 1755 float targetLeft = child.getProvider().isMenuVisible() ? child.getTranslation() : 0; 2680 return Math.abs(child.getTranslation()) >= Math.abs(getTotalTranslationLength(child)); 4269 (int) (previous.getOutlineTranslation() + previous.getTranslation())); in updateViewShadows()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
H A D | NotificationSwipeHelperTest.java | 292 doReturn(30f).when(mNotificationRow).getTranslation(); in testGetTranslation() 295 mSwipeHelper.getTranslation(mNotificationRow), 30f); in testGetTranslation() 297 verify(mNotificationRow, times(1)).getTranslation(); in testGetTranslation()
|