Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java53 import com.android.launcher3.util.ComponentKey;
84 private final Map<ComponentKey, CacheEntry> mCache;
108 mCache = new AbstractMap<ComponentKey, CacheEntry>() { in BaseIconCache()
110 public Set<Entry<ComponentKey, CacheEntry>> entrySet() { in BaseIconCache()
115 public CacheEntry put(ComponentKey key, CacheEntry value) { in BaseIconCache()
196 mCache.remove(new ComponentKey(componentName, user)); in remove()
203 HashSet<ComponentKey> forDeletion = new HashSet<>(); in removeFromMemCacheLocked()
204 for (ComponentKey key: mCache.keySet()) { in removeFromMemCacheLocked()
210 for (ComponentKey condemned: forDeletion) { in removeFromMemCacheLocked()
257 final ComponentKey key = new ComponentKey(componentName, user); in addIconToDBAndMemCache()
[all …]
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/util/
DComponentKey.java24 public class ComponentKey { class
31 public ComponentKey(ComponentName componentName, UserHandle user) { in ComponentKey() method in ComponentKey
48 ComponentKey other = (ComponentKey) o; in equals()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAppWidgetManagerCompatVL.java32 import com.android.launcher3.util.ComponentKey;
118 public HashMap<ComponentKey, AppWidgetProviderInfo> getAllProvidersMap() { in getAllProvidersMap()
119 HashMap<ComponentKey, AppWidgetProviderInfo> result = new HashMap<>(); in getAllProvidersMap()
126 result.put(new ComponentKey(info.provider, user), info); in getAllProvidersMap()
130 result.put(new ComponentKey(info.provider, info.getProfile()), info); in getAllProvidersMap()
DAppWidgetManagerCompat.java31 import com.android.launcher3.util.ComponentKey;
81 public abstract HashMap<ComponentKey, AppWidgetProviderInfo> getAllProvidersMap(); in getAllProvidersMap()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DComponentKeyMapper.java27 import com.android.launcher3.util.ComponentKey;
31 protected final ComponentKey componentKey;
35 public ComponentKeyMapper(Context context, ComponentKey key, DynamicItemCache cache) { in ComponentKeyMapper()
49 public ComponentKey getComponentKey() { in getComponentKey()
DPredictionUiStateManager.java47 import com.android.launcher3.util.ComponentKey;
241 ComponentKey key; in parseLastState()
245 key = new ComponentKey(new ComponentName(appTarget.getPackageName(), in parseLastState()
347 final ComponentKey k = new ComponentKey(itemInfo.getTargetComponent(), itemInfo.user); in fillInPredictedRank()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBgDataModel.java41 import com.android.launcher3.util.ComponentKey;
105 public final HashMap<ComponentKey, Integer> deepShortcutMap = new HashMap<>();
378 Iterator<ComponentKey> keysIter = deepShortcutMap.keySet().iterator(); in updateDeepShortcutCounts()
380 ComponentKey next = keysIter.next(); in updateDeepShortcutCounts()
393 ComponentKey targetComponent in updateDeepShortcutCounts()
394 = new ComponentKey(shortcut.getActivity(), shortcut.getUserHandle()); in updateDeepShortcutCounts()
423 void bindDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMap); in bindDeepShortcutMap() argument
DWidgetItem.java13 import com.android.launcher3.util.ComponentKey;
22 public class WidgetItem extends ComponentKey implements Comparable<WidgetItem> {
DBaseModelUpdateTask.java27 import com.android.launcher3.util.ComponentKey;
104 final HashMap<ComponentKey, Integer> shortcutMapCopy = in bindDeepShortcuts()
DUserLockStateChangedTask.java32 import com.android.launcher3.util.ComponentKey;
109 Iterator<ComponentKey> keysIter = dataModel.deepShortcutMap.keySet().iterator(); in execute()
DLoaderTask.java72 import com.android.launcher3.util.ComponentKey;
297 HashMap<ComponentKey, AppWidgetProviderInfo> widgetProvidersMap = null; in loadWorkspace()
613 new ComponentKey(component, c.user)); in loadWorkspace()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DDefaultAppSearchAlgorithm.java21 import com.android.launcher3.util.ComponentKey;
50 final ArrayList<ComponentKey> result = getTitleMatchResult(query); in doSearch()
60 private ArrayList<ComponentKey> getTitleMatchResult(String query) { in getTitleMatchResult()
64 final ArrayList<ComponentKey> result = new ArrayList<>(); in getTitleMatchResult()
DAllAppsSearchBarController.java32 import com.android.launcher3.util.ComponentKey;
170 void onSearchResult(String query, ArrayList<ComponentKey> apps); in onSearchResult()
DAppsSearchContainerLayout.java51 import com.android.launcher3.util.ComponentKey;
176 public void onSearchResult(String query, ArrayList<ComponentKey> apps) { in onSearchResult()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DStatsLogManager.java23 import com.android.launcher3.util.ComponentKey;
42 public void logTaskLaunch(View v, ComponentKey key) { } in logTaskLaunch()
43 public void logTaskDismiss(View v, ComponentKey key) { } in logTaskDismiss()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskUtils.java28 import com.android.launcher3.util.ComponentKey;
60 public static ComponentKey getLaunchComponentKeyForTask(Task.TaskKey taskKey) { in getLaunchComponentKeyForTask()
64 return new ComponentKey(cn, UserHandle.of(taskKey.userId)); in getLaunchComponentKeyForTask()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppInfo.java29 import com.android.launcher3.util.ComponentKey;
101 public ComponentKey toComponentKey() { in toComponentKey()
102 return new ComponentKey(componentName, user); in toComponentKey()
DWidgetPreviewLoader.java44 import com.android.launcher3.util.ComponentKey;
180 public void removeObsoletePreviews(ArrayList<? extends ComponentKey> list, in removeObsoletePreviews()
186 for (ComponentKey key : list) { in removeObsoletePreviews()
666 private static final class WidgetCacheKey extends ComponentKey {
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAlphabeticalAppsList.java25 import com.android.launcher3.util.ComponentKey;
144 private ArrayList<ComponentKey> mSearchResults;
224 public boolean setOrderedFilter(ArrayList<ComponentKey> f) { in setOrderedFilter()
411 for (ComponentKey key : mSearchResults) { in getFiltersAppInfos()
DAllAppsStore.java28 import com.android.launcher3.util.ComponentKey;
70 public AppInfo getApp(ComponentKey key) { in getApp()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java30 import com.android.launcher3.util.ComponentKey;
60 private HashMap<ComponentKey, Integer> mDeepShortcutMap = new HashMap<>();
158 public void setDeepShortcutMap(HashMap<ComponentKey, Integer> deepShortcutMapCopy) { in setDeepShortcutMap() argument
172 Integer count = mDeepShortcutMap.get(new ComponentKey(component, info.user)); in getShortcutCountForItem()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java29 import com.android.launcher3.util.ComponentKey;
188 private final HashMap<ComponentKey, CacheEntry> mCache = new HashMap<>();
200 CacheEntry entry = mCache.get(new ComponentKey(componentName, user)); in cacheLocked()
213 mCache.put(new ComponentKey(key, Process.myUserHandle()), entry); in addCache()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DLoaderResults.java21 import com.android.launcher3.util.ComponentKey;
40 final HashMap<ComponentKey, Integer> shortcutMapCopy; in bindDeepShortcuts()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java9 import com.android.launcher3.util.ComponentKey;
14 public class ShortcutKey extends ComponentKey {
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/logging/
DStatsLogCompatManager.java42 import com.android.launcher3.util.ComponentKey;
76 public void logTaskLaunch(View v, ComponentKey componentKey) { in logTaskLaunch()
86 public void logTaskDismiss(View v, ComponentKey componentKey) { in logTaskDismiss()

12