Home
last modified time | relevance | path

Searched refs:screenPos (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java822 RectF screenPos = new RectF(originalBounds); in constrainTranslation() local
823 originalToScreen.mapRect(screenPos); in constrainTranslation()
825 boolean rightConstraint = screenPos.right < getWidth() - mShadowMargin; in constrainTranslation()
826 boolean leftConstraint = screenPos.left > mShadowMargin; in constrainTranslation()
827 boolean topConstraint = screenPos.top > mShadowMargin; in constrainTranslation()
828 boolean bottomConstraint = screenPos.bottom < getHeight() - mShadowMargin; in constrainTranslation()
830 if (screenPos.width() > getWidth()) { in constrainTranslation()
832 float tx = screenPos.right - translation.x * scale; in constrainTranslation()
836 float tx = screenPos.left - translation.x * scale; in constrainTranslation()
841 float tx = screenPos.right - translation.x * scale; in constrainTranslation()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabs.java88 final int[] screenPos = new int[2]; in onLongClick() local
89 getLocationOnScreen(screenPos); in onLongClick()
100 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java285 final int[] screenPos = new int[2]; in onLongClick() local
286 getLocationOnScreen(screenPos); in onLongClick()
299 (screenPos[0] + width / 2) - screenWidth / 2, in onLongClick()
300 screenPos[1] + height); in onLongClick()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java71 Point screenPos, DragSource source, DragOptions options) { in startDrag() argument
145 int dragLayerX = screenPos.x + previewBounds.left in startDrag()
147 int dragLayerY = screenPos.y + previewBounds.top in startDrag()