Code example for Parcel

Methods: createByteArrayenforceInterfacereadInt

0
reply.writeString(DESCRIPTOR);
return true; 
} 
case TRANSACTION_getAllMessagesFromSimEf:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List<com.android.internal.telephony.gsm.SmsRawData> _result = this.getAllMessagesFromSimEf();
reply.writeNoException();
reply.writeTypedList(_result);
return true; 
} 
case TRANSACTION_updateMessageOnSimEf:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
byte[] _arg2;
_arg2 = data.createByteArray();
boolean _result = this.updateMessageOnSimEf(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_copyMessageToSimEf:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
byte[] _arg1;
_arg1 = data.createByteArray();
byte[] _arg2;
_arg2 = data.createByteArray();
boolean _result = this.copyMessageToSimEf(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_sendRawPdu:
{ 
data.enforceInterface(DESCRIPTOR);
byte[] _arg0;
_arg0 = data.createByteArray();
byte[] _arg1;
_arg1 = data.createByteArray();
android.app.PendingIntent _arg2;
if ((0!=data.readInt())) {
_arg2 = android.app.PendingIntent.CREATOR.createFromParcel(data);
} 
else { 
_arg2 = null;
} 
android.app.PendingIntent _arg3;
if ((0!=data.readInt())) {
_arg3 = android.app.PendingIntent.CREATOR.createFromParcel(data);
} 
else { 
_arg3 = null;
} 
this.sendRawPdu(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
return true; 
} 
case TRANSACTION_sendMultipartText:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
java.util.List<java.lang.String> _arg2;
Contextual code suggestions in your IDE  Get Codota for Java