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

This commit is contained in:
Pun Butrach
2025-11-22 22:40:13 +07:00
parent 19eb97e405
commit d36845897b
1639 changed files with 93907 additions and 146742 deletions
@@ -1,4 +1,5 @@
package com.android.systemui.shared;
// TODO(b/303773055): Remove the annotation after access issue is resolved.
/** @hide */
@@ -16,16 +17,12 @@ public final class Flags {
/** @hide */
public static final String FLAG_ENABLE_HOME_DELAY = "com.android.systemui.shared.enable_home_delay";
/** @hide */
public static final String FLAG_ENABLE_LPP_ASSIST_INVOCATION_EFFECT = "com.android.systemui.shared.enable_lpp_assist_invocation_effect";
/** @hide */
public static final String FLAG_ENABLE_LPP_ASSIST_INVOCATION_HAPTIC_EFFECT = "com.android.systemui.shared.enable_lpp_assist_invocation_haptic_effect";
public static final String FLAG_ENABLE_LPP_SQUEEZE_EFFECT = "com.android.systemui.shared.enable_lpp_squeeze_effect";
/** @hide */
public static final String FLAG_EXAMPLE_SHARED_FLAG = "com.android.systemui.shared.example_shared_flag";
/** @hide */
public static final String FLAG_EXTENDED_WALLPAPER_EFFECTS = "com.android.systemui.shared.extended_wallpaper_effects";
/** @hide */
public static final String FLAG_EXTENDIBLE_THEME_MANAGER = "com.android.systemui.shared.extendible_theme_manager";
/** @hide */
public static final String FLAG_LOCKSCREEN_CUSTOM_CLOCKS = "com.android.systemui.shared.lockscreen_custom_clocks";
/** @hide */
public static final String FLAG_NEW_CUSTOMIZATION_PICKER_UI = "com.android.systemui.shared.new_customization_picker_ui";
@@ -42,14 +39,14 @@ public final class Flags {
/** @hide */
public static final String FLAG_SIDEFPS_CONTROLLER_REFACTOR = "com.android.systemui.shared.sidefps_controller_refactor";
/** @hide */
public static final String FLAG_SMARTSPACE_REMOTEVIEWS_INTENT_HANDLER = "com.android.systemui.shared.smartspace_remoteviews_intent_handler";
/** @hide */
public static final String FLAG_SMARTSPACE_SPORTS_CARD_BACKGROUND = "com.android.systemui.shared.smartspace_sports_card_background";
/** @hide */
public static final String FLAG_SMARTSPACE_UI_UPDATE = "com.android.systemui.shared.smartspace_ui_update";
/** @hide */
public static final String FLAG_SMARTSPACE_UI_UPDATE_RESOURCES = "com.android.systemui.shared.smartspace_ui_update_resources";
/** @hide */
public static final String FLAG_SMARTSPACE_WEATHER_USE_MONOCHROME_FONT_ICONS = "com.android.systemui.shared.smartspace_weather_use_monochrome_font_icons";
/** @hide */
public static final String FLAG_STATUS_BAR_CONNECTED_DISPLAYS = "com.android.systemui.shared.status_bar_connected_displays";
/** @hide */
public static final String FLAG_THREE_BUTTON_CORNER_SWIPE = "com.android.systemui.shared.three_button_corner_swipe";
@@ -57,53 +54,55 @@ public final class Flags {
public static final String FLAG_USE_PREFERRED_IMAGE_EDITOR = "com.android.systemui.shared.use_preferred_image_editor";
public static boolean ambientAod() {
return FEATURE_FLAGS.ambientAod();
}
public static boolean bouncerAreaExclusion() {
return FEATURE_FLAGS.bouncerAreaExclusion();
}
public static boolean clockReactiveSmartspaceLayout() {
return FEATURE_FLAGS.clockReactiveSmartspaceLayout();
}
public static boolean clockReactiveVariants() {
return FEATURE_FLAGS.clockReactiveVariants();
}
public static boolean cursorHotCorner() {
return FEATURE_FLAGS.cursorHotCorner();
}
public static boolean enableHomeDelay() {
return FEATURE_FLAGS.enableHomeDelay();
}
public static boolean enableLppAssistInvocationEffect() {
public static boolean enableLppSqueezeEffect() {
return FEATURE_FLAGS.enableLppAssistInvocationEffect();
return FEATURE_FLAGS.enableLppSqueezeEffect();
}
public static boolean enableLppAssistInvocationHapticEffect() {
return FEATURE_FLAGS.enableLppAssistInvocationHapticEffect();
}
public static boolean exampleSharedFlag() {
@@ -111,17 +110,13 @@ public final class Flags {
}
public static boolean extendedWallpaperEffects() {
return FEATURE_FLAGS.extendedWallpaperEffects();
}
public static boolean extendibleThemeManager() {
return FEATURE_FLAGS.extendibleThemeManager();
}
public static boolean lockscreenCustomClocks() {
@@ -129,71 +124,83 @@ public final class Flags {
}
public static boolean newCustomizationPickerUi() {
return FEATURE_FLAGS.newCustomizationPickerUi();
}
public static boolean newTouchpadGesturesTutorial() {
return FEATURE_FLAGS.newTouchpadGesturesTutorial();
}
public static boolean returnAnimationFrameworkLibrary() {
return FEATURE_FLAGS.returnAnimationFrameworkLibrary();
}
public static boolean returnAnimationFrameworkLongLived() {
return FEATURE_FLAGS.returnAnimationFrameworkLongLived();
}
public static boolean screenshotContextUrl() {
return FEATURE_FLAGS.screenshotContextUrl();
}
public static boolean shadeAllowBackGesture() {
return FEATURE_FLAGS.shadeAllowBackGesture();
}
public static boolean sidefpsControllerRefactor() {
return FEATURE_FLAGS.sidefpsControllerRefactor();
}
public static boolean smartspaceRemoteviewsIntentHandler() {
return FEATURE_FLAGS.smartspaceRemoteviewsIntentHandler();
}
public static boolean smartspaceSportsCardBackground() {
return FEATURE_FLAGS.smartspaceSportsCardBackground();
}
public static boolean smartspaceUiUpdate() {
return FEATURE_FLAGS.smartspaceUiUpdate();
}
public static boolean smartspaceUiUpdateResources() {
return FEATURE_FLAGS.smartspaceUiUpdateResources();
}
public static boolean smartspaceWeatherUseMonochromeFontIcons() {
return FEATURE_FLAGS.smartspaceWeatherUseMonochromeFontIcons();
}
public static boolean statusBarConnectedDisplays() {
@@ -201,12 +208,14 @@ public final class Flags {
}
public static boolean threeButtonCornerSwipe() {
return FEATURE_FLAGS.threeButtonCornerSwipe();
}
public static boolean usePreferredImageEditor() {
return FEATURE_FLAGS.usePreferredImageEditor();