Previously there were 2 animating surfaces, one for the highlight and
one for the splashscreen. When they animated together there was a bit
of undesirable crossfading.
This change makes it so that the colours and alpha animate together via
ArgbEvaluator and are only applied to 1 surface (the background color
drawable).
It also seems like you can continue to get drag events even after a
drop, so if a drop has happened skip animating. When a drag is
initiated again then mHasDropped is reset again.
Test: manual - drag an app into split and move it between the two split
dropzones, note that the colour animation is smooth.
- wildly drag between the two dropzones & drop, check that
on the next drag that animations animate from alpha 0 rather
than jump cutting to an alpha > 0.
Bug: 207011867
Change-Id: I8a5a681530d889c5c6ef4ad3a0b31af17998af73
When already in split screen we use the stage bounds from split screen
controller, however, these bounds really represent the draw region and
would be inset by taskbar etc. For the hit targets we really want the
whole side of the screen from the middle of the divider, rather than
the draw region.
This CL updates it so that the hit region is based of the display region
divided wherever the divider is.
Test: manual - have apps in split, drag a new one into split and observe
that the animation is smooth
Bug: 207011867
Change-Id: I7142755febd7fe2f6c2db4cee2e08fa2f43c3b7f
So that we can keep track of the status, and move it back to presubmit
after it becomes stable
Bug: 214452854
Test: pass existing
Change-Id: I60453789676cda9eb0892b601806d398af7bdc82
The failure should be fixed with ag/16678935
Bug: 213866869
Bug: 205288792
Bug: 214452854
Test: pass existing with shell transition enabled
Change-Id: I2f8696a14d5f2537858e92f05edc2ef7629e4afe
Allow developers to customize the exit animation for empty style splash
screen, there is a target sdk version check to prevents apps from
crash if the app didn't do null pointer check for #getIconView.
Bug: 205907456
Test: atest SplashscreenTests
Change-Id: I235f25fdf42b7177a6e195d3ffc07b92690e6f79
Bug: 197919703
Test: Invoke split and swipe up a couple times, ensure the sf dump
doesn't show multiple lingering split containers layers
Change-Id: Iad8b9d9a0d75bdaaa2a7255a33208c2c0c3fc25b
For use in KotlinJS (winscope) the Region class cannot have multiple constructors. JS doesn't support method or constructor overload.
This CL make the tests compatible with the newer class version
Bug: 216111397
Test: atest WMShellFlickerTests
Change-Id: Ifa5f8c6e0063185e2986019b3a27f24c93fe05d2
The frame number at the server side is not used anymore since BLAST.
Bug: 161810301
Test: presubmit
Change-Id: I01c6fb0750799aa94766f2582ce6ac031c9426cf
This is a step to move the layout logic to the client side. We won't
obtain the surface size from the server then.
This CL also moves the logic about adjusting the LayoutParams of
wallpaper to the client side.
Bug: 161810301
Test: presubmit
Change-Id: I3a81e174035c67a285cab449c0701ee2fe6f6a24
Remove WINDOWING_MODE_SPLIT_SCREEN_PRIMARY and SECONDARY used on
tests and replace them by WINDOWING_MODE_MULTI_WINDOW or other
migrate way.
Bug: 199236198
Test: atest WmTests
Test: atest DragAndDropPolicyTest
Change-Id: I41b25392d710eeea42edf75b3c9bca20a7d8a887
The test flakiness is significantly slowing down presubmit
Bug: 209843622
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I096e9f69e6de8ff73d527db533e76e8da44fdcb0
This CL contains the BackAnimationController, on WMShell, which
controls the gesture based animation.
When the gesture is done, the animation is done. It will be handed over
to a TransisionHandler (in the next CL)
Test: atest WMShellUnitTests:BackAnimationControllerTest
Bug: 131727607
Change-Id: Ifc2ed99bfd51079f12a83468ca44e4aa19460e47
Now failures can be automatically directed to the correct buganizer components and forwarded directly to the correct assignees, instead of being all created into the Winscope for further triage
Test: check owners file
Change-Id: I6876a702b4f46443328aab027f7fee994b2bb819
Support to merge transition to activating remote transition while in
split screen. Like the case openning a normal app from overview during
split screen mode, it'll trigger a new app openning transition which
should be merged back to the remote transition running in launcher side
to finish the recent animation.
If a split dismissing transition was triggered right after recent
transition finished. It might be a no-op transition and thus won't
callback startAnimation. So also reset split screen state and visibility
when finishing transition.
Bug: 206487881
Test: enable shell transition and enter split screen, observed the
transition switching to normal app won't hang.
Change-Id: I9bac5eab844f7835c69f9aad17a5c50dc01a76fa
The surface of closing change will be put in a rotated surface
in previous rotation, so the animation bounds also need to be
in same rotation.
Bug: 214504681
Test: adb shell setprop persist.debug.shell_transit 1; reboot
Launch a landscape activity, and it launches a portrait
activity in new task. The animation should not be cropped.
Change-Id: I680e335786beedc1cac8847cbc9db5fc1bb11807