summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2023-06-02 16:34:34 +0000
committer Aurélien Pomini <pomini@google.com> 2023-06-14 12:39:09 +0000
commitbc34c3239543549af88b0b6f323b88fae3690426 (patch)
treebeb3b4f937ca6e1deb2d3cad3571e57992a29679 /libs/hwui/FrameInfoVisualizer.cpp
parent267665ed8288e7e61edc633aba8c233bff82613d (diff)
Don't log an error if system wallpaper is applied to lock
Don't log an error if the lock image doesn't exist and the system image exists, since this is an intended behaviour. If the lockscreen was supposed to have an image but the image could not be backed up, we will see the error from the backup side. Adapt the test accordingly. Now, we only call either both restoreFromStage(FLAG_LOCK) and restoreFromStage(FLAG_SYSTEM), or call only restoreFromStage(FLAG_SYSTEM | FLAG_LOCK). Also, use this opportunity to make sure we only call file.exists() at most once, to reduce IO operations. Test: atest WallpaperBackupAgentTest Bug: 283091821 Change-Id: Ia19fcefc1676e8bd1fc0cf80c7a959c4d6f5839f
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions