Lines Matching refs:command
34 android::String8 command; in setPortForwarding() local
35 if (command.appendFormat("forward tcp:%d tcp:%d", hostPort, devicePort) != 0) { in setPortForwarding()
38 if (executeCommand(command) != 0) { in setPortForwarding()
46 android::String8 command; in launchClient() local
47 if (command.appendFormat("install -r %s", clientBinary.string()) != 0) { in launchClient()
50 if (executeCommand(command) != 0) { in launchClient()
53 command.clear(); in launchClient()
54 if (command.appendFormat("shell am start -W -n %s", component.string()) != 0) { in launchClient()
57 if (executeCommand(command) != 0) { in launchClient()
64 int Adb::executeCommand(const android::String8& command) in executeCommand() argument
68 if (adbCommand.appendFormat("adb %s", command.string()) != 0) { in executeCommand()
73 command.string()) != 0) { in executeCommand()