commit | 6a5370a03b180bf73dbc5249e47f83f69b006c49 | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Wed Feb 21 20:27:35 2024 -0600 |
committer | Riddle Hsu <riddlehsu@google.com> | Wed Feb 21 15:54:50 2024 +0000 |
tree | 50c482032c00c9656d3263959fc8f562308ab9fc | |
parent | ce8d4a38b4c6a925a5c24c365187ba8f2e6f61f4 [diff] |
Simplify finding wallpapers Because mWallpaperTokens already contains all wallpaper windows, it is unnecessary to traverse all windows. Then it can be 10x faster. By making mWallpaperTokens follow z-order, that also improves the correctness of getTopVisibleWallpaper. Remove startWallpaperAnimation by the way as it is dead code for years. Bug: 163976519 Test: WallpaperControllerTests#testShowWhenLockedWallpaperTarget Change-Id: Ifa3bf54ebeee049ccc1952884d4a213a2ee9f39d