Code example for Parcel

Methods: writeInt, writeNoException

0
} 
case TRANSACTION_start:
{ 
data.enforceInterface(DESCRIPTOR);
this.start();
reply.writeNoException();
return true; 
} 
case TRANSACTION_stop:
{ 
data.enforceInterface(DESCRIPTOR);
this.stop();
reply.writeNoException();
return true; 
} 
case TRANSACTION_suggestRate:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _result = this.suggestRate(_arg0);
reply.writeNoException();
reply.writeInt(_result);
return true; 
} 
case TRANSACTION_setReadingLength:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.setReadingLength(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_suggestInterval:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _result = this.suggestInterval(_arg0);
reply.writeNoException();
reply.writeInt(_result);
return true; 
} 
case TRANSACTION_getInterval:
{ 
data.enforceInterface(DESCRIPTOR);
int _result = this.getInterval();
reply.writeNoException();
reply.writeInt(_result);
return true; 
} 
case TRANSACTION_getLastForce:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List _result = this.getLastForce();
reply.writeNoException();
reply.writeList(_result);
return true; 
} 
case TRANSACTION_getLastXValues:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List _result = this.getLastXValues();
reply.writeNoException();
reply.writeList(_result);
return true; 
} 
case TRANSACTION_getLastYValues:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List _result = this.getLastYValues();
reply.writeNoException();
reply.writeList(_result);
return true; 
} 
case TRANSACTION_getLastZValues:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List _result = this.getLastZValues();
reply.writeNoException();
reply.writeList(_result);
return true; 
} 
case TRANSACTION_getLastTimeStamp:
{ 
data.enforceInterface(DESCRIPTOR);
long _result = this.getLastTimeStamp();
reply.writeNoException();
reply.writeLong(_result);
return true; 
} 
case TRANSACTION_significantForce:
{ 
data.enforceInterface(DESCRIPTOR);
double _arg0;
_arg0 = data.readDouble();
boolean _result = this.significantForce(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
} 
return super.onTransact(code, data, reply, flags);
}