Home
last modified time | relevance | path

Searched refs:maxLeft (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java994 final float maxLeft = mAllowCrop ? mCropRect.left : 0.0f; in translate() local
1002 translateX = Math.max(maxLeft - mTranslateRect.right, in translate()
1006 if (r - l < maxRight - maxLeft) { in translate()
1007 translateX = maxLeft + ((maxRight - maxLeft) - (r + l)) / 2; in translate()
1009 translateX = Math.max(maxRight - r, Math.min(maxLeft - l, tx)); in translate()
1056 float maxLeft = mAllowCrop ? mCropRect.left : 0.0f; in snap() local
1062 if (r - l < maxRight - maxLeft) { in snap()
1064 translateX = maxLeft + ((maxRight - maxLeft) - (r + l)) / 2; in snap()
1065 } else if (l > maxLeft) { in snap()
1067 translateX = maxLeft - l; in snap()
/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java697 public void flingCapturedView(int minLeft, int minTop, int maxLeft, int maxTop) { in flingCapturedView() argument
706 minLeft, maxLeft, minTop, maxTop); in flingCapturedView() local