Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java820 RectF screenPos = new RectF(originalBounds); in constrainTranslation() local
821 originalToScreen.mapRect(screenPos); in constrainTranslation()
823 boolean rightConstraint = screenPos.right < getWidth() - mShadowMargin; in constrainTranslation()
824 boolean leftConstraint = screenPos.left > mShadowMargin; in constrainTranslation()
825 boolean topConstraint = screenPos.top > mShadowMargin; in constrainTranslation()
826 boolean bottomConstraint = screenPos.bottom < getHeight() - mShadowMargin; in constrainTranslation()
828 if (screenPos.width() > getWidth()) { in constrainTranslation()
830 float tx = screenPos.right - translation.x * scale; in constrainTranslation()
834 float tx = screenPos.left - translation.x * scale; in constrainTranslation()
839 float tx = screenPos.right - translation.x * scale; in constrainTranslation()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DViewPagerTabs.java89 final int[] screenPos = new int[2]; in onLongClick() local
90 getLocationOnScreen(screenPos); in onLongClick()
102 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()