• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# MonoDroid.AndroidDevice类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MonoDevelop.MonoDroid.AndroidDevice的典型用法代码示例。如果您正苦于以下问题:C# AndroidDevice类的具体用法?C# AndroidDevice怎么用?C# AndroidDevice使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AndroidDevice类属于MonoDevelop.MonoDroid命名空间,在下文中一共展示了AndroidDevice类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: MonoDroidExecutionCommand

		public MonoDroidExecutionCommand (string packageName, AndroidDevice device, FilePath apkPath,
			TargetRuntime runtime, TargetFramework framework, bool debugMode)
		{
			this.Device = device;
			this.PackageName = packageName;
			this.ApkPath = apkPath;
			this.Runtime = runtime;
			this.Framework = framework;
			this.DebugMode = debugMode;
			
			DebugPort = MonoDroidSettings.DebuggerPort;
			OutputPort = MonoDroidSettings.DebuggerOutputPort;
		}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:13,代码来源:MonoDroidExecutionCommand.cs


示例2: GetDeviceDate

		public AdbGetDateOperation GetDeviceDate (AndroidDevice device)
		{
			return new AdbGetDateOperation (device);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:4,代码来源:AndroidToolbox.cs


示例3: AdbShellOperation

		public AdbShellOperation (AndroidDevice device, string command) : base (device)
		{
			this.command = command;
		}
开发者ID:bleepbloop,项目名称:monodevelop,代码行数:4,代码来源:AdbOperations.cs


示例4: AdbGetPropertiesOperation

		public AdbGetPropertiesOperation (AndroidDevice device) : base (device) {}
开发者ID:bleepbloop,项目名称:monodevelop,代码行数:1,代码来源:AdbOperations.cs


示例5: AdbTrackLogOperation

		public AdbTrackLogOperation (AndroidDevice device, Action<string> output, params string [] parameters) : base (device)
		{
			this.output = output;
			this.parameters = parameters;
		}
开发者ID:bleepbloop,项目名称:monodevelop,代码行数:5,代码来源:AdbOperations.cs


示例6: AdbGetPartitionSizeOperation

		public AdbGetPartitionSizeOperation (AndroidDevice device, string partition) : base (device, "df " + partition)
		{
			this.partition = partition;
			BeginConnect ();
		}
开发者ID:kmarecki,项目名称:monodevelop,代码行数:5,代码来源:AdbOperations.cs


示例7: AdbKillProcessOperation

		public AdbKillProcessOperation (AndroidDevice device, string packageName) : 
			base (device, "am broadcast -a mono.android.intent.action.SEPPUKU " +
				"-c mono.android.intent.category.SEPPUKU." + packageName)
		{
			BeginConnect ();
		}
开发者ID:kmarecki,项目名称:monodevelop,代码行数:6,代码来源:AdbOperations.cs


示例8: AdbGetPackagesOperation

		public AdbGetPackagesOperation (AndroidDevice device, string packageFileName) : base (device)
		{
			this.packageFileName = packageFileName;
			BeginConnect ();
		}
开发者ID:kmarecki,项目名称:monodevelop,代码行数:5,代码来源:AdbOperations.cs


示例9: ForwardPort

		public IProcessAsyncOperation ForwardPort (AndroidDevice device, int devicePort, int localPort,
			ProcessEventHandler outputLog, ProcessEventHandler errorLog)
		{
			var args = string.Format ("-s {0} forward tcp:{1} tcp:{2}", device.ID, localPort, devicePort);
			return StartProcess (AdbExe, args, outputLog, errorLog);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:6,代码来源:AndroidToolbox.cs


示例10: StartActivity

		public AdbShellOperation StartActivity (AndroidDevice device, string activity)
		{
			return new AdbShellOperation (device,
				string.Format ("am start -a android.intent.action.MAIN -n '{0}'", activity));
		}
开发者ID:poke,项目名称:monodevelop,代码行数:5,代码来源:AndroidToolbox.cs


示例11: Uninstall

		public IProcessAsyncOperation Uninstall (AndroidDevice device, string package, TextWriter outputLog, TextWriter errorLog)
		{
			var args = new ProcessArgumentBuilder ();
			args.Add ("-s", device.ID, "uninstall");
			args.AddQuoted (package);
			
			return StartProcess (AdbExe, args.ToString (), outputLog, errorLog);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:8,代码来源:AndroidToolbox.cs


示例12: Install

		public InstallPackageOperation Install (AndroidDevice device, string package, TextWriter outputLog, TextWriter errorLog)
		{
			var args = new ProcessArgumentBuilder ();
			args.Add ("-s", device.ID, "install");
			args.AddQuoted (package);
			
			var errorCapture = new StringWriter ();
			var errorWriter = TeeTextWriter.ForNonNull (errorCapture, errorCapture);
			return new InstallPackageOperation (StartProcess (AdbExe, args.ToString (), outputLog, errorWriter), errorCapture);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:10,代码来源:AndroidToolbox.cs


示例13: PullFile

		public IProcessAsyncOperation PullFile (AndroidDevice device, string source, string destination,
			TextWriter outputLog, TextWriter errorLog)
		{
			var args = new ProcessArgumentBuilder ();
			args.Add ("-s", device.ID, "pull");
			args.AddQuoted (source, destination);
			
			return StartProcess (AdbExe, args.ToString (), outputLog, errorLog);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:9,代码来源:AndroidToolbox.cs


示例14: WaitForDevice

		public IProcessAsyncOperation WaitForDevice (AndroidDevice device, TextWriter outputLog, TextWriter errorLog)
		{
			var args = string.Format ("-s {0} wait-for-device", device.ID);
			return StartProcess (AdbExe, args, outputLog, errorLog);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:5,代码来源:AndroidToolbox.cs


示例15: SetProperty

		public AdbShellOperation SetProperty (AndroidDevice device, string property, string value)
		{
			if (property == null)
				throw new ArgumentNullException ("property");
			if (value == null)
				throw new ArgumentNullException ("value");
			
			return new AdbShellOperation (device, string.Format ("setprop \"{0}\" \"{1}\"", property, value));
		}
开发者ID:poke,项目名称:monodevelop,代码行数:9,代码来源:AndroidToolbox.cs


示例16: AdbTrackLogOperation

		public AdbTrackLogOperation (AndroidDevice device, Action<string> output, params string [] parameters) : base (device)
		{
			if (output == null)
				throw new ArgumentNullException ("output");
			
			this.output = output;
			this.parameters = parameters;
			
			BeginConnect ();
		}
开发者ID:kmarecki,项目名称:monodevelop,代码行数:10,代码来源:AdbOperations.cs


示例17: LogCat

		public ProcessWrapper LogCat (AndroidDevice device, ProcessEventHandler outputLog,
			ProcessEventHandler errorLog)
		{
			var args = string.Format ("-s {0} logcat", device.ID);
			return StartProcess (AdbExe, args, outputLog, errorLog);
		}
开发者ID:poke,项目名称:monodevelop,代码行数:6,代码来源:AndroidToolbox.cs


示例18: AdbGetPropertiesOperation

		public AdbGetPropertiesOperation (AndroidDevice device) : base (device)
		{
			BeginConnect ();
		}
开发者ID:kmarecki,项目名称:monodevelop,代码行数:4,代码来源:AdbOperations.cs


示例19: AdbGetDateOperation

		public AdbGetDateOperation (AndroidDevice device) : base (device, "date +%s")
		{
			BeginConnect ();
		}
开发者ID:kmarecki,项目名称:monodevelop,代码行数:4,代码来源:AdbOperations.cs


示例20: SetDeviceTarget

		public void SetDeviceTarget (MonoDroidProjectConfiguration conf, AndroidDevice value)
		{
			UserProperties.SetValue<AndroidDevice> (GetDeviceTargetKey (conf), value);
		}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:4,代码来源:MonoDroidProject.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# NUnit.UnitTest类代码示例发布时间:2022-05-26
下一篇:
C# ObjCIntegration.NSObjectTypeInfo类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap