Modify IccOpenLogicalChannelResponse: Document and rename constants.

Bug: 17189780

Change-Id: Iac96e3bc7265d20f21b29d4a05b615c5ff3cdd6e
This commit is contained in:
Shishir Agrawal
2014-08-25 08:53:29 -07:00
parent 7af40415dc
commit ef489ef8ef
2 changed files with 19 additions and 10 deletions

View File

@@ -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;