Code example for Parcel

Methods: writeIntwriteNoException

0
int _arg2;
_arg2 = data.readInt();
java.util.List<android.widget.RemoteViews> _arg3;
_arg3 = new java.util.ArrayList<android.widget.RemoteViews>();
int[] _result = this.startListening(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
reply.writeIntArray(_result);
reply.writeTypedList(_arg3);
return true; 
} 
case TRANSACTION_stopListening:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.stopListening(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_allocateAppWidgetId:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _result = this.allocateAppWidgetId(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(_result);
return true; 
} 
case TRANSACTION_deleteAppWidgetId:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.deleteAppWidgetId(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_deleteHost:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.deleteHost(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_deleteAllHosts:
{ 
data.enforceInterface(DESCRIPTOR);
this.deleteAllHosts();
reply.writeNoException();
return true; 
} 
case TRANSACTION_getAppWidgetViews:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.widget.RemoteViews _result = this.getAppWidgetViews(_arg0);
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_updateAppWidgetIds:
{ 
data.enforceInterface(DESCRIPTOR);
int[] _arg0;
_arg0 = data.createIntArray();
android.widget.RemoteViews _arg1;
if ((0!=data.readInt())) {
_arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
} 
else { 
_arg1 = null;
} 
this.updateAppWidgetIds(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_updateAppWidgetProvider:
{ 
data.enforceInterface(DESCRIPTOR);
android.content.ComponentName _arg0;
if ((0!=data.readInt())) {
_arg0 = android.content.ComponentName.CREATOR.createFromParcel(data);
} 
else { 
_arg0 = null;
} 
android.widget.RemoteViews _arg1;
if ((0!=data.readInt())) {
_arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
} 
else { 
_arg1 = null;
} 
this.updateAppWidgetProvider(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_getInstalledProviders:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List<android.appwidget.AppWidgetProviderInfo> _result = this.getInstalledProviders();
reply.writeNoException();
reply.writeTypedList(_result);
return true; 
} 
case TRANSACTION_getAppWidgetInfo:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.appwidget.AppWidgetProviderInfo _result = this.getAppWidgetInfo(_arg0);
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_bindAppWidgetId:
{ 
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.content.ComponentName _arg1;
if ((0!=data.readInt())) {
_arg1 = android.content.ComponentName.CREATOR.createFromParcel(data);
} 
else { 
_arg1 = null;
} 
this.bindAppWidgetId(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_getAppWidgetIds:
{ 
data.enforceInterface(DESCRIPTOR);
android.content.ComponentName _arg0;
if ((0!=data.readInt())) {
_arg0 = android.content.ComponentName.CREATOR.createFromParcel(data);
} 
else { 
_arg0 = null;
} 
int[] _result = this.getAppWidgetIds(_arg0);
reply.writeNoException();
reply.writeIntArray(_result);
return true; 
} 
} 
return super.onTransact(code, data, reply, flags);
Contextual code suggestions in your IDE  Get Codota for Java