summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-11-04 00:51:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-04 00:51:29 +0000
commitf950301945164f5318ea50401fcf23bef824fa9c (patch)
tree7acd5f59bd62fe3d1450ee3adf0432bbc1fc5022 /telecomm/java/android
parentd1f1ea76e854d518803d68a31e35b34841468f4c (diff)
parentb2299c13037d0f7fc5276ff2b21c53cb20c054c5 (diff)
downloadframeworks_base-f950301945164f5318ea50401fcf23bef824fa9c.zip
frameworks_base-f950301945164f5318ea50401fcf23bef824fa9c.tar.gz
frameworks_base-f950301945164f5318ea50401fcf23bef824fa9c.tar.bz2
Merge "Adn queries for multi-SIM. (2/3)" into lmp-mr1-dev
Diffstat (limited to 'telecomm/java/android')
-rw-r--r--telecomm/java/android/telecom/TelecomManager.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java
index 4eac5ac..d98a255 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -17,6 +17,7 @@ package android.telecom;
import android.annotation.SystemApi;
import android.content.ComponentName;
import android.content.Context;
+import android.net.Uri;
import android.os.Bundle;
import android.os.RemoteException;
import android.os.ServiceManager;
@@ -926,7 +927,6 @@ public class TelecomManager {
* @param accountHandle The handle for the account the MMI code should apply to.
* @param dialString The digits to dial.
* @return True if the digits were processed as an MMI code, false otherwise.
- *
*/
public boolean handleMmi(PhoneAccountHandle accountHandle, String dialString) {
ITelecomService service = getTelecomService();
@@ -941,6 +941,24 @@ public class TelecomManager {
}
/**
+ * @param accountHandle The handle for the account to derive an adn query URI for or
+ * {@code null} to return a URI which will use the default account.
+ * @return The URI (with the content:// scheme) specific to the specified {@link PhoneAccount}
+ * for the the content retrieve.
+ */
+ public Uri getAdnUriForPhoneAccount(PhoneAccountHandle accountHandle) {
+ ITelecomService service = getTelecomService();
+ if (service != null && accountHandle != null) {
+ try {
+ return service.getAdnUriForPhoneAccount(accountHandle);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error calling ITelecomService#getAdnUriForPhoneAccount", e);
+ }
+ }
+ return Uri.parse("content://icc/adn");
+ }
+
+ /**
* Removes the missed-call notification if one is present.
* <p>
* Requires that the method-caller be set as the system dialer app.