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

Commit 63d1868a authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 11200327 from 4c5ae6ab to 24Q1-release

Change-Id: I0631b265cc6a1727d2afeace76623934d02952d1
parents 1acc007e 4c5ae6ab
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
package: "com.android.systemui.shared"

# Note: for shared flags across SystemUI & framework

flag {
    name: "sidefps_controller_refactor"
    namespace: "biometrics_framework"
    description: "flag for SideFpsController refactor"
    bug: "288175061"
}
+10 −2
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import static com.android.launcher3.icons.BaseIconFactory.getFullResDefaultActiv
import static com.android.launcher3.icons.BitmapInfo.LOW_RES_ICON;
import static com.android.launcher3.icons.GraphicsUtils.flattenBitmap;
import static com.android.launcher3.icons.GraphicsUtils.setColorAlphaBound;
import static com.android.launcher3.icons.cache.IconCacheUpdateHandler.ICON_UPDATE_TOKEN;

import static java.util.Objects.requireNonNull;

@@ -499,9 +500,16 @@ public abstract class BaseIconCache {
                cachingLogic.getDescription(object, entry.title), user);
    }

    public synchronized void clear() {
    public synchronized void clearMemoryCache() {
        assertWorkerThread();
        mIconDb.clear();
        mCache.clear();
    }

    /**
     * Returns true if an icon update is in progress
     */
    public boolean isIconUpdateInProgress() {
        return mWorkerHandler.hasMessages(0, ICON_UPDATE_TOKEN);
    }

    /**
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public class IconCacheUpdateHandler {
     */
    private static final boolean MODE_CLEAR_VALID_ITEMS = false;

    private static final Object ICON_UPDATE_TOKEN = new Object();
    static final Object ICON_UPDATE_TOKEN = new Object();

    private final HashMap<String, PackageInfo> mPkgInfoMap;
    private final BaseIconCache mIconCache;