/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/ |
D | BackupUtilsTest.java | 56 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue() 58 if (command.equals("bmgr enabled")) { in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue() 60 } else if (command.equals("bmgr enable true")) { in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue() 75 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse() 77 if (command.equals("bmgr enabled")) { in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse() 79 } else if (command.equals("bmgr enable true")) { in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse() 94 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue() 96 if (command.equals("bmgr enabled")) { in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue() 98 } else if (command.equals("bmgr enable false")) { in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue() 113 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse() [all …]
|
/test/framework/harnesses/host_controller/command_processor/ |
D | command_device_test.py | 48 command = command_device.CommandDevice() 49 command._SetUp(mock_console) 53 command.UpdateDevice("vti", mock_host, False) 72 command = command_device.CommandDevice() 73 command._SetUp(mock_console) 77 command.UpdateDevice("vti", mock_host, True) 84 command = command_device.CommandDevice() 85 command._SetUp(mock_console) 89 command.UpdateDevice("vti", mock_host, False, from_job_pool=True) 104 command = command_device.CommandDevice() [all …]
|
D | command_upload_test.py | 87 command = command_upload.CommandUpload() 88 command._SetUp(mock_console) 89 command.UploadReport("/path/to/bin/gsutil", "gs://report-bucket/", 182 command = command_upload.CommandUpload() 183 command._SetUp(mock_console) 184 command.UploadReport("/path/to/bin/gsutil", "gs://report-bucket/", 217 command = command_upload.CommandUpload() 218 command._SetUp(mock_console) 219 ret = command.UploadReport("/path/to/bin/gsutil", 231 command = command_upload.CommandUpload() [all …]
|
D | command_repack_test.py | 44 command = command_repack.CommandRepack() 45 command._SetUp(mock_console) 46 ret = command.GetDestURL("gs://bucket/base/url") 68 command = command_repack.CommandRepack() 69 command._SetUp(mock_console) 70 ret = command.GetDestURL("gs://bucket/base/url") 81 command = command_repack.CommandRepack() 82 command._SetUp(mock_console) 83 ret = command._Run("--dest=gs://bucket/path/") 108 command = command_repack.CommandRepack() [all …]
|
D | command_config.py | 49 command = "config" variable in CommandConfig 160 for command in commands: 161 ret = self.console.onecmd(command) 287 command = ("build --artifact-type={} --method=GET " 292 command += " --branch={}".format( 299 command += " --account_id={}".format( 302 command += " --verify-signed-build=True" 305 command += " --target={}".format(targets) 306 build_commands.append(command) 309 command += " --branch={}".format( [all …]
|
D | command_gsispl.py | 41 command = "gsispl" variable in CommandGsispl 136 command = "{} {} {} {}".format( 141 command = command + " -v " + args.vendor_version 143 command = "echo {} | sudo -S {}".format( 144 self.console.password.value, command) 145 stdout, stderr, err_code = cmd_utils.ExecuteOneShellCommand(command)
|
D | base_command_processor.py | 38 command = 'base' variable in BaseCommandProcessor 50 self.command, self.command_detail) 77 self.command, ret))
|
/test/vts-testcase/kernel/ltp/testcase/tools/ |
D | ltp_test_cases.py | 182 testsuite, testname, command = items 196 command = command.replace('/tmp', ltp_configs.TMPDIR) 199 testsuite=testsuite, testname=testname, command=command) 212 'cmd = %s', test_display_name, command) 242 if self.IsLtpBinaryExist(command): 246 command = command.replace(';', '&&') 249 command = command.replace(ltp_configs.LTPDIR, '<p_dir;') 250 ltp_test_line = ltp_test_template % (test_display_name, command)
|
D | test_case.py | 43 def __init__(self, testsuite, testname, command): argument 46 self._command = command 94 def command(self): member in TestCase
|
/test/vts/drivers/shell/ |
D | ShellDriver.cpp | 53 CommandResult* VtsShellDriver::ExecShellCommandPopen(const string& command) { in ExecShellCommandPopen() argument 60 output_fp = popen(command.c_str(), "r"); in ExecShellCommandPopen() 62 LOG(ERROR) << "Failed to run command: " << command; in ExecShellCommandPopen() 91 CommandResult* VtsShellDriver::ExecShellCommandNohup(const string& command) { in ExecShellCommandNohup() argument 107 ss << "nohup sh -c '" << command << "' >" << stdout_file_name << " 2>" in ExecShellCommandNohup() 138 const string& command, VtsDriverControlResponseMessage* responseMessage) { in ExecShellCommand() argument 139 CommandResult* result = this->ExecShellCommandNohup(command); in ExecShellCommand() 176 for (const auto& command : cmd_msg.shell_command()) { in HandleShellCommandConnection() local 177 if (ExecShellCommand(command, &responseMessage) != 0) { in HandleShellCommandConnection() 178 LOG(ERROR) << "Error during executing command [" << command << "]"; in HandleShellCommandConnection()
|
D | ShellDriver.h | 62 int ExecShellCommand(const string& command, 74 CommandResult* ExecShellCommandPopen(const string& command); 79 CommandResult* ExecShellCommandNohup(const string& command);
|
D | ShellDriverTest.cpp | 49 static string vts_shell_driver_test_client_start(const string& command, in vts_shell_driver_test_client_start() argument 92 cmd_msg.add_shell_command(command); in vts_shell_driver_test_client_start() 125 static string test_shell_command_output(const string& command, in test_shell_command_output() argument 144 res_client = vts_shell_driver_test_client_start(command, socket_address); in test_shell_command_output()
|
/test/vts/testcases/codelab/hello_world_multi/ |
D | VtsCodelabHelloWorldMultiDeviceTest.py | 42 command = 'echo Hello World!' 44 res1 = self.shell1.Execute(command) 45 res2 = self.shell2.Execute(command) 56 command = 'getprop | grep ro.serial' 58 res1 = self.shell1.Execute(command) 59 res2 = self.shell2.Execute(command)
|
/test/vts/harnesses/tradefed/tests/res/testtype/ |
D | vts_multi_device_test_parser_output_timeout.txt | 2 [VTS-Example] 07-01 08:55:01.215 INFO Exception occurred in command: killall vts_hal_agent > /dev/n… 3 [VTS-Example] 07-01 08:55:01.258 INFO Exception occurred in command: killall vts_hal_driver32 > /de… 4 [VTS-Example] 07-01 08:55:01.296 INFO Exception occurred in command: killall vts_hal_driver64 > /de… 5 [VTS-Example] 07-01 08:55:02.299 INFO sending a command (type SET_HOST_INFO) 8 [VTS-Example] 07-01 08:55:02.313 INFO sending a command (type SET_HOST_INFO) 10 [VTS-Example] 07-01 08:55:02.324 INFO sending a command (type LIST_HALS) 16 [VTS-Example] 07-01 08:55:02.368 INFO sending a command (type LAUNCH_STUB_SERVICE) 18 [VTS-Example] 07-01 08:55:03.434 INFO sending a command (type LIST_APIS) 20 [VTS-Example] 07-01 08:55:03.484 INFO sending a command (type CALL_API) 80 [VTS-Example] 07-01 08:55:09.219 INFO sending a command (type CALL_API) [all …]
|
D | vts_multi_device_test_parser_output.txt | 2 [VTS-Example] 07-01 08:55:01.215 INFO Exception occurred in command: killall vts_hal_agent > /dev/n… 3 [VTS-Example] 07-01 08:55:01.258 INFO Exception occurred in command: killall vts_hal_driver32 > /de… 4 [VTS-Example] 07-01 08:55:01.296 INFO Exception occurred in command: killall vts_hal_driver64 > /de… 5 [VTS-Example] 07-01 08:55:02.299 INFO sending a command (type SET_HOST_INFO) 8 [VTS-Example] 07-01 08:55:02.313 INFO sending a command (type SET_HOST_INFO) 10 [VTS-Example] 07-01 08:55:02.324 INFO sending a command (type LIST_HALS) 16 [VTS-Example] 07-01 08:55:02.368 INFO sending a command (type LAUNCH_STUB_SERVICE) 18 [VTS-Example] 07-01 08:55:03.434 INFO sending a command (type LIST_APIS) 20 [VTS-Example] 07-01 08:55:03.484 INFO sending a command (type CALL_API) 80 [VTS-Example] 07-01 08:55:09.219 INFO sending a command (type CALL_API) [all …]
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/ |
D | VtsHalAdapterPreparer.java | 117 String command = String.format("chmod a+x %s", SCRIPT_PATH); in setUp() local 118 mCommands.add(command); in setUp() 119 command = String.format("%s /data/nativetest%s/%s %s %s %d", SCRIPT_PATH, bitness, in setUp() 123 mCommands.add(command); in setUp() 150 String command = String.format("setprop %s %s", ADAPTER_SYSPROP, "true"); in tearDown() local 152 if (!mCmdUtil.retry(device, command, String.format(LIST_HAL_CMD, mPackageName), in tearDown() 215 void addCommand(String command) { in addCommand() argument 216 mCommands.add(command); in addCommand()
|
/test/vts/utils/python/mirror/ |
D | shell_mirror.py | 60 def Execute(self, command, no_except=False): argument 75 const.STDOUT: [""] * len(command), 77 ["VTS remote shell has been disabled."] * len(command), 78 const.EXIT_CODE: [-2] * len(command) 80 result = self._client.ExecuteShellCommand(command, no_except)
|
/test/vts-testcase/kernel/ltp/ |
D | test_cases_parser.py | 96 testsuite, testname, command = items 110 command = command.replace(';', '&&') 114 command = command.replace('/tmp', ltp_configs.TMPDIR) 117 testsuite=testsuite, testname=testname, command=command)
|
D | test_case.py | 46 def __init__(self, testsuite, testname, command): argument 49 self._command = command 97 def command(self): member in TestCase 103 executables = (command.strip().split()[0] 104 for command in self._command.split('&&'))
|
/test/vts/utils/python/common/ |
D | cmd_utils.py | 84 def RunCommand(command): argument 94 command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 98 '(stdout: %s\n stderr: %s\n)' % (command, stdout, 143 results = [ExecuteOneShellCommand(command) for command in cmd]
|
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/ |
D | TargetFileUtils.java | 146 String command = String.format("find %s -name \"%s\"", path, namePattern); in findFile() local 148 command += " " + String.join(" ", options); in findFile() 150 CLog.d("command: %s", command); in findFile() 151 CommandResult result = device.executeShellV2Command(command); in findFile() 153 CLog.e("Find command: '%s' failed, returned:\nstdout:%s\nstderr:%s", command, in findFile()
|
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | BackupUtils.java | 60 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand() argument 62 public void executeShellCommandSync(String command) throws IOException { in executeShellCommandSync() argument 63 StreamUtil.drainAndClose(new InputStreamReader(executeShellCommand(command))); in executeShellCommandSync() 66 public String getShellCommandOutput(String command) throws IOException { in getShellCommandOutput() argument 67 return StreamUtil.readInputStream(executeShellCommand(command)); in getShellCommandOutput() 262 public String executeShellCommandAndReturnOutput(String command) throws IOException { in executeShellCommandAndReturnOutput() argument 263 InputStream in = executeShellCommand(command); in executeShellCommandAndReturnOutput()
|
/test/vts/proto/ |
D | VtsDriverControlMessage.proto | 21 // Type of a command. 43 // To execute a shell command. 68 // To specify a command. 137 // The stdout message for each command 139 // The stderr message for each command 141 // The exit code for each command
|
/test/framework/harnesses/host_controller/ |
D | console.py | 155 command = in_queue.get() 156 if command == "exit": 158 elif command == "lease": 203 logging.error("Unknown job command %s", command) 440 do_text = "do_%s" % cp.command 441 help_text = "help_%s" % cp.command 444 self.command_processors[cp.command] = cp 515 command, arg = name.split(".") 517 value = self.command_processors[command].arg_buffer[arg] 554 for command in commands: [all …]
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | ShellCommandUtil.java | 26 public static void execute(ITestDevice device, String command) in execute() argument 28 device.executeShellCommand(command); in execute()
|