Merge "Merge "Merge "Fix for testOnCannedTextResponsesLoaded" into marshmallow-cts-dev am: 3f7a9a92dd" into nougat-cts-dev am: 728b6f4dc7" into nougat-mr1-cts-dev
diff --git a/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java b/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java
index 7fc5958..4e5949f 100644
--- a/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java
+++ b/tests/tests/telecom/src/android/telecom/cts/ExtendedInCallServiceTest.java
@@ -30,6 +30,7 @@
import android.telecom.InCallService;
import android.telecom.TelecomManager;
import android.telecom.VideoProfile;
+import android.telephony.TelephonyManager;
import java.util.List;
@@ -477,6 +478,11 @@
return;
}
+ TelephonyManager tm = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
+ if (tm != null && !tm.isSmsCapable()) {
+ return ;
+ }
+
addAndVerifyNewIncomingCall(createTestNumber(), null);
verifyConnectionForIncomingCall();
final MockInCallService inCallService = mInCallCallbacks.getService();