diff options
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; } |