Commit Graph

3667 Commits

Author SHA1 Message Date
Tom Natan
d414b99dcc Merge "[7/n] Letterbox Education: add enter/exit animation to the dialog." 2022-02-09 10:37:03 +00:00
TreeHugger Robot
14da91737a Merge "Add default theme for flicker test app" 2022-02-09 06:36:41 +00:00
Ats Jenk
5f32b96cee Merge "Hide suppressed bubble" 2022-02-09 04:47:37 +00:00
tomnatan
4a463aaab8 [7/n] Letterbox Education: add enter/exit animation to the dialog.
Bug: 207010227
Test: N/A
Change-Id: Ie5f88b97c16a7bd043c6c63a8693415563b56a54
2022-02-09 00:23:19 +00:00
Tom Natan
2f6356d870 Merge "[6/n] Letterbox Education: add window manager and connect to controller." 2022-02-09 00:20:37 +00:00
Winson Chung
0c0afb3da9 Merge "Add source owners to test owners" 2022-02-08 22:28:58 +00:00
tomnatan
2d6097698d [6/n] Letterbox Education: add window manager and connect to controller.
Bug: 207010227
Test: atest WMShellUnitTests:CompatUIWindowManagerTest
Test: atest WMShellUnitTests:CompatUIControllerTest
Change-Id: I1f85245180ffa9b3abe409a0f18bf923bea3a442
2022-02-08 20:36:38 +00:00
Tom Natan
32d5e048f2 Merge "[5/n] Letterbox Education: update the dialog layout." 2022-02-08 20:32:39 +00:00
Riddle Hsu
5a68f5cd91 Add default theme for flicker test app
Otherwise its WidowManager.LayoutParams#windowAnimations is 0, then
it won't play animation (TransitionAnimation#loadAnimationAttr
returns null) so the the surface of closing app may be updated to
invisible at random timing that causes the test flaky.

Use darker gray as window background color to make it easier to
distinguish the visual result between home, starting window (gray)
and app content (orange).

Bug: 216297992
Bug: 213852103
Test: com.android.server.wm.flicker.launch.OpenAppColdTest
Change-Id: I3bb073dfa52484a63168b3aeb6e7f5f43bd02aac
2022-02-08 14:58:55 +00:00
tomnatan
bf5b7b2dd3 [5/n] Letterbox Education: update the dialog layout.
In addition, remove the overlay layout and include it in the dialog
layout as the background of the top-level layout (renamed as dimmer).

Test: N/A
Bug: 207010227
Change-Id: I658e85378ec266c4260b520b5fcdddbfb66b35c6
2022-02-08 10:36:28 +00:00
Winson Chung
c8ae608fec Add source owners to test owners
Bug: 207582920
Test: N/a
Change-Id: Ie0c8562ad45cfd64445c40dde4e426585c75bdc0
2022-02-08 06:23:29 +00:00
TreeHugger Robot
b9d43091d6 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-02-07 20:25:55 +00:00
Winson Chung
3e6933f15a Merge "Add some protologs for recents" 2022-02-07 19:48:45 +00:00
Bill Yi
05e8640ad2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I663deb83b5032416072a3d922475c5c87e387bdf
2022-02-05 18:43:42 +00:00
Tom Natan
634fa51080 Merge "[4/n] Letterbox Education: Create a superclass for compat UI window managers." 2022-02-05 12:58:11 +00:00
Shan Huang
6aa1f22cae Merge "Expose IBackAnimation from Shell to Launcher." 2022-02-05 00:58:32 +00:00
Shan Huang
445c5f24a2 Expose IBackAnimation from Shell to Launcher.
Test: m -j
Bug: b/195946584
Change-Id: I26f48e78c91ef99757da9bc09d4a4f98dc50f863
2022-02-04 18:50:38 +00:00
tomnatan
6c7e886348 [4/n] Letterbox Education: Create a superclass for compat UI window managers.
This super class will hold common logic and be used for the letterbox
education window manager in a follow up cl.

Bug: 207010227
Test: atest WMShellUnitTests:CompatUILayoutTest
Test: atest WMShellUnitTests:CompatUIWindowManagerTest
Test: atest WMShellUnitTests:CompatUIControllerTest
Change-Id: If6a1a5d1325e1fd4245b138e255000fa71273472
2022-02-04 17:45:53 +00:00
Nataniel Borges
08136e8150 Merge "Run pip transition 5x" 2022-02-04 10:04:42 +00:00
Robin Lee
0e03d61fb6 Merge "Rescue Tv SystemUI from broadcast receiver changes" 2022-02-04 07:52:59 +00:00
Ats Jenk
bb4306e62a Hide suppressed bubble
When a bubble is suppressed it should be removed from the stack and
expanded view.
Previously we were updating the visibility of the suppressed bubble.
This kept it in the expanded view.
Updating the suppression logic to remove the suppressed bubble view
temporarily, while it is suppressed.
When it should be visible again, adding it back.

Bug: 214090876
Test: atest BubbleDataTest BubblesTest
Test: manual, created a single bubble, checked it is hidden when
associated activity is opened and shown again after activity closes
Test: manual, created multiple bubbles, checked bubble is hidden when
associated activity is opened and shown again after activity closes
Test: manual, checked that suppressed bubble is not shown in expanded
view

Change-Id: I591a4330ccbb4d9764100715140d8bd20d0351bf
2022-02-03 17:36:14 -08:00
Winson Chung
07113ffcfa Add some protologs for recents
Bug: 207142749
Test: adb shell wm logging enable-text WM_SHELL_RECENT_TASKS
Change-Id: I0897db2ce66f42ac21cf55bea6173392c8931d9f
2022-02-04 00:48:23 +00:00
Mady Mellor
24c3cf7519 Merge "Fix issue with bubble stack & bubble data expanded bit being out of sync" 2022-02-03 18:55:09 +00:00
Vadim Caen
8e59ca9a3a Merge "Save the OnBackInvokedCallback in WindowState" 2022-02-03 17:26:12 +00:00
Nataniel Borges
dd9373015a Run pip transition 5x
The test was previously running the transition 20 times incorrectly. This frequently led to OOM errors, since the system would store 80 instances of protos + flicker objects in memory while making assertions.

Intead run the default 5x

Bug: 216303412
Test: atest ExitPipWithSwipeDownTest
Change-Id: I20fe19239a857cfbc0818910814041323735692a
2022-02-03 15:35:20 +01:00
Nataniel Borges
cbe01b513c Merge "Fetch traces async" 2022-02-03 13:07:15 +00:00
Tom Natan
16e0b72647 Merge "Letterbox Education: Cleanup the toast layout." 2022-02-03 10:15:17 +00:00
Robin Lee
d4584a0d38 Rescue Tv SystemUI from broadcast receiver changes
Bug: 161145287
Bug: 217670016
Change-Id: I9e982cc09777ed0e3bc4bc1300cb7c4791bac10c
2022-02-03 10:13:04 +00:00
Tracy Zhou
275a1a4b80 Support launching intent and task in split screen
Bug: 216829535
Test: see the other cl in the same topic
Change-Id: Id0f58a788585e2dabeae476b8a2bd80ba85bb9fe
2022-02-02 16:19:16 -08:00
Vadim Caen
717e53a6a7 Save the OnBackInvokedCallback in WindowState
This CL enable OnBackInvokedCallback to be saved in a WindowState and
queried by the BackNavigationController to be returned when
ATM.startBackNavigation() is called.

The DecorView provides a PendingOnBackInvokedDispatcher that can receive
callback registration before being added to a ViewRootImpl.

Test: atest FrameworksCoreTests:BackNavigationTest
Bug: 131727607
Change-Id: I01528a22ea4a6583a56ade4eab69136d727855d0
2022-02-02 22:08:02 +01:00
Mady Mellor
44b0caa2e5 Fix issue with bubble stack & bubble data expanded bit being out of sync
If onBackPressed was used while the stack was expanded, it was calling
setExpanded on BubbleStackView (BSV) and NOT BubbleData. This results in
BSV and BubbleData being out of sync which can lead to incorrect behavior.
(e.g. using individual bubble dismiss method instead of the stack dismiss
method).

Test: atest BubblesTest NewNotifPipelineTest
Fixes: 217361258
Change-Id: I748fdd49626acaa0e986a9d8038039cada6faa60
2022-02-02 12:50:06 -08:00
tomnatan
6f31ad815b Letterbox Education: Cleanup the toast layout.
The toast is no longer needed since we decided to only show the
letterbox education once as a dialog.

Test: N/A
Bug: 207010227
Change-Id: I1dccf10d0effad111d8ee8e62a068e4dee571c20
2022-02-02 11:29:45 +00:00
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
Nataniel Borges
ccc875cc97 Fetch traces async
Due to the large amount of traces on flicker, the tests take 15min+ to copy the files from the device to the host after the test execution. Instead, start copying the files asynchronously.

It is not possible to use the async mechanism from Tradefed's FilePullerLogCollector because it either: (1) pushes the files form the directory multiple times -- once per test -- creating a lot of duplicates; or (2) cleans up the directory without checking for new files, losing some files.

This CL creates an asynchronous file upload mechanism for flicker using coroutines

Bug: 216111397
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I5bbae834cf3439950626823c6b665c733e27e517
2022-02-01 20:08:51 +01: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