Example #1
0
			protected internal override bool onTransact(int code, android.os.Parcel data, android.os.Parcel
				 reply, int flags)
			{
				switch (code)
				{
					case android.os.IBinderClass.INTERFACE_TRANSACTION:
					{
						reply.writeString(DESCRIPTOR);
						return true;
					}

					case TRANSACTION_onDataSetChanged:
					{
						data.enforceInterface(DESCRIPTOR);
						this.onDataSetChanged();
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_onDestroy:
					{
						data.enforceInterface(DESCRIPTOR);
						android.content.Intent _arg0;
						if ((0 != data.readInt()))
						{
							_arg0 = android.content.Intent.CREATOR.createFromParcel(data);
						}
						else
						{
							_arg0 = null;
						}
						this.onDestroy(_arg0);
						return true;
					}

					case TRANSACTION_getCount:
					{
						data.enforceInterface(DESCRIPTOR);
						int _result = this.getCount();
						reply.writeNoException();
						reply.writeInt(_result);
						return true;
					}

					case TRANSACTION_getViewAt:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						android.widget.RemoteViews _result = this.getViewAt(_arg0);
						reply.writeNoException();
						if ((_result != null))
						{
							reply.writeInt(1);
							_result.writeToParcel(reply, android.os.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE
								);
						}
						else
						{
							reply.writeInt(0);
						}
						return true;
					}

					case TRANSACTION_getLoadingView:
					{
						data.enforceInterface(DESCRIPTOR);
						android.widget.RemoteViews _result = this.getLoadingView();
						reply.writeNoException();
						if ((_result != null))
						{
							reply.writeInt(1);
							_result.writeToParcel(reply, android.os.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE
								);
						}
						else
						{
							reply.writeInt(0);
						}
						return true;
					}

					case TRANSACTION_getViewTypeCount:
					{
						data.enforceInterface(DESCRIPTOR);
						int _result = this.getViewTypeCount();
						reply.writeNoException();
						reply.writeInt(_result);
						return true;
					}

					case TRANSACTION_getItemId:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						long _result = this.getItemId(_arg0);
						reply.writeNoException();
						reply.writeLong(_result);
						return true;
					}

					case TRANSACTION_hasStableIds:
					{
						data.enforceInterface(DESCRIPTOR);
						bool _result = this.hasStableIds();
						reply.writeNoException();
						reply.writeInt(((_result) ? (1) : (0)));
						return true;
					}

					case TRANSACTION_isCreated:
					{
						data.enforceInterface(DESCRIPTOR);
						bool _result = this.isCreated();
						reply.writeNoException();
						reply.writeInt(((_result) ? (1) : (0)));
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}
Example #2
0
			protected internal override bool onTransact(int code, android.os.Parcel data, android.os.Parcel
				 reply, int flags)
			{
				switch (code)
				{
					case android.os.IBinderClass.INTERFACE_TRANSACTION:
					{
						reply.writeString(DESCRIPTOR);
						return true;
					}

					case TRANSACTION_windowsVisible:
					{
						data.enforceInterface(DESCRIPTOR);
						this.windowsVisible();
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_windowsGone:
					{
						data.enforceInterface(DESCRIPTOR);
						this.windowsGone();
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_keyDispatchingTimedOut:
					{
						data.enforceInterface(DESCRIPTOR);
						bool _result = this.keyDispatchingTimedOut();
						reply.writeNoException();
						reply.writeInt(((_result) ? (1) : (0)));
						return true;
					}

					case TRANSACTION_getKeyDispatchingTimeout:
					{
						data.enforceInterface(DESCRIPTOR);
						long _result = this.getKeyDispatchingTimeout();
						reply.writeNoException();
						reply.writeLong(_result);
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}