summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-84/+165
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * Merge "Add logs for OPS launcher broadcast" into tm-qpr-devVinit Nayak2023-04-061-3/+12
| |\
| | * Add logs for OPS launcher broadcastVinit Nayak2023-04-051-3/+12
| | | | | | | | | | | | | | | Bug: 266716173 Change-Id: I802877c7cf5d539c755b27f8ce72a40f25cf5923
| * | Fade out navbar on lockscreen -> homescreen transitionMike Schneider2023-04-061-1/+5
| |/ | | | | | | | | | | | | | | Introduces a new SYSUI_STATE_STATUS_BAR_KEYGUARD_GOING_AWAY QuickStepContract flag, to get an early signal when the keyguard is going away Bug: 275319714 Test: manual Change-Id: I06b925431ecc615e7445b386bd89a1c6f5198c84
| * Merge "Change the use of ScreenLifecycle to WakefulnessLifecycle." into ↵Mike Schneider2023-04-031-70/+86
| |\ | | | | | | | | | tm-qpr-dev
| | * Change the use of ScreenLifecycle to WakefulnessLifecycle.Mike Schneider2023-04-031-70/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a better fit for the signal in launcher, since it identifies whether the device is awake or asleep, where asleep also inclues AoD. Also adding SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE to the IntDef and debug getSystemUiStateString, since it was missing. Test: manual, unit tests Bug: 275319714 Change-Id: I8a3275e177967c24f3bcd30308f11b3524e9d53d
| * | Add stack trace for OPS disconnect reason loggingVinit Nayak2023-03-281-1/+2
| |/ | | | | | | | | Bug: 266716173 Change-Id: Ic8e5bb14c029bc6e7c7b0a25409c0e93e7847009
| * Add reason log for OPS killing launcher connectionVinit Nayak2023-03-221-8/+11
| | | | | | | | | | Bug: 266716173 Change-Id: Ic5125a60dd4543f21426efbc48afe682f2b9cee9
| * Merge "Fix taskbar restarting after turning on workapps from taskbar." into ↵Brandon Dayauon2023-03-151-1/+1
| |\ | | | | | | | | | tm-qpr-dev
| | * Fix taskbar restarting after turning on workapps from taskbar.Brandon Dayauon2023-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Connect if we're not already connected bug: 261638193 test: Manual - https://drive.google.com/file/d/1Hm2X5YFoccjDYQ5KPo72uHahFjN0WR6T/view?usp=sharing Change-Id: I25020f13188fb0972f08dfcf96846524333cca34
| * | Add SCREEN_STATE flags to QuickStepContractMike Schneider2023-03-131-5/+49
| |/ | | | | | | | | | | | | | | | | | | The events are sourced from ScreenLifecycle. Bug: 267222890 Test: added unit tests, and manually verified the change Change-Id: Iae8df1f1c4654f37db9a0ec450aa0516405769bc Merged-In: Iae8df1f1c4654f37db9a0ec450aa0516405769bc
| * Fix crash due to missing CentralSurfacesJainam Shah2023-03-021-1/+3
| | | | | | | | | | | | | | | | | | | | mCentralSurfacesOptionalLazy is null for Automotive which results in a crash. Bug: 271167875 Bug: 271166940 Test: manual Change-Id: I14a93a68f8fdf500e1ad23437bdb801ac3da673f
| * Drive Launcher unfold animation from System UINicolo' Mazzucato2023-02-101-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | Before this cl, both Launcher and System UI processes were registering for hinge angle and device state (e.g. folded/unfolded) change events to calculate the current unfold animation progress. In some cases, launcher ui thread was busy, delaying the progress calculation from the hinge angle value (that was received ~at the same time by both processes). This resulted in launcher and sysui unfold animation not being synchronized in some cases. With this cl, System UI process uses OverviewProxyService to send the unfold events to Launcher. In this way, both process always have the exact same progress (+- 1 frame) This is currently guarded by a launcher flag, by default with the new behaviour, to allow devs to compare the experience and easily debug potential regressions. Bug: 268490854 Test: Analysed perfetto trace + RemoteUnfoldTransitionProgressProviderTest + manual Change-Id: Icdf3932644a545f4dbe077c8284911bf99f3d81c
| * Merge "[DO NOT MERGE] Add centralized DisplayTracker for SystemUI" into ↵Alex Stetson2023-01-271-3/+6
| |\ | | | | | | | | | tm-qpr-dev
| | * [DO NOT MERGE] Add centralized DisplayTracker for SystemUIAlex Stetson2023-01-261-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In multi-user multi-display systems where there could be multiple SystemUI instances running, the concept of what displays are relevant for a particular SystemUI may change. By adding a DisplayTracker class to abstract away display retrieval and callbacks, these instances can return the information that is most accurate for them. Bug: 256236871 Test: atest SystemUITests Change-Id: I51c1a380a344fb45d5e0de2c5c6ba5610733a3a2
| * | Publish dream state to OverviewProxyService.Bryce Lee2023-01-251-1/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | This change pipes the current dream state to OverviewProxyService, similar to how doze information is shared. A condition has been added to monitor the dream state, and a callback relays this information to the StatusBarStateController. A new CoreStartable maintains the monitor for this interaction. Test: atest StatusBarStateControllerImplTest#testSetDreamState_invokesCallback Bug: 265755700 Change-Id: Ic927a7e55864453da026c14cd1c87e6a7cf22489 Merged-In: Ic927a7e55864453da026c14cd1c87e6a7cf22489
| * Merge "[DO NOT MERGE] Replace UserHandle.CURRENT with UserTracker" into ↵Alex Stetson2023-01-191-1/+1
| |\ | | | | | | | | | tm-qpr-dev
| | * [DO NOT MERGE] Replace UserHandle.CURRENT with UserTrackerAlex Stetson2023-01-171-1/+1
| | | | | | | | | | | | | | | | | | Bug: 249831072 Test: atest SystemUITests Change-Id: Id98ed38495feaab4780452ded14fe24b68ae6944
| * | Make ScreenshotRequest handle hardware bitmap conversionMiranda Kephart2023-01-181-16/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, ScreenshotHelper provides utility functions to convert between a hardware bitmap and a parcelable form for sending between processes, but the originating code must handle the conversion itself. This change moves the conversion so that it occurs seamlessly inside of the ScreenshotRequest class, and refactors the inputs to ScreenshotHelper slightly so that the ScreenshotRequest data class is what gets passed in. Bug: 264457397 Test: atest Merged-In: I1041bbcfdc5f5ece6e98bd0844017d4f3dc4e9f3 Change-Id: I1041bbcfdc5f5ece6e98bd0844017d4f3dc4e9f3
* | Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-031-154/+66
|\| | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * [Unfold transition] Fully manage the vignette on the background threadNick Chameyev2022-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates onScreenTurningOn/device state callbacks in the unfold overlay class to be executed on the background thread. This allows to draw the first black frame even if SystemUI's main thread is busy at the moment, so it will be less likely to have flicker because of that. Also this CL adds a separate thread to render the vignette to avoid conflicting with the other operations made on the shared background thread. Bug: 262381044 Bug: 262518402 Bug: 233045200 Test: manual fold/unfolds with/without AOD enabled Test: add artifical delay to SystemUI configChanged that exceeds WM keyguard drawn timeout => test that there is a flicker without changes test that there is no flicker with the changes Test: atest com.android.keyguard.mediator.ScreenOnCoordinatorTest Change-Id: Ic5a61839500dbbf63e9c5422bfc0085827526d92
| * Map split from the current running app to META+CTRL+DPAD_LEFT and ↵Tracy Zhou2022-12-061-1/+13
| | | | | | | | | | | | | | | | | | META+CTRL+DPAD_RIGHT Fixes: 246661484 Test: https://recall.googleplex.com/projects/f4cc906f-d337-414e-aea8-d5434a0c6e88/sessions/06cc05b5-c032-40f3-af8b-3b90860d2f37 Change-Id: I8b293a0eb7e198fc2ff25c4c5a57dbd58f6be2f4 Merged-In: I8b293a0eb7e198fc2ff25c4c5a57dbd58f6be2f4
| * Replace getCurrentUser() calls with UserTrackerAlex Stetson2022-11-141-20/+24
| | | | | | | | | | | | | | | | | | | | | | Replacing getCurrentUser calls in SystemUI with UserTracker to help centralize source of truth. Bug: 249831072 Test: atest SystemUITests Change-Id: I23bd747192adcd715b96442f0834254ad0bb44a3 Merged-In: I23bd747192adcd715b96442f0834254ad0bb44a3
| * Removing unused SplitScreen bounds notification from systemUISunny Goyal2022-11-031-23/+0
| | | | | | | | | | | | Bug: 221961069 Test: Presubmit Change-Id: I9989039944fa72df561ad11d36bf02e24c78c909
| * Merge "Begin decoupling CentralSurfaces and NPVC" into tm-qpr-devJustin Weir2022-11-021-2/+3
| |\
| | * Begin decoupling CentralSurfaces and NPVCJustin Weir2022-11-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed 6 methods from the CentralSurfaces API that were either redundant or merely passthroughs to NPVC. Fixes: 254875405 Bug: 249277686 Test: atest and manual Change-Id: Ie76c44d6dd290eab44a58937326ff075608cb927
| * | Sending NavbarSurfaceControl to RecentsSunny Goyal2022-11-021-35/+16
| |/ | | | | | | | | | | | | | | Also removing some unused methods from the aidl interface Bug: 193244407 Test: Presubmit Change-Id: Ia13c09be93b45cd47fa3350630a2a4dc37e8756b
| * Simplify exposing external interfaces to LauncherWinson Chung2022-10-061-77/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently, the collection of binders to send to Launcher is inverted and managed by OverviewProxyService which has to know about each component directly (and a SysUI interface has to be created to support this even if there are no other calls in SysUI to that component). Instead, we should have each component register itself with the ShellController for controllers which can be exposed to an external process, and each product can customize which set of controllers it needs to support. - Add missing dump registration for ShellController - Updating docs for creating remote callable controllers Bug: 238217847 Test: atest WMShellUnitTests Change-Id: Icd0ed33bdbd68b1dd9d782b9ba1f5b4a604479ba Merged-In: Icd0ed33bdbd68b1dd9d782b9ba1f5b4a604479ba
| * Clean up some methods on the Pip interfaceWinson Chung2022-10-041-8/+0
| | | | | | | | | | | | | | | | | | - Remove some pip methods that aren't used from SysUI - Migrate an old ISystemUIProxy pip call to IPip Bug: 238217847 Test: atest WMShellUnitTests Change-Id: Iab57329a9d79704b0e35fdb22a36594aa4368141
* | SystemUI: Add API for runtime taskbar configDanny Lin2023-02-191-0/+13
|/ | | | | | | | | | | Allow Launcher3 to override the taskbar state at runtime based on user preference. ** AICP edits: add backup validators Change-Id: Ic2616ff974e98e03edbcdbdf677fa40b40b37abb Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com>
* Add support to show apps on desktop in sysui proxyAts Jenk2022-09-261-0/+8
| | | | | | | | | | This enabled launcher to show all desktop apps when user clicks on the desktop tile in recents. This is only enabled when Desktop Mode feature flag is enabled. Bug: 244348395 Test: atest DesktopModeControllerTest Change-Id: I3c89ef01fd7d1f457a7afabda94b481711c0a350
* Support for a floating task window (behind a sysui flag)Mady Mellor2022-09-211-1/+8
| | | | | | | | | | | | | | | | | | | | | | Creates a new package within shell for floating tasks along with a basic controller and interfaces for sysui and launcher to use to manage floating tasks. A single floating task is allowed at a time and they can only be created if a sysui flag is turned on. The floating task is backed by a TaskView, floats above all other content, and can be moved via a handle at the top of the view. The view sticks along the left and right edges of the screen, can be stashed (similar to PIP), and can be removed by dragging to a dismiss target in the middle of the screen (similar to PIP & bubbles). The tests included trigger the sysui flag on and off to ensure the flag behavior (i.e. that you can't create one unless the flag is on). Test: atest FloatingTaskControllerTest Bug: 237678727 Change-Id: I490c44685825e14166869b2cf7c2994ee0e30ba7
* Removing back-button alpha controlling logicSunny Goyal2022-09-091-21/+0
| | | | | | Bug: 246006580 Test: Presubmit Change-Id: I57e6346eca52c850a31bdfa399f58e9df97cf682
* Add logs to track down how OPS creationWinson Chung2022-09-081-0/+7
| | | | | | Bug: 241601880 Test: Presubmit Change-Id: I54d1edf10fca40a392579155297d339cd3962fc4
* Disable hinge sensor while the screen is offNicolo' Mazzucato2022-08-091-18/+48
| | | | | | | | | | | | | This allows to save some power while the device is unfolded but with screen off. + Avoiding registering more listeners if HingeSensorAngleProvider.start() is called multiple times sequentially without a `stop` in the middle. It seems that otherwise we would get duplicated callbacks. + Adding onScreenTurningOn and onScreenTurningOff callbacks to forward to Launcher (as only sysui is receiving them) Bug: 240661156 Bug: 240374404 Test: DeviceFoldStateProviderTest Change-Id: I40b77033690c2e708275ce49bbe156c781105a00
* Move most of the shade codebase into its own packageJustin Weir2022-07-181-2/+1
| | | | | | | | | | | | Creates the package outside the 'phone' directory, since the shade is not just on phones anymore and moves most of the shade code to it. Moves the shade.transition package to it. Moves all related tests. Expands a small amount of method scoping as necessary. Updates, adds, and organizes imports as needed Test: atest SystemUITests SystemUIGoogleTests Fixes: 238333941 Change-Id: I721d35d4adb637f06501e92efe2d37421a3e84e5
* Remove deprecated methods from SysUiProxyVinit Nayak2022-06-011-17/+0
| | | | | Bug: 233006032 Change-Id: If934c96245eb782d7905334421d437a8b45bd801
* Bubbles ignore gestures when notif expandedAts Jenk2022-05-131-1/+1
| | | | | | | | | | | | When bubbles are expanded we monitor for home gesture to animate collapsig of the view. When notification panel is open, it is on top of bubbles. But our gesture monitor is still active. Listen to notification panel expanded state and stop listening for home gesture while panel is expanded. Bug: 232339931 Test: atest PlatformScenarioTests:android.platform.test.scenario.sysui.bubble.BubblesHomeGestureTest Change-Id: I123ea6b5b82906d2ed1b0a71fc1e2fa9669abfff
* Listen for VIS window visibility changes in SysUIWinson Chung2022-04-291-0/+36
| | | | | | | | | Bug: 222308557 Bug: 216301097 Test: Manual, invoke assistant on the lockscreen and verify you can go back Change-Id: I675a0c694b8d85e7cd67f7a550fe8e8ab85e9ad2
* Remove FileDescriptor from systemui.Dumpable.Dave Mankoff2022-04-051-3/+2
| | | | | | | | | | This is the first step in moving over to the new public android.util.Dumpable api. Bug: 217567642 Test: m SystemUI Merged-In: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0 Change-Id: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0
* Add a log when initializing OverviewProxyTony Wickham2022-03-231-0/+1
| | | | | | Test: local logs Bug: 210426498 Change-Id: I373499e7f1dae23e404e153687ecf90e62160cb9
* Revert "Revert "Move touch handling out of NavigationBarView.""Dave Mankoff2022-03-181-2/+2
| | | | | | | | | | | | | | | This reverts commit d9ba94bf79d1a615e4bfae7f09e31bf9853f7a7e. Reason for revert: Restoring change with a fix. The original problem seems to stem from using the wrong instnace of WindowManager. Instead of using the diplay context's instance, I was using the application context's instance. This was different from the original code this cl refactors. Bug: 218354102 Test: atest android.server.wm.MultiDisplaySystemDecorationTests Change-Id: Ic6b680c12be5cbece4945e8e9ea41f578bbc9e0b
* Revert "Move touch handling out of NavigationBarView."Louis Chang2022-03-151-2/+2
| | | | | | | | | This reverts commit 4a04b83e12f10ac642939662cb917b440f0f3909. Reason for revert: breaking wm presubmit Bug: 224629724 Change-Id: I351c6e9ef17a45fab4a1f957af29c835e8fc1e30
* Move touch handling out of NavigationBarView.Dave Mankoff2022-03-141-2/+2
| | | | | | | | | This allows for removing several calls to Dependency#get out of NavigationBarView and into its controller, NavigationBar. Bug: 218354102 Test: manual && atest SystemUITests Change-Id: I9faef58ada4ef61854aa88b05e580f80dce648cd
* [Status Bar] Re-name StatusBar.java -> CentralSurfaces.java.Caitlin Cassidy2022-02-281-13/+13
| | | | | | | | | | | Also add some javadoc to CentralSurfaces.java to make its purpose slightly clearer. Bug: 197137564 Test: compiles Test: atest SystemUITests Change-Id: Id06e7ba7641d6d2bc276cce57101c9c7236bc758 Merged-In: Id06e7ba7641d6d2bc276cce57101c9c7236bc758
* Clean up the legacy split screen (7/n)Tony Huang2022-02-231-20/+3
| | | | | | | | Clean up using of legacy split on SysUi. Bug: 199236198 Test: pass existing tests. Change-Id: I199dafc836d3ba7bc5db1740658247397523c200
* Merge "Cache accessibility info in NavBarHelper to reduce binder calls"Winson Chung2022-02-071-1/+1
|\
| * Cache accessibility info in NavBarHelper to reduce binder callsWinson Chung2022-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently, we make two binder calls whenever the sysui state changes to fetch the current accessibility info. Instead we can use the AccessibilityButtonTargetsObserver to listen for the changes and only update the accessibility state when it changes. Bug: 201633154 Test: Enable/disable accessibility services and verify button shows Enable/disable > 1 accessibility services and verify that button is long-clickable to show the services menu Verify both of the above with gesture nav & accessibility service as well Change-Id: I84a7d20040c61ea75ac0b9e1f790f4a8b0ebe398
* | Expose IBackAnimation from Shell to Launcher.Shan Huang2022-02-041-0/+8
|/ | | | | | Test: m -j Bug: b/195946584 Change-Id: I26f48e78c91ef99757da9bc09d4a4f98dc50f863
* Adds Launcher in-window animations, and reworks how the unlock flow works.Josh Tsuji2022-01-181-7/+7
| | | | | | Bug: 197636887 Test: atest SystemUITests Change-Id: If6ff114f90fcfc19b9e3530bb0dea8cc0591f745