FileDocCategorySizeDatePackage
IccOpenLogicalChannelResponse.javaAPI DocAndroid 5.1 API3703Thu Mar 12 22:22:42 GMT 2015android.telephony

IccOpenLogicalChannelResponse

public class IccOpenLogicalChannelResponse extends Object implements android.os.Parcelable
Response to the {@link TelephonyManager#iccOpenLogicalChannel} command.

Fields Summary
public static final int
INVALID_CHANNEL
Indicates an invalid channel.
public static final int
STATUS_NO_ERROR
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 final int
STATUS_MISSING_RESOURCE
public static final int
STATUS_NO_SUCH_ELEMENT
public static final int
STATUS_UNKNOWN_ERROR
private final int
mChannel
private final int
mStatus
private final byte[]
mSelectResponse
public static final Parcelable.Creator
CREATOR
Constructors Summary
public IccOpenLogicalChannelResponse(int channel, int status, byte[] selectResponse)
Constructor.

hide


           
           
        mChannel = channel;
        mStatus = status;
        mSelectResponse = selectResponse;
    
private IccOpenLogicalChannelResponse(android.os.Parcel in)
Construct a IccOpenLogicalChannelResponse from a given parcel.

        mChannel = in.readInt();
        mStatus = in.readInt();
        int arrayLength = in.readInt();
        if (arrayLength > 0) {
            mSelectResponse = new byte[arrayLength];
            in.readByteArray(mSelectResponse);
        } else {
            mSelectResponse = null;
        }
    
Methods Summary
public intdescribeContents()

        return 0;
    
public intgetChannel()

return
the channel id.

        return mChannel;
    
public byte[]getSelectResponse()

return
the select response.

        return mSelectResponse;
    
public intgetStatus()

return
the status of the command.

        return mStatus;
    
public java.lang.StringtoString()


    
       
        return "Channel: " + mChannel + " Status: " + mStatus;
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeInt(mChannel);
        out.writeInt(mStatus);
        if (mSelectResponse != null && mSelectResponse.length > 0) {
            out.writeInt(mSelectResponse.length);
            out.writeByteArray(mSelectResponse);
        } else {
            out.writeInt(0);
        }