diff options
| author | 2024-03-13 12:51:53 +0000 | |
|---|---|---|
| committer | 2024-04-05 17:09:39 +0000 | |
| commit | f0f455f96d1103652cb9f68934997717b5b436ee (patch) | |
| tree | 12addfcd0bfd0cfd7c69f224786fd10ea904b5a3 /libs/androidfw/StringPool.cpp | |
| parent | 8fd912f6053195d66103e352d5c1a728f8529dd2 (diff) | |
Move color extraction to ImageWallpaper
Currently, the color extraction of ImageWallpaper is done in
system-server and not in ImageWallpaper itself.
This was previously mandatory since the lockscreen wallpaper could be an
ImageView and not an ImageWallpaper engine. Now that all static
wallpapers are ImageWallpaper instances, we can do the color extraction
directly in ImageWallpaper.
This will avoid IO operations in system_server and deflake some tests
related to color change listeners.
Flag: ACONFIG com.android.window.flags.offload_color_extraction DEVELOPMENT
Bug: 328791519
Test: atest WallpaperManagerTest --iterations 10
Test: atest ImageWallpaperTest
Test: atest WallpaperLocalColorExtractorTest
Change-Id: I381767aae470fa132e8841a4e97f1e3923084a3a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions