From 7ebf5f4617f34409b2b78abb2b174b28fd9c6a3f Mon Sep 17 00:00:00 2001 From: Yujing Gu Date: Wed, 16 Dec 2015 15:01:53 +0800 Subject: 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 --- .../android/internal/telephony/IExtTelephony.aidl | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'telephony') 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); + } -- cgit v1.1