* changes:
New flicker test: Add rotation to split screen test
Ensure screenshot layer appears during rotation
New FlickerTests: Create initial flicker tests for Pip
Currently the split screen test only starts the app in 0 degrees. As the other tests, start in both 0 and 90 degrees to ensure animations work correctly.
Test: atest FlickerTests:OpenAppToSplitScreenTest
Change-Id: Ied316d9c48b243728544ad4a972cb3e0fa81bec8
Add some additional checks on flicker tests to ensure that the screenshot layer ir correctly being displayed during the rotation animation.
Test: atest FlickerTests:ChangeAppRotationTest, atest FlickerTests:OpenAppColdTest and atest FlickerTests:OpenAppWarmTest
Change-Id: I2a6c74179c07eee86caae08f05430752aa4e084e
Create an initial set of tests for pip. Initial tests are:
- All regions covered
- Status and navigation bar is always visible
- Pip window is shown, expanded, closed, and doesn't flicker
- Pip layer is shown, expanded, closed, and doesn't flicker
- Background is displayed behind Pip window
Test: atest FlickerTests:PipToHomeTest and atest FlickerTests:PipToAppTest
Change-Id: I16345de39a799744b97a5390495538d568693222
When the flicker tests fail we log as well what is the checksum of the trace file which was analyzed to ensure that the file which was tested is the same available for debugging. Also, print the checksum information on the test failure message.
Test: atest FlickerTests, then check if the resulting folder contains a ".sha256" file for each WM/SF trace.
Change-Id: I448bf373e3b837c2e40317809d511a0f5236de1f
These tests are still flaky. Disable them for now so that we can move the flicker tests to presubmit.
Test: atest FlickerTests
Change-Id: I811f32723cdbaece3aff7d6dbb100c0c5b2653fa
To reduce the flicker test time, reduce the tests to consider only:
* Start test at 0 degrees
* Start test at 90 degrees
* Rotation tests from 0 to 90 degrees
* Rotation tests from 90 to 0 degrees
Also, execute each action a single time.
Test: atest FlickerTest
Change-Id: I5976cf950998a8150fd5a1b32f0f1432cd731ee1
Due to bug b/147659548 the seamless rotation is not working properly on the flicker tests. Disable the test until the bug is fixed.
Test: atest FlickerTests
Change-Id: Ib286cadde9019e12dbf7c673cb7f60b53a1687bf
Currently the flicker tests leave data on the /sdcard/flicker directory. We now clean up this data after the test.
The logs are still available in the atest results directory.
Test: atest FlickerTests
Change-Id: Ia83cbedff3104964e3d4be14a7c035f2193d36a8
Sometimes the tests crash because all runs are janky. Our checks are so far robust to jank, so we will consider janky runs too
Test: atest FlickerTests
Change-Id: I20303d530e1a9cc266230530c6f7fa1cecd51020
After a change in the flickerlib the videos are no longer recorded by
default. The tests which need to record a video must signal it.
Test: atest FlickerTests, check if the video exists in /sdcard/flicker
Change-Id: I8e74411ca6bf654ec7c0afcacf1c0591610f50bb
These tests are timing dependent and require the DUT to have the same performance
characteristics as the real devices.
Test: cd frameworks/base/tests/FlickerTests && atest :postsubmit
Change-Id: Ie836aa0a5df1050733169c8bd16adaccbfdf5e3c
* changes:
New FlickerTests: Run split screen tests at 0 and 90 degrees
New FlickerTests: Start app warm and cold at both 0 and 90 degrees
New FlickerTests: Start IME alongside the app (0 and 90 degrees)
New FlickerTests: Start IME tests with app rotated by 90 degrees
When running the flicker tests on postsubmit the apps require the following permission: "android.permission.WRITE_SECURE_SETTINGS"
Test: atest FlickerTests
Change-Id: I6a2647fb6d2351617297b3f89ae3f3edc1aad981
Some flicker tests are failing because of open bugs. Mark them as
ignored until the bugs are fixed to prevent test failures.
Test: atest FlickerTests
Change-Id: If9216bccc32d64cd32ff87fae785df200eae8b79
Flicker tests currently wait 3 seconds until the screen rotation have
been complete. This long delay may hide some issues. Reduce delay to 1
second.
Test: atest FlickerTests
Change-Id: I1646086018fac52c0751ff70fff1f5082fee4685
- Allow recents component to enable/disable layer tracing
- Expose flickerlib classes for use with sysui/launcher tests
- Allow trace files to be moved to a path that the client can read
- Ensure layers are flattened with depth traversal to encode ordering
Bug: 140244969
Test: atest FlickerTests
Change-Id: I7af5699ff5b8a4bc62c1a8105c67b31bc45a2236
Merged-In: Ia0934ec7c2b9484fa6c85f5aa8d9b2e5e6f7dc0f
Some flicker class are marked Ignored causing some issue
with the AJUR runner. To avoid them, simply filter it.
Test: None
Bug: 129468528
Change-Id: I6442204eb6f89b4bf90a39ee821ebc4daebbe120
This commit replaces GoogleDeviceSetup which is not on AOSP.
Test: atest FlickerTests
Bug: 128877715
Change-Id: I2e4167dd7e4e5ef3352cb8fda2f753a0acf2f600
When the Flicker test is unable to launch a split activity it crashes
with a `NullPointerException`.
Change this error into a meaningful error message.
Test: Run `atest WindowManagerSmokeTest`
Change-Id: I1c3c06b3327b94ad6da1a1eabe147182202676a1
platform_testing is moving to AOSP first development. FlickerTests may require access to
in development test apis and cannot be developed in AOSP.
Other minor changes:
- remove FlickerTests from APCT. FlickerTests will use TEST_MAPPING
- use @FlakyTest instead of @Ignore annotation to skip tests
Test: atest FlickerTests
Test: make -j32 continuous_instrumentation_tests
Test: cd frameworks/base/tests/FlickerTests/ && atest :postsubmit
Bug: 112044297
Change-Id: Icc3194ddd9b801034d8797bf2ec60ebff071612c