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/base/services/core/java/com/android/server/wm/
DTaskPositioner.java641 final int maxLeft = stackBounds.right - mMinVisibleWidth; in updateWindowDragBounds() local
650 Math.min(Math.max(mWindowOriginalBounds.left + offsetX, minLeft), maxLeft), in updateWindowDragBounds()