Home
last modified time | relevance | path

Searched refs:outPos (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java142 public float getScaleAndPosition(Drawable preview, int[] outPos) { in getScaleAndPosition() argument
144 .getDragLayer().getLocationInDragLayer(mView, outPos); in getScaleAndPosition()
151 outPos[0] = Math.round(outPos[0] - in getScaleAndPosition()
153 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getIntrinsicHeight() / 2 in getScaleAndPosition()
159 public float getScaleAndPosition(View view, int[] outPos) { in getScaleAndPosition() argument
161 .getDragLayer().getLocationInDragLayer(mView, outPos); in getScaleAndPosition()
168 outPos[0] = Math.round(outPos[0] in getScaleAndPosition()
170 outPos[1] = Math.round(outPos[1] - (1 - scale) * view.getHeight() / 2 - previewPadding / 2); in getScaleAndPosition()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutDragPreviewProvider.java65 public float getScaleAndPosition(Drawable preview, int[] outPos) { in getScaleAndPosition() argument
68 float scale = context.getDragLayer().getLocationInDragLayer(mView, outPos); in getScaleAndPosition()
75 outPos[0] += Math.round( in getScaleAndPosition()
78 outPos[1] += Math.round((scale * mView.getHeight() - preview.getIntrinsicHeight()) / 2 in getScaleAndPosition()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupContainerWithArrow.java423 protected void getTargetObjectLocation(Rect outPos) { in getTargetObjectLocation() argument
424 getPopupContainer().getDescendantRectRelativeToSelf(mOriginalIcon, outPos); in getTargetObjectLocation()
425 outPos.top += mOriginalIcon.getPaddingTop(); in getTargetObjectLocation()
426 outPos.left += mOriginalIcon.getPaddingLeft(); in getTargetObjectLocation()
427 outPos.right -= mOriginalIcon.getPaddingRight(); in getTargetObjectLocation()
428 outPos.bottom = outPos.top + (mOriginalIcon.getIcon() != null in getTargetObjectLocation()
DArrowPopup.java391 protected abstract void getTargetObjectLocation(Rect outPos); in getTargetObjectLocation() argument
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarDividerPopupView.kt95 override fun getTargetObjectLocation(outPos: Rect) { in <lambda>()
96 popupContainer.getDescendantRectRelativeToSelf(dividerView, outPos) in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskMenuViewWithArrow.kt102 override fun getTargetObjectLocation(outPos: Rect?) { in <lambda>()
103 popupContainer.getDescendantRectRelativeToSelf(taskContainer.iconView.asView(), outPos) in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DOptionsPopupView.java144 protected void getTargetObjectLocation(Rect outPos) { in getTargetObjectLocation() argument
145 mTargetRect.roundOut(outPos); in getTargetObjectLocation()