Commit Graph

3634 Commits

Author SHA1 Message Date
Hongwei Wang
0f8af7711e Merge changes from topic "presubmit-am-3741432fa32f48a290800d57fe4e6e74" into sc-v2-dev-plus-aosp am: 7abf467d0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16719697

Change-Id: I5d2665eefe8ed3cf52d1287756646c499ab7b9b3
2022-02-02 01:44:33 +00:00
Hongwei Wang
7abf467d0a Merge changes from topic "presubmit-am-3741432fa32f48a290800d57fe4e6e74" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Add leash check in PipTaskOrganizer#fadeExistingPip 2p: 4353053c87
  Add leash check in PipTaskOrganizer#fadeExistingPip
2022-02-02 01:31:37 +00:00
Pablo Gamito
108a2ad186 Support edge extension of windows during animations in shell
This is required for the go/t-activity-transition (https://direct.googleplex.com/#/spec/241720001&247800001) which we want to use as the default transition for T

Test: atest FlickerTests

Bug: 202844659
Change-Id: I316ddfb937953cf462ac999b8d27ae4cb0128847
2022-02-01 13:16:40 +01:00
TreeHugger Robot
ca4633dd18 Merge "Allow overriding managed profile switching animation" 2022-01-31 22:39:51 +00:00
TreeHugger Robot
b24de586d4 Merge "Fix unfold on split screen bounds" 2022-01-31 22:27:20 +00:00
kholoud mohamed
dd7c79d26b Allow overriding managed profile switching animation
Bug: 203548565
Bug: 188410712
Test: manual
Change-Id: I1bf75abcee4309eee5c03f76238bb21fb8549c02
2022-01-31 19:49:49 +00:00
Mady Mellor
3b54e697be [automerge] Use the orientation from the config object not resources 2p: b73f1acdab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16763691

Bug: 216643100
Change-Id: If021132cd31b3213c66932b96056821661962afb
2022-01-31 18:11:12 +00:00
Mady Mellor
b73f1acdab Use the orientation from the config object not resources
Test: manual - reboot the device, rotate, drag stuff into split
             => verify that the orientation of split while dragging is
                correct
Bug: 216643100
Change-Id: I300ad7263bf2ac18575d92f057fdd9c13ef736a7
(cherry picked from commit 4a79d7cb97)
2022-01-31 18:11:06 +00:00
Mady Mellor
92a9e6a02d Merge "Use the orientation from the config object not resources" 2022-01-31 18:10:54 +00:00
Galia Peycheva
e83edde4dd Merge "Add SystemApi USE_UNRESTRICTED_KEEP_CLEAR_AREAS" 2022-01-31 16:35:30 +00:00
Tom Natan
d7a62ace0f Merge "[2/n] Letterbox Education: Add information about fixed orientation letterbox to TaskInfo" 2022-01-31 13:58:43 +00:00
Galia Peycheva
2277bc5399 Add SystemApi USE_UNRESTRICTED_KEEP_CLEAR_AREAS
Normal applications should have restrictions on how big/many keep-clear
areas they can set. This is to prevent malicious apps from misusing the
API and causing unexpected effects (like the Pip moving unexpectedly or
too much around the screen).

System apps, however, can be trusted to set any keep-clear areas.

In this CL we introduce a new permission to allow system apps to set
unrestricted keep-clear areas. We send two lists to Shell - one with
restricted, the other one with unrestricted keep-clear areas. When
moving floating windows away, the Shell can decide to always take into
account unrestricted keep-clear areas and be more restrictive about the
restricted ones.

Bug: 209578131
Bug: 209577354
Test: atest CtsWindowManagerDeviceTestCases:KeepClearRectsTests
Test: atest WindowStateTests
Test: atest DisplayContentTests

Change-Id: I68804c50fb81173b0795cf30dd71ea91abd02229
2022-01-31 14:03:54 +01:00
tomnatan
72b8801b69 [2/n] Letterbox Education: Add information about fixed orientation letterbox to TaskInfo
Bug: 207010227
Test: atest WmTests:ActivityRecordTests
Test: atest WmTests:SizeCompatTests
Test: atest WMShellUnitTests:ShellTaskOrganizerTests
Change-Id: I04e82eb494c84bd78c269dd244bdd4a3e4d5fcc8
2022-01-31 10:30:45 +00:00
Mady Mellor
ea7207038b Merge "Smooth out the alpha / colour animation for drag to split" 2022-01-28 23:30:26 +00:00
Mady Mellor
6c30a027ea Merge "Fix hit targets, hopefully once and for all" 2022-01-28 23:29:41 +00:00
Mady Mellor
4a79d7cb97 Use the orientation from the config object not resources
Test: manual - reboot the device, rotate, drag stuff into split
             => verify that the orientation of split while dragging is
                correct
Bug: 216643100
Change-Id: I300ad7263bf2ac18575d92f057fdd9c13ef736a7
2022-01-28 15:20:53 -08:00
Pablo Gamito
d72672e545 Merge "Add option to override background color for animation through overridePendingTransition" 2022-01-28 14:26:11 +00:00
TreeHugger Robot
b0c937196d Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-28 06:43:01 +00:00
Nicolo' Mazzucato
8595998c1a Fix unfold on split screen bounds
App boundaries were not updated during the unfold animation, when there were two apps on the screen.

Bug: 216655763
Test: Unfolded manually in split screen mode.
Change-Id: I80b0fba91b0f018077c62f363eb1898b5e698f11
2022-01-27 21:26:27 +01:00
Pablo Gamito
8e3a0e498c Add option to override background color for animation through overridePendingTransition
Test: atest CtsWindowManagerDeviceTestCases:AnimationBackgroundTests
Change-Id: I3debc8c1f4646cfd7c20c3f8e57abd465aec23ad
2022-01-27 15:41:20 +01:00
TreeHugger Robot
0b193b27b4 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-27 13:11:00 +00:00
TreeHugger Robot
9e23d9d309 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-27 12:13:37 +00:00
TreeHugger Robot
39165354e1 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-27 04:27:55 +00:00
Mady Mellor
8d392760ab Smooth out the alpha / colour animation for drag to split
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
2022-01-26 14:26:13 -08:00
Mady Mellor
7a772305c3 Fix hit targets, hopefully once and for all
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
2022-01-26 14:24:25 -08:00
Chris Li
6c76dc017f Merge "Move disabled shelltransit flicker tests to flaky" 2022-01-26 14:48:53 +00:00
TreeHugger Robot
b9728c63a4 Merge "Enable Bubble flicker test with Shell transition" 2022-01-26 12:45:49 +00:00
Chris Li
63be3c89bb Move disabled shelltransit flicker tests to flaky
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
2022-01-26 18:27:49 +08:00
Winson Chung
dcca7075d9 Merge "Remove the previous animation split tasks container when recreating" into sc-v2-dev 2022-01-26 07:52:23 +00:00
Winson Chung
7aa9ae3d6d Merge changes from topic "presubmit-am-4b93111e023146348958d97ed22a1550" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Remove the previous animation split tasks container when recreating 2p: ea468e0a95
  Remove the previous animation split tasks container when recreating
2022-01-26 07:52:23 +00:00
Chris Li
85174deb62 Enable Bubble flicker test with Shell transition
The failure should be fixed with ag/16678935

Bug: 213866869
Bug: 205288792
Bug: 214452854
Test: pass existing with shell transition enabled
Change-Id: I2f8696a14d5f2537858e92f05edc2ef7629e4afe
2022-01-26 14:07:14 +08:00
Bill Yi
af1516e0a0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0279f475b5e3e1fbc32e3d2c29b0d31931a18b9b
2022-01-26 01:36:20 +00:00
Wei Sheng Shih
e8e313d496 Merge "Allow app to receive onSplashscreenExit even for empty splash screen." 2022-01-26 01:33:58 +00:00
Bill Yi
dce05666ab Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2bb370a56c79f8127a04baeb523451fac3493def
2022-01-26 01:32:21 +00:00
Bill Yi
e199f3d903 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id9ade68095a8101384cd4a000da706d33155ddae
2022-01-26 01:31:06 +00:00
Bill Yi
7f4ad1ee94 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I301d3d0bbf282a8aba9e10d57e22050e938ee222
2022-01-26 01:27:24 +00:00
Tony Huang
175aa192cf Merge changes from topic "presubmit-am-8fe06d94db0b4326ab412885caecafc6" into sc-v2-dev-plus-aosp
* changes:
  [automerge] DO NOT MERGE Fix divider animation from overview screen 2p: 7214fd7e2e
  DO NOT MERGE Fix divider animation from overview screen
2022-01-26 01:18:40 +00:00
Presubmit Automerger Backend
bfa82564ec [automerge] Remove the previous animation split tasks container when recreating 2p: ea468e0a95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16692579

Bug: 197919703
Change-Id: I18e70b717a462bdee86093dd63e18f355c72163b
Merged-In: Iad8b9d9a0d75bdaaa2a7255a33208c2c0c3fc25b
2022-01-26 00:38:47 +00:00
Winson Chung
ea468e0a95 Remove the previous animation split tasks container when recreating
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
Merged-In: Iad8b9d9a0d75bdaaa2a7255a33208c2c0c3fc25b
2022-01-25 23:24:15 +00:00
Hongwei Wang
3cda688f63 [automerge] Add leash check in PipTaskOrganizer#fadeExistingPip 2p: 4353053c87
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16719697

Bug: 197319184
Change-Id: I08c012637e1e7c38c579bec2175d69e4cf4e63a6
2022-01-25 21:21:51 +00:00
Hongwei Wang
4353053c87 Add leash check in PipTaskOrganizer#fadeExistingPip
Bug: 197319184
Test: N/A, not sable to reproduce the issue, adding protection based on
      the stack trace
Change-Id: I6363dd425eac6332f59fe1fed074c6518227580f
2022-01-25 13:21:14 -08:00
Winson Chung
ef4713d4d0 Merge "Remove the previous animation split tasks container when recreating" 2022-01-25 19:50:59 +00:00
Tom Natan
26b7cb8e11 Merge "[1/n] Letterbox Education: Add UI layouts" 2022-01-25 14:22:32 +00:00
Tiger Huang
dc94a72272 Merge "Remove the frame number from WindowManagerService" 2022-01-25 14:11:20 +00:00
Tiger Huang
3932df1165 Merge "Let the client compute the surface size on its own" 2022-01-25 14:09:25 +00:00
wilsonshih
946a4063f7 Allow app to receive onSplashscreenExit even for empty splash screen.
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
2022-01-25 20:40:23 +08:00
tomnatan
51127d083d [1/n] Letterbox Education: Add UI layouts
Test: N/A
Bug: 207010227
Change-Id: I9806121fcd0c6b3432dd5faf98b99bf9cfb747f5
2022-01-25 09:07:03 +00:00
Winson Chung
7fa945fcc9 Remove the previous animation split tasks container when recreating
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
2022-01-25 05:28:19 +00:00
Chris Li
d4de0febd4 Merge "Enable flicker test group1 with Shell transition" 2022-01-25 02:20:55 +00:00
TreeHugger Robot
c5900ec571 Merge "Support refactored Region class" 2022-01-24 20:44:54 +00:00