Commit Graph

3 Commits

Author SHA1 Message Date
Dave Mankoff
ecfbd9b3aa 6/N Move everything into SysUIComponent.
It is far easier to move _everything_ into SysUIComponent, and then
selectively promote things back to GlobalScope and/or WMScope than
it is to try to do it one at a time. With this change, though lots
of files are touched, very little actually changes structurally.

After this change goes in, folks should stop using @Singleton quite
so freely. Most things should live in @SysuiSingleton. @Singleton
is due to quickly be replaced by @GlobalScope.

Bug: 162923491
Test: atest SystemUITests && manual
Change-Id: Idc31d3d83b030581fb1fa869f7fafc4f2d3a8828
2020-08-16 16:08:25 -04:00
Dave Mankoff
4c73e65592 Make StatusBarNotificationActivityStarter injectable.
This is one step in the process of removing calls to
Dependency.get(MAIN_HANDLER) and Dependency.get(BG_HANDLER).

Bug: 144503618
Test: atest SystemUITests
Change-Id: Ifbd49efcfe1eaf8af355e6dde4c70bb26c823cd2
2019-11-18 17:16:46 -05:00
Mark Renouf
6b2331cb3a Adds StatusBarNotificationActivityStarterTest
This change includes a refactoring to extract static methods from
PreviewInflater into a seperate class to allow for easier testing.

This allows tests to bypas interaction with package manager.

Test: atest SystemUITests
Change-Id: I3211395e7eb78351106cabd8c473f11f06bb0f97
2019-03-22 14:53:07 -04:00