Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DWorkspaceAccessibilityHelper.java59 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in intersectsValidDropTarget() local
61 if (dragInfo.dragType == DragType.WIDGET && !mView.acceptsWidget()) { in intersectsValidDropTarget()
65 if (dragInfo.dragType == DragType.WIDGET) { in intersectsValidDropTarget()
72 int spanX = dragInfo.info.spanX; in intersectsValidDropTarget()
73 int spanY = dragInfo.info.spanY; in intersectsValidDropTarget()
102 if (child == null || child == dragInfo.item) { in intersectsValidDropTarget()
105 } else if (dragInfo.dragType != DragType.FOLDER) { in intersectsValidDropTarget()
121 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in getConfirmationForIconDrop() local
124 if (child == null || child == dragInfo.item) { in getConfirmationForIconDrop()
161 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in getLocationDescriptionForIconDrop() local
[all …]
DDragAndDropAccessibilityDelegate.java133 LauncherAccessibilityDelegate.DragInfo dragInfo = mDelegate.getDragInfo(); in getItemBounds() local
134 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragController.java153 DragSource source, ItemInfo dragInfo, Point dragOffset, Rect dragRegion, in startDrag() argument
187 dragView.setItemInfo(dragInfo); in startDrag()
203 mDragObject.dragInfo = dragInfo; in startDrag()
205 mDragObject.originalDragInfo.copyFrom(dragInfo); in startDrag()
295 ItemInfo dragInfo = mDragObject.dragInfo; in onAppsRemoved() local
296 if (dragInfo instanceof WorkspaceItemInfo) { in onAppsRemoved()
297 ComponentName cn = dragInfo.getTargetComponent(); in onAppsRemoved()
298 if (cn != null && matcher.matches(dragInfo, cn)) { in onAppsRemoved()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java233 public boolean acceptDrop(ItemInfo dragInfo) { in acceptDrop() argument
234 return !mFolder.isDestroyed() && willAcceptItem(dragInfo); in acceptDrop()
245 public void onDragEnter(ItemInfo dragInfo) { in onDragEnter() argument
246 if (mFolder.isDestroyed() || !willAcceptItem(dragInfo)) return; in onDragEnter()
253 ((dragInfo instanceof AppInfo) in onDragEnter()
254 || (dragInfo instanceof WorkspaceItemInfo) in onDragEnter()
255 || (dragInfo instanceof PendingAddShortcutInfo))) { in onDragEnter()
392 if (d.dragInfo instanceof AppInfo) { in onDrop()
394 item = ((AppInfo) d.dragInfo).makeWorkspaceItem(); in onDrop()
397 item = new WorkspaceItemInfo((WorkspaceItemInfo) d.dragInfo); in onDrop()
[all …]
DFolder.java275 if (dragObject.dragInfo instanceof WorkspaceItemInfo) { in onDragStart()
281 mInfo.remove((WorkspaceItemInfo) dragObject.dragInfo, true); in onDragStart()
719 final ItemInfo item = d.dragInfo; in acceptDrop()
873 WorkspaceItemInfo info = (WorkspaceItemInfo) d.dragInfo; in onDropCompleted()
1166 PendingAddShortcutInfo pasi = d.dragInfo instanceof PendingAddShortcutInfo in onDrop()
1167 ? (PendingAddShortcutInfo) d.dragInfo : null; in onDrop()
1182 } else if (d.dragInfo instanceof AppInfo) { in onDrop()
1184 si = ((AppInfo) d.dragInfo).makeWorkspaceItem(); in onDrop()
1187 si = (WorkspaceItemInfo) d.dragInfo; in onDrop()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeleteDropTarget.java59 setTextBasedOnDragSource(dragObject.dragInfo); in onDragStart()
60 setControlTypeBasedOnDragSource(dragObject.dragInfo); in onDragStart()
114 if (canRemove(d.dragInfo)) { in onDrop()
122 ItemInfo item = d.dragInfo; in completeDrop()
DWorkspace.java402 if (dragObject.dragInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDragStart()
412 if (page.hasReorderSolution(dragObject.dragInfo)) { in onDragStart()
1573 spanX = d.dragInfo.spanX; in acceptDrop()
1574 spanY = d.dragInfo.spanY; in acceptDrop()
1579 if (d.dragInfo instanceof PendingAddWidgetInfo) { in acceptDrop()
1580 minSpanX = ((PendingAddWidgetInfo) d.dragInfo).minSpanX; in acceptDrop()
1581 minSpanY = ((PendingAddWidgetInfo) d.dragInfo).minSpanY; in acceptDrop()
1589 if (mCreateUserFolderOnDrop && willCreateUserFolder(d.dragInfo, in acceptDrop()
1594 if (mAddToExistingFolderOnDrop && willAddToExistingUserFolder(d.dragInfo, in acceptDrop()
1653 boolean willAddToExistingUserFolder(ItemInfo dragInfo, CellLayout target, int[] targetCell, in willAddToExistingUserFolder() argument
[all …]
DSecondaryDropTarget.java179 ComponentName target = performDropAction(getViewUnderDrag(d.dragInfo), d.dragInfo); in completeDrop()
292 mDragObject.dragInfo.user) == null) { in onLauncherResume()
DButtonDropTarget.java243 mActive = supportsDrop(dragObject.dragInfo); in onDragStart()
258 return supportsDrop(dragObject.dragInfo); in acceptDrop()
DDropTarget.java51 public ItemInfo dragInfo = null; field in DropTarget.DragObject
DLauncher.java1220 dragObject.dragInfo = info; in completeAddShortcut()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DUserEventDispatcher.java394 dragObj.dragInfo, event.destTarget[0], event.destTarget[1]); in logDragNDrop()