Searched refs:ShortcutKey (Results 1 - 11 of 11) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutKey.java13 public class ShortcutKey extends ComponentKey { class in inherits:ComponentKey
15 public ShortcutKey(String packageName, UserHandle user, String id) { method in class:ShortcutKey
24 public static ShortcutKey fromInfo(ShortcutInfoCompat shortcutInfo) {
25 return new ShortcutKey(shortcutInfo.getPackage(), shortcutInfo.getUserHandle(),
29 public static ShortcutKey fromIntent(Intent intent, UserHandle user) {
32 return new ShortcutKey(intent.getPackage(), user, shortcutId);
35 public static ShortcutKey fromItemInfo(ItemInfo info) {
H A DShortcutCache.java35 private final LruCache<ShortcutKey, ShortcutInfoCompat> mCachedShortcuts;
37 private final ArrayMap<ShortcutKey, ShortcutInfoCompat> mPinnedShortcuts;
53 ShortcutKey key = ShortcutKey.fromInfo(shortcut);
59 public ShortcutInfoCompat get(ShortcutKey key) {
66 public void put(ShortcutKey key, ShortcutInfoCompat shortcut) {
H A DDeepShortcutManager.java108 public void unpinShortcut(final ShortcutKey key) {
130 public void pinShortcut(final ShortcutKey key) {
/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DShortcutsChangedTask.java29 import com.android.launcher3.shortcuts.ShortcutKey;
62 HashSet<ShortcutKey> removedKeys = new HashSet<>();
63 MultiHashMap<ShortcutKey, ShortcutInfo> keyToShortcutInfo = new MultiHashMap<>();
70 keyToShortcutInfo.addToList(ShortcutKey.fromItemInfo(si), si);
82 ShortcutKey key = ShortcutKey.fromInfo(fullDetails);
H A DUserLockStateChangedTask.java30 import com.android.launcher3.shortcuts.ShortcutKey;
57 HashMap<ShortcutKey, ShortcutInfoCompat> pinnedShortcuts = new HashMap<>();
63 pinnedShortcuts.put(ShortcutKey.fromInfo(shortcut), shortcut);
75 HashSet<ShortcutKey> removedKeys = new HashSet<>();
82 ShortcutKey key = ShortcutKey.fromItemInfo(si);
H A DBgDataModel.java37 import com.android.launcher3.shortcuts.ShortcutKey;
89 * Map of ShortcutKey to the number of times it is pinned.
91 public final Map<ShortcutKey, MutableInt> pinnedShortcutCounts = new HashMap<>();
268 ShortcutKey pinnedShortcut = ShortcutKey.fromItemInfo(item);
299 ShortcutKey pinnedShortcut = ShortcutKey.fromItemInfo(item);
H A DLoaderTask.java63 import com.android.launcher3.shortcuts.ShortcutKey;
261 Map<ShortcutKey, ShortcutInfoCompat> shortcutKeyToPinnedShortcuts = new HashMap<>();
297 shortcutKeyToPinnedShortcuts.put(ShortcutKey.fromInfo(shortcut),
457 ShortcutKey key = ShortcutKey.fromIntent(intent, c.user);
710 HashSet<ShortcutKey> pendingShortcuts =
712 for (ShortcutKey key : shortcutKeyToPinnedShortcuts.keySet()) {
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DItemInfoMatcher.java28 import com.android.launcher3.shortcuts.ShortcutKey;
125 public static ItemInfoMatcher ofShortcutKeys(final HashSet<ShortcutKey> keys) {
130 keys.contains(ShortcutKey.fromItemInfo(info));
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
H A DRequestPinItemTest.java36 import com.android.launcher3.shortcuts.ShortcutKey;
137 ShortcutKey.fromItemInfo(info).getId().equals(mShortcutId);
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragView.java64 import com.android.launcher3.shortcuts.ShortcutKey;
330 ShortcutKey key = ShortcutKey.fromItemInfo(info);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInstallShortcutReceiver.java44 import com.android.launcher3.shortcuts.ShortcutKey;
236 public static HashSet<ShortcutKey> getPendingShortcuts(Context context) {
237 HashSet<ShortcutKey> result = new HashSet<>();
248 result.add(ShortcutKey.fromIntent(decoder.launcherIntent, decoder.user));

Completed in 7649 milliseconds