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.java1013 float maxTop = mAllowCrop ? mCropRect.top: 0.0f; in translate() local
1021 translateY = Math.max(maxTop - mTranslateRect.bottom, in translate()
1025 if (b - t < maxBottom - maxTop) { in translate()
1026 translateY = maxTop + ((maxBottom - maxTop) - (b + t)) / 2; in translate()
1028 translateY = Math.max(maxBottom - b, Math.min(maxTop - t, ty)); in translate()
1076 float maxTop = mAllowCrop ? mCropRect.top : 0.0f; in snap() local
1082 if (b - t < maxBottom - maxTop) { in snap()
1084 translateY = maxTop + ((maxBottom - maxTop) - (b + t)) / 2; in snap()
1085 } else if (t > maxTop) { in snap()
1087 translateY = maxTop - t; 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