summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Stuart <tjstuart@google.com>2024-05-01 23:30:42 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-05-01 23:30:42 +0000
commit36b0579da0e287abb0dc0599c05a09e639550140 (patch)
tree921516bbf696a1b766d3c9d3db276232017c65e1
parent729cad72c875e3adabe42ef46601150450cfe608 (diff)
parentb8d9c4b124f82daa48da8cf8d061b7b488d5011e (diff)
downloadcts-36b0579da0e287abb0dc0599c05a09e639550140.tar.gz
Merge "add configuration for UI_MODE_TYPE_CAR for BaseTelecomTestWMockServices" into android13-tests-dev
-rw-r--r--tests/tests/telecom/src/android/telecom/cts/BaseTelecomTestWithMockServices.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tests/telecom/src/android/telecom/cts/BaseTelecomTestWithMockServices.java b/tests/tests/telecom/src/android/telecom/cts/BaseTelecomTestWithMockServices.java
index 439b37790d9..c0ce1a50e53 100644
--- a/tests/tests/telecom/src/android/telecom/cts/BaseTelecomTestWithMockServices.java
+++ b/tests/tests/telecom/src/android/telecom/cts/BaseTelecomTestWithMockServices.java
@@ -276,9 +276,12 @@ public class BaseTelecomTestWithMockServices extends InstrumentationTestCase {
TestUtils.executeShellCommand(getInstrumentation(), "telecom reset-car-mode");
if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
- assertUiMode(Configuration.UI_MODE_TYPE_WATCH);
+ assertUiMode(Configuration.UI_MODE_TYPE_WATCH);
+ } else if (mContext.getPackageManager().hasSystemFeature(
+ PackageManager.FEATURE_AUTOMOTIVE)) {
+ assertUiMode(Configuration.UI_MODE_TYPE_CAR);
} else {
- assertUiMode(Configuration.UI_MODE_TYPE_NORMAL);
+ assertUiMode(Configuration.UI_MODE_TYPE_NORMAL);
}
AppOpsManager aom = mContext.getSystemService(AppOpsManager.class);