diff options
author | Lyn Han <lynhan@google.com> | 2021-01-28 20:40:43 -0600 |
---|---|---|
committer | Lyn Han <lynhan@google.com> | 2021-01-29 17:50:57 -0600 |
commit | c4037509bcf627a1c1982f47031a3bbe00b5a6c3 (patch) | |
tree | 024cb1cdfdd3e23adefb8f4b157e334e50ee783a /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 8f046c76d7a93e8b343f65ccd480fb065e2e50e2 (diff) |
Make AmbientState injectable
1) Mark AmbientState as SysuiSingleton to allow access from
- PanelBar
- NotificationStackScrollLayout
2) Mark AmbientState constructor with @Inject
for Dagger use when needed
3) Ensure that AmbientState params are injectable
- Context --- AmbientState is now global, and has access to application
context; we can leave this unchanged (otherwise we mark it with
@Named(VIEW_CONTEXT) to ask for the subcomponent view context)
- SectionProvider --- bind to NotificationSectionsManager in
NotificationsModule, the closest module to AmbientState
4) Add AmbientState to constructors for NSSL and NPVC
- Have PanelBar update AmbientState directly (via PVC) instead of
piping changes through layers of classes
Fixes: 177921542
Test: log to verify that shade open state updates correctly
Test: build sysui-studio with
sysuiTestDebug variant and SystemUITests config, then run:
adb shell am instrument -w -e class com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayoutTest com.android.systemui.tests
Change-Id: I0a50d603b49c9f55f1af41084974aee59e9ce95b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions