Home
last modified time | relevance | path

Searched refs:WorkspaceItemInfo (Results 1 – 25 of 92) sorted by relevance

1234

/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java41 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()
DLoaderCursor.java52 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 …]
DPackageUpdatedTask.java22 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 …]
DShortcutsChangedTask.java27 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()
DWorkspaceItemProcessor.kt43 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()
DCacheDataUpdatedTask.java26 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/
DInstantAppItemInfo.java29 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()
DPredictionRowView.java44 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/
DShortcutUtil.java23 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()
DLauncherBindableItemsContainer.java30 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()
DItemInflater.kt37 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/
DHotseatPredictionController.java58 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/
DFolderNameProviderTest.java32 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/
DWorkspaceItemInfo.java44 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()
DAppPairInfo.kt28 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>()
DIconRequestInfo.java71 if (!(itemInfo instanceof WorkspaceItemInfo)) { in loadWorkspaceIcon()
77 WorkspaceItemInfo info = (WorkspaceItemInfo) itemInfo; in loadWorkspaceIcon()
DAppInfo.java145 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/
DTestWorkspaceBuilder.java38 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/
DItemClickHandler.java62 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/
DDeepShortcutView.java37 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/
DPinRequestHelper.java36 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/
DLauncherModel.java69 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/
DAppPairsController.java61 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/
DAbstractWorkspaceModelTest.kt24 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/
DFolderIconLoadTest.kt21 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()

1234