Searched refs:screenPos (Results 1 – 4 of 4) sorted by relevance
822 RectF screenPos = new RectF(originalBounds); in constrainTranslation() local823 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 …]
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()
91 Point screenPos, DragSource source, DragOptions options) { in startDrag() argument206 int dragLayerX = screenPos.x + previewBounds.left in startDrag()208 int dragLayerY = screenPos.y + previewBounds.top in startDrag()