Home
last modified time | relevance | path

Searched refs:itemInfo (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/popup/
DSystemShortcut.java50 public SystemShortcut(int iconResId, int labelResId, T target, ItemInfo itemInfo) { in SystemShortcut() argument
55 mItemInfo = itemInfo; in SystemShortcut()
94 @Nullable SystemShortcut<T> getShortcut(T activity, ItemInfo itemInfo); in getShortcut() argument
97 public static final Factory<Launcher> WIDGETS = (launcher, itemInfo) -> {
98 if (itemInfo.getTargetComponent() == null) return null;
101 itemInfo.getTargetComponent().getPackageName(), itemInfo.user));
105 return new Widgets(launcher, itemInfo);
109 public Widgets(Launcher target, ItemInfo itemInfo) { in Widgets() argument
110 super(R.drawable.ic_widget, R.string.widget_button_text, target, itemInfo); in Widgets()
131 public AppInfo(BaseDraggingActivity target, ItemInfo itemInfo) { in AppInfo() argument
[all …]
DPopupContainerWithArrow.java467 ItemInfoWithIcon itemInfo = (ItemInfoWithIcon) mOriginalIcon.getTag();
468 DotInfo dotInfo = mLauncher.getDotInfoForItem(itemInfo);
471 dotInfo.getNotificationCount(), itemInfo.bitmap.color);
562 ItemInfo itemInfo = (ItemInfo) mOriginalIcon.getTag();
563 SystemShortcut widgetInfo = SystemShortcut.WIDGETS.getShortcut(mLauncher, itemInfo);
604 ItemInfo itemInfo = (ItemInfo) mOriginalIcon.getTag();
605 PackageUserKey packageUser = PackageUserKey.fromItemInfo(itemInfo);
680 WorkspaceItemInfo itemInfo = sv.getFinalInfo();
681 itemInfo.container = CONTAINER_SHORTCUTS;
683 mContainer, itemInfo,
DRemoteActionShortcut.java50 BaseDraggingActivity activity, ItemInfo itemInfo) { in RemoteActionShortcut() argument
51 super(0, R.id.action_remote_action_shortcut, activity, itemInfo); in RemoteActionShortcut()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/
DHotseatPredictionController.java520 public void folderCreatedFromWorkspaceItem(ItemInfo itemInfo, FolderInfo folderInfo) { in folderCreatedFromWorkspaceItem() argument
522 AppTarget itemTarget = mPredictionModel.getAppTargetFromInfo(itemInfo); in folderCreatedFromWorkspaceItem()
539 public void folderConvertedToWorkspaceItem(ItemInfo itemInfo, FolderInfo folderInfo) { in folderConvertedToWorkspaceItem() argument
541 AppTarget itemTarget = mPredictionModel.getAppTargetFromInfo(itemInfo); in folderConvertedToWorkspaceItem()
546 if (itemTarget != null && HotseatPredictionModel.isTrackedForPrediction(itemInfo)) { in folderConvertedToWorkspaceItem()
548 AppTargetEvent.ACTION_PIN, itemInfo)); in folderConvertedToWorkspaceItem()
581 ItemInfo itemInfo) { in getShortcut() argument
582 if (itemInfo.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT_PREDICTION) { in getShortcut()
585 return new PinPrediction(activity, itemInfo); in getShortcut()
588 private void preparePredictionInfo(WorkspaceItemInfo itemInfo, int rank) { in preparePredictionInfo() argument
[all …]
DHotseatPredictionModel.java74 for (ItemInfo itemInfo : dataModel.cachedPredictedItems) { in createBundle()
75 AppTarget target = getAppTargetFromInfo(itemInfo); in createBundle()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionUiStateManager.java316 public OptionalInt getAllAppsRank(@Nullable ItemInfo itemInfo) { in getAllAppsRank() argument
317 if (itemInfo == null || itemInfo.getTargetComponent() == null || itemInfo.user == null) { in getAllAppsRank()
321 if (itemInfo.itemType == ITEM_TYPE_APPLICATION in getAllAppsRank()
322 || itemInfo.itemType == ITEM_TYPE_SHORTCUT in getAllAppsRank()
323 || itemInfo.itemType == ITEM_TYPE_DEEP_SHORTCUT) { in getAllAppsRank()
324 ComponentKey key = new ComponentKey(itemInfo.getTargetComponent(), in getAllAppsRank()
325 itemInfo.user); in getAllAppsRank()
343 @NonNull ItemInfo itemInfo, @NonNull LauncherLogProto.Target target) { in fillInPredictedRank()
346 if (manager == null || itemInfo.getTargetComponent() == null || itemInfo.user == null in fillInPredictedRank()
347 || (itemInfo.itemType != LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in fillInPredictedRank()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java106 ItemInfo itemInfo; in execute() local
109 itemInfo = item; in execute()
111 itemInfo = ((AppInfo) item).makeWorkspaceItem(); in execute()
141 itemInfo = new AppInfo(app.getContext(), activities.get(0), item.user) in execute()
144 if (shortcutExists(dataModel, itemInfo.getIntent(), itemInfo.user)) { in execute()
152 WorkspaceItemInfo wii = (WorkspaceItemInfo) itemInfo; in execute()
156 ((WorkspaceItemInfo) itemInfo).usingLowResIcon()); in execute()
161 getModelWriter().addItemToDatabase(itemInfo, in execute()
166 addedItemsFinal.add(itemInfo); in execute()
DUserLockStateChangedTask.java76 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
77 if (itemInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT in execute()
78 && mUser.equals(itemInfo.user)) { in execute()
79 WorkspaceItemInfo si = (WorkspaceItemInfo) itemInfo; in execute()
DShortcutsChangedTask.java61 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
62 if (itemInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in execute()
63 WorkspaceItemInfo si = (WorkspaceItemInfo) itemInfo; in execute()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java418 for (ItemInfo itemInfo : currentWorkspaceItems) { in populate()
419 switch (itemInfo.itemType) { in populate()
423 inflateAndAddIcon((WorkspaceItemInfo) itemInfo); in populate()
426 inflateAndAddFolder((FolderInfo) itemInfo); in populate()
432 for (ItemInfo itemInfo : currentAppWidgets) { in populate()
433 switch (itemInfo.itemType) { in populate()
436 inflateAndAddWidgets((LauncherAppWidgetInfo) itemInfo, in populate()
450 WorkspaceItemInfo itemInfo = new WorkspaceItemInfo(appInfo); in populate() local
451 itemInfo.container = LauncherSettings.Favorites.CONTAINER_HOTSEAT_PREDICTION; in populate()
452 itemInfo.rank = rank; in populate()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DPendingAddItemInfo.java48 PendingAddItemInfo itemInfo = new PendingAddItemInfo(); in makeShallowCopy() local
49 itemInfo.copyFrom(this); in makeShallowCopy()
50 itemInfo.componentName = this.componentName; in makeShallowCopy()
51 return itemInfo; in makeShallowCopy()
DBubbleTextView.java558 public void applyDotState(ItemInfo itemInfo, boolean animate) { in applyDotState() argument
561 mDotInfo = mActivity.getDotInfoForItem(itemInfo); in applyDotState()
579 if (itemInfo.contentDescription != null) { in applyDotState()
580 if (itemInfo.isDisabled()) { in applyDotState()
582 itemInfo.contentDescription)); in applyDotState()
586 R.plurals.dotted_app_label, count, itemInfo.contentDescription, count)); in applyDotState()
588 setContentDescription(itemInfo.contentDescription); in applyDotState()
DLauncher.java1274 void completeAddAppWidget(int appWidgetId, ItemInfo itemInfo, in completeAddAppWidget() argument
1283 launcherInfo.spanX = itemInfo.spanX; in completeAddAppWidget()
1284 launcherInfo.spanY = itemInfo.spanY; in completeAddAppWidget()
1285 launcherInfo.minSpanX = itemInfo.minSpanX; in completeAddAppWidget()
1286 launcherInfo.minSpanY = itemInfo.minSpanY; in completeAddAppWidget()
1290 itemInfo.container, itemInfo.screenId, itemInfo.cellX, itemInfo.cellY); in completeAddAppWidget()
1733 public void folderCreatedFromItem(Folder folder, WorkspaceItemInfo itemInfo){} in folderCreatedFromItem() argument
1738 public void folderConvertedToItem(Folder folder, WorkspaceItemInfo itemInfo) {} in folderConvertedToItem() argument
1747 public boolean removeItem(View v, final ItemInfo itemInfo, boolean deleteFromDb) { in removeItem() argument
1748 if (itemInfo instanceof WorkspaceItemInfo) { in removeItem()
[all …]
DInstallShortcutReceiver.java494 WorkspaceItemInfo itemInfo = new WorkspaceItemInfo(shortcutInfo, mContext); in getItemInfo() local
496 itemInfo, shortcutInfo); in getItemInfo()
497 return Pair.create(itemInfo, shortcutInfo); in getItemInfo()
511 WorkspaceItemInfo itemInfo = in getItemInfo() local
513 return Pair.create(itemInfo, null); in getItemInfo()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionGroups.java116 @NonNull PackageItemInfo itemInfo) { in loadItemInfoLabel() argument
117 CharSequence label = itemInfo.loadSafeLabel(context.getPackageManager(), 0, in loadItemInfoLabel()
120 label = itemInfo.name; in loadItemInfoLabel()
126 @NonNull PackageItemInfo itemInfo) { in loadItemInfoIcon() argument
128 if (itemInfo.icon > 0) { in loadItemInfoIcon()
130 itemInfo.packageName, itemInfo.icon); in loadItemInfoIcon()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/
DQuickstepLauncher.java155 public void folderCreatedFromItem(Folder folder, WorkspaceItemInfo itemInfo) { in folderCreatedFromItem() argument
156 super.folderCreatedFromItem(folder, itemInfo); in folderCreatedFromItem()
158 mHotseatPredictionController.folderCreatedFromWorkspaceItem(itemInfo, folder.getInfo()); in folderCreatedFromItem()
163 public void folderConvertedToItem(Folder folder, WorkspaceItemInfo itemInfo) { in folderConvertedToItem() argument
164 super.folderConvertedToItem(folder, itemInfo); in folderConvertedToItem()
166 mHotseatPredictionController.folderConvertedToWorkspaceItem(itemInfo, folder.getInfo()); in folderConvertedToItem()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTaskOverlayFactory.java199 public SystemShortcut getModalStateSystemShortcut(WorkspaceItemInfo itemInfo) { in getModalStateSystemShortcut() argument
244 ScreenshotSystemShortcut(BaseDraggingActivity activity, ItemInfo itemInfo) { in ScreenshotSystemShortcut() argument
245 super(R.drawable.ic_screenshot, R.string.action_screenshot, activity, itemInfo); in ScreenshotSystemShortcut()
DTaskViewUtils.java80 ItemInfo itemInfo = (ItemInfo) v.getTag(); in findTaskViewToLaunch() local
81 ComponentName componentName = itemInfo.getTargetComponent(); in findTaskViewToLaunch()
82 int userId = itemInfo.user.getIdentifier(); in findTaskViewToLaunch()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/logging/
DUserEventDispatcherAppPredictionExtension.java45 @NonNull ItemInfo itemInfo, @NonNull LauncherLogProto.Target target, in onFillInLogContainerData()
47 PredictionUiStateManager.fillInPredictedRank(itemInfo, target); in onFillInLogContainerData()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java543 if (sIconLoadResult != null && sIconLoadResult.itemInfo == originalView.getTag()) { in getFloatingIconView()
684 final ItemInfo itemInfo; field in FloatingIconView.IconLoadResult
691 IconLoadResult(ItemInfo itemInfo) { in IconLoadResult() argument
692 this.itemInfo = itemInfo; in IconLoadResult()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DItemInfo.java404 ItemInfo itemInfo = new ItemInfo(); in makeShallowCopy() local
405 itemInfo.copyFrom(this); in makeShallowCopy()
406 return itemInfo; in makeShallowCopy()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationInfo.java66 ItemInfo itemInfo) { in NotificationInfo() argument
96 this.mItemInfo = itemInfo; in NotificationInfo()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsBottomSheet.java85 public void populateAndShow(ItemInfo itemInfo) { in populateAndShow() argument
86 mOriginalItemInfo = itemInfo; in populateAndShow()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DUserEventDispatcher.java110 final ItemInfo itemInfo = (ItemInfo) v.getTag(); in fillLogContainer() local
111 firstParent.fillInLogContainerData(itemInfo, child, targets); in fillLogContainer()
115 protected void onFillInLogContainerData(@NonNull ItemInfo itemInfo, @NonNull Target target, in onFillInLogContainerData() argument
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java345 AdapterView.AdapterContextMenuInfo itemInfo = in onCreateContextMenu() local
347 TextView textView = (TextView) itemInfo.targetView.findViewById(android.R.id.text1); in onCreateContextMenu()

12