/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | PackageUpdatedTask.java | 18 import static com.android.launcher3.WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; 35 import com.android.launcher3.WorkspaceItemInfo; 58 import static com.android.launcher3.WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; 59 import static com.android.launcher3.WorkspaceItemInfo.FLAG_RESTORED_ICON; 120 flagOp = FlagOp.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 134 flagOp = FlagOp.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 149 flagOp = FlagOp.addFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 154 FlagOp.addFlag(WorkspaceItemInfo.FLAG_DISABLED_SUSPENDED) : in execute() 155 FlagOp.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_SUSPENDED); in execute() 161 ? FlagOp.addFlag(WorkspaceItemInfo.FLAG_DISABLED_QUIET_USER) in execute() [all …]
|
D | AddWorkspaceItemsTask.java | 34 import com.android.launcher3.WorkspaceItemInfo; 107 if (item instanceof WorkspaceItemInfo || item instanceof FolderInfo || in execute() 116 if (item instanceof WorkspaceItemInfo && ((WorkspaceItemInfo) item).isPromise()) { in execute() 117 WorkspaceItemInfo workspaceInfo = (WorkspaceItemInfo) item; in execute() 152 WorkspaceItemInfo wii = (WorkspaceItemInfo) itemInfo; in execute() 156 ((WorkspaceItemInfo) itemInfo).usingLowResIcon()); in execute() 224 if (item instanceof WorkspaceItemInfo) { in shortcutExists() 225 WorkspaceItemInfo info = (WorkspaceItemInfo) item; in shortcutExists() 237 && info.hasStatusFlag(WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON) in shortcutExists()
|
D | LoaderCursor.java | 36 import com.android.launcher3.WorkspaceItemInfo; 148 public WorkspaceItemInfo loadSimpleWorkspaceItem() { in loadSimpleWorkspaceItem() 149 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in loadSimpleWorkspaceItem() 167 protected boolean loadIcon(WorkspaceItemInfo info) { in loadIcon() 176 protected boolean loadIcon(WorkspaceItemInfo info, LauncherIcons li) { in loadIcon() 215 public WorkspaceItemInfo getRestoredItemInfo(Intent intent) { in getRestoredItemInfo() 216 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in getRestoredItemInfo() 225 if (hasRestoreFlag(WorkspaceItemInfo.FLAG_RESTORED_ICON)) { in getRestoredItemInfo() 230 } else if (hasRestoreFlag(WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON)) { in getRestoredItemInfo() 247 public WorkspaceItemInfo getAppShortcutInfo( in getAppShortcutInfo() [all …]
|
D | ShortcutsChangedTask.java | 25 import com.android.launcher3.WorkspaceItemInfo; 61 MultiHashMap<ShortcutKey, WorkspaceItemInfo> keyToShortcutInfo = new MultiHashMap<>(); in execute() 66 WorkspaceItemInfo si = (WorkspaceItemInfo) itemInfo; in execute() 74 final ArrayList<WorkspaceItemInfo> updatedWorkspaceItemInfos = new ArrayList<>(); in execute() 81 List<WorkspaceItemInfo> workspaceItemInfos = keyToShortcutInfo.remove(key); in execute() 91 for (final WorkspaceItemInfo workspaceItemInfo : workspaceItemInfos) { in execute()
|
D | CacheDataUpdatedTask.java | 21 import com.android.launcher3.WorkspaceItemInfo; 53 ArrayList<WorkspaceItemInfo> updatedShortcuts = new ArrayList<>(); in execute() 57 if (info instanceof WorkspaceItemInfo && mUser.equals(info.user)) { in execute() 58 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() 74 public boolean isValidShortcut(WorkspaceItemInfo si) { in isValidShortcut()
|
D | LoaderTask.java | 53 import com.android.launcher3.WorkspaceItemInfo; 342 WorkspaceItemInfo info; in loadWorkspace() 367 WorkspaceItemInfo.FLAG_DISABLED_QUIET_USER : 0; in loadWorkspace() 430 if (c.hasRestoreFlag(WorkspaceItemInfo.FLAG_RESTORE_STARTED)) { in loadWorkspace() 434 c.restoreFlag |= WorkspaceItemInfo.FLAG_RESTORE_STARTED; in loadWorkspace() 443 disabledState |= WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE; in loadWorkspace() 460 if ((c.restoreFlag & WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI) != 0) { in loadWorkspace() 491 info = new WorkspaceItemInfo(pinnedShortcut, context); in loadWorkspace() 492 final WorkspaceItemInfo finalInfo = info; in loadWorkspace() 550 … info.status &= ~WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE; in loadWorkspace() [all …]
|
D | PackageInstallStateChangedTask.java | 29 import com.android.launcher3.WorkspaceItemInfo; 76 if (info instanceof WorkspaceItemInfo) { in execute() 77 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in execute() 84 si.status &= ~WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE; in execute()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderIcon.java | 59 import com.android.launcher3.WorkspaceItemInfo; 106 private List<WorkspaceItemInfo> mCurrentPreviewItems = new ArrayList<>(); 237 public void addItem(WorkspaceItemInfo item) { in addItem() 241 public void removeItem(WorkspaceItemInfo item, boolean animate) { in removeItem() 254 || (dragInfo instanceof WorkspaceItemInfo) in onDragEnter() 270 public void performCreateAnimation(final WorkspaceItemInfo destInfo, final View destView, in performCreateAnimation() 271 final WorkspaceItemInfo srcInfo, final DragView srcView, Rect dstRect, in performCreateAnimation() 296 private void onDrop(final WorkspaceItemInfo item, DragView animateView, Rect finalRect, in onDrop() 328 List<WorkspaceItemInfo> oldPreviewItems = new ArrayList<>(mCurrentPreviewItems); in onDrop() 391 WorkspaceItemInfo item; in onDrop() [all …]
|
D | PreviewItemManager.java | 40 import com.android.launcher3.WorkspaceItemInfo; 229 List<WorkspaceItemInfo> items = mIcon.getPreviewItemsOnPage(page); 294 void updatePreviewItems(Predicate<WorkspaceItemInfo> itemCheck) { 336 public void onDrop(List<WorkspaceItemInfo> oldItems, List<WorkspaceItemInfo> newItems, 337 WorkspaceItemInfo dropped) { 343 List<WorkspaceItemInfo> moveIn = new ArrayList<>(); 344 for (WorkspaceItemInfo newItem : newItems) { 367 List<WorkspaceItemInfo> moveOut = new ArrayList<>(oldItems); 370 WorkspaceItemInfo item = moveOut.get(i); 384 private void updateTransitionParam(final PreviewItemDrawingParams p, WorkspaceItemInfo item, [all …]
|
D | Folder.java | 70 import com.android.launcher3.WorkspaceItemInfo; 242 if (tag instanceof WorkspaceItemInfo) { in startDrag() 243 WorkspaceItemInfo item = (WorkspaceItemInfo) tag; in startDrag() 275 if (dragObject.dragInfo instanceof WorkspaceItemInfo) { in onDragStart() 281 mInfo.remove((WorkspaceItemInfo) dragObject.dragInfo, true); in onDragStart() 390 ArrayList<WorkspaceItemInfo> children = info.contents; in bind() 497 ArrayList<WorkspaceItemInfo> items = new ArrayList<>(mInfo.contents); in beginExternalDrag() 518 private void animateOpen(List<WorkspaceItemInfo> items, int pageNo) { in animateOpen() 873 WorkspaceItemInfo info = (WorkspaceItemInfo) d.dragInfo; in onDropCompleted() 921 WorkspaceItemInfo itemInfo = mInfo.contents.get(i); in updateItemLocationsInDatabaseBatch() [all …]
|
D | FolderNameProvider.java | 22 import com.android.launcher3.WorkspaceItemInfo; 35 ArrayList<WorkspaceItemInfo> workspaceItemInfos, CharSequence[] suggestName) { in getSuggestedFolderName() 48 WorkspaceItemInfo wInfo0 = workspaceItemInfos.get(0); in getSuggestedFolderName() 49 WorkspaceItemInfo wInfo1 = workspaceItemInfos.get(1); in getSuggestedFolderName()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTaskTest.java | 17 import com.android.launcher3.WorkspaceItemInfo; 101 WorkspaceItemInfo info = new WorkspaceItemInfo(); in testAddItem_existing_item_ignored() 113 WorkspaceItemInfo info = new WorkspaceItemInfo(); in testAddItem_some_items_added() 116 WorkspaceItemInfo info2 = new WorkspaceItemInfo(); in testAddItem_some_items_added() 153 WorkspaceItemInfo info = new WorkspaceItemInfo(); in setupWorkspaceWithHoles()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | InstantAppItemInfo.java | 26 import com.android.launcher3.WorkspaceItemInfo; 41 public WorkspaceItemInfo makeWorkspaceItem() { in makeWorkspaceItem() 42 WorkspaceItemInfo workspaceItemInfo = super.makeWorkspaceItem(); in makeWorkspaceItem() 44 workspaceItemInfo.status = WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON in makeWorkspaceItem() 45 | WorkspaceItemInfo.FLAG_RESTORE_STARTED in makeWorkspaceItem() 46 | WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI; in makeWorkspaceItem()
|
D | DynamicItemCache.java | 41 import com.android.launcher3.WorkspaceItemInfo; 76 private final Map<ShortcutKey, WorkspaceItemInfo> mShortcuts; 106 Map<ShortcutKey, WorkspaceItemInfo> shortcutKeyAndInfos = new ArrayMap<>(); in handleWorkerMessage() 108 WorkspaceItemInfo workspaceItemInfo = loadShortcutWorker(shortcutKey); in handleWorkerMessage() 140 mShortcuts.putAll((Map<ShortcutKey, WorkspaceItemInfo>) msg.obj); in handleUiMessage() 164 private WorkspaceItemInfo loadShortcutWorker(ShortcutKey shortcutKey) { in loadShortcutWorker() 171 WorkspaceItemInfo si = new WorkspaceItemInfo(details.get(0), mContext); in loadShortcutWorker() 240 public WorkspaceItemInfo getShortcutInfo(ShortcutKey key) { in getShortcutInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | ItemClickHandler.java | 53 import com.android.launcher3.WorkspaceItemInfo; 88 if (tag instanceof WorkspaceItemInfo) { in onClick() 89 onClickAppShortcut(v, (WorkspaceItemInfo) tag, launcher, sourceContainer); in onClick() 198 public static void onClickAppShortcut(View v, WorkspaceItemInfo shortcut, Launcher launcher, in onClickAppShortcut() 202 & WorkspaceItemInfo.FLAG_DISABLED_MASK; in onClickAppShortcut() 233 shortcut.hasStatusFlag(WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE)); in onClickAppShortcut() 254 if (item instanceof WorkspaceItemInfo) { in startAppShortcutOrInfoActivity() 255 WorkspaceItemInfo si = (WorkspaceItemInfo) item; in startAppShortcutOrInfoActivity() 256 if (si.hasStatusFlag(WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI) in startAppShortcutOrInfoActivity()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ShortcutUtil.java | 21 import com.android.launcher3.WorkspaceItemInfo; 53 ? ((WorkspaceItemInfo) info).getPersonKeys() : Utilities.EMPTY_STRING_ARRAY; in getPersonKeysIfPinnedShortcut() 61 && info instanceof WorkspaceItemInfo; in isDeepShortcut() 65 boolean isLoading = info instanceof WorkspaceItemInfo in isActive() 66 && ((WorkspaceItemInfo) info).hasPromiseIconUi(); in isActive() 77 && info instanceof WorkspaceItemInfo; in isPinnedShortcut()
|
D | ItemInfoMatcher.java | 26 import com.android.launcher3.WorkspaceItemInfo; 44 if (i instanceof WorkspaceItemInfo) { in filterItemInfos() 45 WorkspaceItemInfo info = (WorkspaceItemInfo) i; in filterItemInfos() 52 for (WorkspaceItemInfo s : info.contents) { in filterItemInfos()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WorkspaceItemInfo.java | 39 public class WorkspaceItemInfo extends ItemInfoWithIcon { class 105 public WorkspaceItemInfo() { in WorkspaceItemInfo() method in WorkspaceItemInfo 109 public WorkspaceItemInfo(WorkspaceItemInfo info) { in WorkspaceItemInfo() method in WorkspaceItemInfo 120 public WorkspaceItemInfo(AppInfo info) { in WorkspaceItemInfo() method in WorkspaceItemInfo 129 public WorkspaceItemInfo(ShortcutInfo shortcutInfo, Context context) { in WorkspaceItemInfo() method in WorkspaceItemInfo 227 return new WorkspaceItemInfo(this); in clone()
|
D | FolderInfo.java | 53 public ArrayList<WorkspaceItemInfo> contents = new ArrayList<>(); 67 public void add(WorkspaceItemInfo item, boolean animate) { in add() 74 public void add(WorkspaceItemInfo item, int rank, boolean animate) { in add() 88 public void remove(WorkspaceItemInfo item, boolean animate) { in remove() 118 public void onAdd(WorkspaceItemInfo item, int rank); in onAdd() 119 public void onRemove(WorkspaceItemInfo item); in onRemove()
|
D | PromiseAppInfo.java | 41 public WorkspaceItemInfo makeWorkspaceItem() { in makeWorkspaceItem() 42 WorkspaceItemInfo shortcut = new WorkspaceItemInfo(this); in makeWorkspaceItem() 45 shortcut.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in makeWorkspaceItem() 47 shortcut.status |= WorkspaceItemInfo.FLAG_RESTORE_STARTED; in makeWorkspaceItem()
|
D | InstallShortcutReceiver.java | 239 public static WorkspaceItemInfo fromShortcutIntent(Context context, Intent data) { in fromShortcutIntent() 241 return info == null ? null : (WorkspaceItemInfo) info.getItemInfo().first; in fromShortcutIntent() 486 WorkspaceItemInfo si = createWorkspaceItemInfo(data, user, in getItemInfo() 489 si.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in getItemInfo() 492 WorkspaceItemInfo itemInfo = new WorkspaceItemInfo(shortcutInfo, mContext); in getItemInfo() 510 WorkspaceItemInfo itemInfo = in getItemInfo() 629 private static WorkspaceItemInfo createWorkspaceItemInfo(Intent data, UserHandle user, in createWorkspaceItemInfo() 646 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in createWorkspaceItemInfo()
|
D | BubbleTextView.java | 238 public void applyFromWorkspaceItem(WorkspaceItemInfo info) { in applyFromWorkspaceItem() 254 public void applyFromWorkspaceItem(WorkspaceItemInfo info, boolean promiseStateChanged) { in applyFromWorkspaceItem() 536 if (getTag() instanceof WorkspaceItemInfo) { in applyPromiseState() 537 WorkspaceItemInfo info = (WorkspaceItemInfo) getTag(); in applyPromiseState() 540 ((info.hasStatusFlag(WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE) ? in applyPromiseState() 672 } else if (info instanceof WorkspaceItemInfo) { in reapplyItemInfo() 673 applyFromWorkspaceItem((WorkspaceItemInfo) info); in reapplyItemInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutView.java | 30 import com.android.launcher3.WorkspaceItemInfo; 46 private WorkspaceItemInfo mInfo; 97 public void applyShortcutInfo(WorkspaceItemInfo info, ShortcutInfo detail, in applyShortcutInfo() 121 public WorkspaceItemInfo getFinalInfo() { in getFinalInfo() 122 final WorkspaceItemInfo badged = new WorkspaceItemInfo(mInfo); in getFinalInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherPreviewRenderer.java | 53 import com.android.launcher3.WorkspaceItemInfo; 86 private final WorkspaceItemInfo mWorkspaceItemInfo; 107 mWorkspaceItemInfo = new WorkspaceItemInfo(); in LauncherPreviewRenderer() 218 private void inflateAndAddIcon(WorkspaceItemInfo info) { 246 WorkspaceItemInfo info = new WorkspaceItemInfo(mWorkspaceItemInfo); 254 WorkspaceItemInfo info = new WorkspaceItemInfo(mWorkspaceItemInfo);
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | WorkspaceAccessibilityHelper.java | 30 import com.android.launcher3.WorkspaceItemInfo; 109 info instanceof WorkspaceItemInfo) { in intersectsValidDropTarget() 128 if (info instanceof AppInfo || info instanceof WorkspaceItemInfo) { in getConfirmationForIconDrop() 173 if (info instanceof WorkspaceItemInfo) { in getDescriptionForDropOver() 179 WorkspaceItemInfo firstItem = null; in getDescriptionForDropOver() 180 for (WorkspaceItemInfo shortcut : folder.contents) { in getDescriptionForDropOver()
|