diff options
author | Ethan Chen <intervigil@gmail.com> | 2013-05-16 23:30:25 -0700 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2013-05-16 23:30:25 -0700 |
commit | f93cdeae46fb8415b9f77de5f5f9e62394a203a6 (patch) | |
tree | 3793dde79126d0cc826ad977af8925107b84af97 /src/java/com | |
parent | 1196b35e54e187a453b8bf6ecfbb37e1f98f83e3 (diff) | |
download | frameworks_opt_telephony-f93cdeae46fb8415b9f77de5f5f9e62394a203a6.zip frameworks_opt_telephony-f93cdeae46fb8415b9f77de5f5f9e62394a203a6.tar.gz frameworks_opt_telephony-f93cdeae46fb8415b9f77de5f5f9e62394a203a6.tar.bz2 |
HTCQualcommRIL: remove unused responseIccCardStatus function
Change-Id: I45fecfe2841911463e2dd02b7728ce5e6eca17a0
Diffstat (limited to 'src/java/com')
-rw-r--r-- | src/java/com/android/internal/telephony/HTCQualcommRIL.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/java/com/android/internal/telephony/HTCQualcommRIL.java b/src/java/com/android/internal/telephony/HTCQualcommRIL.java index b900235..efc5169 100644 --- a/src/java/com/android/internal/telephony/HTCQualcommRIL.java +++ b/src/java/com/android/internal/telephony/HTCQualcommRIL.java @@ -58,56 +58,6 @@ public class HTCQualcommRIL extends RIL implements CommandsInterface { @Override protected Object - responseIccCardStatus(Parcel p) { - IccCardApplicationStatus appStatus; - - // use old needsOldRilFeature method for feature. it would be redundant to make - // a new method just for naming sake. - boolean oldRil = needsOldRilFeature("icccardstatus"); - - IccCardStatus cardStatus = new IccCardStatus(); - cardStatus.setCardState(p.readInt()); - cardStatus.setUniversalPinState(p.readInt()); - cardStatus.mGsmUmtsSubscriptionAppIndex = p.readInt(); - cardStatus.mCdmaSubscriptionAppIndex = p.readInt(); - - if (!oldRil) - cardStatus.mImsSubscriptionAppIndex = p.readInt(); - - int numApplications = p.readInt(); - - // limit to maximum allowed applications - if (numApplications > IccCardStatus.CARD_MAX_APPS) { - numApplications = IccCardStatus.CARD_MAX_APPS; - } - cardStatus.mApplications = new IccCardApplicationStatus[numApplications]; - - for (int i = 0 ; i < numApplications ; i++) { - appStatus = new IccCardApplicationStatus(); - appStatus.app_type = appStatus.AppTypeFromRILInt(p.readInt()); - appStatus.app_state = appStatus.AppStateFromRILInt(p.readInt()); - appStatus.perso_substate = appStatus.PersoSubstateFromRILInt(p.readInt()); - if ((appStatus.app_state == IccCardApplicationStatus.AppState.APPSTATE_SUBSCRIPTION_PERSO) && - ((appStatus.perso_substate == IccCardApplicationStatus.PersoSubState.PERSOSUBSTATE_READY) || - (appStatus.perso_substate == IccCardApplicationStatus.PersoSubState.PERSOSUBSTATE_UNKNOWN))) { - // ridiculous HTC hack - appStatus.app_state = IccCardApplicationStatus.AppState.APPSTATE_UNKNOWN; - Log.d(LOG_TAG, "ca.app_state == AppState.APPSTATE_SUBSCRIPTION_PERSO"); - Log.d(LOG_TAG, "ca.perso_substate == PersoSubState.PERSOSUBSTATE_READY"); - } - appStatus.aid = p.readString(); - appStatus.app_label = p.readString(); - appStatus.pin1_replaced = p.readInt(); - appStatus.pin1 = appStatus.PinStateFromRILInt(p.readInt()); - appStatus.pin2 = appStatus.PinStateFromRILInt(p.readInt()); - cardStatus.mApplications[i] = appStatus; - } - - return cardStatus; - } - - @Override - protected Object responseSignalStrength(Parcel p) { /* HTC signal strength format: * 0: GW_SignalStrength |