当前位置: 首页>>代码示例>>C#>>正文


C# android.writeInt方法代码示例

本文整理汇总了C#中android.writeInt方法的典型用法代码示例。如果您正苦于以下问题:C# android.writeInt方法的具体用法?C# android.writeInt怎么用?C# android.writeInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android的用法示例。


在下文中一共展示了android.writeInt方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onTransact

			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;
//.........这里部分代码省略.........
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:101,代码来源:IRemoteViewsFactory.cs

示例2: onTransact

			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_startListening:
					{
						data.enforceInterface(DESCRIPTOR);
						[email protected] _arg0;
						_arg0 = [email protected](data.readStrongBinder
							());
						string _arg1;
						_arg1 = data.readString();
						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);
						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.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE
								);
						}
						else
						{
							reply.writeInt(0);
						}
						return true;
					}
//.........这里部分代码省略.........
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:101,代码来源:IAppWidgetService.cs

示例3: onTransact


//.........这里部分代码省略.........
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_registerStatusBar:
					{
						data.enforceInterface(DESCRIPTOR);
						[email protected] _arg0;
						_arg0 = [email protected](data.readStrongBinder
							());
						[email protected] _arg1;
						_arg1 = new [email protected]();
						java.util.List<android.os.IBinder> _arg2;
						_arg2 = new java.util.ArrayList<android.os.IBinder>();
						java.util.List<[email protected]> _arg3;
						_arg3 = new java.util.ArrayList<[email protected]
							>();
						int[] _arg4;
						int _arg4_length = data.readInt();
						if ((_arg4_length < 0))
						{
							_arg4 = null;
						}
						else
						{
							_arg4 = new int[_arg4_length];
						}
						java.util.List<android.os.IBinder> _arg5;
						_arg5 = new java.util.ArrayList<android.os.IBinder>();
						this.registerStatusBar(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5);
						reply.writeNoException();
						if ((_arg1 != null))
						{
							reply.writeInt(1);
							_arg1.writeToParcel(reply, android.os.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE
								);
						}
						else
						{
							reply.writeInt(0);
						}
						reply.writeBinderList(_arg2);
						reply.writeTypedList(_arg3);
						reply.writeIntArray(_arg4);
						reply.writeBinderList(_arg5);
						return true;
					}

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

					case TRANSACTION_onNotificationClick:
					{
						data.enforceInterface(DESCRIPTOR);
						string _arg0;
						_arg0 = data.readString();
						string _arg1;
						_arg1 = data.readString();
						int _arg2;
						_arg2 = data.readInt();
						this.onNotificationClick(_arg0, _arg1, _arg2);
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:67,代码来源:IStatusBarService.cs

示例4: writeToParcel

		public override void writeToParcel(android.os.Parcel dest, int parcelableFlags)
		{
			base.writeToParcel(dest, parcelableFlags);
			applicationInfo.writeToParcel(dest, parcelableFlags);
			dest.writeString(processName);
			dest.writeInt(descriptionRes);
			dest.writeInt(enabled ? 1 : 0);
			dest.writeInt(exported ? 1 : 0);
		}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:9,代码来源:ComponentInfo.cs

示例5: onTransact

			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);
			}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:47,代码来源:IApplicationToken.cs


注:本文中的android.writeInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。