summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/dagger/GlobalModule.java
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup GlobalModule.Dave Mankoff2022-04-201-36/+14
| | | | | | | | Add @Application Context for injection, planning for future cleanup. Bug: 229228871 Test: manual Change-Id: I108615bda54a92c1533ec2d1e3937291004388d1
* Register hinge angle sensor listener in a background threadNicolo' Mazzucato2022-03-041-0/+16
| | | | | | | | | | This was taking ~13ms on the ui thread. I had to move up the sysui background executor as it was only provided inside sysui dagger component, but those classes are also used in WM component. Bug: 221394115 Test: Folding device and check animation Change-Id: I766d879d68f555214f9c1d2434cfab732937cd32
* Add app window unfold animationNick Chameyev2021-10-011-0/+2
| | | | | | | | | | | | Creates a controller in the Shell that manipulates SurfaceControl leash of the current active full screen task and animates it based on the current unfold transition progress. Bug: 193795714 Test: manual Test: atest com.android.wm.shell.fullscreen.FullscreenTaskListenerTest Change-Id: I8b9f4e0530042b333c3b6b793d39049932878bb8
* Daggerize Plugin code.Dave Mankoff2021-08-091-1/+4
| | | | | | | | | | | | | | | | | | 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
* Merge "Remove FlingAnimationUtils.Builder provider."Dave Mankoff2020-12-021-7/+3
|\
| * Remove FlingAnimationUtils.Builder provider.Dave Mankoff2020-12-021-7/+3
| | | | | | | | | | | | | | | | | | | | | | Mark it as directly injectable. Use a Provider<> of the Builder so that, if DisplayMetrics changes, the changes get picked up. Fixes: 174653877 Test: manual Change-Id: If8b404cbb7f5111144c21ce4810323d95f962359
* | Add Tests for the BrightLineFalsingManager.Dave Mankoff2020-12-011-0/+8
|/ | | | | | | | | | Sets up some more dagger injection and removes all the "new Classifier(...)" from its constructor, allowing them to come from outside. Bug: 172655679 Test: atest SystemUITests Change-Id: I916de7d5ee60ec2183c6401ec222867fc5eff823
* Migrate Bubbles to wm-shell (5/n)Tony Huang2020-11-041-18/+0
| | | | | | | | | | Move bubbles package and related resources to shell package, also copied some used codes and resources. Bug: 161980186 Test: atest SystemUITests Test: atest WMShellUnitTests Change-Id: Ia108bd4149b3c3bf86631ba1a7a6bce0e76af78f
* Isolate shell dependenciesWinson Chung2020-10-191-0/+45
| | | | | | | | | | | | | | | | - Add initializer path for required shell dependencies - Move shell dependencies into WMComponent scope, and expose shell features to SysUIComponent explicitly - Moved temporary Bubble's specific dependencies to global scope until the migration finishes Bug: 162923491 Test: atest WMShellUnitTestsWMShellUnitTests Test: make SystemUIGoogle CarSystemUI ArcSystemUI AAECarSystemUI Test: Verify pip/split/onehanded/bubbles still works Change-Id: Ibaa8b5a718f32a1fff49d1756a18a009d6ad164f Signed-off-by: Winson Chung <winsonc@google.com>
* Stand up an example of a WMShell api.Dave Mankoff2020-08-261-1/+5
| | | | | | Fixes: 166173556 Test: manual Change-Id: I43e3ebeddb48430ae76f8f58027363c048fb4d83
* Move SystemServicesModule to Global Scope.Dave Mankoff2020-08-241-43/+3
| | | | | | | | | | | | | | | | | | Rename SystemServicesModule to FrameworkServicesModule to make the name less ambiguous. Include the GlobalModule in all the various GobalRootComponents. Include the WMModule in all the various GlobalRootComponents (it is currently empty so its exclusion was not breaking anything, but it should soon!) LocalBluetoothManager has to be moved out of the module as it requires a handler for instantiation. Bug: 162923491 Test: manual Change-Id: Id8498b661759ce0846ee904398dfcfe20ee744e9
* 6/N Move everything into SysUIComponent.Dave Mankoff2020-08-161-0/+78
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