Home
last modified time | relevance | path

Searched refs:dragInfo (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DWorkspaceAccessibilityHelper.java52 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in intersectsValidDropTarget() local
54 if (dragInfo.dragType == DragType.WIDGET && !mView.acceptsWidget()) { in intersectsValidDropTarget()
58 if (dragInfo.dragType == DragType.WIDGET) { in intersectsValidDropTarget()
65 int spanX = dragInfo.info.spanX; in intersectsValidDropTarget()
66 int spanY = dragInfo.info.spanY; in intersectsValidDropTarget()
95 if (child == null || child == dragInfo.item) { in intersectsValidDropTarget()
98 } else if (dragInfo.dragType != DragType.FOLDER) { in intersectsValidDropTarget()
114 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in getConfirmationForIconDrop() local
117 if (child == null || child == dragInfo.item) { in getConfirmationForIconDrop()
134 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in getLocationDescriptionForIconDrop() local
[all …]
DDragAndDropAccessibilityDelegate.java162 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in getItemBounds() local
163 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DLauncherDragController.java63 ItemInfo dragInfo, in startDrag() argument
99 scalePx = mIsInPreDrag ? 0f : getWidgetDragScalePx(drawable, view, dragInfo); in startDrag()
122 dragView.setItemInfo(dragInfo); in startDrag()
134 mDragObject.dragInfo = dragInfo; in startDrag()
135 mDragObject.originalDragInfo = mDragObject.dragInfo.makeShallowCopy(); in startDrag()
173 ItemInfo dragInfo) { in getWidgetDragScalePx() argument
186 draggedViewWidthPx, draggedViewHeightPx, dragInfo); in getWidgetDragScalePx()
DDragController.java152 ItemInfo dragInfo, in startDrag() argument
158 dragInfo, dragRegion, initialDragViewScale, dragViewScaleOnDrop, options); in startDrag()
187 ItemInfo dragInfo, in startDrag() argument
193 dragInfo, dragRegion, initialDragViewScale, dragViewScaleOnDrop, options); in startDrag()
203 ItemInfo dragInfo, in startDrag() argument
231 || !(mDragObject.dragInfo instanceof ItemInfoWithIcon itemInfoWithIcon) in isItemPinnable()
292 ItemInfo dragInfo = mDragObject.dragInfo; in onAppsRemoved() local
293 if ((dragInfo instanceof WorkspaceItemInfo && matcher.test(dragInfo)) in onAppsRemoved()
294 || (dragInfo instanceof AppPairInfo api && api.anyMatch(matcher))) { in onAppsRemoved()
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DSecondaryDragController.java55 ItemInfo dragInfo, Rect dragRegion, float initialDragViewScale, in startDrag() argument
105 dragView.setItemInfo(dragInfo); in startDrag()
118 mDragObject.dragInfo = dragInfo; in startDrag()
119 mDragObject.originalDragInfo = mDragObject.dragInfo.makeShallowCopy(); in startDrag()
162 dragObject.dragInfo); in getDefaultDropTarget()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeleteDropTarget.java63 setTextBasedOnDragSource(dragObject.dragInfo); in onDragStart()
64 setControlTypeBasedOnDragSource(dragObject.dragInfo); in onDragStart()
121 if (canRemove(d.dragInfo)) { in onDrop()
131 ItemInfo item = d.dragInfo; in completeDrop()
DWorkspace.java488 if (dragObject.dragInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDragStart()
498 if (page.hasReorderSolution(dragObject.dragInfo)) { in onDragStart()
509 mStatsLogManager.logger().withItemInfo(dragObject.dragInfo) in onDragStart()
708 dragObject.dragInfo).screenId); in addExtraEmptyScreenOnDrag()
1648 && dragObject.dragInfo instanceof LauncherAppWidgetInfo) { in startDrag()
1804 spanX = d.dragInfo.spanX; in acceptDrop()
1805 spanY = d.dragInfo.spanY; in acceptDrop()
1810 if (d.dragInfo instanceof PendingAddWidgetInfo) { in acceptDrop()
1811 minSpanX = ((PendingAddWidgetInfo) d.dragInfo).minSpanX; in acceptDrop()
1812 minSpanY = ((PendingAddWidgetInfo) d.dragInfo).minSpanY; in acceptDrop()
[all …]
DDropTargetHandler.kt67 mLauncher.workspace.dragInfo != null in getViewUnderDrag()
69 mLauncher.workspace.dragInfo.cell in getViewUnderDrag()
DSecondaryDropTarget.java245 ComponentName target = performDropAction(getViewUnderDrag(d.dragInfo), d.dragInfo, in completeDrop()
366 mDragObject.dragInfo.user, PackageManager.MATCH_UNINSTALLED_PACKAGES) == null) { in onLauncherResume()
DButtonDropTarget.java197 setupItemInfo(dragObject.dragInfo); in onDragStart()
198 mActive = supportsDrop(dragObject.dragInfo); in onDragStart()
208 return supportsDrop(dragObject.dragInfo); in acceptDrop()
DDropTarget.java58 public ItemInfo dragInfo = null; field in DropTarget.DragObject
DLauncher.java1448 dragObject.dragInfo = info;
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java268 public boolean acceptDrop(ItemInfo dragInfo) { in acceptDrop() argument
269 return !mFolder.isDestroyed() && willAcceptItem(dragInfo); in acceptDrop()
280 public void onDragEnter(ItemInfo dragInfo) { in onDragEnter() argument
281 if (mFolder.isDestroyed() || !willAcceptItem(dragInfo)) return; in onDragEnter()
288 ((dragInfo instanceof WorkspaceItemFactory) in onDragEnter()
289 || (dragInfo instanceof PendingAddShortcutInfo) in onDragEnter()
290 || Folder.willAccept(dragInfo))) { in onDragEnter()
478 if (d.dragInfo instanceof WorkspaceItemFactory) { in onDrop()
480 item = ((WorkspaceItemFactory) d.dragInfo).makeWorkspaceItem(getContext()); in onDrop()
483 if (d.dragInfo instanceof AppPairInfo) { in onDrop()
[all …]
DFolder.java369 mInfo.remove(dragObject.dragInfo, true); in onDragStart()
910 final ItemInfo item = d.dragInfo; in acceptDrop()
1065 ItemInfo info = d.dragInfo; in onDropCompleted()
1298 PendingAddShortcutInfo pasi = d.dragInfo instanceof PendingAddShortcutInfo in onDrop()
1299 ? (PendingAddShortcutInfo) d.dragInfo : null; in onDrop()
1315 } else if (d.dragInfo instanceof WorkspaceItemFactory) { in onDrop()
1317 si = ((WorkspaceItemFactory) d.dragInfo).makeWorkspaceItem(launcher); in onDrop()
1320 si = d.dragInfo; in onDrop()
1383 mStatsLogManager.logger().withItemInfo(d.dragInfo).withInstanceId(d.logInstanceId) in onDrop()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarDragController.java261 ItemInfo dragInfo, Rect dragRegion, float initialDragViewScale, in startDrag() argument
291 dragView.setItemInfo(dragInfo); in startDrag()
303 mDragObject.dragInfo = dragInfo; in startDrag()
304 mDragObject.originalDragInfo = mDragObject.dragInfo.makeShallowCopy(); in startDrag()
469 mActivity.getStatsLogManager().logger().withItemInfo(mDragObject.dragInfo) in startSystemDrag()
524 mActivity.getStatsLogManager().logger().withItemInfo(mDragObject.dragInfo) in maybeOnDragEnd()