Home
last modified time | relevance | path

Searched refs:ShortcutKey (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java15 public class ShortcutKey extends ComponentKey { class
20 public ShortcutKey(String packageName, UserHandle user, String id) { in ShortcutKey() method in ShortcutKey
25 public ShortcutKey(ComponentName componentName, UserHandle user) { in ShortcutKey() method in ShortcutKey
45 public static ShortcutKey fromInfo(ShortcutInfo shortcutInfo) { in fromInfo()
46 return new ShortcutKey(shortcutInfo.getPackage(), shortcutInfo.getUserHandle(), in fromInfo()
50 public static ShortcutKey fromIntent(Intent intent, UserHandle user) { in fromIntent()
52 return new ShortcutKey(intent.getPackage(), user, shortcutId); in fromIntent()
55 public static ShortcutKey fromItemInfo(ItemInfo info) { in fromItemInfo()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DUserLockStateChangedTask.java30 import com.android.launcher3.shortcuts.ShortcutKey;
61 HashMap<ShortcutKey, ShortcutInfo> pinnedShortcuts = new HashMap<>(); in execute()
67 pinnedShortcuts.put(ShortcutKey.fromInfo(shortcut), shortcut); in execute()
79 HashSet<ShortcutKey> removedKeys = new HashSet<>(); in execute()
85 ShortcutKey key = ShortcutKey.fromItemInfo(si); in execute()
DModelDelegate.java28 import com.android.launcher3.shortcuts.ShortcutKey;
89 @NonNull Map<ShortcutKey, ShortcutInfo> pinnedShortcuts) { } in loadAndBindWorkspaceItems() argument
95 @NonNull Map<ShortcutKey, ShortcutInfo> pinnedShortcuts) { } in loadAndBindAllAppsItems() argument
DItemInstallQueue.java52 import com.android.launcher3.shortcuts.ShortcutKey;
187 public Stream<ShortcutKey> getPendingShortcuts(UserHandle user) { in getPendingShortcuts()
191 .map(item -> ShortcutKey.fromIntent(item.intent, user)); in getPendingShortcuts()
260 intent = ShortcutKey.makeIntent(info); in PendingInstallShortcutInfo()
378 List<ShortcutInfo> si = ShortcutKey.fromIntent(intent, user) in decode()
DShortcutsChangedTask.java28 import com.android.launcher3.shortcuts.ShortcutKey;
124 .map(id -> new ShortcutKey(mPackageName, mUser, id)) in execute()
DBgDataModel.java54 import com.android.launcher3.shortcuts.ShortcutKey;
338 .map(ShortcutKey::fromItemInfo), in updateShortcutPinnedState()
341 .collect(groupingBy(ShortcutKey::getPackageName, in updateShortcutPinnedState()
342 mapping(ShortcutKey::getId, Collectors.toSet()))); in updateShortcutPinnedState()
DWorkspaceItemProcessor.kt46 import com.android.launcher3.shortcuts.ShortcutKey
69 private val shortcutKeyToPinnedShortcuts: Map<ShortcutKey, ShortcutInfo>,
266 val key = ShortcutKey.fromIntent(intent, c.user) in processAppOrDeepShortcut()
DLoaderCursor.java54 import com.android.launcher3.shortcuts.ShortcutKey;
493 ShortcutKey.fromItemInfo(info); in checkAndAddItem()
DLoaderTask.java90 import com.android.launcher3.shortcuts.ShortcutKey;
149 private Map<ShortcutKey, ShortcutInfo> mShortcutKeyToPinnedShortcuts;
542 mShortcutKeyToPinnedShortcuts.put(ShortcutKey.fromInfo(shortcut), in queryPinnedShortcutsForUnlockedUsers()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInfoMatcher.java27 import com.android.launcher3.shortcuts.ShortcutKey;
59 public static Predicate<ItemInfo> ofShortcutKeys(Set<ShortcutKey> keys) { in ofShortcutKeys()
61 && keys.contains(ShortcutKey.fromItemInfo(info)); in ofShortcutKeys()
DShortcutUtil.java24 import com.android.launcher3.shortcuts.ShortcutKey;
46 ? ShortcutKey.fromItemInfo(info).getId() : null; in getShortcutIdIfPinnedShortcut()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java72 import com.android.launcher3.shortcuts.ShortcutKey;
132 @NonNull Map<ShortcutKey, ShortcutInfo> pinnedShortcuts) { in loadAndBindWorkspaceItems() argument
141 @NonNull Map<ShortcutKey, ShortcutInfo> pinnedShortcuts) { in loadAndBindAllAppsItems() argument
148 @NonNull Map<ShortcutKey, ShortcutInfo> pinnedShortcuts, in loadAndBindItems() argument
536 private final Map<ShortcutKey, ShortcutInfo> mPinnedShortcuts;
543 PackageManagerHelper pmHelper, Map<ShortcutKey, ShortcutInfo> pinnedShortcuts, in WorkspaceItemFactory() argument
579 ShortcutKey key = ShortcutKey.fromIntent(intent, user); in createInfo()
DPredictionHelper.java34 import com.android.launcher3.shortcuts.ShortcutKey;
63 ShortcutKey shortcutKey = ShortcutKey.fromItemInfo(info); in getAppTargetFromItemInfo()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DWorkspaceItemInfo.java35 import com.android.launcher3.shortcuts.ShortcutKey;
179 intent = ShortcutKey.makeIntent(shortcutInfo); in updateFromDeepShortcutInfo()
217 ? getIntent().getStringExtra(ShortcutKey.EXTRA_SHORTCUT_ID) : null; in getDeepShortcutId()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DLauncherDbUtilsTest.java50 import com.android.launcher3.shortcuts.ShortcutKey;
136 ShortcutKey key = ShortcutKey.fromIntent( in migrateLegacyShortcuts_success()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DShortcutCachingLogic.java37 import com.android.launcher3.shortcuts.ShortcutKey;
50 return ShortcutKey.fromInfo(info).componentName; in getComponent()
DIconCache.java68 import com.android.launcher3.shortcuts.ShortcutKey;
273 BitmapInfo bitmapInfo = cacheLocked(ShortcutKey.fromInfo(si).componentName, in getShortcutIcon()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/util/
DSplitSelectDataHolderTest.kt28 import com.android.launcher3.shortcuts.ShortcutKey
77 sampleShortcut.putExtra(ShortcutKey.EXTRA_SHORTCUT_ID, "sampleShortcut") in setup()
78 sampleShortcut2.putExtra(ShortcutKey.EXTRA_SHORTCUT_ID, "sampleShortcut2") in setup()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplRequestPinItemTest.java39 import com.android.launcher3.shortcuts.ShortcutKey;
124 ShortcutKey.fromItemInfo(info).getId().equals(mShortcutId); in testPinShortcut()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DWorkspaceItemProcessorTest.kt53 import com.android.launcher3.shortcuts.ShortcutKey
98 private var mKeyToPinnedShortcutsMap: MutableMap<ShortcutKey, ShortcutInfo> = mutableMapOf()
119 putExtra(ShortcutKey.EXTRA_SHORTCUT_ID, "") in setup()
184 shortcutKeyToPinnedShortcuts: Map<ShortcutKey, ShortcutInfo> = mKeyToPinnedShortcutsMap, in createWorkspaceItemProcessorUnderTest()
374 val shortcutKey = ShortcutKey.fromIntent(intent, mockCursor.user) in When valid Pinned Deep Shortcut then mark restored()
438 val shortcutKey = ShortcutKey.fromIntent(intent, mockCursor.user) in When valid Pinned Deep Shortcut with null intent package then use targetPkg()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLauncherDbUtils.java44 import com.android.launcher3.shortcuts.ShortcutKey;
170 ShortcutKey.makeIntent(info.getId(), context.getPackageName()).toUri(0)); in migrateLegacyShortcuts()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSplitSelectDataHolder.kt33 import com.android.launcher3.shortcuts.ShortcutKey
203 val shortcutId = intent.getStringExtra(ShortcutKey.EXTRA_SHORTCUT_ID) ?: return null in getShortcutInfo()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemClickHandler.java64 import com.android.launcher3.shortcuts.ShortcutKey;
351 .ofShortcutKeys(Collections.singleton(ShortcutKey in maybeCreateAlertDialogForShortcut()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/flags/
DDevOptionsUiHelper.kt70 import com.android.launcher3.shortcuts.ShortcutKey in <lambda>()
496 ShortcutKey.fromItemInfo(info).let { key -> in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java57 import com.android.launcher3.shortcuts.ShortcutKey;
460 Intent intent = ShortcutKey.makeIntent(shortcutId, packageName); in parseAndAdd()

12