summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2023-06-29 18:17:00 +0000
committer Eric Biggers <ebiggers@google.com> 2023-10-10 22:52:36 +0000
commit73d7a1bf415a89cb4944afc07a2ff16c2fd58d00 (patch)
treeb55ccbfb6ca9bd654ad3d846b6fbb658c775dc36 /libs/hwui/FrameInfoVisualizer.cpp
parent0ebf8d8d74ab51b3094b32a67cda05026d7a763f (diff)
Replace isWeaverAvailable() with getWeaverService()
isWeaverAvailable() has to be called before weaverVerify() and weaverEnroll(); otherwise mWeaver might still be null. However, this was not enforced and was easy to forget to do. This CL therefore changes the design slightly to make weaverVerify() and weaverEnroll() take IWeaver as an argument. To get the IWeaver, getWeaverService() is called, taking the place of isWeaverAvailable(). Note that this is analogous to LockSettingsService#getGateKeeperService. Bug: 287705522 Test: Treehugger Change-Id: I70c26232a9b300a7e6e2c815db6c143836c42ec3 Merged-In: I70c26232a9b300a7e6e2c815db6c143836c42ec3 (cherry picked from commit 922aaa24fac9be3c62439d9ad1faa81e38b5a1b3)
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions