/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTask.java | 41 import com.android.launcher3.model.data.WorkspaceItemInfo; 138 if (item instanceof WorkspaceItemInfo || item instanceof CollectionInfo in execute() 147 if (item instanceof WorkspaceItemInfo && ((WorkspaceItemInfo) item).isPromise()) { in execute() 148 WorkspaceItemInfo workspaceInfo = (WorkspaceItemInfo) item; in execute() 193 WorkspaceItemInfo wii = (WorkspaceItemInfo) itemInfo; in execute() 197 ((WorkspaceItemInfo) itemInfo).usingLowResIcon()); in execute() 269 if (item instanceof WorkspaceItemInfo) { in shortcutExists() 270 WorkspaceItemInfo info = (WorkspaceItemInfo) item; in shortcutExists() 282 && info.hasStatusFlag(WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON) in shortcutExists()
|
D | LoaderCursor.java | 52 import com.android.launcher3.model.data.WorkspaceItemInfo; 183 public WorkspaceItemInfo loadSimpleWorkspaceItem() { in loadSimpleWorkspaceItem() 184 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in loadSimpleWorkspaceItem() 203 protected boolean loadIcon(WorkspaceItemInfo info) { in loadIcon() 207 public IconRequestInfo<WorkspaceItemInfo> createIconRequestInfo( in createIconRequestInfo() 208 WorkspaceItemInfo wai, boolean useLowResIcon) { in createIconRequestInfo() 296 public WorkspaceItemInfo getRestoredItemInfo(Intent intent) { in getRestoredItemInfo() 297 final WorkspaceItemInfo info = new WorkspaceItemInfo(); in getRestoredItemInfo() 306 if (hasRestoreFlag(WorkspaceItemInfo.FLAG_RESTORED_ICON)) { in getRestoredItemInfo() 311 } else if (hasRestoreFlag(WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON)) { in getRestoredItemInfo() [all …]
|
D | PackageUpdatedTask.java | 22 import static com.android.launcher3.model.data.WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; 23 import static com.android.launcher3.model.data.WorkspaceItemInfo.FLAG_RESTORED_ICON; 47 import com.android.launcher3.model.data.WorkspaceItemInfo; 138 flagOp = FlagOp.NO_OP.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 156 flagOp = FlagOp.NO_OP.removeFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 171 flagOp = FlagOp.NO_OP.addFlag(WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE); in execute() 176 WorkspaceItemInfo.FLAG_DISABLED_SUSPENDED, mOp == OP_SUSPEND); in execute() 185 WorkspaceItemInfo.FLAG_DISABLED_QUIET_USER, isUserQuiet); in execute() 214 final ArrayList<WorkspaceItemInfo> updatedWorkspaceItems = new ArrayList<>(); in execute() 229 if (si.hasStatusFlag(WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI)) { in execute() [all …]
|
D | ShortcutsChangedTask.java | 27 import com.android.launcher3.model.data.WorkspaceItemInfo; 70 ArrayList<WorkspaceItemInfo> matchingWorkspaceItems = new ArrayList<>(); in execute() 94 .map(WorkspaceItemInfo::getDeepShortcutId) in execute() 102 ArrayList<WorkspaceItemInfo> updatedWorkspaceItemInfos = new ArrayList<>(); in execute()
|
D | WorkspaceItemProcessor.kt | 43 import com.android.launcher3.model.data.WorkspaceItemInfo 77 private val iconRequestInfos: MutableList<IconRequestInfo<WorkspaceItemInfo>>, 148 WorkspaceItemInfo.FLAG_DISABLED_QUIET_USER in processAppOrDeepShortcut() 203 c.hasRestoreFlag(WorkspaceItemInfo.FLAG_RESTORE_STARTED) -> { in processAppOrDeepShortcut() 209 c.restoreFlag or WorkspaceItemInfo.FLAG_RESTORE_STARTED in processAppOrDeepShortcut() 225 disabledState or WorkspaceItemInfo.FLAG_DISABLED_NOT_AVAILABLE in processAppOrDeepShortcut() 248 if (c.restoreFlag and WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI != 0) { in processAppOrDeepShortcut() 257 val info: WorkspaceItemInfo? in processAppOrDeepShortcut() 277 info = WorkspaceItemInfo(pinnedShortcut, app.context) in processAppOrDeepShortcut()
|
D | CacheDataUpdatedTask.java | 26 import com.android.launcher3.model.data.WorkspaceItemInfo; 58 ArrayList<WorkspaceItemInfo> updatedShortcuts = new ArrayList<>(); in execute() 76 public boolean isValidShortcut(@NonNull final WorkspaceItemInfo si) { in isValidShortcut()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/ |
D | InstantAppItemInfo.java | 29 import com.android.launcher3.model.data.WorkspaceItemInfo; 46 public WorkspaceItemInfo makeWorkspaceItem(Context context) { in makeWorkspaceItem() 47 WorkspaceItemInfo workspaceItemInfo = super.makeWorkspaceItem(context); in makeWorkspaceItem() 49 workspaceItemInfo.status = WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON in makeWorkspaceItem() 50 | WorkspaceItemInfo.FLAG_RESTORE_STARTED in makeWorkspaceItem() 51 | WorkspaceItemInfo.FLAG_SUPPORTS_WEB_UI; in makeWorkspaceItem()
|
D | PredictionRowView.java | 44 import com.android.launcher3.model.data.WorkspaceItemInfo; 67 private final List<WorkspaceItemInfo> mPredictedApps = new ArrayList<>(); 186 .filter(itemInfo -> itemInfo instanceof WorkspaceItemInfo) in applyPredictedApps() 187 .map(itemInfo -> (WorkspaceItemInfo) itemInfo).collect(Collectors.toList())); in applyPredictedApps() 243 WorkspaceItemInfo predictedItem = mPredictedApps.get(i); in applyPredictionApps()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ShortcutUtil.java | 23 import com.android.launcher3.model.data.WorkspaceItemInfo; 54 ? ((WorkspaceItemInfo) info).getPersonKeys() : Utilities.EMPTY_STRING_ARRAY; in getPersonKeysIfPinnedShortcut() 62 && info instanceof WorkspaceItemInfo; in isDeepShortcut() 66 boolean isLoading = info instanceof WorkspaceItemInfo in isActive() 67 && ((WorkspaceItemInfo) info).hasPromiseIconUi(); in isActive() 78 && info instanceof WorkspaceItemInfo; in isPinnedShortcut()
|
D | LauncherBindableItemsContainer.java | 30 import com.android.launcher3.model.data.WorkspaceItemInfo; 46 default void updateWorkspaceItems(List<WorkspaceItemInfo> shortcuts, ActivityContext context) { in updateWorkspaceItems() 47 final HashSet<WorkspaceItemInfo> updates = new HashSet<>(shortcuts); in updateWorkspaceItems() 50 WorkspaceItemInfo si = (WorkspaceItemInfo) info; in updateWorkspaceItems() 84 if (info instanceof WorkspaceItemInfo && v instanceof BubbleTextView in updateRestoreItems()
|
D | ItemInflater.kt | 37 import com.android.launcher3.model.data.WorkspaceItemInfo 65 item as WorkspaceItemInfo in inflateItem() 69 info = WorkspaceItemInfo(info) in inflateItem() 103 private fun createShortcut(info: WorkspaceItemInfo, parent: ViewGroup): View { in createShortcut()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatPredictionController.java | 58 import com.android.launcher3.model.data.WorkspaceItemInfo; 121 WorkspaceItemInfo dragItem = new WorkspaceItemInfo((WorkspaceItemInfo) v.getTag()); 175 .map(i -> (WorkspaceItemInfo) i) in showEdu() 199 ArrayList<WorkspaceItemInfo> newItems = new ArrayList<>(); in fillGapsWithPrediction() 228 WorkspaceItemInfo predictedItem = in fillGapsWithPrediction() 229 (WorkspaceItemInfo) mPredictedItems.get(predictionIndex++); in fillGapsWithPrediction() 248 private void bindItems(List<WorkspaceItemInfo> itemsToAdd, boolean animate) { in bindItems() 250 for (WorkspaceItemInfo item : itemsToAdd) { in bindItems() 327 WorkspaceItemInfo workspaceItemInfo = new WorkspaceItemInfo((WorkspaceItemInfo) info); in pinPrediction() 365 int rank = ((WorkspaceItemInfo) icon.getTag()).rank; in removePredictedApps() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/folder/ |
D | FolderNameProviderTest.java | 32 import com.android.launcher3.model.data.WorkspaceItemInfo; 46 private WorkspaceItemInfo mItem1; 47 private WorkspaceItemInfo mItem2; 52 mItem1 = new WorkspaceItemInfo(new AppInfo( in setUp() 58 mItem2 = new WorkspaceItemInfo(new AppInfo( in setUp() 68 ArrayList<WorkspaceItemInfo> list = new ArrayList<>(); in getSuggestedFolderName_workAssignedToEnd()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | WorkspaceItemInfo.java | 44 public class WorkspaceItemInfo extends ItemInfoWithIcon { class 101 public WorkspaceItemInfo() { in WorkspaceItemInfo() method in WorkspaceItemInfo 105 public WorkspaceItemInfo(WorkspaceItemInfo info) { in WorkspaceItemInfo() method in WorkspaceItemInfo 114 public WorkspaceItemInfo(AppInfo info) { in WorkspaceItemInfo() method in WorkspaceItemInfo 123 public WorkspaceItemInfo(ShortcutInfo shortcutInfo, Context context) { in WorkspaceItemInfo() method in WorkspaceItemInfo 240 public WorkspaceItemInfo clone() { in clone() 241 return new WorkspaceItemInfo(this); in clone()
|
D | AppPairInfo.kt | 28 private var contents: ArrayList<WorkspaceItemInfo> = ArrayList() in <lambda>() 35 constructor(app1: WorkspaceItemInfo, app2: WorkspaceItemInfo) : this() { in <lambda>() 42 contents = appPairInfo.contents.clone() as ArrayList<WorkspaceItemInfo> in <lambda>() 48 if (item !is WorkspaceItemInfo) { in <lambda>() 60 override fun getAppContents(): ArrayList<WorkspaceItemInfo> = contents in <lambda>()
|
D | IconRequestInfo.java | 71 if (!(itemInfo instanceof WorkspaceItemInfo)) { in loadWorkspaceIcon() 77 WorkspaceItemInfo info = (WorkspaceItemInfo) itemInfo; in loadWorkspaceIcon()
|
D | AppInfo.java | 145 public WorkspaceItemInfo makeWorkspaceItem(Context context) { in makeWorkspaceItem() 146 WorkspaceItemInfo workspaceItemInfo = new WorkspaceItemInfo(this); in makeWorkspaceItem() 150 workspaceItemInfo.status |= WorkspaceItemInfo.FLAG_AUTOINSTALL_ICON; in makeWorkspaceItem() 153 workspaceItemInfo.status |= WorkspaceItemInfo.FLAG_RESTORE_STARTED; in makeWorkspaceItem()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/board/ |
D | TestWorkspaceBuilder.java | 38 import com.android.launcher3.model.data.WorkspaceItemInfo; 164 private WorkspaceItemInfo getDefaultWorkspaceItem(int screenId) { in getDefaultWorkspaceItem() 165 WorkspaceItemInfo item = new WorkspaceItemInfo(getApp()); in getDefaultWorkspaceItem() 173 WorkspaceItemInfo item = new WorkspaceItemInfo(getApp()); in createIconInCell() 183 WorkspaceItemInfo item = new WorkspaceItemInfo(getApp()); in getHotseatValues()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | ItemClickHandler.java | 62 import com.android.launcher3.model.data.WorkspaceItemInfo; 104 if (tag instanceof WorkspaceItemInfo) { in onClick() 105 onClickAppShortcut(v, (WorkspaceItemInfo) tag, launcher); in onClick() 184 WorkspaceItemInfo app1 = info.getFirstApp(); in onClickAppPairIcon() 185 WorkspaceItemInfo app2 = info.getSecondApp(); in onClickAppPairIcon() 294 public static boolean handleDisabledItemClicked(WorkspaceItemInfo shortcut, Context context) { in handleDisabledItemClicked() 296 & WorkspaceItemInfo.FLAG_DISABLED_MASK; in handleDisabledItemClicked() 328 private static boolean maybeCreateAlertDialogForShortcut(final WorkspaceItemInfo shortcut, in maybeCreateAlertDialogForShortcut() 371 public static void onClickAppShortcut(View v, WorkspaceItemInfo shortcut, Launcher launcher) { in onClickAppShortcut() 419 if (item instanceof WorkspaceItemInfo) { in startAppShortcutOrInfoActivity() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutView.java | 37 import com.android.launcher3.model.data.WorkspaceItemInfo; 56 private WorkspaceItemInfo mInfo; 141 public void applyShortcutInfo(WorkspaceItemInfo info, ShortcutInfo detail, in applyShortcutInfo() 165 public WorkspaceItemInfo getFinalInfo() { in getFinalInfo() 166 final WorkspaceItemInfo badged = new WorkspaceItemInfo(mInfo); in getFinalInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | PinRequestHelper.java | 36 import com.android.launcher3.model.data.WorkspaceItemInfo; 57 public static WorkspaceItemInfo createWorkspaceItemFromPinItemRequest( in createWorkspaceItemFromPinItemRequest() 77 WorkspaceItemInfo info = new WorkspaceItemInfo(si, context); in createWorkspaceItemFromPinItemRequest()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 69 import com.android.launcher3.model.data.WorkspaceItemInfo; 448 HashSet<WorkspaceItemInfo> archivedWorkspaceItemsToCacheRefresh = new HashSet<>(); in onSessionFailure() 461 if (info instanceof WorkspaceItemInfo in onSessionFailure() 462 && ((WorkspaceItemInfo) info).hasPromiseIconUi() in onSessionFailure() 468 if (((WorkspaceItemInfo) info).isArchived()) { in onSessionFailure() 469 WorkspaceItemInfo workspaceItem = (WorkspaceItemInfo) info; in onSessionFailure() 620 public void updateAndBindWorkspaceItem(@NonNull final WorkspaceItemInfo si, in updateAndBindWorkspaceItem() 633 @NonNull final Supplier<WorkspaceItemInfo> itemProvider) { in updateAndBindWorkspaceItem() 635 WorkspaceItemInfo info = itemProvider.get(); in updateAndBindWorkspaceItem() 637 ArrayList<WorkspaceItemInfo> update = new ArrayList<>(); in updateAndBindWorkspaceItem()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | AppPairsController.java | 61 import com.android.launcher3.model.data.WorkspaceItemInfo; 176 WorkspaceItemInfo recentsInfo1 = containers.get(0).getItemInfo(); in saveAppPair() 177 WorkspaceItemInfo recentsInfo2 = containers.get(1).getItemInfo(); in saveAppPair() 178 WorkspaceItemInfo app1 = resolveAppPairWorkspaceInfo(recentsInfo1); in saveAppPair() 179 WorkspaceItemInfo app2 = resolveAppPairWorkspaceInfo(recentsInfo2); in saveAppPair() 239 WorkspaceItemInfo app1 = appPairIcon.getInfo().getFirstApp(); in launchAppPair() 240 WorkspaceItemInfo app2 = appPairIcon.getInfo().getSecondApp(); in launchAppPair() 308 private WorkspaceItemInfo resolveAppPairWorkspaceInfo( in resolveAppPairWorkspaceInfo() 309 @NonNull WorkspaceItemInfo recentTaskInfo) { in resolveAppPairWorkspaceInfo()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/ |
D | AbstractWorkspaceModelTest.kt | 24 import com.android.launcher3.model.data.WorkspaceItemInfo in <lambda>() 117 WorkspaceItemInfo().apply { in <lambda>() 121 fun getNewItem(): WorkspaceItemInfo { in <lambda>() 123 return WorkspaceItemInfo().apply { in <lambda>()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | FolderIconLoadTest.kt | 21 import com.android.launcher3.model.data.WorkspaceItemInfo 128 private fun setupAndLoadFolder(itemCount: Int): ArrayList<WorkspaceItemInfo> { in setupAndLoadFolder() 161 private fun verifyHighRes(items: ArrayList<WorkspaceItemInfo>, vararg indices: Int) { in verifyHighRes() 169 private fun verifyLowRes(items: ArrayList<WorkspaceItemInfo>, vararg indices: Int) { in verifyLowRes()
|