Skip more CtsSystemUiTestCases on no bars devices.
BUG: 141002035
Change-Id: I33b7268a330f32bc3070b5a2a86cc69bf6556d2e
diff --git a/tests/tests/systemui/src/android/systemui/cts/WindowInsetsBehaviorTests.java b/tests/tests/systemui/src/android/systemui/cts/WindowInsetsBehaviorTests.java
index 3645bae..9640802 100644
--- a/tests/tests/systemui/src/android/systemui/cts/WindowInsetsBehaviorTests.java
+++ b/tests/tests/systemui/src/android/systemui/cts/WindowInsetsBehaviorTests.java
@@ -687,6 +687,8 @@
@Test
public void swipeInsideLimit_systemUiVisible_noEventCanceled() throws Throwable {
+ assumeTrue(hasSystemGestureFeature());
+
final int swipeCount = 1;
final boolean insideLimit = true;
testSystemGestureExclusionLimit(swipeCount, insideLimit, SYSTEM_UI_FLAG_VISIBLE);
@@ -698,6 +700,8 @@
@Test
public void swipeOutsideLimit_systemUiVisible_allEventsCanceled() throws Throwable {
+ assumeTrue(hasSystemGestureFeature());
+
final int swipeCount = 1;
final boolean insideLimit = false;
testSystemGestureExclusionLimit(swipeCount, insideLimit, SYSTEM_UI_FLAG_VISIBLE);
@@ -709,6 +713,8 @@
@Test
public void swipeInsideLimit_immersiveSticky_noEventCanceled() throws Throwable {
+ assumeTrue(hasSystemGestureFeature());
+
// The first event may be never canceled. So we need to swipe at least twice.
final int swipeCount = 2;
final boolean insideLimit = true;
@@ -722,6 +728,8 @@
@Test
public void swipeOutsideLimit_immersiveSticky_noEventCanceled() throws Throwable {
+ assumeTrue(hasSystemGestureFeature());
+
// The first event may be never canceled. So we need to swipe at least twice.
final int swipeCount = 2;
final boolean insideLimit = false;