Code example for Parcel

Methods: writeIntwriteNoException

0
} 
case TRANSACTION_status:
{ 
data.enforceInterface(DESCRIPTOR);
int _result = this.status();
reply.writeNoException();
reply.writeInt(_result);
return true; 
} 
case TRANSACTION_loadVCard:
{ 
data.enforceInterface(DESCRIPTOR);
long _arg0;
_arg0 = data.readLong();
boolean _result = this.loadVCard(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_accountConnect:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
boolean _result = this.accountConnect(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_accountDisconnect:
{ 
data.enforceInterface(DESCRIPTOR);
boolean _result = this.accountDisconnect();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_isAccountConnected:
{ 
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isAccountConnected();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_setAccountStatus:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
java.lang.String _arg2;
_arg2 = data.readString();
this.setAccountStatus(_arg0, _arg1, _arg2);
reply.writeNoException();
return true; 
} 
case TRANSACTION_setAutoAway:
{ 
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setAutoAway(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_loadAccounts:
{ 
data.enforceInterface(DESCRIPTOR);
this.loadAccounts();
reply.writeNoException();
return true; 
} 
case TRANSACTION_getAccountRegistrationForm:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _result = this.getAccountRegistrationForm(_arg0);
reply.writeNoException();
reply.writeString(_result);
return true; 
} 
case TRANSACTION_registerAccount:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.util.Map _arg1;
java.lang.ClassLoader cl = (java.lang.ClassLoader)this.getClass().getClassLoader();
_arg1 = data.readHashMap(cl);
boolean _result = this.registerAccount(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_unregisterAccount:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _result = this.unregisterAccount(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_sendMessage:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
this.sendMessage(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_messageQueueSize:
{ 
data.enforceInterface(DESCRIPTOR);
int _result = this.messageQueueSize();
reply.writeNoException();
reply.writeInt(_result);
return true; 
} 
case TRANSACTION_getNextMessage:
{ 
data.enforceInterface(DESCRIPTOR);
org.jabbin.service.MessageContainer _result = this.getNextMessage();
reply.writeNoException();
if ((_result!=null)) {
reply.writeInt(1);
_result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
} 
else { 
reply.writeInt(0);
} 
return true; 
} 
case TRANSACTION_deleteMetaContact:
{ 
data.enforceInterface(DESCRIPTOR);
long _arg0;
_arg0 = data.readLong();
this.deleteMetaContact(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_addContact:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
this.addContact(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_registerClient:
{ 
data.enforceInterface(DESCRIPTOR);
org.jabbin.service.IClient _arg0;
_arg0 = org.jabbin.service.IClient.Stub.asInterface(data.readStrongBinder());
this.registerClient(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_unregisterClient:
{ 
data.enforceInterface(DESCRIPTOR);
org.jabbin.service.IClient _arg0;
_arg0 = org.jabbin.service.IClient.Stub.asInterface(data.readStrongBinder());
this.unregisterClient(_arg0);
reply.writeNoException();
return true; 
} 
} 
return super.onTransact(code, data, reply, flags);
}