Home
last modified time | relevance | path

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

/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java995 float maxTop = mAllowCrop ? mCropRect.top: 0.0f; in translate() local
1004 translateY = Math.max(maxTop - mTranslateRect.bottom, in translate()
1008 if (b - t < maxBottom - maxTop) { in translate()
1009 translateY = maxTop + ((maxBottom - maxTop) - (b + t)) / 2; in translate()
1011 translateY = Math.max(maxBottom - b, Math.min(maxTop - t, ty)); in translate()
1059 float maxTop = mAllowCrop ? mCropRect.top : 0.0f; in snap() local
1065 if (b - t < maxBottom - maxTop) { in snap()
1067 translateY = maxTop + ((maxBottom - maxTop) - (b + t)) / 2; in snap()
1068 } else if (t > maxTop) { in snap()
1070 translateY = maxTop - t; in snap()
/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java696 public void flingCapturedView(int minLeft, int minTop, int maxLeft, int maxTop) { in flingCapturedView() argument
705 minLeft, maxLeft, minTop, maxTop); in flingCapturedView() local