summaryrefslogtreecommitdiffstats
path: root/telephony/java/com
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2014-04-26 00:20:02 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-26 00:20:02 +0000
commit1c1827a6402c3a1f38ba077289a9022f6e6d3f73 (patch)
treef2a05f4bb80a9c867670c0728677bd0b867efa90 /telephony/java/com
parentdfdeabf9ba40ea7f082acf7eba6fe086d2e643fb (diff)
parent3f4867f49d6c1932117e3519ce10d11f37829f19 (diff)
downloadframeworks_base-1c1827a6402c3a1f38ba077289a9022f6e6d3f73.zip
frameworks_base-1c1827a6402c3a1f38ba077289a9022f6e6d3f73.tar.gz
frameworks_base-1c1827a6402c3a1f38ba077289a9022f6e6d3f73.tar.bz2
am 3f4867f4: Merge "Telephony: Add functionality to handle ICC IO error"
* commit '3f4867f49d6c1932117e3519ce10d11f37829f19': Telephony: Add functionality to handle ICC IO error
Diffstat (limited to 'telephony/java/com')
-rw-r--r--telephony/java/com/android/internal/telephony/IccCardConstants.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/IccCardConstants.java b/telephony/java/com/android/internal/telephony/IccCardConstants.java
index 236bb2f..8029713 100644
--- a/telephony/java/com/android/internal/telephony/IccCardConstants.java
+++ b/telephony/java/com/android/internal/telephony/IccCardConstants.java
@@ -28,6 +28,8 @@ public class IccCardConstants {
public static final String INTENT_VALUE_ICC_NOT_READY = "NOT_READY";
/* ABSENT means ICC is missing */
public static final String INTENT_VALUE_ICC_ABSENT = "ABSENT";
+ /* CARD_IO_ERROR means for three consecutive times there was SIM IO error */
+ static public final String INTENT_VALUE_ICC_CARD_IO_ERROR = "CARD_IO_ERROR";
/* LOCKED means ICC is locked by pin or by network */
public static final String INTENT_VALUE_ICC_LOCKED = "LOCKED";
/* READY means ICC is ready to access */
@@ -63,7 +65,8 @@ public class IccCardConstants {
NETWORK_LOCKED,
READY,
NOT_READY,
- PERM_DISABLED;
+ PERM_DISABLED,
+ CARD_IO_ERROR;
public boolean isPinLocked() {
return ((this == PIN_REQUIRED) || (this == PUK_REQUIRED));
@@ -72,7 +75,7 @@ public class IccCardConstants {
public boolean iccCardExist() {
return ((this == PIN_REQUIRED) || (this == PUK_REQUIRED)
|| (this == NETWORK_LOCKED) || (this == READY)
- || (this == PERM_DISABLED));
+ || (this == PERM_DISABLED) || (this == CARD_IO_ERROR));
}
}
}