summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/dagger/DependencyProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup GlobalModule.Dave Mankoff2022-04-201-1/+0
| | | | | | | | Add @Application Context for injection, planning for future cleanup. Bug: 229228871 Test: manual Change-Id: I108615bda54a92c1533ec2d1e3937291004388d1
* Remove contents of DependencyProvider.Dave Mankoff2022-04-141-269/+14
| | | | | | | | Now marked as deprecated. Bug: 229228871 Test: manual Change-Id: I872806af23243171e9123c18a5a06201513a3d79
* Move ClipboardOverlayController broadcast handling to background threadJernej Virag2022-03-311-10/+0
| | | | | | | | BroadcastDispatcher and BroadcastSender will handle this on background threads and avoid jank. Bug: 224545601 Test: Tested ScreenshotView functionality on a physical device Change-Id: I3b1c0d3f14dc4e1010a2e8754aac57755ce726cc
* Add clipboard loggingMiranda Kephart2022-03-291-2/+4
| | | | | | | | | Bug: 218876652 Fix: 218876652 Test: make statsd_testdrive && $ANDROID_HOST_OUT/bin/statsd_testdrive -terse 90 Change-Id: Ie08530adcb50ac46b963619e7865c37c167989cd
* Tests for ClipboardListenerMatt Casey2022-02-161-0/+8
| | | | | | | | Had to refactor a bit to make things more injectable. Test: atest ClipboardListenerTest Bug: 201090289 Change-Id: If1938272da349bcb374eb9893f785bbf993a7ffd
* Merge "Add app window unfold animation" into sc-v2-dev am: 59cc5f2f31 am: ↵TreeHugger Robot2021-10-051-37/+0
|\ | | | | | | | | | | | | | | 3205d69b0b Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15777797 Change-Id: I4a2b1a37c4b9b483d2cef2f609a12a6e9fab6664
| * Add app window unfold animationNick Chameyev2021-10-011-37/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * Manually register Dumpables to DumpManagerNed Burns2021-09-091-93/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dependency.get() automatically registers its managed objects to the DumpManager if they implement Dumpable. However, if code is refactored that removes all usages of Dependency.get() in favor of Dagger injection, then there is no longer a guarantee that the class in question will be registered to DumpManager (and so included in bug reports). Instead, remove the auto-registration feature of Dependency in favor of manually registering all dumpables with the DumpManager. Bug: 198713580 Test: atest Change-Id: Ie02a44fb7da0b76bf53da874cc9eee030a1b9173 Merged-In: Ie02a44fb7da0b76bf53da874cc9eee030a1b9173
| * Merge "Fix race condition when setting boot color sysproprs." into ↵Shan Huang2021-09-011-2/+4
| |\ | | | | | | | | | | | | | | | | | | | | | sc-qpr1-dev am: 5541e5a2fa Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15680184 Change-Id: I7105fdd55cb6c955ab4cd2fa46a1549f145d8c2c
* | | Move NetworkController & friends to a connectivity packageEvan Laird2021-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | None of the files have been changed other than moving the package around Test: atest SystemUITests Bug: 197851948 Change-Id: I1906761ef4d0f6ab979b8338cc1842b649982d70
* | | Manually register Dumpables to DumpManagerNed Burns2021-09-081-93/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dependency.get() automatically registers its managed objects to the DumpManager if they implement Dumpable. However, if code is refactored that removes all usages of Dependency.get() in favor of Dagger injection, then there is no longer a guarantee that the class in question will be registered to DumpManager (and so included in bug reports). Instead, remove the auto-registration feature of Dependency in favor of manually registering all dumpables with the DumpManager. Bug: 198713580 Test: atest Change-Id: Ie02a44fb7da0b76bf53da874cc9eee030a1b9173
* | | Merge "Fix race condition when setting boot color sysproprs." into ↵Shan Huang2021-09-011-2/+4
|\ \ \ | |/ / |/| / | |/ | | | | | | | | sc-qpr1-dev am: 5541e5a2fa am: 5c896054f0 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15680184 Change-Id: I0a91ed6ca53b4dcfdcea7af47288a73866d19095
| * Fix race condition when setting boot color sysproprs.Shan Huang2021-08-271-2/+4
| | | | | | | | | | | | Bug: 197690550 Test: ThemeOverlayApplierTest, ThemeOverlayControllerTest Change-Id: I514bf94c1e7c26072f729cb8bf5295d9574b6f02
* | Update unfold transition package nameNick Chameyev2021-08-181-3/+3
| | | | | | | | | | | | | | | | | | | | These changes contain only updating of the package name. Changing it to more specific package name in order to not confuse with Android SDK classes. Bug: 190818044 Test: manual Change-Id: Id9d88b9d51c8033387f693fc96ed97651b535f6c
* | Daggerize Plugin code.Dave Mankoff2021-08-091-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add initial unfold animation prototype under feature flagNick Chameyev2021-07-211-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | Introduces interfaces and classes for subscribing to hinge update events, unfold transition progress controller that uses dynamic animations to calculate current transition progress. Added linear light reveal scrim overlay as an example of transition progress subscriber. Bug: 190818044 Test: manual Change-Id: Ibf73a8c7dfa534432e0ed3ad637f0277bc7aafb9
* | Make StatusBar purely optionalTadashi G. Takaoka2021-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to inject Optional.empty() to Optional<StatusBar>, this CL - removes raw StatusBar references and replaces it with Optional<StatusBar> - replaces Optional<Lazy<StatusBar>> to Lazy<Optional<StatusBar>> Bug: 144309772 Bug: 138625582 Bug: 187111275 Bug: 187111293 Test: atest SystemUITests Change-Id: I07b63e417dd4cc75a17951619065ba0f234bc2aa Merged-In: I07b63e417dd4cc75a17951619065ba0f234bc2aa
* | Merge "Pause region sampling while blurring the shade" into sc-dev am: ↵Lucas Dupin2021-06-291-0/+3
|\| | | | | | | | | | | | | | | eb87d4ea37 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15128775 Change-Id: I8da27690f2762683c9348642457f0be77f7b4063
| * Pause region sampling while blurring the shadeLucas Dupin2021-06-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | Interactions between the shade client composition and region sampling may cause missed frames. Bug: 191969790 Test: manual Test: atest NavigationBarTest Test: atest NavigationBarControllerTest Change-Id: I975fc0d008cfdbe76f85c08c42d981491613af47
* | resolve merge conflicts of 49a91f2b9aa1f7a7b8012f4782f1a5ff6b543d9a to sc-v2-devMatt Casey2021-06-241-2/+4
|\| | | | | | | | | | | | | | | Change-Id: I0ee611e3bd47cf2d45fe5a66848b46ccc5c49ea3 Merged-In: I5e3587ddb0fa4bd1ef68488485d73641e0582d2f Merged-In: I863708cc55493f91722fc1f75868071ed8a7aaef Bug: 189475831 Test: merge
| * Honor per-user setting for assist gesture and long-press homeMatt Casey2021-06-231-2/+4
| | | | | | | | | | | | | | | | | | | | These are per-user settings, we need to fetch them as such. Bug: 189475831 Test: Enable and disable corner gesture, switching between users. Ensure that current user's setting is honored. Change-Id: I5e3587ddb0fa4bd1ef68488485d73641e0582d2f Merged-In: I5e3587ddb0fa4bd1ef68488485d73641e0582d2f
* | Pass nav button disable and AOD events to launcherVinit Nayak2021-06-141-2/+5
| | | | | | | | | | Bug: 180046394 Change-Id: Ic6f552f57b48fc15b9873e59e3d8b53a17e312d6
* | Extract a11y from NavigationBar to share with TaskbarDelegateVinit Nayak2021-06-081-2/+5
|/ | | | | | | | | | | | | | When taskbar is showing, navigation bar isn't created which means all of the a11y registers are never registered. NavigationBarA11yHelper maintains existing a11y flag logic from NavigationBar but any class can register with it to get updates. Bug: 180046394 Test: A11y works as expected on 3 button phone Right events getting pass through to launcher when on larger device Change-Id: I9eeb566fca0e5142b38127aa8f32c21632c33caa
* Show accessibility floating menu after user unlock their phonejasonwshsu2021-06-021-2/+4
| | | | | | | | | | * Accessibiltiy floating menu needs to retrieve information from AccessibilityManagerService and it will be ready before receiving onUserUnlocked() * When enter the lockscreen, destroy the accessibility floating menu; when exist the lockscreen, show the accessibility floating menu. Bug: 184272107 Bug: 178285746 Test: atest AccessibilityFloatingMenuControllerTest Change-Id: I052a57296fab2afa243bd6b696bdfdb4235599a3
* Add an activity for wallet card carousel screen.Silin Huang2021-04-021-8/+0
| | | | | | | | | | | The WalletActivity initializes a WalletScreenController to query the wallet cards and present on the content view. The next step is to launch the new activity from QuickAccessWalletTile. Test: manually test on deivce Test: atest Bug: b/182964813 Change-Id: Idbf0918e111db0d00f3b60b8c26b968c961df202
* Handle the basic logic to show or hide accessibility floating menujasonwshsu2021-03-191-0/+12
| | | | | | | | | | | | * AccessibilityFloatingMenuController will listen to the changes from AccessibilityButtonTargetsObserver and AccessibilityButtonModeObserver then handle the visibility of FloatingMenu * Add abstract class SecureSettingsContentObserver to handle a registry of listeners of specific types and dispatch changes to child Cherry picked from commit 523514fd24d72b8420c0ca184643751980e6f218 Bug: 173940864 Test: atest AccessibilityButtonTargetsObserverTest AccessibilityButtonModeObserverTest AccessibilityFloatingMenuControllerTest Change-Id: I07fded55340644bce84a3f17a7a4da950268d2d2 Merged-In: I07fded55340644bce84a3f17a7a4da950268d2d2
* Observer for the accessibility button mode and notify its listeners for the ↵jasonwshsu2021-03-191-0/+3
| | | | | | | | | | | | | | | changes * Update accessibility button state (visibility) in navigationbar when accessibility button mode listener receive the changes. Cherry picked from commit 2c60295be9ceb019ac934b38da14f97f08b1c6f0 Bug: 173938894 Bug: 173940864 Test: atest AccessibilityButtonModeObserverTest Change-Id: I03b961c95a20e4698491443012beb3ab73333199 Merged-In: I03b961c95a20e4698491443012beb3ab73333199
* Add quick access wallet tile.Silin Huang2021-03-181-0/+8
| | | | | | | | | | This tile is gated by a feature flag and the QAW Client service availability. Also add a new icon for the wallet tile as a fallback option - if it fails fetching the icon from QAW Client, the fallback icon will be used. Bug: 180959290 Test: atest Change-Id: I56bdbef5b4d5d41abacb598422d8a2a4716a79fd
* Make AlwaysOnDisplayPolicy a singletonBeverly2021-03-151-0/+1
| | | | | | | | | So we only ever register one SettingsObserver for the AlwaysOnDisplayPolicy. Test: manual Fixes: 182755046 Change-Id: I93245bfd697ccc8653d26abe0f0194053b8655bc
* Merge "Add DISMISS_NOTIFICATION_SHADE action for a11y" into sc-devBernardo Rufino2021-03-151-7/+0
|\
| * Add DISMISS_NOTIFICATION_SHADE action for a11yBernardo Rufino2021-03-121-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As discussed in b/159334261, although the current a11y use-cases for closing the notification shade are already handled, it makes sense to add an explicit global action for accessibility services to close the notification shade (especially given there is one for opening the shade already). Added dependency to SystemActions, which required me to change add SystemActions to SystemUIGoogleBinder (topic). I also added to CarSystemUIBinder since SystemActions was also in their xml. I don't know if I need to add to others (eg. Arc), please advise. Bug: 159334261 Bug: 159105552 Test: With the shade opened, as a11y service send GLOBAL_ACTION_DISMISS_NOTIFICATION_SHADE and verify shade is closed. Change-Id: If52a1763170d5a5efd6b4756794206fd8bfb18a0
* | Auto-add ReduceBrightColorsTile to QS panel.Sally2021-02-241-0/+12
|/ | | | | | Test: Manual, AutoTileManagerTest Bug: 128465252 Change-Id: I735724658be186415604c89e66cf2ca3d586d719
* Add NavigationBarOverlayController.Peiyong Lin2021-01-111-1/+4
| | | | | | | | | | | A NavigationBarOverlayController is used to create and control buttons floating as an overlay with the navigation bar. Minor: Fix import order per lint error. Bug: b/176190597 Test: manual Change-Id: I9ce574f7a1c38baad12b4fc45a7799e07127fe87
* Rename splitscreen package to legacysplitscreenWale Ogunwale2020-12-141-2/+2
| | | | | | | | | | Split-screen implementations moving forward would be based on app-pairs and main/side stage models. So, renaming existing package to avoid confusion. Bug: 175416931 Test: They pass! Change-Id: I55ab1d27fb1c00ba7a58d685ea7eb2840efb9437
* Remove FlingAnimationUtils.Builder provider.Dave Mankoff2020-12-021-11/+0
| | | | | | | | | | | 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
* Merge "Let wallpaper colors drive system theme"Lucas Dupin2020-11-111-0/+14
|\
| * Let wallpaper colors drive system themeLucas Dupin2020-11-111-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Refarctored ThemeOverlayManager and ThemeOverlayController to conform to current SysUI paradigm (dependency injection) and registered WallpaperManager listener so themes can be driven by system colors. Test: manual Test: atest ThemeOverlayControllerTest Test: atest ThemeOverlayApplierTest Bug: 171916625 Change-Id: Icbc1e0f6bcda160b4ba9dd39fe29938bce538689
* | Add PiP exclusion logic in EdgeBackGestureHandler.Ben Lin2020-11-091-0/+3
|/ | | | | | | Bug: 165793553 Test: Stash PIP Change-Id: Ia3bf9a02455ac736b33b4d2c87fddd06b503f618
* Isolate shell dependenciesWinson Chung2020-10-191-8/+0
| | | | | | | | | | | | | | | | - 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>
* Moving task stack change listener management out of ActivityManagerWrapperSunny Goyal2020-10-121-0/+8
| | | | | | | | | Will eventually remove static initialization and thread restrictions in ActivityManagerWrapper Bug: 170648272 Test: Verified apk locally Change-Id: I9abffc622c7a31df007970235e265554a9039b1f
* Revert^2 "4/N Setup Controller fo KeyguardSecurityContainer."Dave Mankoff2020-09-241-0/+1
| | | | | | 0d6a9012a73a2d999d52aaefca0a6ad52322db31 Change-Id: I881bbcdc63fcbafa8966064cccb7ce1edc710062
* Re-landing Decouple systemui shared componements from PipController(8/N)Bill Lin2020-09-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Add PipAppOpsListener, PipMediaController,PipMenuActivityController in WMShellModule scope, and provided by dagger 2) Move system/task listeners/callbacks to WMShell 3) Refactor tv/PipController 4) Create WindowManagerShellWrapper for WMShell features (Separate from WindowManagerWrapper) 5) Remove WindowManagerWrapper.setPipVisibility to adapt new approach 6) Hook dump throught WMShell 7) Decouple SysUI DeviceConfigProxy(Wrapper), use DeviceConfig instead Bug: 161118569 Bug: 165793553 Bug: 168715160 Fixes: 166181820 Test: make SystemUI Test: make ArcSystemUI Test: make WMShellUnitTests Test: lunch aosp_tv_arm-userdebug & make Test: atest CtsSystemUiTestCases:BasicPipTests Test: atest CtsSystemUiTestCases:CustomPipActionsTests Test: atest CtsSystemUiTestCases:FlickerPipTests Test: atest CtsSystemUiTestCases:PipNotificationTests Test: atest SystemUITests Test: atest WMShellUnitTests Test: manual test PIP demo AP Test: manual test TV PIP function Test: manual test disabled PIP Test: adb shell input keyevent 171(KEYCODE_WINDOW) Test: adb shell am start -n android.systemui.cts.tv.pip/.PipTestActivity -a android.systemui.cts.tv.pip.PipTestActivity.enter_pip Test: adb shell dumpsys activity service com.android.systemui Change-Id: Ic64e1de4a87d8722764a44257293e89babe4878f
* Revert "4/N Setup Controller fo KeyguardSecurityContainer."Dave Mankoff2020-09-221-1/+0
| | | | | | | | | | | | | | | | | Revert submission 12585643-b166448040-keyguard-message-area Reason for revert: http://b/169081305 & http://b/169020145 Reverted Changes: I6fa05012c:4/N Setup Controller fo KeyguardSecurityContainer.... Iecf265744:5/N Add KeyguardSecurityViewFlipperController. I90ab99b2f:6/N Add Controller for KeyguardPatternView I4b74eddd1:7/N controllers for remaining Keyguard Password Vi... I805286374:8/N Remove View Injection from KeyguardMessageArea... I362755980:9/N Clean Up Keyguard Class Structure Change-Id: I7683b2234b601032ee606fbaabd474c5e2f6e989 Fixes: 169081305 Fixes: 169020145
* 4/N Setup Controller fo KeyguardSecurityContainer.Dave Mankoff2020-09-161-0/+1
| | | | | | | | | | | | | | | | | | Move the guts of KeyguardSecurityContainer into KeyguardSecurityContainerController. This removes a lot of Dependency#get calls, and is another step towards simplifying our view inflation process. CustomViews that previously implemented KeyguardSecurityView now all extend KeyguardInputView, allowing them to be simultaneously treated as one while also being recognized as a View (the interface required a lot of casting back and forth to a View). LockscreenUtil is made a Singleton in this CL. Bug: 166448040 Test: atest SystemUITests && manual Change-Id: I6fa05012c55f5e003ab551d2f8360891a62fa2a7
* Revert "Decouple systemui shared componements from PipController..."Greg Kaiser2020-09-161-8/+0
| | | | | | | | | | | | | | Revert "Decouple systemui shared componements from PipController..." Revert submission 12500984-WM-Shell-PIP-migration-8 Reason for revert: Suspect for b/168701961 Reverted Changes: Ib41f203f2:Decouple systemui shared componements from PipCont... I4862508a6:Decouple systemui shared componements from PipCont... Exempt-From-Owner-Approval: Revert to address a P0 Change-Id: I8ef9840610ec8dd8a65c14c617b7ba190cec277d
* Decouple systemui shared componements from PipController(8/N)Bill Lin2020-09-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Add PipAppOpsListener, PipMediaController,PipMenuActivityController in WMShellModule scope, and provided by dagger 2) Move system/task listeners/callbacks to WMShell 3) Refactor tv/PipController 4) Create WindowManagerShellWrapper for WMShell features (Separate from WindowManagerWrapper) 5) Remove WindowManagerWrapper.setPipVisibility to adapt new approach 6) Hook dump throught WMShell 7) Decouple SysUI DeviceConfigProxy(Wrapper), use DeviceConfig instead Bug: 161118569 Bug: 165793553 Fixes: 166181820 Test: make SystemUI Test: make ArcSystemUI Test: make WMShellUnitTests Test: lunch aosp_tv_arm-userdebug & make Test: atest SystemUITests Test: atest WindowManagerShellTests Test: atest WMShellUnitTests Test: adb shell input keyevent 171(KEYCODE_WINDOW) Test: manual test Pip demo AP Test: adb shell dumpsys activity service com.android.systemui Change-Id: I4862508a664023242565ff741f1bde5e1b05c8b7
* Merge "Stop listening to ACTION_USER_SWITCHED in BD"Fabian Kozynski2020-09-031-2/+4
|\
| * Stop listening to ACTION_USER_SWITCHED in BDFabian Kozynski2020-08-251-2/+4
| | | | | | | | | | | | | | | | We just need the current user, that can be handled with UserTracker Test: atest BroadcastDispatcherTest Bug: 163579262 Change-Id: I2ae918126b21e7c0511b613b7b047bfe85c9c367
* | Migrate splitscreen to WM shell lib (4/n)Jerry Chang2020-09-021-1/+1
|/ | | | | | | | | | | Moves systemui.stackdivider package to wm.shell.splitscreen package. Bug: 161116823 Test: atest SystemUITests Test: atest SystemUIGoogleTests Test: atest CarSystemUITests Test: manual verified split screen behavior Change-Id: Ib62450b78da454a7dc93a88272c87b8c12fcc1d8
* Move SystemServicesModule to Global Scope.Dave Mankoff2020-08-241-1/+14
| | | | | | | | | | | | | | | | | | 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