Searched refs:screenPos (Results 1 – 2 of 2) sorted by relevance
820 RectF screenPos = new RectF(originalBounds); in constrainTranslation() local821 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 …]
89 final int[] screenPos = new int[2]; in onLongClick() local90 getLocationOnScreen(screenPos); in onLongClick()102 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()