예제 #1
0
 /// <summary>
 /// Check if the device is locked
 /// </summary>
 /// <returns>true if device is locked, false otherwise</returns>
 public bool IsLocked() => AndroidCommandExecutionHelper.IsLocked(this);
예제 #2
0
 /**
  * This method unlocks a device.
  */
 public void Unlock() => AndroidCommandExecutionHelper.Unlock(this);
예제 #3
0
 public void PushFile(string pathOnDevice, FileInfo file) =>
 AndroidCommandExecutionHelper.PushFile(this, pathOnDevice, file);
예제 #4
0
 /// <summary>
 /// Open the notifications
 /// </summary>
 public void OpenNotifications() => AndroidCommandExecutionHelper.OpenNotifications(this);
예제 #5
0
 public void PushFile(string pathOnDevice, string stringData) => AndroidCommandExecutionHelper.PushFile(this,
                                                                                                        pathOnDevice, Convert.FromBase64String(Convert.ToBase64String(Encoding.UTF8.GetBytes(stringData))));
예제 #6
0
 public void PushFile(string pathOnDevice, byte[] base64Data) =>
 AndroidCommandExecutionHelper.PushFile(this, pathOnDevice, base64Data);
예제 #7
0
 /// <summary>
 /// Get test-coverage data
 /// </summary>
 /// <param name="intent">a string containing the intent.</param>
 /// <param name="path">a string containing the path.</param>
 /// <return>a base64 string containing the data</return>
 public string EndTestCoverage(string intent, string path) =>
 AndroidCommandExecutionHelper.EndTestCoverage(this, intent, path);
예제 #8
0
 /// <summary>
 /// Toggles Location Services.
 /// </summary>
 public void ToggleLocationServices() => AndroidCommandExecutionHelper.ToggleLocationServices(this);
예제 #9
0
 public void StartActivityWithIntent(string appPackage, string appActivity, string intentAction,
                                     string appWaitPackage = "", string appWaitActivity = "",
                                     string intentCategory = "", string intentFlags     = "", string intentOptionalArgs = "", bool stopApp = true) =>
 AndroidCommandExecutionHelper.StartActivityWithIntent(this, appPackage, appActivity, intentAction,
                                                       appWaitPackage, appWaitActivity,
                                                       intentCategory, intentFlags, intentOptionalArgs, stopApp);
예제 #10
0
 public void StartActivity(string appPackage, string appActivity, string appWaitPackage = "",
                           string appWaitActivity = "", bool stopApp = true) =>
 AndroidCommandExecutionHelper.StartActivity(this, appPackage, appActivity, appWaitPackage, appWaitActivity,
                                             stopApp);
예제 #11
0
 public void SetSetting(string setting, object value) =>
 AndroidCommandExecutionHelper.SetSetting(this, setting, value);