summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2023-01-13 10:37:54 +0000
committer Aurélien Pomini <pomini@google.com> 2023-03-02 15:25:09 +0000
commit866185317bfd5178f7fe9984e4ac8b40f786bf3d (patch)
tree692a3851992afa421ecb6948f27b738913070d7b /api/api_test.go
parent2940697c9c7d6edecc9ce1d14d9945d92139bf4e (diff)
Move ImageWallpaper tasks to its own thread
Previously, ImageWallpaper performed its long-running tasks (in particular the bitmap loading) with the @Background executor. Since the bitmap loading can be very long (a few seconds) for some wallpapers, and since the background executor is single-threaded and is used for other UI tasks, we now use a dedicated executor to avoid contention. This CL also adds a provider to a Delayable LongRunning executor in SysUIConcurrencyModule, to be able to use the long running executor for the delayed bitmap unloading. Test: manual Test: atest GtsWallpaperTestCases Test: atest WallpaperTest Bug: 265018814 Bug: 265060422 Change-Id: I0f3320dee67c1ddd5f6294c92c4f5887237a9ed8
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions