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


C# MonoDroid.AndroidDevice类代码示例

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


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


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