Modify IccOpenLogicalChannelResponse: Document and rename constants.
Bug: 17189780
Change-Id: I5f60d98fe01fede1e871b59da2954868bab4a1a3
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index c608b1d..5ca4481 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -442,7 +442,7 @@
}
}
openChannelResp = new IccOpenLogicalChannelResponse(channelId,
- IccOpenLogicalChannelResponse.NO_ERROR, selectResponse );
+ IccOpenLogicalChannelResponse.STATUS_NO_ERROR, selectResponse);
} else {
if (ar.result == null) {
loge("iccOpenLogicalChannel: Empty response");
@@ -451,12 +451,12 @@
loge("iccOpenLogicalChannel: Exception: " + ar.exception);
}
- int errorCode = IccOpenLogicalChannelResponse.UNKNOWN_ERROR;
+ int errorCode = IccOpenLogicalChannelResponse.STATUS_UNKNOWN_ERROR;
if ((ar.exception != null) && (ar.exception instanceof CommandException)) {
if (ar.exception.getMessage().compareTo("MISSING_RESOURCE") == 0) {
- errorCode = IccOpenLogicalChannelResponse.MISSING_RESOURCE;
+ errorCode = IccOpenLogicalChannelResponse.STATUS_MISSING_RESOURCE;
} else if (ar.exception.getMessage().compareTo("NO_SUCH_ELEMENT") == 0) {
- errorCode = IccOpenLogicalChannelResponse.NO_SUCH_ELEMENT;
+ errorCode = IccOpenLogicalChannelResponse.STATUS_NO_SUCH_ELEMENT;
}
}
openChannelResp = new IccOpenLogicalChannelResponse(