summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/plugins/PluginDependencyProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Add Customization LibHawkwood Glazier2022-11-181-1/+0
| | | | | | Bug: 258424862 Test: Manually rebuilt everything Change-Id: If683023d2f592bb09827a50fbc79559b5b57cb3a
* Daggerize Plugin code.Dave Mankoff2021-08-091-6/+8
| | | | | | | | | | | | | | | | | | Restructure the dependencies within all the plugin code and make it suitable for injection. There is still a lot of gnarly code in the plugin architecture, and this is the first step towards cleaning it up. This is also the first step towards being able to load plugins (like the FlagReaderPlugin) _before_ the dagger graph is setup. With this change, it is theoretically possible to directly construct the plugin infrastructure, rather than relying on calls to Dependency#get and other SystemUI idiosyncracies. Bug: 194781951 Test: manual && atest SystemUITests Change-Id: I04da3d12211d9f9d1a5c2c5cd27b6a2d81c3907e
* 6/N Move everything into SysUIComponent.Dave Mankoff2020-08-161-2/+2
| | | | | | | | | | | | | | | 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
* Clean up DependencyProvider a bitJason Monk2018-12-211-0/+9
| | | | | | | | | Create DependencyBinder which is abstract and can tell dagger how to convert directly between interfaces and implementations without requiring code for it. Test: compile (which runs dagger) Change-Id: I7013ee12d37172441e2c70cf2fe36f707975c821
* Move plugin support to shared libTony Wickham2018-09-281-0/+1
| | | | | | | | | | | | | In addition to changing imports, this required some changes to use java 7, since that's what the shared lib needs to be for launcher. See bug for more details on this project. Test: "atest com.android.systemui.shared.plugins" build succeeds and all tests pass Bug: 115877296 Change-Id: Ib79ede0a61664df0ba1a194632a345d2229777fc
* Make sure to synchronize on references to plugin dependenciesJason Monk2017-04-061-4/+8
| | | | | | Test: make Change-Id: I361cb3e4ac4ff5d19e2b0322531c8c614f5b7635 Fixes: 36867744
* Add method for plugins to reference global dependenciesJason Monk2017-03-011-0/+50
The new annotation versioning system allows plugins to share common global interfaces that can be versioned on their own. To facilitate this add a static method for plugins to get a hold of dependencies. To get any dependency a plugin must @Requires it so it can be version checked. Test: Plugin that uses the new call. Change-Id: I8e01260f8fbc14465502d506a7aa08212795ad9b