當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。