summaryrefslogtreecommitdiff
path: root/tests/FlickerTests/src
diff options
context:
space:
mode:
authorNataniel Borges <natanieljr@google.com>2020-01-28 16:47:03 +0100
committerNataniel Borges <natanieljr@google.com>2020-01-28 16:47:18 +0100
commite894f6a870d933529a6b3fb95b04c24b92a9682a (patch)
treed746fb13d98cb74f9e6da80a8795eab97f9c38cf /tests/FlickerTests/src
parent3e1548f5a51716c2a0a19db71a9e5f76511032a9 (diff)
Reduce the number of rotations of flicker tests
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
Diffstat (limited to 'tests/FlickerTests/src')
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/ChangeAppRotationTest.java2
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/SeamlessAppRotationTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/ChangeAppRotationTest.java b/tests/FlickerTests/src/com/android/server/wm/flicker/ChangeAppRotationTest.java
index 42cafd43f8bd..5a66e805c575 100644
--- a/tests/FlickerTests/src/com/android/server/wm/flicker/ChangeAppRotationTest.java
+++ b/tests/FlickerTests/src/com/android/server/wm/flicker/ChangeAppRotationTest.java
@@ -66,7 +66,7 @@ public class ChangeAppRotationTest extends FlickerTestBase {
@Parameters(name = "{0}-{1}")
public static Collection<Object[]> getParams() {
int[] supportedRotations =
- {Surface.ROTATION_0, Surface.ROTATION_90, Surface.ROTATION_270};
+ {Surface.ROTATION_0, Surface.ROTATION_90};
Collection<Object[]> params = new ArrayList<>();
for (int begin : supportedRotations) {
for (int end : supportedRotations) {
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/SeamlessAppRotationTest.java b/tests/FlickerTests/src/com/android/server/wm/flicker/SeamlessAppRotationTest.java
index ae55a75d7e67..14e262963575 100644
--- a/tests/FlickerTests/src/com/android/server/wm/flicker/SeamlessAppRotationTest.java
+++ b/tests/FlickerTests/src/com/android/server/wm/flicker/SeamlessAppRotationTest.java
@@ -65,7 +65,7 @@ public class SeamlessAppRotationTest extends FlickerTestBase {
@Parameters(name = "{0}")
public static Collection<Object[]> getParams() {
int[] supportedRotations =
- {Surface.ROTATION_0, Surface.ROTATION_90, Surface.ROTATION_270};
+ {Surface.ROTATION_0, Surface.ROTATION_90};
Collection<Object[]> params = new ArrayList<>();
ArrayList<Intent> testIntents = new ArrayList<>();
@@ -108,7 +108,7 @@ public class SeamlessAppRotationTest extends FlickerTestBase {
super.runTransition(
changeAppRotation(mIntent, intentId, InstrumentationRegistry.getContext(),
- mUiDevice, mBeginRotation, mEndRotation).repeat(5).build());
+ mUiDevice, mBeginRotation, mEndRotation).build());
}
@Test