aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibin.Tang@motorola.com <w16529@motorola.com>2014-12-07 12:49:07 -0600
committerPavel Zhamaitsiak <pavelz@google.com>2014-12-09 09:47:12 -0800
commit6dd039f557a92eb308a94799da95e5fa27bec492 (patch)
treea0e2c43689123b90d755df9a1d941b12c5a1b62b
parenta6fbae9f8c793118e008a98d3576df316bf0364a (diff)
downloadims-6dd039f557a92eb308a94799da95e5fa27bec492.tar.gz
IMS: add an ImsConfig api to get volte provisioned value.
Bug: 18576107 Change-Id: I84c66089291ffb4051ed7ef70d4a2bcf4a24c3d7
-rw-r--r--src/java/com/android/ims/ImsConfig.java25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/java/com/android/ims/ImsConfig.java b/src/java/com/android/ims/ImsConfig.java
index 6627a688..eb4ee01a 100644
--- a/src/java/com/android/ims/ImsConfig.java
+++ b/src/java/com/android/ims/ImsConfig.java
@@ -247,7 +247,7 @@ public class ImsConfig {
/**
* Gets the value for IMS service/capabilities parameters used by IMS stack.
* This function should not be called from the mainthread as it could block the
- * mainthread to cause ANR.
+ * mainthread.
*
* @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
* @return the value in Integer format.
@@ -270,7 +270,7 @@ public class ImsConfig {
/**
* Gets the value for IMS service/capabilities parameters used by IMS stack.
* This function should not be called from the mainthread as it could block the
- * mainthread to cause ANR.
+ * mainthread.
*
* @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
* @return value in String format.
@@ -294,7 +294,7 @@ public class ImsConfig {
* Sets the value for IMS service/capabilities parameters by
* the operator device management entity.
* This function should not be called from main thread as it could block
- * mainthread to cause ANR.
+ * mainthread.
*
* @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
* @param value in Integer format.
@@ -326,6 +326,8 @@ public class ImsConfig {
/**
* Sets the value for IMS service/capabilities parameters by
* the operator device management entity.
+ * This function should not be called from main thread as it could block
+ * mainthread.
*
* @param item, as defined in com.android.ims.ImsConfig#ConfigConstants.
* @param value in String format.
@@ -399,4 +401,21 @@ public class ImsConfig {
ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE);
}
}
+
+ /**
+ * Gets the value for IMS Volte provisioned.
+ * It should be the same as operator provisioned value if applies.
+ *
+ * @return boolean
+ *
+ * @throws ImsException if calling the IMS service results in an error.
+ */
+ public boolean getVolteProvisioned() throws ImsException {
+ try {
+ return miConfig.getVolteProvisioned();
+ } catch (RemoteException e) {
+ throw new ImsException("getVolteProvisioned()", e,
+ ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE);
+ }
+ }
}