Home
last modified time | relevance | path

Searched refs:ComponentKey (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DPinnedAppsAdapter.java41 import com.android.launcher3.util.ComponentKey;
66 private final Set<ComponentKey> mPinnedApps = new HashSet<>();
88 Set<ComponentKey> apps = prefs.getStringSet(key, Collections.emptySet()) in onSharedPreferenceChanged()
171 private void update(ItemInfo info, Function<ComponentKey, Boolean> op) { in update() argument
172 ComponentKey key = new ComponentKey(info.getTargetComponent(), info.user); in update()
175 Set<ComponentKey> copy = new HashSet<>(mPinnedApps); in update()
183 private ComponentKey parseComponentKey(String string) { in parseComponentKey()
194 return new ComponentKey(cn, user); in parseComponentKey()
200 private String encode(ComponentKey key) { in encode()
210 mPinnedApps.contains(new ComponentKey(info.getTargetComponent(), info.user))); in getSystemShortcut()
DSecondaryDisplayLauncher.java42 import com.android.launcher3.util.ComponentKey;
284 public void bindDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMap) { in bindDeepShortcutMap() argument
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWidgetsPredictionUpdateTask.java28 import com.android.launcher3.util.ComponentKey;
56 Set<ComponentKey> widgetsInWorkspace = dataModel.appWidgets.stream().map( in execute()
57 widget -> new ComponentKey(widget.providerName, widget.user)).collect( in execute()
73 new ComponentKey(item.componentName, item.user))) in execute()
85 Map<ComponentKey, WidgetItem> widgetItems = in execute()
87 .collect(Collectors.toMap(widget -> (ComponentKey) widget, in execute()
93 ComponentKey targetWidget = new ComponentKey( in execute()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java31 import com.android.launcher3.util.ComponentKey;
59 private HashMap<ComponentKey, Integer> mDeepShortcutMap = new HashMap<>();
146 public void setDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMapCopy) { in setDeepShortcutMap() argument
160 Integer count = mDeepShortcutMap.get(new ComponentKey(component, info.user)); in getShortcutCountForItem()
218 HashMap<ComponentKey, WidgetItem> allWidgetItems = new HashMap<>(); in getRecommendedWidgets()
223 new ComponentKey(widget.componentName, widget.user), widget))); in getRecommendedWidgets()
226 new ComponentKey(recommendedWidget.getTargetComponent(), in getRecommendedWidgets()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DCachingWidgetPreviewLoader.java30 import com.android.launcher3.util.ComponentKey;
42 @NonNull private final Map<ComponentKey, Map<Size, CacheResult>> mCache = new ArrayMap<>();
85 ComponentKey key = toComponentKey(item); in putCacheResult()
106 ComponentKey key = toComponentKey(item); in removeCacheResult()
286 private static ComponentKey toComponentKey(@NonNull WidgetItem item) { in toComponentKey()
287 return new ComponentKey(item.componentName, item.user); in toComponentKey()
DDatabaseWidgetPreviewLoader.java65 import com.android.launcher3.util.ComponentKey;
234 public void removeObsoletePreviews(ArrayList<? extends ComponentKey> list, in removeObsoletePreviews()
240 for (ComponentKey key : list) { in removeObsoletePreviews()
771 private static final class WidgetCacheKey extends ComponentKey {
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBgDataModel.java47 import com.android.launcher3.util.ComponentKey;
107 public final HashMap<ComponentKey, Integer> deepShortcutMap = new HashMap<>();
352 Iterator<ComponentKey> keysIter = deepShortcutMap.keySet().iterator(); in updateDeepShortcutCounts()
354 ComponentKey next = keysIter.next(); in updateDeepShortcutCounts()
368 ComponentKey targetComponent in updateDeepShortcutCounts()
369 = new ComponentKey(shortcut.getActivity(), shortcut.getUserHandle()); in updateDeepShortcutCounts()
473 void bindDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMap); in bindDeepShortcutMap() argument
DWidgetItem.java14 import com.android.launcher3.util.ComponentKey;
22 public class WidgetItem extends ComponentKey {
DUserLockStateChangedTask.java30 import com.android.launcher3.util.ComponentKey;
103 Iterator<ComponentKey> keysIter = dataModel.deepShortcutMap.keySet().iterator(); in execute()
DBaseModelUpdateTask.java29 import com.android.launcher3.util.ComponentKey;
120 final HashMap<ComponentKey, Integer> shortcutMapCopy = in bindDeepShortcuts()
DLoaderTask.java87 import com.android.launcher3.util.ComponentKey;
135 protected final Map<ComponentKey, AppWidgetProviderInfo> mWidgetProvidersMap = new ArrayMap<>();
677 ComponentKey providerKey = new ComponentKey(component, c.user); in loadWorkspace()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskUtils.java29 import com.android.launcher3.util.ComponentKey;
62 public static ComponentKey getLaunchComponentKeyForTask(Task.TaskKey taskKey) { in getLaunchComponentKeyForTask()
66 return new ComponentKey(cn, UserHandle.of(taskKey.userId)); in getLaunchComponentKeyForTask()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/
DLShadowLauncherApps.java36 import com.android.launcher3.util.ComponentKey;
56 public final ArraySet<ComponentKey> disabledActivities = new ArraySet<>();
75 return !disabledActivities.contains(new ComponentKey(component, user)); in isActivityEnabled()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DAppInfo.java38 import com.android.launcher3.util.ComponentKey;
142 public ComponentKey toComponentKey() { in toComponentKey()
143 return new ComponentKey(componentName, user); in toComponentKey()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DLoaderResults.java23 import com.android.launcher3.util.ComponentKey;
41 final HashMap<ComponentKey, Integer> shortcutMapCopy; in bindDeepShortcuts()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java85 import com.android.launcher3.util.ComponentKey;
280 Map<ComponentKey, AppWidgetProviderInfo> widgetProviderInfoMap) { in getRenderedView() argument
351 Map<ComponentKey, AppWidgetProviderInfo> widgetProviderInfoMap) {
356 new ComponentKey(info.providerName, info.user));
413 Map<ComponentKey, AppWidgetProviderInfo> widgetProviderInfoMap) {
DPreviewSurfaceRenderer.java52 import com.android.launcher3.util.ComponentKey;
202 Map<ComponentKey, AppWidgetProviderInfo> widgetProviderInfoMap) { in renderView() argument
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java10 import com.android.launcher3.util.ComponentKey;
15 public class ShortcutKey extends ComponentKey {
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsStore.java30 import com.android.launcher3.util.ComponentKey;
89 public AppInfo getApp(ComponentKey key) { in getApp()
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java49 import com.android.launcher3.util.ComponentKey;
296 public void bindDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMap) { } in bindDeepShortcutMap() argument
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskView.java88 import com.android.launcher3.util.ComponentKey;
419 ComponentKey componentKey = TaskUtils.getLaunchComponentKeyForTask(task.key); in getItemInfo()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java167 import com.android.launcher3.util.ComponentKey;
2646 public void bindDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMapCopy) { in bindDeepShortcutMap() argument