summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert^2 "Change SysemUIFactory to SystemUIInitializer."Dave Mankoff2022-07-141-148/+10
| | | | | | | | | | | Restores ag/18917521 Reverted in ag/15142270fe17845890d147aca8720a32b8c73ecf Test: Ran failed test in http://b/238359875 Bug: 235624311 Change-Id: I08457dac1aa09c44f0c9c02349e8c6773587cd84 Merged-In: I08457dac1aa09c44f0c9c02349e8c6773587cd84
* More logging when failing to inject SliceProvider.Dave Mankoff2020-11-181-1/+2
| | | | | | | | | This continues to be an exception that shouldn't be happening. ADding more logging to try to get insight into the problem. Test: manual Bug: 168778439 Change-Id: I2fdaa366c70f1551a768f48f7ac6df966e731fe3
* 6/N Move everything into SysUIComponent.Dave Mankoff2020-08-161-7/+7
| | | | | | | | | | | | | | | 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
* 5/N Reduce number of accessors of root component.Dave Mankoff2020-08-111-2/+15
| | | | | | | | | | | | | | Ensure that only the code that actually needs the root component asks for it. This also fixes ContentProvider injection (a bit). They no longer have to manually run injection on themselves, as long as they implement SystemUIAppComponentFactory.ContextInitializer properly and define an inject(MyClass) method in the root component. Bug: 162923491 Test: manual && atest SystemUITests Change-Id: I507859f5f8d89bdde5b10e78b54c5cfbf28737bc
* Make BroadcastReceivers Injectable.Dave Mankoff2019-11-011-0/+20
| | | | | | | | | | GlobalScreenshot.ActionProxyReceiver was calling getComponent(context, StatusBar.class). With this change, StatusBar is now injected into the constructor of that class. Bug: 143224715 Test: atest SystemUITests Change-Id: I2f635ce98c1c0e2326784c4558b28ce51f347fa9
* Move DI related coded into new dagger package.Dave Mankoff2019-10-211-0/+2
| | | | | | | | | This adds new Dagger qualifiers for BgHandler, BgLooper, MainHandler, MainLooper, and MainResources, replacing the use of @Named for them. Bug: 142954072 Test: atest SystemUITests Change-Id: Ibbda8998e587474c26740ba8d49a8b3f90d89efa
* Ensure component helper is set before resolving activities.Dave Mankoff2019-09-251-0/+6
| | | | | | Bug: 141550642 Change-Id: Id7fe7a9098eaf0947f94a2250e1ac51eb9dcb63f Test: atest SystemUITests
* Provide the ability to inject into Activities.Dave Mankoff2019-09-181-0/+14
| | | | | | | | | Mocks out KeyguardUpdateMonitor in all tests, as our unit tests shouldn't care about it (unless they're testing it directly). Bug: 140430268 Test: atest SystemUITests Change-Id: I6a2b5231c434d0f26319090340b9c2a0e903f4b6
* Workaround multiple instance of AppComponentFactory.Dave Mankoff2019-09-131-11/+4
| | | | | | | | | | When a device is newly reformatted, we can end up with multiple instances of AppComponentFactory. We need to ensure they are all injected into properly so that we don't get NPEs. Bug: 140556803 Test: atest SystemUITests && manual Change-Id: Ia2076124b9435a6a8ff6305f4442df8cf7f1034c
* Add logging to app startup to find flaky tests.Dave Mankoff2019-09-101-0/+14
| | | | | | | | | We have something suspicious going on during application startup, per the associated bug. This will help track it down. Bug: 140556803 Test: atest SystemUITests Change-Id: Iac0b03bbaacf4f6991e9926709f4dd89177eb6c0
* Fix the looper that KeyguardUpdateMonitor is using.Dave Mankoff2019-08-311-6/+12
| | | | | | Bug: 139051615 Test: atest SystemUITests && atest SystemUIGoogleTests Change-Id: Ic4dd5978001c208504c137cee41f363d7e70b1b5
* Allow ContentProviders to be injected into.Dave Mankoff2019-08-281-18/+48
| | | | | | | | | This also allows ContentProviders to call Dependency.get() and similar, dagger-dependent functions. Bug: 139479357 Test: atest SystemUITests Change-Id: I48f370f9506417b04394923fab6bf8cbf19804a4
* Allow Services to be created through Dagger.Dave Mankoff2019-07-081-0/+76
This is a significant change that allows Services to have their constructed injected into. This change includes DozeService as an example, injecting the FalsingManager into its constructor. Bug: 136279712 Test: atest SystemUITests Change-Id: Ib58f8763c996fbc2aea07ead56493d2d9e936f5b