Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DWorkspaceAccessibilityHelper.java51 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in intersectsValidDropTarget() local
53 if (dragInfo.dragType == DragType.WIDGET && !mView.acceptsWidget()) { in intersectsValidDropTarget()
57 if (dragInfo.dragType == DragType.WIDGET) { in intersectsValidDropTarget()
64 int spanX = dragInfo.info.spanX; in intersectsValidDropTarget()
65 int spanY = dragInfo.info.spanY; in intersectsValidDropTarget()
94 if (child == null || child == dragInfo.item) { in intersectsValidDropTarget()
97 } else if (dragInfo.dragType != DragType.FOLDER) { in intersectsValidDropTarget()
113 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in getConfirmationForIconDrop() local
116 if (child == null || child == dragInfo.item) { in getConfirmationForIconDrop()
133 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/
DDragController.java143 ItemInfo dragInfo, in startDrag() argument
150 source, dragInfo, dragOffset, dragRegion, initialDragViewScale, dragViewScaleOnDrop, in startDrag()
180 ItemInfo dragInfo, in startDrag() argument
187 source, dragInfo, dragOffset, dragRegion, initialDragViewScale, dragViewScaleOnDrop, in startDrag()
198 ItemInfo dragInfo, in startDrag() argument
273 ItemInfo dragInfo = mDragObject.dragInfo; in onAppsRemoved() local
274 if (dragInfo instanceof WorkspaceItemInfo) { in onAppsRemoved()
275 ComponentName cn = dragInfo.getTargetComponent(); in onAppsRemoved()
276 if (cn != null && matcher.matches(dragInfo, cn)) { in onAppsRemoved()
DLauncherDragController.java62 ItemInfo dragInfo, in startDrag() argument
117 dragView.setItemInfo(dragInfo); in startDrag()
129 mDragObject.dragInfo = dragInfo; in startDrag()
130 mDragObject.originalDragInfo = mDragObject.dragInfo.makeShallowCopy(); in startDrag()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeleteDropTarget.java62 setTextBasedOnDragSource(dragObject.dragInfo); in onDragStart()
63 setControlTypeBasedOnDragSource(dragObject.dragInfo); in onDragStart()
117 if (canRemove(d.dragInfo)) { in onDrop()
119 d.dragInfo.container = NO_ID; in onDrop()
128 ItemInfo item = d.dragInfo; in completeDrop()
DWorkspace.java435 if (dragObject.dragInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDragStart()
445 if (page.hasReorderSolution(dragObject.dragInfo)) { in onDragStart()
455 mStatsLogManager.logger().withItemInfo(dragObject.dragInfo) in onDragStart()
1579 spanX = d.dragInfo.spanX; in acceptDrop()
1580 spanY = d.dragInfo.spanY; in acceptDrop()
1585 if (d.dragInfo instanceof PendingAddWidgetInfo) { in acceptDrop()
1586 minSpanX = ((PendingAddWidgetInfo) d.dragInfo).minSpanX; in acceptDrop()
1587 minSpanY = ((PendingAddWidgetInfo) d.dragInfo).minSpanY; in acceptDrop()
1595 if (mCreateUserFolderOnDrop && willCreateUserFolder(d.dragInfo, in acceptDrop()
1600 if (mAddToExistingFolderOnDrop && willAddToExistingUserFolder(d.dragInfo, in acceptDrop()
[all …]
DSecondaryDropTarget.java223 ComponentName target = performDropAction(getViewUnderDrag(d.dragInfo), d.dragInfo); in completeDrop()
336 mDragObject.dragInfo.user, PackageManager.MATCH_UNINSTALLED_PACKAGES) == null) { in onLauncherResume()
DButtonDropTarget.java174 mActive = !options.isKeyboardDrag && supportsDrop(dragObject.dragInfo); in onDragStart()
183 return supportsDrop(dragObject.dragInfo); in acceptDrop()
DDropTarget.java59 public ItemInfo dragInfo = null; field in DropTarget.DragObject
DLauncher.java1278 dragObject.dragInfo = info; in completeAddShortcut()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java264 public boolean acceptDrop(ItemInfo dragInfo) { in acceptDrop() argument
265 return !mFolder.isDestroyed() && willAcceptItem(dragInfo); in acceptDrop()
276 public void onDragEnter(ItemInfo dragInfo) { in onDragEnter() argument
277 if (mFolder.isDestroyed() || !willAcceptItem(dragInfo)) return; in onDragEnter()
284 ((dragInfo instanceof AppInfo) in onDragEnter()
285 || (dragInfo instanceof WorkspaceItemInfo) in onDragEnter()
286 || (dragInfo instanceof PendingAddShortcutInfo))) { in onDragEnter()
487 if (d.dragInfo instanceof AppInfo) { in onDrop()
489 item = ((AppInfo) d.dragInfo).makeWorkspaceItem(); in onDrop()
492 item = new WorkspaceItemInfo((WorkspaceItemInfo) d.dragInfo); in onDrop()
[all …]
DFolder.java338 if (dragObject.dragInfo instanceof WorkspaceItemInfo) { in onDragStart()
344 mInfo.remove((WorkspaceItemInfo) dragObject.dragInfo, true); in onDragStart()
865 final ItemInfo item = d.dragInfo; in acceptDrop()
1019 WorkspaceItemInfo info = (WorkspaceItemInfo) d.dragInfo; in onDropCompleted()
1263 PendingAddShortcutInfo pasi = d.dragInfo instanceof PendingAddShortcutInfo in onDrop()
1264 ? (PendingAddShortcutInfo) d.dragInfo : null; in onDrop()
1279 } else if (d.dragInfo instanceof AppInfo) { in onDrop()
1281 si = ((AppInfo) d.dragInfo).makeWorkspaceItem(); in onDrop()
1284 si = (WorkspaceItemInfo) d.dragInfo; in onDrop()
1344 mStatsLogManager.logger().withItemInfo(d.dragInfo).withInstanceId(d.logInstanceId) in onDrop()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarActivityContext.java319 ItemInfo dragInfo, Point dragOffset, Rect dragRegion, float initialDragViewScale, in startDrag() argument