Commit Graph

10 Commits

Author SHA1 Message Date
Sergey Nikolaienkov
fbc3469d7b Test PipNotification when there is a MediaSession
Bug: 171520419
Test: atest WMShellFlickerTests:TvPipNotificationTests
Change-Id: Ie70f394e572e9adfeee7ecff9ba4a0e686197ca4
2020-11-06 08:17:01 +00:00
Sergey Nikolaienkov
26fd1f1969 Add tests for TV Pip notification intents
Bug: 171520419
Test: atest WMShellFlickerTests:TvPipNotificationTests
Change-Id: I615cda0ed826d875ea8f2eed4c570280be6d6ae9
2020-11-04 15:54:29 +00:00
Sergey Nikolaienkov
757e60e057 Introduce .wm.flicker.pip.tv.TvPipNotificationTests
Move first test out of android.systemui.cts.tv.PipNotificationTests to
com.android.wm.shell.flicker.pip.tv.TvPipNotification tests.

Bug: 171520419
Test: atest WMShellFlickerTests:TvPipNotificationTests
Change-Id: I6a3e2fb96a7688814ce909f28d6d904356fad3fd
2020-11-04 12:32:51 +00:00
Sergey Nikolaienkov
58dc55b6e8 Prepare .wm.shell.flicker for test migration
Move common constants to a separate class.
Rename abstract FlickerAppHelper to BaseAppHelper.
Give BaseAppHelper a UiDevice (from androidx).
Make BaseAppHelper resposiblt for creating launcher.
Teach BaseAppHelper to launch app via intent and force-stop it.
Teach PipAppHelper to properly close Pip on TVs and work around
hasPipWindow() method not working on tv.

Bug: 171520419
Test: atest WMShellFlickerTests
Change-Id: Icc102a51351605b4adb27c3a1c2d73030eac33ff
2020-11-04 12:25:34 +00:00
Antonella Dellanzo
1905a06186 Merge changes from topic "fix-assertions-type-enable-param"
* changes:
  Fix params of flicker assertions
  Disable assertion in SeamlessAppRotation test
  Fix params of flicker assertions
2020-10-23 16:27:19 +00:00
Antonella Dellanzo
3b0ae16db3 Fix params of flicker assertions
As now the AssertionTypes in Flicker checks for the bug id to set the default value of the enabled param (ag/12886026), we are fixing all the calls to the assertions types as the params order changed.

Test: atest WMShellFlickerTests
Bug: b/162923992
Change-Id: I04c0b70aeb201dc1d7627571cc4809e959bd2370
2020-10-23 09:04:52 +00:00
Sergey Nikolaienkov
2bee685151 Fix WMShellFlickerTest on TV
Add intent-filter for LEANBACK_LAUNCHER to PipActivity and ImeActivity
in com.android.wm.shell.flicker.testapp.

Bug: 170484870
Test: atest WMShellFlickerTests:PipKeyboardTest
Change-Id: Ib9be4d4c30c5759a18b67be1a606c06562b47d3c
2020-10-22 13:46:05 +00:00
Yuncheol Heo
bc0e28b480 Migrate FlickerPiPTests to WmShellFlickerTests.
- This CL migrates FlickerPiPTests.java to WmShell: http://shortn/_Y4GUnepWZl
- This introduces ImeAppHelper and ImeActivity from FlickerTests.
- This uses launchActivity() function to launch Keyboard Activity, since UiAutomator doesn't support to launch the multiple Activities in a task: http://shortn/_KlCIzvahyr

Bug: 167233905
Test: atest WMShellFlickerTests:PipKeyboardTest
Change-Id: I990e6e83213610ca657dbc69f4535971760fde65
2020-10-06 23:54:43 -07:00
Nataniel Borges
28823f1d5c Refactor flickerlib dependencies
Previously the flickerlib had some pixel specific code, now it's
general. All pixel specific code either should migrate to FlickerTests
or to flickerlib-helpers

Test: atest FlickerTests
Change-Id: Ibca99f2bf68a511f73130439f6334a01e47a8671
2020-09-01 10:52:13 +02:00
Hongwei Wang
bbf561ac3a Add flicker test for WM Shell
Separated folders in libs/WindowManager/Shell/tests
- unittest, for unit tests
- flicker, for this flicker tests
- propose to add functional/ folder for functional tests

Note also
- Copied over EnterPipTest from existing flicker tests as proof of
concept
- TODO: need to figure out the next step for the flicker test library
itself as it's currently packaged in com.android.server.wm

Bug: 161561007
Test: atest WMShellFlickerTests
Test: atest WMShellUnitTests
Change-Id: Ic06e7cb0f98151591ccb9f5217260939349a9aa5
2020-08-20 16:13:57 -07:00