summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2024-11-29 16:40:47 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2024-11-29 16:40:47 +0000
commitbbe0e03fcc4a587b1f6994df4cd54f3e850779d4 (patch)
tree3b9aa4dc9daa30cae89155bcee4bc08552cfd005 /libs/androidfw/ResourceTimer.cpp
parentf2290c21dbd263254e85e46a1467d73cc69b5aa5 (diff)
Use correct context, resources and configuration in bouncer + keyboard packages
Thanks to a linter that highlights non-annotated usages of resources, we realized several classes were not using the correct context. Here: - A few classes in the biometrics package were using ShadeDisplayAware context and resources, when they should have used the global one (for the default display), as they were tied to the finger print sensor (that at least for now, is only on the device) - In a few other classes, @Application context and @Main resources have been used, as they are unrelated to the shade (and are not planning to move between displays) - Many QS classes were not using the correct context. Now all those classes are either annotated with @ShadeDisplayAware, or @Main/@Application. Generally, there shouldn't be not-annotated usages of context, resources, Layout inflator or Configuration{Repository|Interactor|State} after this cl. There are 2 exceptions that are being clarified. The expectation is that when the flag is off, there are no runtime changes (as the instances provided, even after these changes, will be exactly the same). Bug: 362719719 Bug: 374267505 Test: presubmits + e2e tests Flag: com.android.systemui.shade_window_goes_around Change-Id: I6bc4fd5d3ccdd20e65232844488a748490bcc7fd
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions