diff options
author | Ihab Awad <ihab@google.com> | 2014-07-09 12:30:52 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2014-07-14 18:19:27 +0000 |
commit | 807fe0a19a710ae4e053e80f610807ff5718f1a1 (patch) | |
tree | b9216a1eea3b8ee8a6108f426978762e8dc958a0 /telecomm/java/com | |
parent | 8fbd0dc30328338cb7a6675ce7e0fe48a7815e1b (diff) | |
download | frameworks_base-807fe0a19a710ae4e053e80f610807ff5718f1a1.zip frameworks_base-807fe0a19a710ae4e053e80f610807ff5718f1a1.tar.gz frameworks_base-807fe0a19a710ae4e053e80f610807ff5718f1a1.tar.bz2 |
Implement multi-SIM capabilities (1/6) [DO NOT MERGE]
- Split PhoneAccount into PhoneAccount & PhoneAccountMetadata
- Move PhoneAccount methods from TelephonyManager to TelecommManager
Bug:16292368
Change-Id: Ib440368d6bd0572b63c942360450fde5c27d84b9
(cherry picked from commit 936b3552b4a3569be9904c826b95b632886fb45d)
Diffstat (limited to 'telecomm/java/com')
-rw-r--r-- | telecomm/java/com/android/internal/telecomm/ITelecommService.aidl | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl index 30e4bdc..3334385 100644 --- a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl +++ b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl @@ -18,6 +18,7 @@ package com.android.internal.telecomm; import android.content.ComponentName; import android.telecomm.PhoneAccount; +import android.telecomm.PhoneAccountMetadata; /** * Interface used to interact with Telecomm. Mostly this is used by TelephonyManager for passing @@ -33,22 +34,32 @@ interface ITelecommService { void showCallScreen(boolean showDialpad); /** - * Gets a list of accounts. + * @see TelecommManager#getEnabledPhoneAccounts */ - List<PhoneAccount> getAccounts(); + List<PhoneAccount> getEnabledPhoneAccounts(); /** - * Sets the enabled state of a given account. + * @see TelecommManager#getPhoneAccountMetadata */ - void setEnabled(in PhoneAccount account, boolean enabled); + PhoneAccountMetadata getPhoneAccountMetadata(in PhoneAccount account); /** - * Sets a given account as the system default. + * @see TelecommManager#registerPhoneAccount */ - void setSystemDefault(in PhoneAccount account); + void registerPhoneAccount(in PhoneAccount account, in PhoneAccountMetadata metadata); /** - * Returns the component name of the default phone application. + * @see TelecommManager#unregisterPhoneAccount + */ + void unregisterPhoneAccount(in PhoneAccount account); + + /** + * @see TelecommManager#clearAccounts + */ + void clearAccounts(String packageName); + + /** + * @see TelecommManager#getDefaultPhoneApp */ ComponentName getDefaultPhoneApp(); |