Skip testThemes in Automotive
The testThemes reference picture from vertical orientation, in general,
Automotive device lock screen orientation to the landscape.
Bug:117960163
Test: run cts -m CtsThemeHostTestCases
-t android.theme.cts.ThemeHostTest#testThemes
Change-Id: Ie77aaeb3848ef75f3107a50e5db0165aff279aa7
Signed-off-by: Wang, ArvinX <arvinx.wang@intel.com>
diff --git a/hostsidetests/theme/src/android/theme/cts/ThemeHostTest.java b/hostsidetests/theme/src/android/theme/cts/ThemeHostTest.java
index 3ac1314..de107c7 100644
--- a/hostsidetests/theme/src/android/theme/cts/ThemeHostTest.java
+++ b/hostsidetests/theme/src/android/theme/cts/ThemeHostTest.java
@@ -144,7 +144,7 @@
public void testThemes() throws Exception {
if (checkHardwareTypeSkipTest(mDevice.executeShellCommand(HARDWARE_TYPE_CMD).trim())) {
- Log.logAndDisplay(LogLevel.INFO, LOG_TAG, "Skipped themes test for watch / TV");
+ Log.logAndDisplay(LogLevel.INFO, LOG_TAG, "Skipped themes test for watch / TV / automotive");
return;
}
@@ -288,6 +288,7 @@
private static boolean checkHardwareTypeSkipTest(String hardwareTypeString) {
return hardwareTypeString.contains("android.hardware.type.watch")
- || hardwareTypeString.contains("android.hardware.type.television");
+ || hardwareTypeString.contains("android.hardware.type.television")
+ || hardwareTypeString.contains("android.hardware.type.automotive");
}
}