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


C# android.writeString方法代码示例

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


在下文中一共展示了android.writeString方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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_updateAppWidget:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						android.widget.RemoteViews _arg1;
						if ((0 != data.readInt()))
						{
							_arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
						}
						else
						{
							_arg1 = null;
						}
						this.updateAppWidget(_arg0, _arg1);
						return true;
					}

					case TRANSACTION_providerChanged:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						android.appwidget.AppWidgetProviderInfo _arg1;
						if ((0 != data.readInt()))
						{
							_arg1 = android.appwidget.AppWidgetProviderInfo.CREATOR.createFromParcel(data);
						}
						else
						{
							_arg1 = null;
						}
						this.providerChanged(_arg0, _arg1);
						return true;
					}

					case TRANSACTION_viewDataChanged:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						int _arg1;
						_arg1 = data.readInt();
						this.viewDataChanged(_arg0, _arg1);
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:60,代码来源:IAppWidgetHost.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_onServiceConnected:
					{
						data.enforceInterface(DESCRIPTOR);
						android.os.IBinder _arg0;
						_arg0 = data.readStrongBinder();
						this.onServiceConnected(_arg0);
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_onServiceDisconnected:
					{
						data.enforceInterface(DESCRIPTOR);
						this.onServiceDisconnected();
						reply.writeNoException();
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:31,代码来源:IRemoteViewsAdapterConnection.cs

示例3: 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

示例4: 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_onKeyguardExitResult:
					{
						data.enforceInterface(DESCRIPTOR);
						bool _arg0;
						_arg0 = (0 != data.readInt());
						this.onKeyguardExitResult(_arg0);
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:22,代码来源:IOnKeyguardExitResult.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_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

示例6: 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_startUi:
					{
						data.enforceInterface(DESCRIPTOR);
						android.os.IBinder _arg0;
						_arg0 = data.readStrongBinder();
						int _arg1;
						_arg1 = data.readInt();
						int _arg2;
						_arg2 = data.readInt();
						int _arg3;
						_arg3 = data.readInt();
						int _arg4;
						_arg4 = data.readInt();
						this.startUi(_arg0, _arg1, _arg2, _arg3, _arg4);
						reply.writeNoException();
						return true;
					}

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

					case TRANSACTION_registerCallback:
					{
						data.enforceInterface(DESCRIPTOR);
						[email protected] _arg0;
						_arg0 = [email protected](data.readStrongBinder
							());
						this.registerCallback(_arg0);
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_unregisterCallback:
					{
						data.enforceInterface(DESCRIPTOR);
						[email protected] _arg0;
						_arg0 = [email protected](data.readStrongBinder
							());
						this.unregisterCallback(_arg0);
						reply.writeNoException();
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:61,代码来源:IFaceLockInterface.cs

示例7: 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

示例8: 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_setIcon:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						[email protected] _arg1;
						if ((0 != data.readInt()))
						{
							_arg1 = [email protected]el(data);
						}
						else
						{
							_arg1 = null;
						}
						this.setIcon(_arg0, _arg1);
						return true;
					}

					case TRANSACTION_removeIcon:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						this.removeIcon(_arg0);
						return true;
					}

					case TRANSACTION_addNotification:
					{
						data.enforceInterface(DESCRIPTOR);
						android.os.IBinder _arg0;
						_arg0 = data.readStrongBinder();
						[email protected] _arg1;
						if ((0 != data.readInt()))
						{
							_arg1 = [email protected]FromParcel
								(data);
						}
						else
						{
							_arg1 = null;
						}
						this.addNotification(_arg0, _arg1);
						return true;
					}

					case TRANSACTION_updateNotification:
					{
						data.enforceInterface(DESCRIPTOR);
						android.os.IBinder _arg0;
						_arg0 = data.readStrongBinder();
						[email protected] _arg1;
						if ((0 != data.readInt()))
						{
							_arg1 = [email protected]FromParcel
								(data);
						}
						else
						{
							_arg1 = null;
						}
						this.updateNotification(_arg0, _arg1);
						return true;
					}

					case TRANSACTION_removeNotification:
					{
						data.enforceInterface(DESCRIPTOR);
						android.os.IBinder _arg0;
						_arg0 = data.readStrongBinder();
						this.removeNotification(_arg0);
						return true;
					}

					case TRANSACTION_disable:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						this.disable(_arg0);
						return true;
					}

					case TRANSACTION_animateExpand:
					{
						data.enforceInterface(DESCRIPTOR);
						this.animateExpand();
						return true;
					}
//.........这里部分代码省略.........
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:101,代码来源:IStatusBar.cs

示例9: 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

示例10: 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_expand:
					{
						data.enforceInterface(DESCRIPTOR);
						this.expand();
						reply.writeNoException();
						return true;
					}

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

					case TRANSACTION_disable:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						android.os.IBinder _arg1;
						_arg1 = data.readStrongBinder();
						string _arg2;
						_arg2 = data.readString();
						this.disable(_arg0, _arg1, _arg2);
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_setIcon:
					{
						data.enforceInterface(DESCRIPTOR);
						string _arg0;
						_arg0 = data.readString();
						string _arg1;
						_arg1 = data.readString();
						int _arg2;
						_arg2 = data.readInt();
						int _arg3;
						_arg3 = data.readInt();
						string _arg4;
						_arg4 = data.readString();
						this.setIcon(_arg0, _arg1, _arg2, _arg3, _arg4);
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_setIconVisibility:
					{
						data.enforceInterface(DESCRIPTOR);
						string _arg0;
						_arg0 = data.readString();
						bool _arg1;
						_arg1 = (0 != data.readInt());
						this.setIconVisibility(_arg0, _arg1);
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_removeIcon:
					{
						data.enforceInterface(DESCRIPTOR);
						string _arg0;
						_arg0 = data.readString();
						this.removeIcon(_arg0);
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_topAppWindowChanged:
					{
						data.enforceInterface(DESCRIPTOR);
						bool _arg0;
						_arg0 = (0 != data.readInt());
						this.topAppWindowChanged(_arg0);
						reply.writeNoException();
						return true;
					}

					case TRANSACTION_setImeWindowStatus:
					{
						data.enforceInterface(DESCRIPTOR);
						android.os.IBinder _arg0;
						_arg0 = data.readStrongBinder();
						int _arg1;
						_arg1 = data.readInt();
						int _arg2;
						_arg2 = data.readInt();
//.........这里部分代码省略.........
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:101,代码来源:IStatusBarService.cs

示例11: 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_unlock:
					{
						data.enforceInterface(DESCRIPTOR);
						this.unlock();
						return true;
					}

					case TRANSACTION_cancel:
					{
						data.enforceInterface(DESCRIPTOR);
						this.cancel();
						return true;
					}

					case TRANSACTION_reportFailedAttempt:
					{
						data.enforceInterface(DESCRIPTOR);
						this.reportFailedAttempt();
						return true;
					}

					case TRANSACTION_exposeFallback:
					{
						data.enforceInterface(DESCRIPTOR);
						this.exposeFallback();
						return true;
					}

					case TRANSACTION_pokeWakelock:
					{
						data.enforceInterface(DESCRIPTOR);
						this.pokeWakelock();
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:48,代码来源:IFaceLockCallback.cs

示例12: writeToParcel

		public virtual void writeToParcel(android.os.Parcel dest, int flags)
		{
			dest.writeString(mKey);
			dest.writeString(mValue);
		}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:5,代码来源:Annotation.cs


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