* Multi-instance reason is kind of a default reason
if the enterSessionId hasn't been set.
* Explicitly set Launcher enter reasons so we don't
rely on Launcher being a default enter reason
Bug: 231369744
Test: Enter split screen from launcher, chrome new
window multi instance, and notification drag.
Logged enter reason when logging to verify.
Change-Id: I7af3b2c2b8c067ca4e6eadff037582d340cad0f5
If the keep clear algorithm is enabled, PiP window will avoid the
keep clear areas and move away from occluding keyboard.
When IME is shown, we trigger the movement right away, for a smoother
experience.
If there is another animation ongoing, we delay moving PiP again, so
that it's more smooth overall.
Finally, we always apply gravity bottom with keep clear areas flag on,
so that it goes back down after IME dismiss.
Test: manually, http://recall/-/blXo3gy66k4fDYh7gFkrpe
Bug: 183746978
Change-Id: I32c52e4b6dd3c083b2168fda6a8b3b13facdac69
Instead of specific transition types, just try to get captions
and if it doesn't exist, make one. As we add more "source"
windowing modes, we'll have to just check more listeners. This
should hold-over until there's a centralized task-state manager.
Also, try to create captions on "warm-starts" (TO_FRONT) so that
apps that are in history before desktop-mode will get a caption.
Bug: 246851689
Bug: 246637353
Test: enable shell-transitions and switch into/out-of desktop
mode with varying sets of warm/cold-start apps
Change-Id: If9e1ad35692b63bf8abd6185b037715b285645c9
Drag notification to launch activity is aborted since the app is not
visible.
This CL adds the background activity allowed flag to make activity
launches successful.
Bug: 237985674
Test: Drag the notification to home. Check the activity is launched.
Change-Id: I6513e7d5d7b17c4a41c32316fd7504fe1bf2e793
In core, windowing mode is being set in TDA with ag/19902621. Thus, set
windowing mode with RooTaskDisplayAreaOrganizer instead of
RootDisplayAreaOrganizer.
Bug: b/241168290
Test: services/tests/wmtests
Change-Id: Ib7e6701839f83ab4125a9630d20203f8c5e415ba
We were tracking active freeform tasks in the RecentTasksController.
This causes some issues when we want to share that information to other
controllers like DesktopModeController.
Move tracking of active tasks to a separate repository that controllers
can query and listen for updates.
Bug: 244348395
Test: atest DesktopModeTaskRepositoryTest RecentTasksControllerTest
Change-Id: I7a460020f6b2133225e292a04f29ae1dd27e964b
Changes the criteria for showing caption on fullscreen tasks to check
if the device is a tablet based on screen size rather than using display
windowing mode.
Bug: 243671025
Test: Manual testing; launched fullscreen tasks on multiple devices with
and without desktop mode flag enabled.
Change-Id: I4550f040daef9c55edaaf42bcfc2004a23e6924f
Checked this issue by winscope and found home task leash under
RecentsAnimationSplitTasks will become off screen bewteen the
transition, it lead to task thumbnail invisible and wallpaper show
then cause flicker.
Home suface going to off screen is caused by we will remove previous
RecentsAnimationSplitTasks when re-create it whether going to recents
or starting split.
Fix this by seperate mSplitTasksContainerLayer to two differents
surface for going to recents and starting split cases.
Fix: 246664520
Test: manual
Test: pass existing tests
Change-Id: I492cc8b82a15cc5abec06118b54232b355e880a0
WHen using shell-transitions, use a transition instead of
regular applyTransaction
Bug: 236047261
Test: use desktop-mode switch w/ shell-transit. observe an actual
transition.
Change-Id: I81f37d278420383f8b2b0f37cca8a398313705cb
UI crashing due to null windowDecor object being passed into
FullscreenTaskListener#giveWindowDecoration
Test: Manual Testing
Bug: 246637353
Change-Id: Iaefee1993e1477cb88ed34d8e94b5f24120152f1
For floating tasks the normal target size is too small to really
fit the task window, this allows the dismiss target to have a
different size set via a resource id.
Test: manual - override the size (in different CL), observe that
the target is at that size.
Bug: 237678727
Change-Id: I85edae739992662852d4cf40c250714a100a67bb
There's a bunch of useful stuff on TaskInfo (e.g. taskDescription and
background color). This exposes the existing method on TaskView so
users of TaskView can get this info.
Bug: 237678727
Test: none
Change-Id: I95e4bc37562a9f51b2cf6cec6d03889f57222e30
mManageEduView.show() requires a non-null BubbleExpandedView but getExpandedView() is declared as nullable.
Bug: 246824356
Bug: 246902054
Test: manual
Change-Id: I19d733ced80d121c7dab40936721c9cc8be1a12e
Some test automation will dismiss split-screen to launcher and then
immediately rotate the display. Currently, we can't properly
transactionalize the display-rotation, so it just gets squashed into
the existing collecting transition. The result is that the split-
screen handler expected just a split-screen transition but also got
a display-rotation.
This CL adds a mixed-handler case for rotation+split-screen that
stage-coordinator can then use to divide the transition into two
animations.
Bug: 244486556
Test: atest NexusLauncherTests:TaplTestsTaskbar#testLaunchAppInSplitscreen_FromTaskbarAllApps
Change-Id: I82b6a20155dc84e58ab95964da64c9c741f761d9