diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-05-10 20:24:45 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-10 20:24:45 +0000 |
commit | 49a5036234a1c29000692c20db4d1eceb4b5245b (patch) | |
tree | 84825db974a2033e990b355ff270c2ac4c9ca9dd | |
parent | c72af0d55eb26ab443c58fe84d6d412d54df99c1 (diff) | |
parent | 083f8b938c992bcbfed79661b93e6ceb1be86b49 (diff) | |
download | cts-main.tar.gz |
5 files changed, 9 insertions, 9 deletions
diff --git a/tests/tests/telecom/src/android/telecom/cts/BackgroundCallAudioTest.java b/tests/tests/telecom/src/android/telecom/cts/BackgroundCallAudioTest.java index f0a6d890b01..046429ec17e 100644 --- a/tests/tests/telecom/src/android/telecom/cts/BackgroundCallAudioTest.java +++ b/tests/tests/telecom/src/android/telecom/cts/BackgroundCallAudioTest.java @@ -226,7 +226,7 @@ public class BackgroundCallAudioTest extends BaseTelecomTestWithMockServices { } public void testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall() throws Exception { - if (!mShouldTestTelecom) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } setupForEmergencyCalling(TEST_EMERGENCY_NUMBER); @@ -271,7 +271,7 @@ public class BackgroundCallAudioTest extends BaseTelecomTestWithMockServices { } public void testAudioProcessingFromIncomingActivePlaceEmergencyCall() throws Exception { - if (!mShouldTestTelecom) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } setupForEmergencyCalling(TEST_EMERGENCY_NUMBER); @@ -379,7 +379,7 @@ public class BackgroundCallAudioTest extends BaseTelecomTestWithMockServices { } public void testAudioProcessOutgoingActiveEmergencyCallPlaced() throws Exception { - if (!mShouldTestTelecom) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } setupForEmergencyCalling(TEST_EMERGENCY_NUMBER); diff --git a/tests/tests/telecom/src/android/telecom/cts/CallRedirectionServiceTest.java b/tests/tests/telecom/src/android/telecom/cts/CallRedirectionServiceTest.java index 39b8774b8f8..961ebb7a5d0 100644 --- a/tests/tests/telecom/src/android/telecom/cts/CallRedirectionServiceTest.java +++ b/tests/tests/telecom/src/android/telecom/cts/CallRedirectionServiceTest.java @@ -218,7 +218,7 @@ public class CallRedirectionServiceTest extends BaseTelecomTestWithMockServices } public void testCantRedirectEmergencyCall() throws Exception { - if (!shouldTestTelecom(mContext)) { + if (!shouldTestTelecom(mContext) || !TestUtils.hasTelephonyFeature(mContext)) { return; } Bundle extras = new Bundle(); diff --git a/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java b/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java index 4890bdf6a4a..1e2f40bb4ca 100644 --- a/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java +++ b/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java @@ -863,7 +863,7 @@ public class ExtendedInCallServiceTest extends BaseTelecomTestWithMockServices { } public void testOnCannedTextResponsesLoaded() { - if (!mShouldTestTelecom) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } diff --git a/tests/tests/telecom/src/android/telecom/cts/ExternalCallTest.java b/tests/tests/telecom/src/android/telecom/cts/ExternalCallTest.java index 57ec66c1baf..ec68a42f6d1 100644 --- a/tests/tests/telecom/src/android/telecom/cts/ExternalCallTest.java +++ b/tests/tests/telecom/src/android/telecom/cts/ExternalCallTest.java @@ -118,7 +118,7 @@ public class ExternalCallTest extends BaseTelecomTestWithMockServices { * CAPABILITY_CAN_PLACE_CALL capability is removed. */ public void testPullCallCapabilityRemovedInEmergencyCall() throws Exception { - if (!mShouldTestTelecom) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } setupForEmergencyCalling(TEST_EMERGENCY_NUMBER); @@ -140,7 +140,7 @@ public class ExternalCallTest extends BaseTelecomTestWithMockServices { * ongoing emergency call, the request is not completed. */ public void testTryToPullCallWhileInEmergencyCall() throws Exception { - if (!mShouldTestTelecom) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } setupForEmergencyCalling(TEST_EMERGENCY_NUMBER); @@ -166,7 +166,7 @@ public class ExternalCallTest extends BaseTelecomTestWithMockServices { * test to check external call and pull external call with call and connection states check */ public void testExternalCallAndPullCall() throws Exception { - if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } diff --git a/tests/tests/telecom/src/android/telecom/cts/TelecomManagerTest.java b/tests/tests/telecom/src/android/telecom/cts/TelecomManagerTest.java index cb2ecd591ae..7d20eae7356 100644 --- a/tests/tests/telecom/src/android/telecom/cts/TelecomManagerTest.java +++ b/tests/tests/telecom/src/android/telecom/cts/TelecomManagerTest.java @@ -151,7 +151,7 @@ public class TelecomManagerTest extends BaseTelecomTestWithMockServices { } public void testIsInEmergencyCall_ongoingEmergencyCall() throws Exception { - if (!mShouldTestTelecom) { + if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { return; } |