Commit Graph

294 Commits

Author SHA1 Message Date
Jason Chang
9fa8702d0c Merge "Fix change One-handed mode screen size from 50% to 40% but also keep adb command mechanism for UX tuning" 2020-11-20 03:51:53 +00:00
Jorge Gil
5f5fdaeaeb Merge "Add unit tests and cleanup PipBoundsState" 2020-11-19 21:04:12 +00:00
TreeHugger Robot
64645c04b2 Merge "4-2/ Enhance AbstractStandardAppHelper.exit() to exit PIP at end" 2020-11-19 19:01:26 +00:00
TreeHugger Robot
0718e79de0 Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-11-19 18:16:38 +00:00
TreeHugger Robot
872629a753 Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-11-19 18:04:09 +00:00
Bill Lin
a6c32cc9af 4-2/ Enhance AbstractStandardAppHelper.exit() to exit PIP at end
Integrate forceStop() in exit() that PIP window could really
exit after each round of test

Bug: 173567664
Test: atest com.android.wm.shell.flicker
Test: atest com.android.server.wm.flicker.Flicker

Change-Id: I8aaa4f590344f8fb1e6e731ed865f21f63892bb2
2020-11-19 23:11:28 +08:00
Bill Yi
6ced8e47a4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I23c6083fd728447f86a1b272ae53c4c57be47bd4
2020-11-19 04:00:09 +00:00
Bill Yi
6652772648 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5ac32a47f2a98d5430814f615555fe2d6aaf58e9
2020-11-19 03:59:40 +00:00
TreeHugger Robot
f45d13b02c Merge "Improve some issues around position and window order" 2020-11-19 03:37:40 +00:00
TreeHugger Robot
8b69ef2dae Merge "3/ Fix bug of PipKeyboardTest do not forceExit() testApp successfully" 2020-11-19 02:41:05 +00:00
TreeHugger Robot
3e35756c79 Merge "2/ Initial AppPairs flicker test case" 2020-11-19 02:41:05 +00:00
jorgegil@google.com
8cceeffe0b Add unit tests and cleanup PipBoundsState
1. Adds missing unit tests
2. Cleans up public API (nullability and doc)
3. Renames AnimatingBoundsState to MotionBoundsState to improve
readability of what that state actually holds, that is, the state
of the "bounds in motion" which can be the bounds used during an
animation but also the bounds used during a drag or resize
operation.

Bug: 169373982
Test: atest com.android.wm.shell.pip
Change-Id: I951fa3ea1310b69c93b53a1690c0a1cf0632dd33
2020-11-18 18:28:19 -08:00
Jorge Gil
828490c31e Merge changes from topic "bounds-algo-tests"
* changes:
  Add unit tests for PipSnapAlgorithm
  Add unit tests for PipBoundsAlgorithm
2020-11-19 00:50:16 +00:00
Treehugger Robot
c258e3ecaa Merge "Add Nataniel as OWNER of WMShellFlickerTests/WMShellUnitTests" am: 2ba09b6747 am: c579af998c am: 47b3639a83 am: 7e454b9029
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503412

Change-Id: I0f50c5b9333f17d46bc77ae47164b762bd67098f
2020-11-18 23:48:28 +00:00
Treehugger Robot
7e454b9029 Merge "Add Nataniel as OWNER of WMShellFlickerTests/WMShellUnitTests" am: 2ba09b6747 am: c579af998c am: 47b3639a83
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503412

Change-Id: Ia14f9c66644e0d605e9160b1676332f99f17a91b
2020-11-18 23:41:50 +00:00
Mady Mellor
47d3f66a04 Improve some issues around position and window order
- which ever window was last created is on top, so if
  taskbar was just created, re-add bubbles window so
  its on top
- only set pinned location when the bar is visible

Test: manual
Bug: 173386799
Change-Id: I691f856947a094ba5a7afee611a95219fcca4830
2020-11-18 15:08:06 -08:00
jorgegil@google.com
cb5acc2f2b Add unit tests for PipSnapAlgorithm
Bug: 169373982
Test: com.android.shell.wm.pip
Change-Id: Iecc7ede73644f975c8bc71300e72925bd220f28d
2020-11-18 11:13:31 -08:00
Hongwei Wang
ebaf114818 Add Nataniel as OWNER of WMShellFlickerTests/WMShellUnitTests
Bug: N/A
Test: N/A
Change-Id: Ibddd92a03daf368397a88a2959f301bf53a2bbf4
2020-11-18 10:56:34 -08:00
TreeHugger Robot
5bc9594c6b Merge "Add divider view support for app-pairs" 2020-11-18 12:12:18 +00:00
Jason Chang
fc4f7c948d Fix change One-handed mode screen size from 50% to 40% but also keep
adb command mechanism for UX tuning

Provide both config.xml and adb command mechanism.

Bug: 169724216

Test:
adb shell setprop persist.debug.one_handed_offset_percentage 60
adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
or adb reboot

adb shell setprop
persist.debug.one_handed_translate_animation_duration 150
adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
or adb reboot

Test: manual
Test: atest WMShellUnitTests
Change-Id: I9502cbe8e496f484fdeb8041b5618c47aba0f1d1
2020-11-18 17:43:41 +08:00
Bill Lin
57c4847f3d 2/ Initial AppPairs flicker test case
1. Send adb command to pair test apps
2. Assert primary & secondary apps visibility
3. Assert Region of primary & secondary apps in portrait

Bug: 172776659
Test: atest WMShellFlickerTests:AppPairsTest
Test: set TEST_REPETITIONS = 10, tests no flaky
Change-Id: If41340c82782da01909d84b9ad101556e3234aa1
2020-11-18 16:39:18 +08:00
Bill Lin
ceb6007a62 Merge "1/ Migrate cts SplitScreenTests to wm shell flicker test" 2020-11-18 05:38:21 +00:00
Mady Mellor
173fbed4bd Merge "Bubbles taskbar broadcast" 2020-11-18 02:17:45 +00:00
Mady Mellor
4ac05e33d3 Bubbles taskbar broadcast
* listen for broadcasts related to taskbar
* update info in BubblePositioner based on that
* show a scrim behind the bubbles when taskbar is on left / right so
  you don't see contents beneath

Test: manual
Bug: 173386799
Bug: 167413172
Change-Id: Id520718e779d3a45bcde447d7fcb0d2ba785c88e
2020-11-17 15:29:36 -08:00
Evan Rosky
6510883d40 Merge "Relocate transition collection around lifecycle events (1/N)" 2020-11-17 23:24:22 +00:00
Mariia Sandrikova
2b54b5d709 Merge "Make positioning in letterbox mode configurable." 2020-11-17 22:45:44 +00:00
Evan Rosky
738ba5601f Relocate transition collection around lifecycle events (1/N)
Previously was just using whatever the legacy transition system
used. However, that system would wait too late (until after
round-trips to the client) in order to prepare some transitions.
Since the new transitions utilize "snapshots", they need to
collect earlier in the lifecycle to work properly.

This first CL deals mostly with activity start/finish and
task to-front/to-back. It also adds some utilities like the
ability to abort a transition (needed because activitystarter
works this way) and the ability to un-ready a transition/
sync transaction to enable trampolines.

This also switches the transit types to the new constants.

Bug: 169035022
Test: Existing tests (TransitionTests) pass
Change-Id: I05f3a2e8e27ccaed7077d648daf033aeabc333f9
2020-11-17 12:56:30 -08:00
Sergey Nikolaienkov
2edad48f94 Merge "Test Pip window position when Pip menu is open" 2020-11-17 20:51:22 +00:00
Mariia Sandrikova
49fc5569f0 Make positioning in letterbox mode configurable.
Changes:
- Allow to specify in config_letterboxPortraitGravity and config_letterboxLandscapeGravity desired alignment for letterboxed apps.
- Add ADB commands to allow overriding these config values for testing
- Move positioning logic for letterbox mode from WM Core to WM Shell.

Test: atest LetterboxTaskListenerTest LetterboxConfigControllerTest
Test: go/wm-smoke
Test: manual with adb shell dumpsys activity service SystemUIService WMShell (get)set-letterbox-portrait-gravity / (get)set-letterbox-landscape-gravity
Fix: 170216257, 170215849
Change-Id: I8e6392faab05bec1bf61b9691f3bd9b8b09b9621
2020-11-17 20:15:31 +00:00
TreeHugger Robot
4583161d0a Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-11-17 19:43:31 +00:00
Xin Li
75b98e92aa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3970b3166afdfafe655d85d6b0e960c3e58cb5cd
2020-11-17 17:45:36 +00:00
Xin Li
b7618f25f4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I60840416d367892f951ba919e5976b251a333445
2020-11-17 17:44:59 +00:00
Bill Lin
d89e31bad2 1/ Migrate cts SplitScreenTests to wm shell flicker test
This is the initial version to achieve:
1. SplitScreenActivity in test-apps
2. Create SplitScreenTestBase and add a basic test cases to
   ensure SplitScreenActivity enter split screen mode
3. Assert StatusBar/NavBar/SplitScreenActivity showing when
   device enter split screen mode
4. Verify docked apps ending bounds

Bug: 169271943
Bug: 172811376
Test: atest WMShellFlickerTests:EnterSplitScreenTest
Change-Id: I26461b958c578dcbcc5ca2235f9d269559fd9ec5
2020-11-17 19:38:22 +08:00
Sergey Nikolaienkov
31fcbcfed1 Test Pip window position when Pip menu is open
Bug: 171520419
Test: atest WMShellFlickerTests:TvPipMenuTests
Change-Id: Ie0a5651667bfe1bc04ee1127fbcd721b3bd36d81
2020-11-17 07:49:26 +00:00
Sergey Nikolaienkov
c0ad57cc03 Merge changes I9a138ba9,Ied62beb0
* changes:
  Test PiP on TV with different aspect ratios
  Always run TV PiP tests with 0 rotation
2020-11-17 07:39:09 +00:00
Sergey Nikolaienkov
160bd0f088 Test PiP on TV with different aspect ratios
Introduce TvPipBasicTest that runs a basic Pip scenario:
1) enter Pip;
2) open Pip menu using the Window button;
3) close Pip menu using the Back button;
4) close Pip.
The test runs with 4 times with different Pip window aspect ratios:
defaul; square(1:1); wide(2:1); tall(1:2).

Bug: 13054136
Test: atest WMShellFlickerTests:TvPipBasicPipTest
Change-Id: I9a138ba9daaac223d451bac750e6a028def0a468
2020-11-17 07:37:15 +00:00
Sergey Nikolaienkov
0451222aed Always run TV PiP tests with 0 rotation
Bug: 13054136
Test: atest WMShellFlickerTests:TvPipMenuTests
Test: atest WMShellFlickerTests:TvPipNotificationTests
Change-Id: Ied62beb0c8551c8a0572455bd790c11c5517f61d
2020-11-17 07:37:15 +00:00
Bill Lin
c89e663119 3/ Fix bug of PipKeyboardTest do not forceExit() testApp successfully
After PipKeyboardTest teardown{}, the testApp in PIP mode is alive and
introduce the NEXT flicker test case get unexpected assertion fails.

Root cause:
The flow of exit(), neither pressHome() nor pressBack() could lead
TestApp(in PIP) successfully exit PIP and back to fullscreen in teardown.

Bug: 173477410
Test: atest com.android.wm.shell.flicker, make sure all tests PASSED
Test: atest WMShellFlickerTests, make sure all tests PASSED
Change-Id: I5e7e6f0323b2e6145dc25e2b8e99b77557f4ce13
2020-11-17 07:22:57 +00:00
Jerry Chang
0545edfa3d Add divider view support for app-pairs
Add divider bar for app-pairs. AppPairLayout and divide policy records
and handles the layout in pair.

Bug: 172704238
Bug: 172704672
Test: manul check the behavior of the splits and divider bar.
Test: AppPairTests, AppPairsPoolTests, AppPairsControllerTests

Change-Id: I688c7001d056fe8dd9a192885e1f9fd5f004dc11
2020-11-17 11:22:19 +08:00
madym
a3bac99dc4 Merge "Remove mrenouf from Shell/OWNERS" am: febaec9f3e am: b58226efcd am: b570fbc30f am: 42a13dba3f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1500070

Change-Id: I9affcd032844a7a85dec9d07b1373d12cfde0c3b
2020-11-17 01:48:05 +00:00
madym
42a13dba3f Merge "Remove mrenouf from Shell/OWNERS" am: febaec9f3e am: b58226efcd am: b570fbc30f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1500070

Change-Id: Iba19ee8fd22e69fba6c2d1a5dad05b428dfdf1c7
2020-11-17 00:24:54 +00:00
jorgegil@google.com
82b6802083 Add unit tests for PipBoundsAlgorithm
Bug: 169373982
Test: atest PipBoundsAlgorithmTest
Change-Id: I033039191f34e4bae22cd2690b0413cab1aaa7a5
2020-11-16 11:39:46 -08:00
Jorge Gil
dc2fe53ee6 Merge "Use PipBoundsState to access current bounds" 2020-11-16 17:53:29 +00:00
TreeHugger Robot
324710c1ba Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-11-16 17:22:35 +00:00
Mady Mellor
5262ae0110 Remove mrenouf from Shell/OWNERS
Test: none
Bug: none
Change-Id: Ie0489dce898f33c52e8817b27d78a3f5a7aecabc
2020-11-16 08:07:40 -08:00
Bill Yi
0df907672a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibe7ac1aa6c164371992dd2c162d4243ae31ad1b1
2020-11-16 11:17:54 +00:00
Bill Yi
003e100558 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0ee0fe11d014ea62f3a8d41af393b2ae3a9b93fc
2020-11-16 10:51:59 +00:00
Jorge Gil
990f36728b Merge changes I423219e9,Id5636cfc
* changes:
  Move movement bounds into PipBoundsState
  Move normal and expanded bounds into PipBoundsState
2020-11-13 21:56:15 +00:00
Sergey Nikolaienkov
a2b16e18ec Merge "Do not call assumeTrue(isTelevision) in @After" 2020-11-13 16:35:48 +00:00
Wale Ogunwale
40901fa082 Merge "App-pairs baseline commit" 2020-11-13 14:35:57 +00:00