/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 161 List<String> command = new ArrayList<>(); in copy() local 163 command.add(GSUTIL); in copy() 166 command.add(FLAG_PARALLEL); in copy() 169 command.add(CMD_COPY); in copy() 172 command.add(FLAG_RECURSIVE); in copy() 176 command.add(FLAG_NO_CLOBBER); in copy() 179 command.add(source); in copy() 180 command.add(dest); in copy() 182 String[] commandAsStr = command.toArray(new String[0]); in copy() 271 List<String> command = new ArrayList<>(); in makeBucket() local [all …]
|
D | ClangProfileIndexer.java | 58 List<String> command = new ArrayList<>(); in index() local 59 command.add(profileBin.toString()); in index() 60 command.add("merge"); in index() 61 command.add("-sparse"); in index() 72 command.add("-f"); in index() 73 command.add(fileList.getAbsolutePath()); in index() 75 command.addAll(rawProfileFiles); in index() 78 command.add("-o"); in index() 79 command.add(outputFile.getAbsolutePath()); in index() 81 CommandResult result = mRunUtil.runTimedCmd(0, command.toArray(new String[0])); in index() [all …]
|
D | SimplePerfUtil.java | 93 public SimplePerfResult executeCommand(String command) throws DeviceNotAvailableException { in executeCommand() argument 94 String output = mDevice.executeShellCommand(commandStringPreparer(command)); in executeCommand() 109 public void executeCommand(String command, IShellOutputReceiver receiver) in executeCommand() argument 111 mDevice.executeShellCommand(commandStringPreparer(command), receiver); in executeCommand() 131 public void executeCommand(String command, IShellOutputReceiver receiver, in executeCommand() argument 134 mDevice.executeShellCommand(commandStringPreparer(command), receiver, in executeCommand() 138 protected String commandStringPreparer(String command) { in commandStringPreparer() argument 139 if (command == null) { in commandStringPreparer() 140 command = ""; in commandStringPreparer() 142 return commandPrependPreparer().toString() + command; in commandStringPreparer()
|
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/ |
D | ClusterCommandTest.java | 42 ClusterCommand command = ClusterCommand.fromJson(json); in testFromJson_withAssignedAttemptId() local 44 assertEquals(REQUEST_ID, command.getRequestId()); in testFromJson_withAssignedAttemptId() 45 assertEquals(COMMAND_ID, command.getCommandId()); in testFromJson_withAssignedAttemptId() 46 assertEquals(TASK_ID, command.getTaskId()); in testFromJson_withAssignedAttemptId() 47 assertEquals(COMMAND_LINE, command.getCommandLine()); in testFromJson_withAssignedAttemptId() 48 assertEquals("attempt_id", command.getAttemptId()); in testFromJson_withAssignedAttemptId() 55 ClusterCommand command = ClusterCommand.fromJson(json); in testFromJson_withoutAssignedAttemptId() local 57 assertEquals(REQUEST_ID, command.getRequestId()); in testFromJson_withoutAssignedAttemptId() 58 assertEquals(COMMAND_ID, command.getCommandId()); in testFromJson_withoutAssignedAttemptId() 59 assertEquals(TASK_ID, command.getTaskId()); in testFromJson_withoutAssignedAttemptId() [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | IRunUtil.java | 121 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd() argument 135 final long timeout, final long idleOutputTimeout, final String... command); in runTimedCmdWithOutputMonitor() argument 154 final String... command); in runTimedCmdWithOutputMonitor() argument 178 final String... command); in runTimedCmdWithOutputMonitor() argument 192 final long timeout, OutputStream stdout, OutputStream stderr, final String... command); in runTimedCmd() argument 205 int attempts, final String... command); in runTimedCmdRetry() argument 225 final String... command); in runTimedCmdRetryWithOutputMonitor() argument 236 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently() argument 250 int attempts, final String... command); in runTimedCmdSilentlyRetry() argument 261 CommandResult runTimedCmdWithInput(long timeout, String input, String... command); in runTimedCmdWithInput() argument [all …]
|
D | RunUtil.java | 23 import com.android.tradefed.command.CommandInterrupter; 171 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd() argument 172 return runTimedCmd(timeout, (OutputStream) null, (OutputStream) null, command); in runTimedCmd() 178 final long timeout, final long idleOutputTimeout, final String... command) { in runTimedCmdWithOutputMonitor() argument 180 timeout, idleOutputTimeout, (OutputStream) null, (OutputStream) null, command); in runTimedCmdWithOutputMonitor() 189 final String... command) { in runTimedCmd() argument 190 return runTimedCmdWithOutputMonitor(timeout, 0, stdout, stderr, command); in runTimedCmd() 200 final String... command) { in runTimedCmdWithOutputMonitor() argument 202 timeout, idleOutputTimeout, stdout, stderr, null, command); in runTimedCmdWithOutputMonitor() 213 final String... command) { in runTimedCmdWithOutputMonitor() argument [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | ProfileTargetPreparer.java | 145 String command = "dumpsys user"; in isPrivateProfileSupported() local 146 String dumpsysOutput = device.executeShellCommand(command); in isPrivateProfileSupported() 156 throw commandError("Error reading user service information", command, dumpsysOutput, e, in isPrivateProfileSupported() 162 String command = "dumpsys user"; in isCloneProfileEnabled() local 163 String dumpsysOutput = device.executeShellCommand(command); in isCloneProfileEnabled() 178 command, in isCloneProfileEnabled() 199 String command = ""; in createProfile() local 205 command = in createProfile() 209 command += " --for-testing"; in createProfile() 212 command += " user"; in createProfile() [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/proc/ |
D | job.py | 72 command=[], argument 90 self.command = command 103 self.command, self._raw_stdout, self._raw_stderr, 108 def run(command, argument 136 proc = subprocess.Popen(command, 140 shell=not isinstance(command, list)) 152 result = Result(command=command, 162 logging.error("Command %s with %s timeout setting timed out", command, 172 def run_async(command, env=None): argument 190 proc = subprocess.Popen(command, [all …]
|
D | process.py | 50 def __init__(self, command, **kwargs): argument 58 if not self._use_shell and isinstance(command, str): 59 command = shlex.split(command) 60 self._command = command 234 def __start_process(command, **kwargs): argument 238 'Starting command "%s" with kwargs %s', command, kwargs) 239 return subprocess.Popen(command, **kwargs) 250 command = self._command 252 self._process = self.__start_process(command, 263 command) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | b29_lib.py | 110 command = '--serial={}'.format(self.port) 111 debug_bridge_process = self._send_command(command=command) 144 def _send_command(self, command): argument 152 '{} {} {}'.format(DEBUG_BRIDGE, '--rpc_port=-1', command), 170 command = '--serial=%s --debug_spi=dfu --sqif_partition=8' % self.port 171 debug_bridge_process = self._send_command(command=command) 192 command = '--serial={} --ping={}'.format(self.port, component) 193 debug_bridge_process = self._send_command(command=command) 213 command = '--serial={} --charger_reset'.format(self.port) 214 reset_charger_process = self._send_command(command=command)
|
/tools/test/openhst/resources/ |
D | stress_test.dsp_trigger_sw_rejection.ascii_proto | 9 command: "shell 'dumpsys window | grep mCurrentFocus'" 13 command: "shell input keyevent 3" 17 command: "shell input keyevent 26" 21 command: "shell dumpsys battery unplug" 25 command: "shell dumpsys deviceidle force-idle" 34 command: "shell 'dumpsys window | grep mCurrentFocus'" 38 command: "shell input keyevent 3" 42 command: "shell input keyevent 26" 46 command: "shell dumpsys battery unplug" 50 command: "shell dumpsys deviceidle force-idle"
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | RunHostCommandTargetPreparer.java | 254 for (final String command : commands) { in runCommandList() 259 QuotationAwareTokenizer.tokenizeLine(command)); in runCommandList() 264 command, result.getStdout(), result.getStderr()); in runCommandList() 270 command, result.getStdout(), result.getStderr()), in runCommandList() 277 command, result.getStdout(), result.getStderr()), in runCommandList() 285 command, result.getStdout(), result.getStderr()), in runCommandList() 301 String command = bgCommands.get(i); in runBgCommandList() local 302 CLog.d("About to run host background command: %s", command); in runBgCommandList() 306 List.of(QuotationAwareTokenizer.tokenizeLine(command)), in runBgCommandList() 309 CLog.e("Failed to run command: %s", command); in runBgCommandList() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | RunCommandTargetPreparerTest.java | 83 final String command = "mkdir test"; in testSetUp() local 85 setter.setOptionValue("run-command", command); in testSetUp() 89 when(mMockDevice.executeShellV2Command(Mockito.eq(command))).thenReturn(res); in testSetUp() 93 assertThat(mPreparer.getCommands()).containsExactly(command); in testSetUp() 94 assertThat(mPreparer.getExecutedCommands()).containsExactly(command); in testSetUp() 103 final String command = "mkdir test"; in testSetUp_withTimeout() local 105 setter.setOptionValue("run-command", command); in testSetUp_withTimeout() 111 Mockito.eq(command), in testSetUp_withTimeout() 127 final String command = "mkdir test"; in testDisabled() local 129 setter.setOptionValue("run-command", command); in testDisabled() [all …]
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/ |
D | MetalavaCommandTest.kt | 42 fun `Test error handling when invalid command line`() { in Test error handling when invalid command line() 47 val command = in Test error handling when invalid command line() constant 54 command.processThrowCliException(args.toTypedArray()) in Test error handling when invalid command line() 73 assertThrows(IllegalStateException::class.java) { command.common.unsafeTerminal } in Test error handling when invalid command line() 96 val command = in Test error handling when invalid option in an argument file() constant 102 command.subcommands(subCommand) in Test error handling when invalid option in an argument file() 105 command.processThrowCliException(args.toTypedArray()) in Test error handling when invalid option in an argument file() 128 val command = in Test print stack trace() constant 133 command.subcommands(FailCommand()) in Test print stack trace() 135 command.process(args.toTypedArray()) in Test print stack trace()
|
/tools/netsim/rust/cli/src/ |
D | lib.rs | 72 command: &mut args::Command, in perform_command() 78 let requests = match command { in perform_command() 80 command.get_requests(&client) in perform_command() 85 _ => vec![command.get_request_bytes()], in perform_command() 90 let result = match command { in perform_command() 93 continuous_perform_command(command, &client, grpc_method, req, verbose)? in perform_command() 96 continuous_perform_command(command, &client, grpc_method, req, verbose)? in perform_command() 114 if let Err(e) = process_result(command, result, verbose) { in perform_command() 145 command: &args::Command, in continuous_perform_command() 152 process_result(command, client.send_grpc(&grpc_method, request), verbose)?; in continuous_perform_command() [all …]
|
D | requests.rs | 86 command: &str, in test_command() 90 let command = NetsimArgs::parse_from(command.split_whitespace()).command; in test_command() localVariable 91 assert_eq!(expected_grpc_method, command.grpc_method()); in test_command() 92 let request = command.get_request_bytes(); in test_command() 624 let command = String::from("netsim-cli beacon create ble --timeout -1234"); in test_beacon_negative_timeout_fails() localVariable 625 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_beacon_negative_timeout_fails() 630 let command = in test_create_beacon_large_tx_power_fails() localVariable 632 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_create_beacon_large_tx_power_fails() 637 let command = String::from("netsim-cli beacon create ble --advertise-mode not-a-mode"); in test_create_beacon_unknown_mode_fails() localVariable 638 assert!(NetsimArgs::try_parse_from(command.split_whitespace()).is_err()); in test_create_beacon_unknown_mode_fails() [all …]
|
/tools/asuite/atest/bazel/runner/src/main/protobuf/ |
D | command_line.proto | 23 // Representation of a Bazel command line. 25 // A title for this command line value, to differentiate it from others. 27 // canonical command lines, and this label would be used to differentiate 31 // A Bazel command line is made of distinct parts. For example, 33 // has the executable "bazel", a startup flag, a command "test", a command 36 // command line should be broken down into these logical sections here. 40 // A section of the Bazel command line. 42 // The name of this section, such as "startup_option" or "command". 46 // Sections with non-options, such as the list of targets or the command, 50 // Startup and command options are lists of options and belong here. [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/ |
D | ota_runner_factory.py | 78 command = DEFAULT_OTA_COMMAND 80 command = config[ota_tool_class_name] 81 if type(command) is list: 83 if len(command) == 1: 84 command = command[0] 99 command) 106 command=DEFAULT_OTA_COMMAND, argument 123 ota_tool = ota_tool_factory.create(ota_tool_class_name, command)
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | EmmcPerformanceTest.java | 146 String command = in runSequentialRead() local 149 runTest(SEQUENTIAL_READ_KEY, command, TestType.DD, true, iterations, listener, metrics); in runSequentialRead() 156 String command = in runSequentialWrite() local 159 runTest(SEQUENTIAL_WRITE_KEY, command, TestType.DD, false, iterations, listener, metrics); in runSequentialWrite() 167 String command = in runRandomRead() local 173 runTest(RANDOM_READ_KEY, command, TestType.RANDOM, true, iterations, listener, metrics); in runRandomRead() 180 String command = in runRandomWrite() local 186 runTest(RANDOM_WRITE_KEY, command, TestType.RANDOM, false, iterations, listener, metrics); in runRandomWrite() 203 String command, in runTest() argument 225 kbps = runDdIteration(command, simpleperfMetricsMap); in runTest() [all …]
|
/tools/test/openhst/ |
D | stress_test.py | 199 def __init__(self, name, command, output, events, argument 218 self.command = command 258 logging.info("Restarting process %s", "".join(str(self.command))) 269 self.process = pexpect.spawn(" ".join(self.command), timeout=None) 272 self.process = subprocess.Popen(self.command, stdout=subprocess.PIPE) 418 command = [ 421 command.extend(["%s:S" % tag for tag in config.tag_to_suppress]) 424 command = [ 432 name, command, os.path.join( 443 command = shlex.split( [all …]
|
/tools/treble/build/sandbox/ |
D | nsjail_test.py | 34 command=['/bin/bash'], 55 command=['/bin/bash'], 67 command=['/bin/bash'], 83 command=['/bin/bash'], 91 command=['/bin/bash'], 113 command=['/bin/bash'], 134 command=['/bin/bash'], 155 command=['/bin/bash'],
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/ |
D | ota_tool_factory_test.py | 22 def __init__(self, command): argument 23 self.command = command 32 MockOtaTool.__name__: lambda command: MockOtaTool(command), 45 MockOtaTool.__name__: lambda command: MockOtaTool(command),
|
/tools/tradefederation/contrib/src/com/android/uicd/tests/ |
D | UiConductorTest.java | 281 String[] command = buildCommand(testCase, devices); in runTestCase() local 282 CLog.i("Running %s (command: %s)", testCase.mDesc, Arrays.asList(command)); in runTestCase() 283 CommandResult result = mRunUtil.runTimedCmd(mTestTimeout.toMillis(), command); in runTestCase() 415 List<String> command = new ArrayList<>(); in buildCommand() local 416 command.add("java"); in buildCommand() 417 command.add("-jar"); in buildCommand() 418 command.add(mCliJar.getAbsolutePath()); in buildCommand() 420 command.add(INPUT_OPTION); in buildCommand() 421 command.add(testCase.mFile.getAbsolutePath()); in buildCommand() 423 command.add(OUTPUT_OPTION); in buildCommand() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | ClangProfileIndexerTest.java | 69 List<String> command = mCommandArgumentCaptor.getCommand(); in testProfileFiles_includesFiles() local 72 assertThat(command) in testProfileFiles_includesFiles() 77 assertThat(command).containsAtLeastElementsIn(profileFiles); in testProfileFiles_includesFiles() 89 List<String> command = mCommandArgumentCaptor.getCommand(); in testLargeProfileCount_usesFile() local 92 assertThat(command.size()).isLessThan(MAX_PROFILE_FILES); in testLargeProfileCount_usesFile() 93 assertThat(command).contains("-f"); in testLargeProfileCount_usesFile() 94 checkListDoesNotContainSuffix(command, ".profraw"); in testLargeProfileCount_usesFile() 105 List<String> command = mCommandArgumentCaptor.getCommand(); in testSingleFailure_usesFailureMode() local 106 assertThat(command).contains("-failure-mode=all"); in testSingleFailure_usesFailureMode()
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/ |
D | ota_tool_factory.py | 21 AdbSideloadOtaTool.__name__: lambda command: AdbSideloadOtaTool(command), 22 UpdateDeviceOtaTool.__name__: lambda command: UpdateDeviceOtaTool(command), 27 def create(ota_tool_class, command): argument 49 new_update_tool = _CONSTRUCTORS[ota_tool_class](command)
|