Home
last modified time | relevance | path

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

/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java977 final float maxRight = mAllowCrop ? mCropRect.right : getWidth(); in translate() local
985 Math.min(maxRight - mTranslateRect.left, tx)); in translate()
988 if (r - l < maxRight - maxLeft) { in translate()
989 translateX = maxLeft + ((maxRight - maxLeft) - (r + l)) / 2; in translate()
991 translateX = Math.max(maxRight - r, Math.min(maxLeft - l, tx)); in translate()
1040 float maxRight = mAllowCrop ? mCropRect.right : getWidth(); in snap() local
1045 if (r - l < maxRight - maxLeft) { in snap()
1047 translateX = maxLeft + ((maxRight - maxLeft) - (r + l)) / 2; in snap()
1051 } else if (r < maxRight) { in snap()
1053 translateX = maxRight - r; in snap()
/frameworks/base/core/java/android/view/
DView.java10843 int maxRight;
10845 maxRight = mRight;
10847 maxRight = right;
10849 invalidate(0, 0, maxRight - mLeft, mBottom - mTop);
11408 int maxRight;
11411 maxRight = mRight;
11414 maxRight = mRight + offset;
11416 r.set(0, 0, maxRight - minLeft, mBottom - mTop);