summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-52/+49
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * Merge "Enabling Monochromatic on droidfood" into tm-qpr-devLucas Dupin2023-02-021-1/+1
| |\
| | * Enabling Monochromatic on droidfoodMarcelo Arteiro2023-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changing from default false to true Test: Manual Bug: 241778903 Change-Id: I822548737679f9f09f0460a8994a72e89edc0de1 Merged-In: I822548737679f9f09f0460a8994a72e89edc0de1
| * | Update code style for easier mergingPeter Kalauskas2023-01-271-7/+16
| |/ | | | | | | | | | | Test: atest SystemUITests Bug: 266484809 Change-Id: I2650058f3d203f52a950dd246c800b1ddcb460f3
| * Merge "[DO NOT MERGE] Replace UserHandle.CURRENT with UserTracker" into ↵Alex Stetson2023-01-191-1/+1
| |\ | | | | | | | | | tm-qpr-dev
| | * [DO NOT MERGE] Replace UserHandle.CURRENT with UserTrackerAlex Stetson2023-01-171-1/+1
| | | | | | | | | | | | | | | | | | Bug: 249831072 Test: atest SystemUITests Change-Id: Id98ed38495feaab4780452ded14fe24b68ae6944
| * | Base color API updatesMarcelo Arteiro2022-12-141-27/+30
| |/ | | | | | | | | | | | | | | | | | | Including new tokens for shades base color and ColorScheme updates Test: atest ColorSchemeTest Test: atest ThemeOverlayControllerTest Test: atest SystemPaletteTest Bug: 241778903 Change-Id: I45a398245ae45adbfe58d32e11a4d18097e3eca1
* | Battery Styles: Clean up for more customizationsPranav Vashi2023-05-051-7/+1
| | | | | | | | | | Change-Id: If3af86e365c137989cb840aa151c991522e90333 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Revert "Revert "SystemUI: Bring back good ol' circle battery style""Bruno Martins2023-05-051-1/+32
| | | | | | | | | | | | This reverts commit 0b34a54d6328d33e478a67af0df9cb4e5feb0ab4. Change-Id: I4e075410d05410a8d93d33d815bea705b045515a
* | Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-031-5/+17
|\| | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * Monochromatic ThemeMarcelo Arteiro2022-10-191-2/+10
| | | | | | | | | | | | | | | | Definition of Monochromatic Theme and feature flag. Test: atest ColorSchemeTest Bug: 241778903 Change-Id: I3c729d9cb8f9eccb2e435849bd50a88513d99c0a
| * Make CoreStartable an Interface.Dave Mankoff2022-10-131-3/+3
| | | | | | | | | | | | | | | | | | Context is no longer passed in as a constructor arg. Bug: 229228871 Test: manual Change-Id: I3dd5e593f209d120eb36faf33ba629a2066ad3f5 Merged-In: I3dd5e593f209d120eb36faf33ba629a2066ad3f5
| * Fix lingering theme color reset on reboot issueChris Poultney2022-10-051-0/+4
| | | | | | | | | | | | Fixes: 234603929 Test: TreeHugger Change-Id: I3a9adeb666dbb6c0aaa7a7bff4e1771ebe9f4a33
* | Revert t-battery-customizations topic commits before QPR2 mergeMichael Bestas2023-03-261-16/+1
| | | | | | | | | | | | | | Conflicts with QPR2 changes Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I0c0e5cfac6c356266cf91219a5a71ce8b2b3172e
* | base: treewide: Disable debug loggingGeorge Zacharia2023-01-121-1/+1
| | | | | | Change-Id: Ic6cfbb8e5f60b69401fc69ca44e2d879b506003d
* | Battery Styles: Re-evaluate system theme on QS battery location changePranav Vashi2022-12-301-0/+12
| | | | | | | | | | | | | | * Fixes 0% battery on location change to quick status bar. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: If6688354c308dbbf7d66370cfd5e1bd2aacd74f2
* | Battery Styles: Clean up for more customizationsPranav Vashi2022-12-301-27/+0
| | | | | | | | | | Change-Id: Ia5dce5c51821b87f78767949581effc191512b2f Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | SystemUI: Bring back good ol' circle battery styleLuca Stefani2022-12-301-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: 2019-11-30 13:41:05 +0100 SystemUI: Bring back good ol' circle battery style * This code is based on the old Java implementation and converted to Kotlin * Instead of creating different style within the same drawable create one on its own, this makes the code more readable and future proof Change-Id: I23798426e603b277408fb63f4898b385027e7eeb Author: Bruno Martins <bgcngm@gmail.com> Date: 2021-04-08 21:41:24 +0100 SystemUI: Fix status bar battery icon title The wrong string was being picked up which is not capitalized and not even localized. Use the already localized string from SystemUI package. Change-Id: I4be427c95a0fb98c77d450e0791bb8e3442ed3a1 Author: althafvly <althafvly@gmail.com> Date: Mon Jul 11 15:13:40 2022 +0530 SystemUI: Redo circle battery style - Now shows up on QuickSettings panel. - Fixes issues with battery circle style on theme and ui mode change and statusbar icon toggle. - Fixes wrong tint color with circle battery icon. - Re-evaluating system theme to avoid delay in circle battery tint color change. Change-Id: Id90f85e47ce4b9811e9bb67b91169997020300d8 Change-Id: If9c55253c8e8786b4998632241a872104b7e7e8e
* | Merge tag 'android-13.0.0_r16' into t13.0George Zacharia2022-12-151-5/+11
|\| | | | | | | | | | | | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Also included the following reverts: 1. Revert "fw/b: Import Wi-Fi standard icon [1/2]" 2. Revert "Add preference for toggling the wallpaper zooming animation" Co-authored-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I9a6b51e452c28d10411712c59778bb54da5783e9
| * Fixes theme choice on boot when scheme is not from latest wallpaper.Chris Poultney2022-08-121-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | Color theme was getting reset on reboot if the theme was based on a wallpaper that was not the most recently set (e.g., based on lock screen wallpaper when the home screen wallpaper had been set later on). This applied to both static and live wallpapers. Fixes: 229406616 Fixes: 234603929 Test: TreeHugger passes Change-Id: I325e3fae9be8f56b13393320171e78ccffeea249
* | base: extended monet themes [1/3]minaripenguin372022-10-261-0/+39
| | | | | | | | | | | | | | | | | | | | | | ** @semdoc: -- move to Secure as Black theme and avoid unneeded calls for Settings.System -- add backup validators Signed-off-by: minaripenguin37 <alexfinhart@gmail.com> Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: Iff835dc9258ada8f54ef2698e528f3c2c34d9f61
* | SystemUI: support black theme for dark mode [1/3]althafvly2022-10-261-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed with: SystemUI: Update black theme package overlay Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> ** AICP edits: added backup validators Co-authored-by: Jesse Chan <jc@lineageos.org> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I57cd53de8f2c1e4d445441b514875b6af915b858
* | Don't skip theme application if it's already currentMichael Bestas2022-10-211-5/+0
| | | | | | | | | | | | This fixes black theme and font/icon shape customizations. Change-Id: I8c3d3b4634e1ac60d28e4d5ef20bf9c2015e2e18
* | base: add public setting keys for monet tunablesjhonboy1212022-10-211-6/+26
| | | | | | | | | | | | | | | | | | * also allow subclasses of ThemeOverlayController to override reevaluateSystemTheme * added protected methods to get generated colors, so as to override in kdrag0n's impl Signed-off-by: jhonboy121 <alfredmathew05@gmail.com> Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I2f9bb4c096591cc1f92424d4097e80aada15896c
* | SystemUI: Re-evaluate system theme on UI mode changealthafvly2022-10-181-1/+16
|/ | | | | | - Need for power menu to set accurate colors Change-Id: I05d41eaf8ea19ce3b6ce659d01da33cf55de3b7e
* Merge "Move optimization to later part of pipeline" into tm-devTreeHugger Robot2022-05-161-16/+28
|\
| * Move optimization to later part of pipelineLucas Dupin2022-05-161-16/+28
| | | | | | | | | | | | | | | | | | | | | | We were checking if the theme didn't change a bit too early, not allowing for the setting or managed users to be properly evaluated. Test: manual, switching themes Test: atest ThemeOverlayControllerTest Fixes: 230625942 Fixes: 229837333 Change-Id: I164c0b9f045db9077efc1b0f48dfcbbbfea21520
* | Add content color scheme for mediaJames O'Leary2022-05-121-0/+9
|/ | | | | | | | | | | Use content color scheme for media player, which dynamically adapts color palette chromas to the source color, and permits monochrome source colors. Use for media. This allows ex. grayscale album covers to get a grayscale treatment in UI, per design requirement. Bug: 213314628 Test: Manual inspection at runtime Change-Id: Ib8ea007e34758cd7903b3432ab88af695cb22f68
* Revert "Do not ignore forceReload requests"Lucas Dupin2022-05-021-1/+1
| | | | | | | | This reverts commit 376e805767dcb7ced49b08658ce2e1e98ecbc077. Reason for revert: b/17988792 Fixes: 231052010 Change-Id: Ia6677da9031d50fcdd3fadf41cc33192b45a57d8
* Do not ignore forceReload requestsLucas Dupin2022-04-271-1/+1
| | | | | | | | | | A recent optimization was causing reevaluateSystemTheme to be skipped for secondary/managed profiles. This change makes sure that forceReload requests will be honored. Test: atest ThemeOverlayControllerTest Fixes: 229837333 Change-Id: Id868000da327b49264e4ff62aa006b40a87228a3
* Merge "Remove FileDescriptor from systemui.Dumpable." into tm-devDave Mankoff2022-04-071-2/+1
|\
| * Remove FileDescriptor from systemui.Dumpable.Dave Mankoff2022-04-051-2/+1
| | | | | | | | | | | | | | | | | | | | This is the first step in moving over to the new public android.util.Dumpable api. Bug: 217567642 Test: m SystemUI Merged-In: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0 Change-Id: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0
* | [Fix settings] Multi user for settings wrapperAaron Liu2022-04-061-2/+3
|/ | | | | | | | | | | | | Audit and fix SettingsProxy usages to account for multiple users. Note that this does not fix any Settings usages that does not use SettingsProxy. There maybe be outstanding files to change, but from a glance, most of the usages seem to be user aware. Bug: 226391543 Test: Manual and fixed unit tests Change-Id: Ia8ff59fe55049cc79ac73237087d3aaca2cbb3b3
* Skip theme application if it's already currentLucas Dupin2022-03-221-18/+48
| | | | | | | Test: manually change themes Test: atest ThemeOverlayControllerTest Bug: 202673948 Change-Id: I3e6ec65f58dcfb3e35b565e76d86147b913f2668
* Hook up new styles to customization settingLucas Dupin2022-01-061-39/+27
| | | | | | | | | | | | | | | The new styles: - spritz - expressive - vibrant Are now correctly hooked up to the customization setting, allowing for picker integration. Bug: 195969565 Test: atest ThemeOverlayControllerTest Test: adb shell settings put secure theme_customization_overlay_packages '''\{\"android.theme.customization.system_palette\":\"B1611C\",\"android.theme.customization.theme_style\":\"SPRITZ\"}''' Change-Id: I106f05b7f0aade470b8216b47e14ca4aa6db0970
* Correctly implement multi-user theming supportLucas Dupin2021-12-021-43/+79
| | | | | | | | | | | WallpaperColors are now a per user map, and we use UserTracker to consult the userId. This avoids race conditions, given that all userIds are coming from the same controller. Test: manual Test: atest ThemeOverlayControllerTest Fixes: 206736090 Change-Id: I1735f483dc8d5913fd223fb5f13c5059e0ece2da
* Inline most FeatureFlags methods.Dave Mankoff2021-11-171-1/+2
| | | | | | | | These methods are better off inline. Bug: 203548827 Test: manual Change-Id: I83b4d15d5915696519c94752c446978003b0679e
* Fix specified wallpaper color option missing after reboot am: 94568f1e74 am: ↵Ching-Sung Li2021-11-171-1/+32
|\ | | | | | | | | | | | | | | 75448f6a3e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16132041 Change-Id: I0fd73dab606dea7ed231329caa75f30a3c4eec64
| * Fix specified wallpaper color option missing after rebootChing-Sung Li2021-11-171-1/+32
| | | | | | | | | | | | | | | | | | | | Not only check latest wallpaper type (FLAG_SYSTEM, FLAG_LOCK) but also check if the wallpaper color is specified to determine if we reset the theme overlay setting. Bug: 198449419 Test: atest ThemeOverlayControllerTest Change-Id: Ic10c10c6fbccee0f330c67ae8b9bacb947c5e035
| * Don't allow background apps to change themeLucas Dupin2021-11-111-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A background app that changes the wallpaper, was able to change the device theme. This change will apply the theme if the app is on the foreground, like WallpaperPicker would be, but would defer the event until the next power button cycles, like we do with Live Wallpapers, to avoid the same type of DoS. Test: manual Test: atest ThemeOverlayControllerTest Fixes: 205140487 Change-Id: I2086b29ef9bf3bb6fb7d9ebba6e7b8db9392e459 Merged-In: I2086b29ef9bf3bb6fb7d9ebba6e7b8db9392e459
| * Fix race condition wen setting boot color sysprops (round 2)Shan Huang2021-09-201-6/+2
| | | | | | | | | | | | | | | | | | Bug: 197690550 Test: ThemeOverlayApplierTest, ThemeOverlayControllerTest. Set wallpaper and reboot. Change-Id: I7d304d442e3f6839ad047944cae21dc07d7c3dea Merged-In: I7d304d442e3f6839ad047944cae21dc07d7c3dea
| * Add monet to AOSPLucas Dupin2021-09-151-11/+40
| | | | | | | | | | | | | | | | Test: manual Test: atest ColorSchemeTest Test: atest SystemPalette Fixes: 199401230 Change-Id: I0695257765335f12ad47d5d8f40d0885c652bff6
| * Merge "Fix race condition when setting boot color sysproprs." into ↵Shan Huang2021-09-011-3/+3
| |\ | | | | | | | | | | | | | | | | | | | | | sc-qpr1-dev am: 5541e5a2fa Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15680184 Change-Id: I7105fdd55cb6c955ab4cd2fa46a1549f145d8c2c
| * \ Merge "Allow overlays to be notified about theme changes" into sc-qpr1-dev ↵TreeHugger Robot2021-08-191-0/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 45319d558c Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15590962 Change-Id: Ie24a2af8b3ab9d037752de6682494d37749f02ff
* | \ \ Merge "Don't allow background apps to change theme"TreeHugger Robot2021-11-111-2/+7
|\ \ \ \
| * | | | Don't allow background apps to change themeLucas Dupin2021-11-111-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A background app that changes the wallpaper, was able to change the device theme. This change will apply the theme if the app is on the foreground, like WallpaperPicker would be, but would defer the event until the next power button cycles, like we do with Live Wallpapers, to avoid the same type of DoS. Test: manual Test: atest ThemeOverlayControllerTest Fixes: 205140487 Change-Id: I2086b29ef9bf3bb6fb7d9ebba6e7b8db9392e459
* | | | | Rename SystemUI class to CoreStartableDave Mankoff2021-11-091-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 205725937 Test: manual Change-Id: I045a8b4b21cae0f4a6e61502384e2b1a607bc1c6
* | | | Fix race condition wen setting boot color sysprops (round 2)Shan Huang2021-09-201-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 197690550 Test: ThemeOverlayApplierTest, ThemeOverlayControllerTest. Set wallpaper and reboot. Change-Id: I7d304d442e3f6839ad047944cae21dc07d7c3dea
* | | | Add monet to AOSPLucas Dupin2021-09-141-11/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: manual Test: atest ColorSchemeTest Test: atest SystemPalette Fixes: 199401230 Change-Id: I0695257765335f12ad47d5d8f40d0885c652bff6
* | | | Merge "Fix race condition when setting boot color sysproprs." into ↵Shan Huang2021-09-011-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sc-qpr1-dev am: 5541e5a2fa am: 5c896054f0 am: d2ed0ea94c Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15680184 Change-Id: I418f77abc093c192fce07c3c9e264478c4a789b7