/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | PackageUpdatedTask.java | 19 import static com.android.launcher3.model.data.WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; 20 import static com.android.launcher3.model.data.WorkspaceItemInfo.FLAG_RESTORED_ICON; 43 import com.android.launcher3.model.data.WorkspaceItemInfo; 115 flagOp = FlagOp.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 138 flagOp = FlagOp.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 153 flagOp = FlagOp.addFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 158 FlagOp.addFlag(WorkspaceItemInfo.FLAG_DISABLED_SUSPENDED) : in execute() 159 FlagOp.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_SUSPENDED); in execute() 168 ? FlagOp.addFlag(WorkspaceItemInfo.FLAG_DISABLED_QUIET_USER) in execute() 169 : FlagOp.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_QUIET_USER); in execute() [all …]
|
D | AddWorkspaceItemsTask.java | 36 import com.android.launcher3.model.data.WorkspaceItemInfo; 111 if (item instanceof WorkspaceItemInfo || item instanceof FolderInfo || in execute() 120 if (item instanceof WorkspaceItemInfo && ((WorkspaceItemInfo) item).isPromise()) { in execute() 121 WorkspaceItemInfo workspaceInfo = (WorkspaceItemInfo) item; in execute() 165 WorkspaceItemInfo wii = (WorkspaceItemInfo) itemInfo; in execute() 169 ((WorkspaceItemInfo) itemInfo).usingLowResIcon()); in execute() 240 if (item instanceof WorkspaceItemInfo) { in shortcutExists() 241 WorkspaceItemInfo info = (WorkspaceItemInfo) item; in shortcutExists() 253 && info.hasStatusFlag(WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON) in shortcutExists()
|
D | LoaderCursor.java | 54 import com.android.launcher3.model.data.WorkspaceItemInfo; 166 public WorkspaceItemInfo loadSimpleWorkspaceItem() { in loadSimpleWorkspaceItem() 167 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in loadSimpleWorkspaceItem() 186 protected boolean loadIcon(WorkspaceItemInfo info) { in loadIcon() 227 public WorkspaceItemInfo getRestoredItemInfo(Intent intent) { in getRestoredItemInfo() 228 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in getRestoredItemInfo() 237 if (hasRestoreFlag(WorkspaceItemInfo.FLAG_RESTORED_ICON)) { in getRestoredItemInfo() 242 } else if (hasRestoreFlag(WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON)) { in getRestoredItemInfo() 263 public WorkspaceItemInfo getAppShortcutInfo( in getAppShortcutInfo() 286 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in getAppShortcutInfo()
|
D | BgDataModel.java | 42 import com.android.launcher3.model.data.WorkspaceItemInfo; 239 findOrMakeFolder(item.container).add((WorkspaceItemInfo) item, false); in addItem() 285 Stream.Builder<WorkspaceItemInfo> itemStream = Stream.builder(); in updateShortcutPinnedState() 392 public void forAllWorkspaceItemInfos(UserHandle userHandle, Consumer<WorkspaceItemInfo> op) { in forAllWorkspaceItemInfos() 394 if (info instanceof WorkspaceItemInfo && userHandle.equals(info.user)) { in forAllWorkspaceItemInfos() 395 op.accept((WorkspaceItemInfo) info); in forAllWorkspaceItemInfos() 401 if (info instanceof WorkspaceItemInfo && userHandle.equals(info.user)) { in forAllWorkspaceItemInfos() 402 op.accept((WorkspaceItemInfo) info); in forAllWorkspaceItemInfos() 466 void bindWorkspaceItemsChanged(List<WorkspaceItemInfo> updated); in bindWorkspaceItemsChanged()
|
D | ShortcutsChangedTask.java | 24 import com.android.launcher3.model.data.WorkspaceItemInfo; 58 ArrayList<WorkspaceItemInfo> matchingWorkspaceItems = new ArrayList<>(); in execute() 80 .map(WorkspaceItemInfo::getDeepShortcutId) in execute() 88 ArrayList<WorkspaceItemInfo> updatedWorkspaceItemInfos = new ArrayList<>(); in execute()
|
D | ItemInstallQueue.java | 49 import com.android.launcher3.model.data.WorkspaceItemInfo; 286 final WorkspaceItemInfo si = new WorkspaceItemInfo(); in getItemInfo() 296 si.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in getItemInfo() 306 WorkspaceItemInfo itemInfo = new WorkspaceItemInfo(shortcutInfo, context); in getItemInfo()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatPredictionController.java | 53 import com.android.launcher3.model.data.WorkspaceItemInfo; 108 WorkspaceItemInfo dragItem = new WorkspaceItemInfo((WorkspaceItemInfo) v.getTag()); 165 .map(i -> (WorkspaceItemInfo) i) in showEdu() 203 ArrayList<WorkspaceItemInfo> newItems = new ArrayList<>(); in fillGapsWithPrediction() 232 WorkspaceItemInfo predictedItem = in fillGapsWithPrediction() 233 (WorkspaceItemInfo) mPredictedItems.get(predictionIndex++); in fillGapsWithPrediction() 248 private void bindItems(List<WorkspaceItemInfo> itemsToAdd, boolean animate) { in bindItems() 250 for (WorkspaceItemInfo item : itemsToAdd) { in bindItems() 347 WorkspaceItemInfo workspaceItemInfo = new WorkspaceItemInfo((WorkspaceItemInfo) info); in pinPrediction() 385 int rank = ((WorkspaceItemInfo) icon.getTag()).rank; in removePredictedApps() [all …]
|
D | HotseatEduController.java | 34 import com.android.launcher3.model.data.WorkspaceItemInfo; 55 private List<WorkspaceItemInfo> mPredictedApps; 89 ArrayList<WorkspaceItemInfo> putIntoFolder = new ArrayList<>(); in migrateToFolder() 98 } else if (info instanceof WorkspaceItemInfo && info.container == LauncherSettings in migrateToFolder() 100 putIntoFolder.add((WorkspaceItemInfo) info); in migrateToFolder() 237 void setPredictedApps(List<WorkspaceItemInfo> predictedApps) { in setPredictedApps()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/ |
D | InstantAppItemInfo.java | 26 import com.android.launcher3.model.data.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()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderIcon.java | 76 import com.android.launcher3.model.data.WorkspaceItemInfo; 118 private List<WorkspaceItemInfo> mCurrentPreviewItems = new ArrayList<>(); 212 for (WorkspaceItemInfo si : folderInfo.contents) { in inflateIcon() 268 public void addItem(WorkspaceItemInfo item) { in addItem() 272 public void removeItem(WorkspaceItemInfo item, boolean animate) { in removeItem() 285 || (dragInfo instanceof WorkspaceItemInfo) in onDragEnter() 301 public void performCreateAnimation(final WorkspaceItemInfo destInfo, final View destView, in performCreateAnimation() 302 final WorkspaceItemInfo srcInfo, final DragObject d, Rect dstRect, in performCreateAnimation() 328 private void onDrop(final WorkspaceItemInfo item, DragObject d, Rect finalRect, in onDrop() 361 List<WorkspaceItemInfo> oldPreviewItems = new ArrayList<>(mCurrentPreviewItems); in onDrop() [all …]
|
D | PreviewItemManager.java | 44 import com.android.launcher3.model.data.WorkspaceItemInfo; 255 List<WorkspaceItemInfo> items = mIcon.getPreviewItemsOnPage(page); 323 void updatePreviewItems(Predicate<WorkspaceItemInfo> itemCheck) { 365 public void onDrop(List<WorkspaceItemInfo> oldItems, List<WorkspaceItemInfo> newItems, 366 WorkspaceItemInfo dropped) { 372 List<WorkspaceItemInfo> moveIn = new ArrayList<>(); 373 for (WorkspaceItemInfo newItem : newItems) { 396 List<WorkspaceItemInfo> moveOut = new ArrayList<>(oldItems); 399 WorkspaceItemInfo item = moveOut.get(i); 413 private void updateTransitionParam(final PreviewItemDrawingParams p, WorkspaceItemInfo item, [all …]
|
D | Folder.java | 94 import com.android.launcher3.model.data.WorkspaceItemInfo; 306 if (tag instanceof WorkspaceItemInfo) { in startDrag() 307 WorkspaceItemInfo item = (WorkspaceItemInfo) tag; in startDrag() 338 if (dragObject.dragInfo instanceof WorkspaceItemInfo) { in onDragStart() 344 mInfo.remove((WorkspaceItemInfo) dragObject.dragInfo, true); in onDragStart() 482 ArrayList<WorkspaceItemInfo> children = info.contents; in bind() 616 ArrayList<WorkspaceItemInfo> items = new ArrayList<>(mInfo.contents); in beginExternalDrag() 637 private void animateOpen(List<WorkspaceItemInfo> items, int pageNo) { in animateOpen() 1019 WorkspaceItemInfo info = (WorkspaceItemInfo) d.dragInfo; in onDropCompleted() 1068 WorkspaceItemInfo itemInfo = mInfo.contents.get(i); in updateItemLocationsInDatabaseBatch() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ShortcutUtil.java | 22 import com.android.launcher3.model.data.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()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTaskTest.java | 22 import com.android.launcher3.model.data.WorkspaceItemInfo; 117 WorkspaceItemInfo info = new WorkspaceItemInfo(); in testAddItem_existing_item_ignored() 132 WorkspaceItemInfo info = new WorkspaceItemInfo(); in testAddItem_some_items_added() 135 WorkspaceItemInfo info2 = new WorkspaceItemInfo(); in testAddItem_some_items_added() 177 WorkspaceItemInfo info = new WorkspaceItemInfo(); in writeWorkspaceWithHoles()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/folder/ |
D | FolderNameProviderTest.java | 27 import com.android.launcher3.model.data.WorkspaceItemInfo; 44 private WorkspaceItemInfo mItem1; 45 private WorkspaceItemInfo mItem2; 50 mItem1 = new WorkspaceItemInfo(new AppInfo( in setUp() 56 mItem2 = new WorkspaceItemInfo(new AppInfo( in setUp() 66 ArrayList<WorkspaceItemInfo> list = new ArrayList<>(); in getSuggestedFolderName_workAssignedToEnd()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | WorkspaceItemInfo.java | 41 public class WorkspaceItemInfo extends ItemInfoWithIcon { class 96 public WorkspaceItemInfo() { in WorkspaceItemInfo() method in WorkspaceItemInfo 100 public WorkspaceItemInfo(WorkspaceItemInfo info) { in WorkspaceItemInfo() method in WorkspaceItemInfo 110 public WorkspaceItemInfo(AppInfo info) { in WorkspaceItemInfo() method in WorkspaceItemInfo 119 public WorkspaceItemInfo(ShortcutInfo shortcutInfo, Context context) { in WorkspaceItemInfo() method in WorkspaceItemInfo 208 return new WorkspaceItemInfo(this); in clone()
|
D | FolderInfo.java | 107 public ArrayList<WorkspaceItemInfo> contents = new ArrayList<>(); 121 public void add(WorkspaceItemInfo item, boolean animate) { in add() 128 public void add(WorkspaceItemInfo item, int rank, boolean animate) { in add() 142 public void remove(WorkspaceItemInfo item, boolean animate) { in remove() 149 public void removeAll(List<WorkspaceItemInfo> items, boolean animate) { in removeAll() 179 void onAdd(WorkspaceItemInfo item, int rank); in onAdd() 180 void onRemove(List<WorkspaceItemInfo> item); in onRemove()
|
D | AppInfo.java | 124 public WorkspaceItemInfo makeWorkspaceItem() { in makeWorkspaceItem() 125 WorkspaceItemInfo workspaceItemInfo = new WorkspaceItemInfo(this); in makeWorkspaceItem() 129 workspaceItemInfo.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in makeWorkspaceItem() 132 workspaceItemInfo.status |= WorkspaceItemInfo.FLAG_RESTORE_STARTED; in makeWorkspaceItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | ItemClickHandler.java | 56 import com.android.launcher3.model.data.WorkspaceItemInfo; 88 if (tag instanceof WorkspaceItemInfo) { in onClick() 89 onClickAppShortcut(v, (WorkspaceItemInfo) tag, launcher); in onClick() 202 public static boolean handleDisabledItemClicked(WorkspaceItemInfo shortcut, Context context) { in handleDisabledItemClicked() 204 & WorkspaceItemInfo.FLAG_DISABLED_MASK; in handleDisabledItemClicked() 235 public static void onClickAppShortcut(View v, WorkspaceItemInfo shortcut, Launcher launcher) { in onClickAppShortcut() 306 if (item instanceof WorkspaceItemInfo) { in startAppShortcutOrInfoActivity() 307 WorkspaceItemInfo si = (WorkspaceItemInfo) item; in startAppShortcutOrInfoActivity() 308 if (si.hasStatusFlag(WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI) in startAppShortcutOrInfoActivity()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | WorkspaceAccessibilityHelper.java | 29 import com.android.launcher3.model.data.WorkspaceItemInfo; 101 info instanceof WorkspaceItemInfo) { in intersectsValidDropTarget() 120 if (info instanceof AppInfo || info instanceof WorkspaceItemInfo) { in getConfirmationForIconDrop() 145 if (info instanceof WorkspaceItemInfo) { in getDescriptionForDropOver() 151 WorkspaceItemInfo firstItem = null; in getDescriptionForDropOver() 152 for (WorkspaceItemInfo shortcut : folder.contents) { in getDescriptionForDropOver()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutView.java | 37 import com.android.launcher3.model.data.WorkspaceItemInfo; 56 private WorkspaceItemInfo mInfo; 140 public void applyShortcutInfo(WorkspaceItemInfo info, ShortcutInfo detail, in applyShortcutInfo() 164 public WorkspaceItemInfo getFinalInfo() { in getFinalInfo() 165 final WorkspaceItemInfo badged = new WorkspaceItemInfo(mInfo); in getFinalInfo()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | PredictedAppIcon.java | 41 import com.android.launcher3.model.data.WorkspaceItemInfo; 112 public void applyFromWorkspaceItem(WorkspaceItemInfo info) { in applyFromWorkspaceItem() 127 public void pin(WorkspaceItemInfo info) { in pin() 184 if (getTag() instanceof WorkspaceItemInfo) { in updateRingPath() 185 WorkspaceItemInfo info = (WorkspaceItemInfo) getTag(); in updateRingPath() 243 public static PredictedAppIcon createIcon(ViewGroup parent, WorkspaceItemInfo info) { in createIcon()
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | PinRequestHelper.java | 34 import com.android.launcher3.model.data.WorkspaceItemInfo; 55 public static WorkspaceItemInfo createWorkspaceItemFromPinItemRequest( in createWorkspaceItemFromPinItemRequest() 82 WorkspaceItemInfo info = new WorkspaceItemInfo(si, context); in createWorkspaceItemFromPinItemRequest()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherPreviewRenderer.java | 80 import com.android.launcher3.model.data.WorkspaceItemInfo; 204 private final WorkspaceItemInfo mWorkspaceItemInfo; 243 mWorkspaceItemInfo = new WorkspaceItemInfo(); in LauncherPreviewRenderer() 336 private void inflateAndAddIcon(WorkspaceItemInfo info) { 387 private void inflateAndAddPredictedIcon(WorkspaceItemInfo info) { 430 inflateAndAddIcon((WorkspaceItemInfo) itemInfo); 464 WorkspaceItemInfo itemInfo = 465 new WorkspaceItemInfo((WorkspaceItemInfo) predictions.get(i));
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarDragController.java | 36 import com.android.launcher3.model.data.WorkspaceItemInfo; 87 if (tag instanceof WorkspaceItemInfo) { in startSystemDragOnLongClick() 88 WorkspaceItemInfo item = (WorkspaceItemInfo) tag; in startSystemDragOnLongClick()
|