Searched refs:getTranslation (Results 1 – 11 of 11) sorted by relevance
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()253 when(row.getTranslation()).thenReturn(-20f); in testIsWithinSnapMenuThreshold()[all …]
162 protected float getTranslation(View v) { in getTranslation() method in SwipeHelper230 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 …]
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()
218 protected float getTranslation() { in getTranslation() method in NotificationMenuRow750 float translation = getTranslation(); in isWithinSnapMenuThreshold()761 final float translation = getTranslation(); in isSwipedEnoughToShowMenu()774 float translation = getTranslation(); in shouldSnapBack()
381 public float getTranslation() { in getTranslation() method in ExpandableView
330 return object.getTranslation();1887 float previousTranslation = getTranslation();1927 public float getTranslation() {2943 float translation = !mDismissUsingRowTranslationX ? getTranslation() : 0;3274 pw.print(", translation: " + getTranslation());
36 float getTranslation(); in getTranslation() method
275 mBounds.left += Math.max(firstView.getTranslation(), 0); in updateBounds()276 mBounds.right += Math.min(firstView.getTranslation(), 0); in updateBounds()
340 public float getTranslation(View v) { in getTranslation() method in NotificationSwipeHelper342 return ((SwipeableView) v).getTranslation(); in getTranslation()
867 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()
292 doReturn(30f).when(mNotificationRow).getTranslation(); in testGetTranslation()295 mSwipeHelper.getTranslation(mNotificationRow), 30f); in testGetTranslation()297 verify(mNotificationRow, times(1)).getTranslation(); in testGetTranslation()