diff options
author | Nancy Chen <nancychen@google.com> | 2014-10-17 00:05:14 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-17 00:05:14 +0000 |
commit | 6f0c3f1a9a0a7a72c560e756504541e5fa8ac584 (patch) | |
tree | 538e76166602ff402ddddf39c338eaab6c0cf810 /telecomm/java/android | |
parent | f029a419189954beccd8cddd4f9fb48aa79ae51e (diff) | |
parent | c913c2dec18519ae5b989f65b207c7b3fec2d0ef (diff) | |
download | frameworks_base-6f0c3f1a9a0a7a72c560e756504541e5fa8ac584.zip frameworks_base-6f0c3f1a9a0a7a72c560e756504541e5fa8ac584.tar.gz frameworks_base-6f0c3f1a9a0a7a72c560e756504541e5fa8ac584.tar.bz2 |
am c913c2de: Merge "Revert "Add API method to extract subscription ID from phone account (1/3)"" into lmp-sprout-dev
* commit 'c913c2dec18519ae5b989f65b207c7b3fec2d0ef':
Revert "Add API method to extract subscription ID from phone account (1/3)"
Diffstat (limited to 'telecomm/java/android')
-rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index a86f405..168ac41 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -318,50 +318,6 @@ public class TelecomManager { } /** - * Return the corresponding PhoneAccount id of a given subscription id. - * - * @param subscriptionId The value of the subscription id the caller is trying to get a phone - * account id for. - * @return A string representing the phone account id or null. - * - * @hide - */ - @SystemApi - public String getPhoneAccountIdForSubscriptionId(long subscriptionId) { - try { - if (isServiceConnected()) { - return getTelecomService().getPhoneAccountIdForSubscriptionId(subscriptionId); - } - } catch (RemoteException e) { - Log.e(TAG, "Error calling ITelecomService#getSubscriptionIdForPhoneAccount", e); - } - return null; - } - - /** - * Return the subscription id of the PhoneAccount if it exists. This only applies to PSTN - * or SIM-based phone accounts. Return -1 otherwise. - * - * @param accountHandle The {@link PhoneAccountHandle} the caller is trying to get the - * subscription id for. - * @return The subscription id (a long) or -1 if the phone account is not a SIM or - * a subscription id does not exist. - * - * @hide - */ - @SystemApi - public long getSubscriptionIdForPhoneAccount(PhoneAccountHandle accountHandle) { - try { - if (isServiceConnected()) { - return getTelecomService().getSubscriptionIdForPhoneAccount(accountHandle); - } - } catch (RemoteException e) { - Log.e(TAG, "Error calling ITelecomService#getSubscriptionIdForPhoneAccount", e); - } - return -1; - } - - /** * Return the {@link PhoneAccount} which is the user-chosen default for making outgoing phone * calls with a specified URI scheme. * <p> |