From b0cad32c3cadd0387f6dcd82aade629e6f2f6bee Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Wed, 8 Oct 2014 18:47:40 -0700 Subject: Add API method to extract subscription ID from phone account (1/3) Since Telephony uses subscription ids and Telecom uses Phone Accounts, there should be an easy way to interface between the two. Since the value of the subscription id and "id" of the phone account should be the same in the case of a SIM phone account, we just need to check that the phone account in question is a SIM phone account and convert the string to a long. This lays in groundwork for the following bugs: Bug: 17925501 Bug: 17917937 Change-Id: I926e969b365d9e9878436302117e8786ec5513b8 --- .../java/com/android/internal/telecom/ITelecomService.aidl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'telecomm/java/com') diff --git a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl index feb09d5..8c78673 100644 --- a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl +++ b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl @@ -35,6 +35,16 @@ interface ITelecomService { void showInCallScreen(boolean showDialpad); /** + * @see TelecomServiceImpl#getPhoneAccountIdForSubscriptionId + */ + String getPhoneAccountIdForSubscriptionId(in long subscriptionId); + + /** + * @see TelecomServiceImpl#getSubscriptionIdForPhoneAccount + */ + long getSubscriptionIdForPhoneAccount(in PhoneAccountHandle account); + + /** * @see TelecomServiceImpl#getDefaultOutgoingPhoneAccount */ PhoneAccountHandle getDefaultOutgoingPhoneAccount(in String uriScheme); -- cgit v1.1