feat: Better At-a-Glance perceptive wallpaper colour luminance detection

This commit is contained in:
Pun Butrach committed 2026-01-10 20:49:46 +07:00
1 parent 19eb97e405
commit d36845897b
1639 files changed
+93897 -146732

No files matched your search

@@ -19,7 +19,7 @@ package com.android.quickstep.util;
import static com.android.quickstep.util.QuickstepProtoLogGroup.RECENTS_WINDOW;
import static com.android.quickstep.util.QuickstepProtoLogGroup.isProtoLogInitialized;
import android.window.DesktopExperienceFlags;
import android.window.DesktopModeFlags;
import androidx.annotation.NonNull;
@@ -37,13 +37,8 @@ import com.android.launcher3.Flags;
* method. Or, if an existing entry needs to be modified, simply update it here.
*/
public class RecentsWindowProtoLogProxy {
private static final DesktopExperienceFlags.DesktopExperienceFlag
ENABLE_RECENTS_WINDOW_PROTO_LOG =
new DesktopExperienceFlags.DesktopExperienceFlag(
Flags::enableRecentsWindowProtoLog,
false,
Flags.FLAG_ENABLE_RECENTS_WINDOW_PROTO_LOG);
private static final DesktopModeFlags.DesktopModeFlag ENABLE_RECENTS_WINDOW_PROTO_LOG =
new DesktopModeFlags.DesktopModeFlag(Flags::enableRecentsWindowProtoLog, true);
public static void logOnStateSetStart(@NonNull String stateName) {
if (!ENABLE_RECENTS_WINDOW_PROTO_LOG.isTrue() || !isProtoLogInitialized()) return;
ProtoLog.d(RECENTS_WINDOW, "onStateSetStart: %s", stateName);
@@ -54,11 +49,6 @@ public class RecentsWindowProtoLogProxy {
ProtoLog.d(RECENTS_WINDOW, "onStateSetEnd: %s", stateName);
}
public static void logOnRepeatStateSetAborted(@NonNull String stateName) {
if (!ENABLE_RECENTS_WINDOW_PROTO_LOG.isTrue() || !isProtoLogInitialized()) return;
ProtoLog.d(RECENTS_WINDOW, "onRepeatStateSetAborted: %s", stateName);
}
public static void logStartRecentsWindow(boolean isShown, boolean windowViewIsNull) {
if (!ENABLE_RECENTS_WINDOW_PROTO_LOG.isTrue() || !isProtoLogInitialized()) return;
ProtoLog.d(RECENTS_WINDOW,