Home | History | Annotate | Download | only in uiautomator

Lines Matching refs:command

24  * Entry point into the uiautomator command line
27 * command line arguments. It also prints out help arguments for each sub commands.
29 * To add a new sub command, implement {@link Command} and add an instance into COMMANDS array
36 public static abstract class Command {
39 public Command(String name) {
44 * Returns the name of the sub command
52 * Returns a one-liner of the function of this command
58 * Returns a detailed explanation of the command usage
66 * Starts the command with the provided arguments
76 Command command = findCommand(args[0]);
77 if (command != null) {
83 command.run(args2);
90 private static Command findCommand(String name) {
91 for (Command command : COMMANDS) {
92 if (command.name().equals(name)) {
93 return command;
99 private static Command HELP_COMMAND = new Command("help") {
104 for (Command command : COMMANDS) {
105 String shortHelp = command.shortHelp();
106 String detailedOptions = command.detailedOptions();
113 System.err.println(String.format("%s: %s", command.name(), shortHelp));
129 private static Command[] COMMANDS = new Command[] {