Loading iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java +10 −0 Original line number Diff line number Diff line Loading @@ -588,6 +588,16 @@ public abstract class BaseIconCache { return new ComponentKey(cn, user); } /** * Returns the package entry if it has already been cached in memory, null otherwise */ @Nullable protected CacheEntry getInMemoryPackageEntryLocked(@NonNull final String packageName, @NonNull final UserHandle user) { assertWorkerThread(); return mCache.get(getPackageKey(packageName, user)); } /** * Gets an entry for the package, which can be used as a fallback entry for various components. * This method is not thread safe, it must be called from a synchronized method. Loading Loading
iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java +10 −0 Original line number Diff line number Diff line Loading @@ -588,6 +588,16 @@ public abstract class BaseIconCache { return new ComponentKey(cn, user); } /** * Returns the package entry if it has already been cached in memory, null otherwise */ @Nullable protected CacheEntry getInMemoryPackageEntryLocked(@NonNull final String packageName, @NonNull final UserHandle user) { assertWorkerThread(); return mCache.get(getPackageKey(packageName, user)); } /** * Gets an entry for the package, which can be used as a fallback entry for various components. * This method is not thread safe, it must be called from a synchronized method. Loading