summaryrefslogtreecommitdiffstats
path: root/telecomm/java/com/android/internal
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-09-08 09:52:22 -0700
committerTyler Gunn <tgunn@google.com>2014-09-11 17:13:51 +0000
commita1ed7d10942cea97147dee8d79cee737766e539a (patch)
tree643f28dd0ddf66ecb9cd63549a62e2d028dd1ae9 /telecomm/java/com/android/internal
parent4823aecef3d7170008003f18fb4f13c385efefc7 (diff)
downloadframeworks_base-a1ed7d10942cea97147dee8d79cee737766e539a.zip
frameworks_base-a1ed7d10942cea97147dee8d79cee737766e539a.tar.gz
frameworks_base-a1ed7d10942cea97147dee8d79cee737766e539a.tar.bz2
Allowing enable/disable of phone accounts. (1/3)
- added "hasCapabilities" method on PhoneAccount. - added CAPABILITY_PLACE_EMERGENCY_CALLS. - added isEnabled method builder constructor to initialize from an existing PhoneAccount. Bug: 17306514 Bug: 17408536 Change-Id: I57de508b4adcf207f3b29cab449bfc634db80153
Diffstat (limited to 'telecomm/java/com/android/internal')
-rw-r--r--telecomm/java/com/android/internal/telecomm/ITelecommService.aidl24
1 files changed, 22 insertions, 2 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
index 6ab78c4..30f2801 100644
--- a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
+++ b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
@@ -50,9 +50,9 @@ interface ITelecommService {
void setUserSelectedOutgoingPhoneAccount(in PhoneAccountHandle account);
/**
- * @see TelecommServiceImpl#getOutgoingPhoneAccounts
+ * @see TelecommServiceImpl#getEnabledPhoneAccounts
*/
- List<PhoneAccountHandle> getOutgoingPhoneAccounts();
+ List<PhoneAccountHandle> getEnabledPhoneAccounts();
/**
* @see TelecommManager#getPhoneAccountsSupportingScheme
@@ -65,6 +65,21 @@ interface ITelecommService {
PhoneAccount getPhoneAccount(in PhoneAccountHandle account);
/**
+ * @see TelecommManager#getAllPhoneAccountsCount
+ */
+ int getAllPhoneAccountsCount();
+
+ /**
+ * @see TelecommManager#getAllPhoneAccounts
+ */
+ List<PhoneAccount> getAllPhoneAccounts();
+
+ /**
+ * @see TelecommManager#getAllPhoneAccountHandles
+ */
+ List<PhoneAccountHandle> getAllPhoneAccountHandles();
+
+ /**
* @see TelecommServiceImpl#getSimCallManager
*/
PhoneAccountHandle getSimCallManager();
@@ -80,6 +95,11 @@ interface ITelecommService {
List<PhoneAccountHandle> getSimCallManagers();
/**
+ * @see TelecommServiceImpl#setPhoneAccountEnabled
+ */
+ void setPhoneAccountEnabled(in PhoneAccountHandle account, in boolean isEnabled);
+
+ /**
* @see TelecommServiceImpl#registerPhoneAccount
*/
void registerPhoneAccount(in PhoneAccount metadata);