summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Let wallpaper colors drive system themeLucas Dupin2020-11-111-187/+0
| | | | | | | | | | | | 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
* Only throw SecurityException for OverlayManager callers targeting RWinson2020-01-161-1/+1
| | | | | | | | | | | | | | | To maintain existing API behavior, if a legacy permission failure or actor enforcement failure occurs for an app not targeting R, coerce it into an IllegalStateException, which existed in the source prior to R. For apps targeting R, throw exceptions as they are. Bug: 147340954 Test: atest com.android.server.om Change-Id: Ib27ddf1db89782458c315cae2cc98a78efd9fe86
* Catch ISE in ThemeOverlayManager.Amin Shaikh2019-06-241-4/+9
| | | | | | | | Do not crash systemui if an OverlayManager call fails. Fixes: 135925242 Test: make Change-Id: Ib03ac4a08ce4f779149053718ad0d3576a807490
* Add icon packs for themepicker.Amin Shaikh2019-04-291-2/+11
| | | | | | | | | - Add 3 icon packs targetting the themepicker package - Add support in systemui to enable packages in that category Fixes: 130788873 Test: make; switch themes Change-Id: I414c882410fc92c6320785ddf858bdf95f37053e
* Improve theme application transition.Amin Shaikh2019-04-251-10/+16
| | | | | | | | | | | | | - Remove duplicate app info changed / activity relaunch messages caused by applying several overlay packages sequentially; this eliminated the double launcher activity restart - Asynchronously enable each overlay from SystemUI; this increases the speed of enabling overlays, thus decreasing the effect of the frozen activity transition Fixes: 130151718 Test: make; change themes many times Change-Id: Idcf04edc88cb9391b9920b9e1f9f873a5b62b311
* Mitigate screen flashing on overlay change.Amin Shaikh2019-04-111-23/+29
| | | | | | | | | | Enable/disable overlays targetting launcher, then android. This appears to increase the likelihood that the launcher activity restart is not visible to the user. Bug: 130151718 Test: make and change overlays Change-Id: Ide7bde9981309f5fb1f96f63f08582169392637e
* Create ThemeOverlayController in SystemUI.Amin Shaikh2019-04-041-0/+161
This service runs as user 0 and applies the current users' theme customization overlay settings to user 0, associated work profiles, and user 0 for packages that affect systemui Bug: 126238021 Bug: 124426955 Test: unit tests; switch to secondary user and guest user and change overlays Change-Id: I35dd9113eab1b1c1cfc81f0b38aa04900fa740dd