Create Public API which exposes if the device is in a state where
simultaneous voice and data are possible.
BUG: 32912296
Test: Not required.
Change-Id: I4371d14acd001272db010b25ec26f82dec208334
Merged-In: I4371d14acd001272db010b25ec26f82dec208334
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 8670ae2..6ba2f37 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2139,6 +2139,16 @@
}
/**
+ * returns true, if the device is in a state where both voice and data
+ * are supported simultaneously. This can change based on location or network condition.
+ */
+ @Override
+ public boolean isConcurrentVoiceAndDataAllowed(int subId) {
+ final Phone phone = getPhone(subId);
+ return (phone == null ? false : phone.isConcurrentVoiceAndDataAllowed());
+ }
+
+ /**
* Returns the data network type.
* Legacy call, permission-free.
*