diff options
author | Yujing Gu <guy@codeaurora.org> | 2015-12-16 15:01:53 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-05-21 16:24:14 -0700 |
commit | 7ebf5f4617f34409b2b78abb2b174b28fd9c6a3f (patch) | |
tree | f0311aa3a2d385d7c6ff661d6b005ce817b53e95 /telephony | |
parent | 5fafd29ddcc892ed057653a3e5481f655e5a87a0 (diff) | |
download | frameworks_base-7ebf5f4617f34409b2b78abb2b174b28fd9c6a3f.zip frameworks_base-7ebf5f4617f34409b2b78abb2b174b28fd9c6a3f.tar.gz frameworks_base-7ebf5f4617f34409b2b78abb2b174b28fd9c6a3f.tar.bz2 |
Add 3 APIs for card application
1. Add API to get number of applications on this card.
2. Add API to get the application type of the specified app index.
3. Add API to get the application state of the specified app index.
Change-Id: I5f73eb4aa3ebcd5308f398924eb2f4a2e7e39696
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/IExtTelephony.aidl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/IExtTelephony.aidl b/telephony/java/com/android/internal/telephony/IExtTelephony.aidl index f98a0d8..f538a46 100644 --- a/telephony/java/com/android/internal/telephony/IExtTelephony.aidl +++ b/telephony/java/com/android/internal/telephony/IExtTelephony.aidl @@ -123,4 +123,42 @@ interface IExtTelephony { * @return true or false */ boolean isFdnEnabled(); + + /** + * Get application count from card. + * @param - slotId user preferred slotId + * @return application count + */ + int getUiccApplicationCount(int slotId); + + /** + * Get application type by index. + * @param - slotId user preferred slotId + * - appIndex application index + * @return application type as Integer, below are + * supported return values: + * '0' - APPTYPE_UNKNOWN + * '1' - APPTYPE_SIM + * '2' - APPTYPE_USIM + * '3 - APPTYPE_RUIM + * '4' - APPTYPE_CSIM + * '5' - APPTYPE_ISIM + */ + int getUiccApplicationType(int slotId, int appIndex); + + /** + * Get application state by index. + * @param - slotId user preferred slotId + * - appIndex application index + * @return application state as Integer, below are + * supported return values: + * '0' - APPSTATE_UNKNOWN + * '1' - APPSTATE_DETECTED + * '2' - APPSTATE_PIN + * '3 - APPSTATE_PUK + * '4' - APPSTATE_SUBSCRIPTION_PERSO + * '5' - APPSTATE_READY + */ + int getUiccApplicationState(int slotId, int appIndex); + } |