summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/recents/Recents.java
Commit message (Collapse)AuthorAgeFilesLines
* fwb: Slim recents TSpiritCroc2023-08-041-5/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partly includes: commit fbbe5de6640ac0b8a52e948d246b19b4487ce521 Author: ezio84 <brabus84@gmail.com> Date: Sat Oct 21 14:46:24 2017 +0200 Slim Recents 3.0 [1/3] Refactored/improved everything. Slim Recents won't never die. http://i.imgur.com/PO3RSeg.gif [SpiritCroc] Bring to P Change-Id: I9deb0412e2421df2ac2755f2111a3cec70a7d2c4 commit c14325728a9d87d35e2137bb6f0dba77769592df Author: SpiritCroc <dev@spiritcroc.de> Date: Tue Apr 2 11:06:14 2019 +0200 Slim recents old enter/exit animation [1/3] Change-Id: Ib10f54d56de9c4dc6cab827c21cca9363ffaa820 Change-Id: I3c3486fa94a35f17e48c7a2943cad7fea5c69e78
* Make CoreStartable an Interface.Dave Mankoff2022-10-131-2/+3
| | | | | | | | | Context is no longer passed in as a constructor arg. Bug: 229228871 Test: manual Change-Id: I3dd5e593f209d120eb36faf33ba629a2066ad3f5 Merged-In: I3dd5e593f209d120eb36faf33ba629a2066ad3f5
* Remove FileDescriptor from systemui.Dumpable.Dave Mankoff2022-04-051-2/+1
| | | | | | | | | | 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
* Rename SystemUI class to CoreStartableDave Mankoff2021-11-091-2/+2
| | | | | | Bug: 205725937 Test: manual Change-Id: I045a8b4b21cae0f4a6e61502384e2b1a607bc1c6
* Migrate recents.splitPrimaryTask to WM Shell libraryJerry Chang2020-09-281-12/+0
| | | | | | | | | | | | | | | | There were some legacy ways to trigger split screen through Recents.splitPrimaryTask. Decouples the API from Recents and migrates it to WM Shell library. Removes SplitScreen.onDockedTopTask and SplitScreen.onRecentsDrawn because we have SplitScreenTaskOrg to instantiate new deivider bar and resize primary/secondary split after entering split screen mode. Fix: 169056724 Test: atest SystemUITests Test: atest WMShellUnitTests Test: manual trigger splitPrimaryTask api and check Change-Id: I68979e2e32c7ff36d35ae451c81dcf09e2dc5ef6
* Remove legacy callbacks between recents and split screenJerry Chang2020-07-311-4/+0
| | | | | | | | | | | Removes legacy recents callbacks between recents and split screen since there's no need to interact with RecentsActivityStartingEvent and RecentGrowingEvent after deprecated legacy recents implmentaton. Bug: 161116823 Test: atest SystemUITests Test: manual check recents behavior while in split screen mode Change-Id: Iee1546d41ae2b1a8e4162cbb2fa599162a5b308f
* Remove SysUiServiceProvider and mComponents.Dave Mankoff2019-11-141-1/+1
| | | | | | Bug: 142537875 Test: atest SystemUITests Change-Id: I6c48b182c1e6a1ff8b5ce352a40b5afdb5f07442
* Remove Recents from components.Dave Mankoff2019-11-071-6/+0
| | | | | | Bug: 143972303 Test: atest SystemUITests && manual Change-Id: If430d99b2a8b8721cc3ec753a85685d2485fa16b
* Remove all calls to getComponent(CommandQueue.class).Dave Mankoff2019-11-011-2/+6
| | | | | | | | | | | | | | | Makes AuthController, GlobalActionsComponent, InstantAppNotifier, SizeCompatModeActivityController, and TvStatusBar all injectable. Prior to this CL, CommandQueue contained within it a SystemUI object that it used to start itself up and add itself to components. With this change, the SystemUI object is no longer necessary, as Dagger will ensure that a CommandQueue is available to those who need it. Bug: 143702229 Test: atest SystemUITests Change-Id: I2763a6d918b41fe27a2370fdd820da476654e14f
* Pass context into the constructor of SystemUI objects.Dave Mankoff2019-10-101-1/+3
| | | | | | | | | The next step is to remove `components` from the SystemUI objects and replace them with Dagger injection. Bug: 138786270 Test: atest SystemUITests Change-Id: I27415a8fa8ba0378599356426d849c9cfb9879d2
* Remove calls to Dependency.get(FalsingManager.class)Dave Mankoff2019-09-271-25/+8
| | | | | | | | This removes all calls except one, which is used in a View. Bug: 136279712 Test: atest SystemUITests Change-Id: Ibadb81a41a4d23208842a99fa89436fd34b7a8a0
* Make Some APIs in CommandQueue aware of multi-display (3/N)Charles Chen2019-01-031-2/+4
| | | | | | | | | | | | | | | By this CL, we could dispatch Callback to fragments on the specified display. I also add some annotations for documenting. TODO: 1. add tests for multi-display. 2. make registerStatusBar be an IStatusBar API to propagate the information when a display is added or in the initial step. 3. Introduce AutoHideController Test: atest SystemUiTests Bug: 117478341 Change-Id: I864600f929c1d0c8aa39274f30c17b213b754d86
* Make CommandQueue implement CallbackControllerJason Monk2018-12-041-1/+1
| | | | | | | For consistency and future utilities Test: existing tests pass Change-Id: If7bc2774452b01f2b3607d559f1f57e54ec06b6c
* Fixes import ordering.Gus Prevas2018-11-141-0/+2
| | | | | Test: n/a Change-Id: I432e11b52deb7974e50f62076af3b7aa07e364b6
* Moving SysUI with legacy Recents to another build targetWinson Chung2018-10-261-749/+44
| | | | | | | | | | | | | | | | - Move all legacy recents code out of the core sysui code - Add separate target for products which still depend on it - Move overview proxy implementation into another implementation of the recents interface Test: atest SystemUITests Test: Push SystemUiWithLegacyRecents to the system image adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService and ensure that the old recents implementation still works (and split screen) Change-Id: Iad67218ec37c13c79b6393d87f6bdc4f3996e2c6 Signed-off-by: Winson Chung <winsonc@google.com>
* Removing dependencies on recents-specific code in SysUIWinson Chung2018-09-261-59/+34
| | | | | | | | | | | | | - Removing references to SystemServicesProxy (to be removed) for AM/WMWrapper - Removing unused code for old nav bar swiping logic, and also unused and quickstep-incompatible code for dragging in recents - Removing all event bus logic from outside recents subpackage - Exposing PipUI component for bridge caller Bug: 114137554 Test: Can still swipe up Change-Id: Ibcfbe06acae06ea5950615cabd52243279fee16d
* Merge "Fix issue with quickstep recents button not unlocking before entering ↵TreeHugger Robot2018-04-051-5/+27
|\ | | | | | | PIP." into pi-dev
| * Fix issue with quickstep recents button not unlocking before entering PIP.Winson Chung2018-04-021-5/+27
| | | | | | | | | | | | | | | | Bug: 77152886 Test: Lock the screen with any show-over-lockscreen activity, then press the recents button, ensure you are prompted to unlock Change-Id: Iaa402c8c0fbf743c3410882a888a487d45085fa5
* | Skip waiting for draw when triggering split screen from global action.Winson Chung2018-03-291-0/+7
|/ | | | | | | | | | - Currently a workaround for accessibility use case for split screen, this logic is not used for quickstep so just skip waiting for draw to animate the divider. Bug: 74531468 Test: atest CtsAccessibilityServiceTestCases:AccessibilityWindowQueryTest#testWindowDockAndUndock_dividerWindowAppearsAndDisappears Change-Id: I4b584443d4bf6acfbda92e5a2bfcd4470636d6c5
* Tapping overview button when quickstep enabled shows overviewMatthew Ng2018-03-071-9/+22
| | | | | | | | | | This is the systemui side of showing launcher's overview when it decides to allow users to trigger overview with the overview button in the navigation bar when quickstep is enabled. Test: manual - tap overview button in nav bar Bug: 67957962 Change-Id: I0d59d60d4b4ce1df9dcf2a745f9a5efd415b8582
* Fixes set lock task (and screen pinning) state with/out quickstepMatthew Ng2018-02-281-1/+1
| | | | | | | | | | | | | When quickstep is enabled, ensures that the home button is gone when locked to task without home access and prevents quickstep when overview access is disabled. When quickstep is disabled, fixes recents visibility according to overview access. Also prevent screen pinning after locking task to app. Bug: 72799389 Fixes: 73886663 Test: manual - use quickstep when locked to task Change-Id: Iacfa0b12374217511602cee6c2ca5ceafd6e2964
* 1/ Fixing docked task animation when entering split screen from homeWinson Chung2018-02-271-0/+34
| | | | | | | | | | | | | | | | | | | | - Update the minimized state when docking an app from home to ensure that the animation of the docked task goes to the right bounds - Temporarily block the invocation of the old recents activity when showing recents as a part of setting the windowing mode of another task (this is fine right now because quickstep only allows docking via the UI and not from the nav bar while another task is open). - Add proto field so we can determine whether to check the recents activity from the split screen CTS tests - Also fix issue with invisible docked task due to wrong bounds calculated due to launcher not notifying the divider of the first docked frame Bug: 73118672 Test: go/wm-smoke Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerSplitScreenTests Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerTransitionSelectionTests Change-Id: Ib1208501c311de009a9e706103134865c521cb63
* Move lock task check to shared lib.Winson Chung2018-02-011-1/+1
| | | | | | Bug: 70294936 Test: Ensure that launcher can check screen pinning state Change-Id: I2951fb3605525c5cdb7b27b099c95a762322971c
* Fix Recents regressionsWinson Chung2018-01-191-4/+3
| | | | | | | | | | | | | | | - Remove extra argument from the invocation of Recents from AM/WM, fetching the states directly. This also fixes the issue with the docked task from showing in Recents since the state will trigger the preloaded task stack to be invalidated. - Move Recents stack update to onStart() to ensure that it is updated with the changes introduced in ag/3338461 - Fix an issue with the initial state being clobbered when entering split screen Bug: 70279132 Test: Long press recents button to split screen, verify task is not visible Change-Id: If5a3ca1d86fa0025d6b1e08abf73fe80a390ef8e
* Expose some methods in the recents lib.Winson Chung2017-11-011-3/+3
| | | | | | | | | | | - Make some methods public - Allow load plan to take current user id when preloading - Add methods to start activity from recents and get the running task - Removing some unused methods Bug: 67510855 Test: Launch Overview Change-Id: Iabc45763214e82e968a4c872e22fd50ff7c2ba2e
* Move more calls to the lib.Winson Chung2017-10-311-1/+2
| | | | | | | | | | - Move the task stack listener wrapper into the shared lib, along with some other AM calls. Bug: 67510855 Test: Launch recents Change-Id: Icb5ea78ec42d4b76a1c531ce336dd9a3f07a9629
* Renamed moveTaskToDockedStack to setTaskWindowingModeSplitScreenPrimaryMatthew Ng2017-10-271-4/+5
| | | | | | | | | | Renamed a few functions related to moveTaskToDockedStack to use the new notion of split screen primary windows instead of docked stack. Most of the calls that use moveTaskToDockedStack are renamed. Test: go/wm_smoke Bug: 68017311 Change-Id: I73df051a9261d213b3415ac132962d91ec632e0a
* Moving some recents logic into the shared lib.Winson Chung2017-10-171-4/+13
| | | | | | | | | | | - Creating com.android.system.shared library with recents model code and corresponding recents tests - Removing notion of blacklisted apps since that is now obsolete. Bug: 67510855 Test: It builds, Recents runs Change-Id: Ib1f5eefa6e4d4964366061246002509e2e15b19e
* Prevent dismiss divider going minimized to recents for other usersMatthew Ng2017-10-161-0/+18
| | | | | | | | | | | | | | | The bus event DockedFirstAnimationFrameEvent was not fired to DividerView from secondary to system user so the last snap target for DividerView was not recorded instead the bottom of the screen was the last target. Since the bottom of the screen is last recorded, when unminimizing, the dividerview goes to the bottom of the screen and dismisses. This is fixed by piping the event from the secondary to system user so that DividerView can get the event. Fixes: 67326180 Test: manual - go to secondary user, drag to dock and minimize, press recents button Change-Id: Icd7497c49826d04dc907ef2eff3a5248e78ef67b
* Remove unused recents freeform task code.Winson Chung2017-10-121-1/+1
| | | | | | Bug: 67510855 Test: Code removal Change-Id: I608eda163318acbb53c67ed96e3f81383b7c17c0
* Remove unused recents affiliated task code.Winson Chung2017-10-121-54/+1
| | | | | | Bug: 67510855 Test: Code removal Change-Id: Ib56cdb1153ba85dd09e815b054dc0e12d04cfd38
* HOME_STACK_ID, ASSISTANT_STACK_ID, and RECENTS_STACK_ID be gone!Wale Ogunwale2017-09-271-2/+8
| | | | | | | | | | Replaced usages with ACTIVITY_TYPE_HOME, ACTIVITY_TYPE_ASSISTANT and ACTIVITY_TYPE_RECENTS. Test: go/wm-smoke Test: Existing tests pass. Bug: 64146578 Change-Id: I62c55c99df86dba8c9ba9d9986049de1b1083234
* Fixes quick switch animation entering recents for low ram devicesMatthew Ng2017-09-131-3/+5
| | | | | | | | | | | | | | This is a fix caused by a side affect from ag/2815906. The entrance animation did not finish causing the incorrect animation. The flag waitForTransition was set false too early and should have been set to false once the entrance animation finishes not when the app transition finishes. Fixes: 65636735 Test: use low ram device, load apps, launch recents, continously tap recents button Change-Id: I8b13881082ba784c509d11e77b12c8c15739ad78
* Skip handling recents toggle if a task is locked.Winson Chung2017-08-291-0/+7
| | | | | | | | | | | | | | | - When a task is locked, the logic will still try to start the recents activity (but will fail since it's a lock mode violation). Nothing resets the state, so the button will stop responding. Instead, skip handling of the button until the user unlocks the task. Also add a final fallback for resetting the waiting state, whenever an app transition completes. Bug: 65059121 Test: Launch app after pinning app, tap the recents button, and then un-pin and try to re-enter recents. Change-Id: I0215957f041241b5a61d7fd5b784410368bbd996
* Revert "Add plugin to swap out recents"Dan Sandler2017-08-151-5/+0
| | | | | | | | This reverts commit 0ea67d82e39ef4a2a1dfecd4796ab3e901cbc9e1. Bug: 64345190 Change-Id: I353c064db7bfaf91e98b5fd0d3e7180381a1b2b8 Test: n/a
* Merge "Reset wait for transition state to false when recents goes invisible" ↵Matthew Ng2017-08-081-0/+14
|\ | | | | | | | | | | | | | | into oc-dr1-dev am: 673e3c41ec Change-Id: Iedcf8f27eacdba8ad96a4753fb108f4539930fb9
| * Merge "Reset wait for transition state to false when recents goes invisible" ↵TreeHugger Robot2017-08-081-0/+14
| |\ | | | | | | | | | into oc-dr1-dev
| | * Reset wait for transition state to false when recents goes invisibleMatthew Ng2017-08-071-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From ag/2572257, this change will ensure the transition wait flag to be false when recents runs "onStop" or when it becomes invisible. This should fix edge cases when a user goes from Recents to somewhere that is not a fullscreen app (like home). Resetting the state should allow users to use the recents button without getting blocked. There is only two locations where the flag is set to true, when user starts recents and when an app is started from recents. When a user goes from recents to home with the recents button (when the phone gets into a wierd state), then the flag is true but home does not reset the flag because the old change expects a non-home app to start. Now whenever recents is dismissed, the flag will be reset. Fixes: 37277853 Bug: 64098508 Test: start recents with apps in it, go to guest account, start apps in recents, go back to main account, unlock keyguard, press recents button to dismiss recents (do not press home or back), it will go to home, press recents again Change-Id: I07c292d701a621685c836a4f6040864377f0a3dd
* | | Merge "Revert "Revert "Fixing occasional jump when launching certain apps ↵Matthew Ng2017-08-081-0/+20
|\| | | | | | | | | | | | | | | | | | | | | | | from Recents.""" into oc-dr1-dev am: c7d24aed82 Change-Id: I96ed9a5f7f295b1a3f3a9199547945e4958a34a3
| * | Revert "Revert "Fixing occasional jump when launching certain apps from ↵Matthew Ng2017-08-021-0/+20
| |/ | | | | | | | | | | | | | | | | | | Recents."" This reverts commit e234933fbf35080a6e82e66d4c30d33671bb06f2. Reason for revert: Fixed the issue that needed to be reverted. Change-Id: I6cd58338e76eb2790bd056945fc4f04b8366d441
* | Merge "Revert "Fixing occasional jump when launching certain apps from ↵Adam Cohen2017-08-011-20/+0
|\| | | | | | | | | | | | | | | Recents."" into oc-dr1-dev am: 0151c395b5 Change-Id: I2ae775926cdd52e2e0fb00cd2c2fb2b7dc92e863
| * Revert "Fixing occasional jump when launching certain apps from Recents."Adam Cohen2017-07-311-20/+0
| | | | | | | | | | | | | | | | issue 64098508 This reverts commit 7b088c3e2820809437ad40e88a457c220943692e. Change-Id: If3c1e324d231c5f29a5c68812fe93af6a7335b11
* | Merge "Android Recents implementation for low ram devices" into oc-mr1-devMatthew Ng2017-07-241-1/+1
|\ \
| * | Android Recents implementation for low ram devicesMatthew Ng2017-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now the implementation is set behind the ActivityManager flag if the device has low memory. This implementation has a linear list of tasks and less functionality such as removing split screen and reducing the amount of tasks shown to 9. For more information please check out the bug. Bug: 62251652 Test: manual Change-Id: I8e0a822a865089df1e8bef55ca61ed30978748d0
* | | Merge "Fixing occasional jump when launching certain apps from Recents." ↵Winson Chung2017-07-241-0/+20
|\ \ \ | |/ / |/| / | |/ | | | | | | | | into oc-dr1-dev am: aa5937a366 Change-Id: I75c7bf10c58705dbe26ba60804fc18d1e8257906
| * Fixing occasional jump when launching certain apps from Recents.Winson Chung2017-07-201-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removing code that cleared the pending options for an activity when it is fetched by the app. - Only handle the first window-animation-started callback from the system when transitioning out of Recents. - Add logic in Recents to disable toggling Recents while an activity transition has been requested (ie. activity started) and the transition actually starting. This prevents some cases where interleaving of the transition updates can occur while the app takes a long time to draw when it is resumed which could cause animation jumps and weirdness. Bug: 37277853 Test: Launch between apps quickly, especially those with camera. Change-Id: I7ff8a83539334a39b0ae049d267d1ab14a38e2f6
* | Merge "Add plugin to swap out recents" into oc-dr1-dev am: a69c03b6b1Jason Monk2017-06-281-0/+5
|\| | | | | | | | | | | am: 84510887b0 Change-Id: I5483d77315ae0db8c35e8535ea8e754908e3d235
| * Add plugin to swap out recentsJason Monk2017-06-271-0/+5
| | | | | | | | | | | | | | | | Adds new mechanism for activities in sysui to be replaced by plugins and allows that to happen for recents. Test: runtest systemui Change-Id: I8b570ce7c57484c58a52afe5e247d24ebfa0c57f
* | Only require that system UIDs tag their sockets.Jeff Sharkey2017-06-271-1/+1
|/ | | | | | | | | | | | | Apps with a normal UID are typically isolated enough to not require socket tagging; we're mostly interested in tracking down internal UIDs that have lots of code sharing the same UID. Also fix up everyone doing manual string checks of Build.TYPE, since we now have first-class fields for those. Bug: 38126076 Test: builds, boots Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd
* Fixing regression in Recents preloading.Winson Chung2017-05-181-7/+2
| | | | | | | | | | | | | | - Changes in the CommandQueue callbacks resulted in the default implementation of preloadRecentApps() to be called instead of the actual implementation in the Recents component. - Removing extraneous methods in the interface called from other parts of SystemUI. Bug: 38390446 Test: Launch Recents, ensure that preloading is hit first on touch down on the button Change-Id: I28f7ac47eafa76a53343505f3352760e6510c213