summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayApplier.java
Commit message (Collapse)AuthorAgeFilesLines
* fw_base: ThemeOverlayApplier: Excuse ICON_THEME_PICKER category as wellGeorge Zacharia2022-10-211-5/+1
| | | | | | | ** they will be handled in overlays_AICP Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I0f0963a7fd30d8d65187623eec57a904a6c2414f
* ThemeOverlayApplier: Excuse ICON_PACK.LAUNCHER & SETTINGS categoriesGeorge Zacharia2022-10-211-8/+0
| | | | | | ** they will be handled in overlays_AICP Change-Id: I67f5b0ca9d71f6b65736f538d0f9cb246ab56773
* ThemeOverlayApplier: Excuse ICON_PACK.ANDROID & SYSUI categoriesGeorge Zacharia2022-10-211-11/+2
| | | | | | ** disable icon_pack.android. will be handled in overlays_AICP Change-Id: Ia966e3b92252968bc807de337db373498597ceb3
* ThemeOverlayApplier: Excuse categories optimised for AICPGeorge Zacharia2022-10-211-7/+0
| | | | | | | | These categories are well managed by AICP's own codes so excuse them here - Adaptive Icon Shapes - System Fonts Change-Id: If3940dd7ee07e885080b327a6c0e62fe20a1cc77
* Remove contents of DependencyProvider.Dave Mankoff2022-04-141-5/+9
| | | | | | | | Now marked as deprecated. Bug: 229228871 Test: manual Change-Id: I872806af23243171e9123c18a5a06201513a3d79
* 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
* Hook up new styles to customization settingLucas Dupin2022-01-061-0/+2
| | | | | | | | | | | | | | | 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
* Fix race condition wen setting boot color sysprops (round 2)Shan Huang2021-09-201-3/+1
| | | | | | | | Bug: 197690550 Test: ThemeOverlayApplierTest, ThemeOverlayControllerTest. Set wallpaper and reboot. Change-Id: I7d304d442e3f6839ad047944cae21dc07d7c3dea
* Fix race condition when setting boot color sysproprs.Shan Huang2021-08-271-6/+12
| | | | | | Bug: 197690550 Test: ThemeOverlayApplierTest, ThemeOverlayControllerTest Change-Id: I514bf94c1e7c26072f729cb8bf5295d9574b6f02
* Enable overlays that are pending creationLucas Dupin2021-07-211-4/+6
| | | | | | | | | They don't exist yet, but enabling them won't make OverlayManager fail, creation will be exectured on the same transaction. Test: manual Fixes: 194155751 Change-Id: I388f382592dfd1aa4db5bfa047b9cfcb4d489e78
* Verify if overlay exists before applying itLucas Dupin2021-07-011-1/+9
| | | | | | Fixes: 192557418 Test: ThemeOverlayApplierTest Change-Id: Id47ad96ca5494f803c92d6bb8dc338a15621a961
* Keep attributes when wallpaper changesKunhung Li2021-06-081-0/+4
| | | | | | | | | - Keep color source to know which wallpaper changes. - Check isDestinationBoth by flags. Bug: 186194356 Test: atest ThemeOverlayControllerTest Change-Id: I28ec6ac3c67ce89f4e70f32db90c1123f1449228
* Refine color overlay attributesKunhung Li2021-05-191-0/+4
| | | | | | | | | | - Clear OVERLAY_COLOR_INDEX attributes when wallpaper changes. - Update OVERLAY_COLOR_BOTH to know wallpaper color is for both home and lock screen or not. Bug: 186194356 Test: atest ThemeOverlayControllerTest Change-Id: I76a0ce6c7e8455d21a890f7ac44e8ffe90dcb367
* Reset the color settings if the wallpaper changesSantiago Etchebehere2021-05-111-0/+7
| | | | | | | | | If using Wallpaper colors, clear the color overlay attributes from THEME_CUSTOIZATION_OVERLAY_PACKAGES Bug: 187876084 Test: atest ThemeOverlayControllerTest Change-Id: I22af3d8b354e04e44117a91dcb2590d7f3338cc9
* Move OM calls to the backgroundLucas Dupin2021-03-301-33/+39
| | | | | | | | Test: manual Test: atest ThemeOverlayApplierTest Bug: 181591270 Bug: 181617612 Change-Id: I42907260fb2287d58d9e9c22740fbb45e0c64f05
* Update system palette APIsLucas Dupin2021-03-201-6/+2
| | | | | | | | | | | | | | UX landed on a format where we have 2 neutral palettes, and 3 accent palettes. It's the ideal format to play with elevation and hue rotation, in order to have a more vibrant and less muddy UI. Fixes: 181986389 Bug: 173553055 Test: atest SystemPalette Test: atest ThemeOverlayControllerTest Test: atest ThemeOverlayApplierTest Test: atest DeviceDefaultThemeTest Change-Id: I80d3f7d1cc92e97efcb40fe6dc9f09918321d273
* Only enable overlay where package is installedLucas Dupin2021-02-251-14/+28
| | | | | | | | | | | We cannot try to enable icon overlay on managed users because neither launcher nor the wallpaper picker is installed on managed profiles. Trying to do so will result in a SecurityException. Fixes: 180461062 Test: manual Test: atest ThemeOverlayApplierTest ThemeOverlayControllerTest Change-Id: I25a07f7a6aa41b6c92c8928091219c4b0fb22770
* Fix accent color not being appliedLucas Dupin2021-02-241-2/+5
| | | | | | | Test: adb shell cmd overlay list | grep systemui Test: atest ThemeOverlayApplierTest Fixes: 181082566 Change-Id: If1beed53eaddf28db80d2b51902d068c4a35c732
* Add neutral palette, rename main and accentLucas Dupin2021-02-161-0/+2
| | | | | | | | | | | | Added new netrual colors palette, and renamed main and accent palettes to primary and secondary respectively. This was done to align with the new color spec. Test: atest SystemPalette Test: atest ColorTest Test: atest ThemeOverlayControllerTest Bug: 171916625 Change-Id: Ia56eb1e96a01c3ff8a64de0e1d632d4436bc9048
* Merge "Catch remote exception" into sc-devLucas Dupin2021-02-131-1/+5
|\
| * Catch remote exceptionLucas Dupin2021-02-121-1/+5
| | | | | | | | | | | | Fixes: 180112740 Test: make Change-Id: Ic4a5e571a3f5d4d89fb2e34e18682d2cee98195b
* | User OverlayIdentifier instead of @ColorIntLucas Dupin2021-02-101-74/+13
|/ | | | | | | | | | Migrated the feature flag to the new FeatureFlags infrastructure and replaced the @ColorInt interface by a more flexible OverlayIdentifier. Test: atest ThemeOverlayApplierTest Test: atest ThemeOverlayControllerTest Bug: 171916625 Change-Id: I701fd5bda2aca67c069f25a22d397d56b077d450
* Apply theme in single transactionLucas Dupin2021-02-101-25/+32
| | | | | | Fixes: 173048361 Test: atest ThemeOverlayApplierTest Change-Id: Ie4b56117411c0185c606e9ecdf30f165291bf400
* Monet feature flagLucas Dupin2020-12-141-0/+6
| | | | | | | | | Feature flag to disable/enable system colors based on the wallpaper. Bug: 174676673 Test: adb shell setprop persist.sysui.monet 0 Test: adb shell setprop persist.sysui.monet 1 Change-Id: I3e8035d772a007f6d3e3c36cfd656144e558b9e5
* 4/N The road to Material NEXT (color int format)Lucas Dupin2020-12-011-1/+1
| | | | | | | | Fix issue where leading zeros would be missing from overlay names. Bug: 173561906 Test: manual Change-Id: If19f18099ae3e7c3c2d852ebb991da211566c5e2
* Let wallpaper colors drive system themeLucas Dupin2020-11-111-0/+277
Refarctored ThemeOverlayManager and ThemeOverlayController to conform to current SysUI paradigm (dependency injection) and registered WallpaperManager listener so themes can be driven by system colors. Test: manual Test: atest ThemeOverlayControllerTest Test: atest ThemeOverlayApplierTest Bug: 171916625 Change-Id: Icbc1e0f6bcda160b4ba9dd39fe29938bce538689