Home | History | Annotate | Download | only in helpers

Lines Matching refs:command

71      * Executes a shell command on device, and return the standard output in string.
72 * @param command the command to run
73 * @return the standard output of the command, or empty string if
76 public String executeShellCommand(String command) {
78 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command);
81 Log.e(TAG, String.format("The shell command failed to run: %s exception: %s",
82 command, e.getMessage()));
88 * Executes a shell command on device, and split the multi-line output into collection
89 * @param command the command to run
91 * @return the List of strings from the standard output of the command
93 public List<String> executeShellCommandAndSplitOutput(String command,
95 return Arrays.asList(executeShellCommand(command).split(separatorChars));
101 * @param command the command to run
104 public static String execute(String command) {
105 return getInstance().executeShellCommand(command);
111 * @param command the command to run
114 public static List<String> executeAndSplitLines(String command) {
115 return getInstance().executeShellCommandAndSplitOutput(command, LINE_SEPARATORS);