Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c05cd51 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12415101 from ab420dd1 to 25Q1-release

Change-Id: I3b98aa50b3e1504a905dc35846d4355b5614db07
parents 47d8b057 ab420dd1
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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.