Home
last modified time | relevance | path

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

/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.java27 import com.android.launcher3.shortcuts.ShortcutKey;
55 HashMap<ShortcutKey, ShortcutInfo> pinnedShortcuts = new HashMap<>(); in execute()
61 pinnedShortcuts.put(ShortcutKey.fromInfo(shortcut), shortcut); in execute()
73 HashSet<ShortcutKey> removedKeys = new HashSet<>(); in execute()
79 ShortcutKey key = ShortcutKey.fromItemInfo(si); in execute()
DItemInstallQueue.java50 import com.android.launcher3.shortcuts.ShortcutKey;
181 public Stream<ShortcutKey> getPendingShortcuts(UserHandle user) { in getPendingShortcuts()
185 .map(item -> ShortcutKey.fromIntent(item.intent, user)); in getPendingShortcuts()
254 intent = ShortcutKey.makeIntent(info); in PendingInstallShortcutInfo()
367 List<ShortcutInfo> si = ShortcutKey.fromIntent(intent, user) in decode()
DModelDelegate.java27 import com.android.launcher3.shortcuts.ShortcutKey;
74 public void loadItems(UserManagerState ums, Map<ShortcutKey, ShortcutInfo> pinnedShortcuts) { } in loadItems() argument
DBgDataModel.java44 import com.android.launcher3.shortcuts.ShortcutKey;
292 .map(ShortcutKey::fromItemInfo), in updateShortcutPinnedState()
295 .collect(groupingBy(ShortcutKey::getPackageName, in updateShortcutPinnedState()
296 mapping(ShortcutKey::getId, Collectors.toSet()))); in updateShortcutPinnedState()
DShortcutsChangedTask.java25 import com.android.launcher3.shortcuts.ShortcutKey;
110 .map(id -> new ShortcutKey(mPackageName, mUser, id)) in execute()
DLoaderTask.java84 import com.android.launcher3.shortcuts.ShortcutKey;
362 Map<ShortcutKey, ShortcutInfo> shortcutKeyToPinnedShortcuts = new HashMap<>(); in loadWorkspace()
399 shortcutKeyToPinnedShortcuts.put(ShortcutKey.fromInfo(shortcut), in loadWorkspace()
543 ShortcutKey key = ShortcutKey.fromIntent(intent, c.user); in loadWorkspace()
DLoaderCursor.java55 import com.android.launcher3.shortcuts.ShortcutKey;
401 ShortcutKey.fromItemInfo(info); in checkAndAddItem()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java56 import com.android.launcher3.shortcuts.ShortcutKey;
102 public void loadItems(UserManagerState ums, Map<ShortcutKey, ShortcutInfo> pinnedShortcuts) { in loadItems() argument
326 private final Map<ShortcutKey, ShortcutInfo> mPinnedShortcuts;
332 Map<ShortcutKey, ShortcutInfo> pinnedShortcuts, int maxCount) { in WorkspaceItemFactory() argument
359 ShortcutKey key = ShortcutKey.fromIntent(intent, user); in createInfo()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInfoMatcher.java24 import com.android.launcher3.shortcuts.ShortcutKey;
81 static ItemInfoMatcher ofShortcutKeys(Set<ShortcutKey> keys) { in ofShortcutKeys()
83 keys.contains(ShortcutKey.fromItemInfo(info)); in ofShortcutKeys()
DShortcutUtil.java23 import com.android.launcher3.shortcuts.ShortcutKey;
45 ? ShortcutKey.fromItemInfo(info).getId() : null; in getShortcutIdIfPinnedShortcut()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DWorkspaceItemInfo.java32 import com.android.launcher3.shortcuts.ShortcutKey;
161 intent = ShortcutKey.makeIntent(shortcutInfo); in updateFromDeepShortcutInfo()
184 ? getIntent().getStringExtra(ShortcutKey.EXTRA_SHORTCUT_ID) : null; in getDeepShortcutId()
DItemInfo.java36 import static com.android.launcher3.shortcuts.ShortcutKey.EXTRA_SHORTCUT_ID;
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatPredictionModel.java34 import com.android.launcher3.shortcuts.ShortcutKey;
93 ShortcutKey shortcutKey = ShortcutKey.fromItemInfo(info); in getAppTargetFromInfo()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DShortcutCachingLogic.java36 import com.android.launcher3.shortcuts.ShortcutKey;
48 return ShortcutKey.fromInfo(info).componentName; in getComponent()
DIconCache.java54 import com.android.launcher3.shortcuts.ShortcutKey;
224 bitmapInfo = cacheLocked(ShortcutKey.fromInfo(si).componentName, si.getUserHandle(), in getShortcutIcon()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DRequestPinItemTest.java37 import com.android.launcher3.shortcuts.ShortcutKey;
124 ShortcutKey.fromItemInfo(info).getId().equals(mShortcutId); in testPinShortcut()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java84 import com.android.launcher3.shortcuts.ShortcutKey;
688 List<ShortcutInfo> si = ShortcutKey.fromItemInfo(info) in loadFullDrawableWithoutTheme()