aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/android/ims/ImsManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/android/ims/ImsManager.java')
-rw-r--r--src/java/com/android/ims/ImsManager.java24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/java/com/android/ims/ImsManager.java b/src/java/com/android/ims/ImsManager.java
index 1ae8606a..521b46ad 100644
--- a/src/java/com/android/ims/ImsManager.java
+++ b/src/java/com/android/ims/ImsManager.java
@@ -2208,7 +2208,7 @@ public class ImsManager {
}
}
- public void onSmsReady() throws ImsException{
+ public void onSmsReady() throws ImsException {
try {
mMmTelFeatureConnection.onSmsReady();
} catch (RemoteException e) {
@@ -2218,6 +2218,28 @@ public class ImsManager {
}
/**
+ * Determines whether or not a call with the specified numbers should be placed over IMS or over
+ * CSFB.
+ * @param isEmergency is at least one call an emergency number.
+ * @param numbers A {@link String} array containing the numbers in the call being placed. Can
+ * be multiple numbers in the case of dialing out a conference.
+ * @return The result of the query, one of the following values:
+ * - {@link MmTelFeature#PROCESS_CALL_IMS}
+ * - {@link MmTelFeature#PROCESS_CALL_CSFB}
+ * @throws ImsException if the ImsService is not available. In this case, we should fall back
+ * to CSFB anyway.
+ */
+ public @MmTelFeature.ProcessCallResult int shouldProcessCall(boolean isEmergency,
+ String[] numbers) throws ImsException {
+ try {
+ return mMmTelFeatureConnection.shouldProcessCall(isEmergency, numbers);
+ } catch (RemoteException e) {
+ throw new ImsException("shouldProcessCall()", e,
+ ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN);
+ }
+ }
+
+ /**
* Gets the Multi-Endpoint interface to subscribe to multi-enpoint notifications..
*
* @return the multi-endpoint interface instance