Searched refs:screenPos (Results 1 – 4 of 4) 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 …]
88 final int[] screenPos = new int[2]; in onLongClick() local89 getLocationOnScreen(screenPos); in onLongClick()100 (screenPos[0] + width / 2) - screenWidth / 2, screenPos[1] + height); in onLongClick()
285 final int[] screenPos = new int[2]; in onLongClick() local286 getLocationOnScreen(screenPos); in onLongClick()299 (screenPos[0] + width / 2) - screenWidth / 2, in onLongClick()300 screenPos[1] + height); in onLongClick()
71 Point screenPos, DragSource source, DragOptions options) { in startDrag() argument145 int dragLayerX = screenPos.x + previewBounds.left in startDrag()147 int dragLayerY = screenPos.y + previewBounds.top in startDrag()