diff options
author | 2025-02-05 22:46:21 +0000 | |
---|---|---|
committer | 2025-02-10 04:32:34 +0000 | |
commit | 66eb980ce012145cc97779b6628a4099335cba6d (patch) | |
tree | 788476d6b1f00ea37f8ad612ca47195b9dd3010a /cmds/bootanimation/BootAnimation.cpp | |
parent | 34c706fb9cd96feb3b0b05358fdce02734abe534 (diff) |
Add a flow that can be used to determine whether cross window blur is enabled/supported right now.
CrossWindowBlurListeners handles the following checks for blur:
1. whether the device supports blur or not (ro.surface_flinger.supports_background_blur property)
2. whether battery saver is enabled or not
3. whether critical thermal status has reached or not
4. whether blur is disabled in dev settings or not
5. whether multimedia tunneling is enabled or not.
Repository adds two additional checks:
1. whether persist.sysui.disableBlur is set or not (used by tests)
2. whether ActivityManager.isHighEndGfx is true or not, BlurUtils has this check before enabling or disabling blur.
Bug: 391409723
Test: Tried adding unit tests but it might be flakey because of ActivityManager.isHighEndGfx check, it is unclear how this can be mocked
Flag: com.android.systemui.bouncer_ui_revamp
Change-Id: Ie4ec36e132fef04a40bd3e0c054065554be1b302
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions