summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shishir Agrawal <shishir@google.com> 2014-08-25 08:53:29 -0700
committer Shishir Agrawal <shishir@google.com> 2014-08-25 09:09:41 -0700
commitef489ef8ef1ccb283485d2c308cef58067654cb2 (patch)
tree57d7133f0870ec7628f45a38745d901517aaa614
parent7af40415dc2aa510bdb483519726aa3ae75bd765 (diff)
Modify IccOpenLogicalChannelResponse: Document and rename constants.
Bug: 17189780 Change-Id: Iac96e3bc7265d20f21b29d4a05b615c5ff3cdd6e
-rw-r--r--api/current.txt8
-rw-r--r--telephony/java/android/telephony/IccOpenLogicalChannelResponse.java21
2 files changed, 19 insertions, 10 deletions
diff --git a/api/current.txt b/api/current.txt
index eacc45261261..25710b3ba26b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -28991,10 +28991,10 @@ package android.telephony {
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator CREATOR;
field public static int INVALID_CHANNEL;
- field public static int MISSING_RESOURCE;
- field public static int NO_ERROR;
- field public static int NO_SUCH_ELEMENT;
- field public static int UNKNOWN_ERROR;
+ field public static int STATUS_MISSING_RESOURCE;
+ field public static int STATUS_NO_ERROR;
+ field public static int STATUS_NO_SUCH_ELEMENT;
+ field public static int STATUS_UNKNOWN_ERROR;
}
public class MessagingConfigurationManager {
diff --git a/telephony/java/android/telephony/IccOpenLogicalChannelResponse.java b/telephony/java/android/telephony/IccOpenLogicalChannelResponse.java
index e9db030be000..dbe38eabbff6 100644
--- a/telephony/java/android/telephony/IccOpenLogicalChannelResponse.java
+++ b/telephony/java/android/telephony/IccOpenLogicalChannelResponse.java
@@ -24,14 +24,23 @@ import android.os.Parcelable;
* Response to the {@link TelephonyManager#iccOpenLogicalChannel} command.
*/
public class IccOpenLogicalChannelResponse implements Parcelable {
- // Indicates an invalid channel.
+ /**
+ * Indicates an invalid channel.
+ */
public static int INVALID_CHANNEL = -1;
- // Possible status values.
- public static int NO_ERROR = 1;
- public static int MISSING_RESOURCE = 2;
- public static int NO_SUCH_ELEMENT = 3;
- public static int UNKNOWN_ERROR = 4;
+ /**
+ * Possible status values returned by open channel command.
+ *
+ * STATUS_NO_ERROR: Open channel command returned successfully.
+ * STATUS_MISSING_RESOURCE: No logical channels available.
+ * STATUS_NO_SUCH_ELEMENT: AID not found on UICC.
+ * STATUS_UNKNOWN_ERROR: Unknown error in open channel command.
+ */
+ public static int STATUS_NO_ERROR = 1;
+ public static int STATUS_MISSING_RESOURCE = 2;
+ public static int STATUS_NO_SUCH_ELEMENT = 3;
+ public static int STATUS_UNKNOWN_ERROR = 4;
private final int mChannel;
private final int mStatus;