Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 163) sorted by relevance

1234567

/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmd8475a.py560 cmd = "IMSCSCFSTAT? {}".format(virtual_network_id)
561 return self.send_query(cmd)
573 cmd = "IMSCSCFCALL {},{}".format(virtual_network_id, action)
574 self.send_command(cmd)
771 cmd = "LOADSIMPARAM \"" + filepath + '\";ERROR?'
772 self.send_query(cmd, LOAD_SIMULATION_PARAM_FILE_WAIT_TIME)
784 cmd = "LOADCELLPARAM \"" + filepath + '\";ERROR?'
785 status = int(self.send_query(cmd))
787 raise AnritsuError(status, cmd)
849 cmd = "SIMMODEL?"
[all …]
Dmg3710a.py153 cmd = "PORT {}".format(sg_number)
154 self.send_command(cmd)
179 cmd = "OUTP{}:MOD {}".format(sg, state)
180 self.send_command(cmd)
205 cmd = "OUTP{} {}".format(sg, state)
206 self.send_command(cmd)
231 cmd = "SOUR{}:FREQ {}".format(sg, freq)
232 self.send_command(cmd)
257 cmd = "SOUR{}:FREQ:OFFS:STAT {}".format(sg, state)
258 self.send_command(cmd)
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/pts/
Dcmd_input.py26 import cmd
32 class CmdInput(cmd.Cmd):
94 cmd = ""
98 self.log.info(FAILURE.format(cmd, err))
101 cmd = ""
105 self.log.info(FAILURE.format(cmd, err))
108 cmd = ""
112 self.log.info(FAILURE.format(cmd, err))
116 cmd = "Gatt connect over LE"
123 self.log.info(FAILURE.format(cmd, err))
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py54 import cmd
64 class CommandInput(cmd.Cmd):
236 cmd = "Include name in the advertisement."
240 self.log.error(FAILURE.format(cmd, err))
243 cmd = "Set the name to be included in the advertisement."
247 self.log.error(FAILURE.format(cmd, err))
260 cmd = "Set the appearance to known SIG values."
264 self.log.error(FAILURE.format(cmd, err))
286 cmd = "Include tx_power_level in advertisement."
290 self.log.info(FAILURE.format(cmd, err))
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmw500.py205 cmd = 'SOURce:LTE:SIGN:CELL:STATe {}'.format(state)
206 self.send_and_recv(cmd)
244 cmd = 'CONFigure:LTE:SIGN:DMODe:UCSPECific {}'.format(state)
245 self.send_and_recv(cmd)
247 def send_and_recv(self, cmd): argument
257 self._send(cmd)
258 if '?' in cmd:
268 cmd = 'ROUTe:LTE:SIGN:SCENario:{}'.format(mimo.value)
269 self.send_and_recv(cmd)
383 cmd = 'CONFigure:LTE:SIGN:CONNection:KRRC {}'.format(state.value)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py210 def send(self, cmd): argument
221 logging.debug(cmd)
223 self.connection_handle.write(cmd)
227 def cmd(self, cmds, wait=None): member in BudsDevice
244 for cmd in cmds:
245 _, result = self._cmd(cmd, wait=wait)
249 def _cmd(self, cmd, wait=None, throw_error=True): argument
272 self.connection_handle.write(cmd)
310 raise DeviceError('Unknown command %s' % cmd)
332 res = self.cmd('GetPSHex 0x2637')
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java356 final ExecutableCommand cmd; field in CommandScheduler.ExecutableCommandState
359 ExecutableCommandState(ExecutableCommand cmd, CommandState state) { in ExecutableCommandState() argument
360 this.cmd = cmd; in ExecutableCommandState()
664 List<String> cmd = Arrays.asList(mCmd.getCommandTracker().getArgs()); in checkStrayThreads() local
667 mCmd.getCommandTracker().getId(), cmd, numThread, EXPECTED_THREAD_COUNT); in checkStrayThreads()
675 HostDataPoint data = new HostDataPoint("numThread", numThread, cmd.toString()); in checkStrayThreads()
1074 ExecutableCommand cmd = cmdIter.next(); in processReadyCommands() local
1075 IConfiguration config = cmd.getConfiguration(); in processReadyCommands()
1081 mExecutingCommands.add(cmd); in processReadyCommands()
1085 scheduledCommandMap.put(cmd, context); in processReadyCommands()
[all …]
DCommandFileWatcher.java172 for (CommandFile cmd : cmdCopy) { in checkForUpdates()
173 if (checkCommandFileForUpdate(cmd, checkedFiles)) { in checkForUpdates()
174 mListener.notifyFileChanged(cmd.file, cmd.extraArgs); in checkForUpdates()
179 boolean checkCommandFileForUpdate(CommandFile cmd, Set<File> checkedFiles) { in checkCommandFileForUpdate() argument
180 if (checkedFiles.contains(cmd.file)) { in checkCommandFileForUpdate()
183 checkedFiles.add(cmd.file); in checkCommandFileForUpdate()
186 final long curModTime = cmd.file.lastModified(); in checkCommandFileForUpdate()
192 } else if (curModTime != cmd.modTime) { in checkCommandFileForUpdate()
196 CLog.w("Found update in monitored cmdfile %s (%d -> %d)", cmd.file, cmd.modTime, in checkCommandFileForUpdate()
202 for (CommandFile dep : cmd.dependencies) { in checkCommandFileForUpdate()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceRemoteCmdFormatter.java50 List<String> cmd = new ArrayList<>(); in getSshCommand() local
51 cmd.add("ssh"); in getSshCommand()
52 cmd.add("-o"); in getSshCommand()
53 cmd.add("UserKnownHostsFile=/dev/null"); in getSshCommand()
54 cmd.add("-o"); in getSshCommand()
55 cmd.add("StrictHostKeyChecking=no"); in getSshCommand()
56 cmd.add("-o"); in getSshCommand()
57 cmd.add("ServerAliveInterval=10"); in getSshCommand()
58 cmd.add("-i"); in getSshCommand()
59 cmd.add(sshKey.getAbsolutePath()); in getSshCommand()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java504 ClusterCommand cmd = new ClusterCommand(COMMAND_ID, TASK_ID, CMD_LINE);
505 cmds.add(cmd);
515 ClusterCommand cmd = new ClusterCommand(COMMAND_ID, TASK_ID, CMD_LINE);
516 cmd.setTargetDeviceSerials(ArrayUtil.list("deviceSerial"));
517 cmds.add(cmd);
528 ClusterCommand cmd = new ClusterCommand(COMMAND_ID, TASK_ID, CMD_LINE);
529 cmd.setTargetDeviceSerials(
531 cmds.add(cmd);
865 ClusterCommand cmd = new ClusterCommand(COMMAND_ID, TASK_ID, "empty --dry-run");
866 mScheduler.execCommands(Arrays.asList(cmd));
[all …]
/tools/repohooks/rh/
Dgit.py36 cmd = ['git', 'rev-parse', '--abbrev-ref', 'HEAD']
37 result = rh.utils.run(cmd, capture_output=True)
41 cmd = ['git', 'config', 'branch.%s.remote' % branch]
42 result = rh.utils.run(cmd, capture_output=True)
52 cmd = ['git', 'symbolic-ref', 'HEAD']
53 result = rh.utils.run(cmd, capture_output=True)
59 cmd = ['git', 'config', cfg_option % 'merge']
60 result = rh.utils.run(cmd, capture_output=True)
65 cmd = ['git', 'config', cfg_option % 'remote']
66 result = rh.utils.run(cmd, capture_output=True)
[all …]
Dhooks.py202 def _run(cmd, **kwargs): argument
210 return rh.utils.run(cmd, **kwargs)
269 def _fixup_func_caller(cmd, **kwargs): argument
277 result = _run(cmd, **kwargs)
284 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument
287 _run(cmd, **kwargs),
312 cmd = [bpfmt, '-l'] + options.args((), filtered)
316 result = _run(cmd, input=data)
327 cmd = ([tool, '-', '--root', project.dir] +
329 return _check_cmd('checkpatch.pl', project, commit, cmd,
[all …]
Dutils.py77 def cmd(self): member in CompletedProcess
84 return rh.shell.cmd_to_str(self.cmd)
100 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
106 super(CalledProcessError, self).__init__(returncode, cmd, stdout)
120 return '' if self.cmd is None else rh.shell.cmd_to_str(self.cmd)
155 def _kill_child_process(proc, int_timeout, kill_timeout, cmd, original_handler, argument
200 signum << 8, cmd, msg='Received signal %i' % signum)
266 def run(cmd, redirect_stdout=False, redirect_stderr=False, cwd=None, input=None, argument
364 if isinstance(cmd, string_types):
367 cmd = ['/bin/bash', '-c', cmd]
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java349 CommandResult cmd = new CommandResult(); in testStartGce_timeout() local
350 cmd.setStatus(CommandStatus.TIMED_OUT); in testStartGce_timeout()
351 cmd.setStdout("output err"); in testStartGce_timeout()
358 .andReturn(cmd); in testStartGce_timeout()
453 CommandResult cmd = new CommandResult(); in testStartGce() local
454 cmd.setStatus(CommandStatus.SUCCESS); in testStartGce()
455 cmd.setStdout("output"); in testStartGce()
459 .andReturn(cmd); in testStartGce()
493 CommandResult cmd = new CommandResult(); in testStartGce_failed() local
494 cmd.setStatus(CommandStatus.FAILED); in testStartGce_failed()
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiDppTest.py178 cmd = "wpa_cli DPP_BOOTSTRAP_GEN type=qrcode info=%s" % info
181 cmd += " mac=%s" % mac
184 cmd += " chan=%s" % chan
186 result = device.adb.shell(cmd)
189 asserts.fail("gen_uri: Failed to generate a URI. Command used: %s" % cmd)
193 " Command used: %s" % cmd)
212 cmd = "wpa_cli DPP_BOOTSTRAP_GET_URI %s" % uri_id
213 result = device.adb.shell(cmd)
216 asserts.fail("get_uri: Failed to read URI. Command used: %s" % cmd)
231 cmd = "wpa_cli DPP_BOOTSTRAP_REMOVE %s" % uri_id
[all …]
/tools/acloud/internal/lib/
Dssh.py36 def _SshCallWait(cmd, timeout=None): argument
50 logger.info("Running command \"%s\"", cmd)
51 process = subprocess.Popen(cmd, shell=True, stdin=None,
63 def _SshCall(cmd, timeout=None): argument
77 logger.info("Running command \"%s\"", cmd)
78 process = subprocess.Popen(cmd, shell=True, stdin=None,
90 def _SshLogOutput(cmd, timeout=None, show_output=False): argument
109 cmd = "exec " + cmd
110 logger.info("Running command \"%s\"", cmd)
111 process = subprocess.Popen(cmd, shell=True, stdin=None,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py660 for cmd in ("ps -A", "ps"):
663 '%s | grep "S %s"' % (cmd, package_name),
676 '\"%s\".\nError: %s', cmd, out, e)
680 'Exception %s', package_name, cmd, e)
885 for cmd in ("ps -A", "ps"):
888 '%s | grep "S %s"' % (cmd, package_name),
896 "Exception %s", package_name, cmd, e)
975 cmd = "find %s -type f" % directory
979 cmd = "%s -mtime -%ss" % (cmd, seconds)
981 cmd = "%s -iname %s" % (cmd, match_string)
[all …]
Dabstract_inst.py91 def _send(self, cmd): argument
102 cmd_es = cmd + self._escseq
106 self._logger.debug('Sent %r to %r:%r.', cmd, self._ip_addr,
111 'to instrument.').format(repr(cmd))
117 'to instrument.').format(repr(cmd))
123 'to instrument.').format(repr(cmd), repr(err))
188 def _query(self, cmd): argument
199 self._send(cmd + ';*OPC?')
221 def _query(self, cmd): argument
233 self._ip_addr, cmd)
[all …]
/tools/tradefederation/core/python-lib/tradefed_py/
Dadb_handler.py26 def exec_adb_command(self, cmd): argument
28 cmd = "{} {}".format(self.adb_cmd, cmd)
29 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
34 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
36 def exec_shell_command(self, cmd): argument
38 cmd = '{} shell {}'.format(self.adb_cmd, cmd)
39 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
44 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
49 def __init__(self, cmd, stdout, stderr, ret_code): argument
50 self.cmd = cmd
[all …]
/tools/asuite/atest/
Datest_utils.py126 def _run_limited_output(cmd, env_vars=None): argument
138 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
172 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
197 cmd = get_build_cmd() + list(build_targets)
198 logging.debug('Executing command: %s', cmd)
201 subprocess.check_call(cmd, stderr=subprocess.STDOUT,
205 _run_limited_output(cmd, env_vars=full_env_vars)
470 for cmd in _cmd:
471 if cmd.startswith('--atest-log-file-path'):
472 _cmd.remove(cmd)
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DWifiHelperTest.java50 final String cmd = WifiHelper.buildWifiUtilCmd("meth"); in testBuildCommand_simple() local
51 assertEquals(expected, cmd); in testBuildCommand_simple()
61 final String cmd = WifiHelper.buildWifiUtilCmd("meth", "id", "45"); in testBuildCommand_oneArg() local
63 assertTrue(cmd.startsWith(start)); in testBuildCommand_oneArg()
64 assertTrue(cmd.contains(piece1)); in testBuildCommand_oneArg()
65 assertTrue(cmd.contains(piece2)); in testBuildCommand_oneArg()
66 assertTrue(cmd.endsWith(end)); in testBuildCommand_oneArg()
77 final String cmd = WifiHelper.buildWifiUtilCmd("addWpaPskNetwork", "ssid", "With Space", in testBuildCommand_withSpace() local
80 assertTrue(cmd.startsWith(start)); in testBuildCommand_withSpace()
81 assertTrue(cmd.contains(piece1)); in testBuildCommand_withSpace()
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_adb_test.py40 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
43 MockAdbProxy()._exec_cmd(cmd)
48 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
51 MockAdbProxy()._exec_cmd(cmd)
55 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
57 MockAdbProxy()._exec_cmd(cmd)
61 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
63 MockAdbProxy()._exec_cmd(cmd)
67 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
69 MockAdbProxy()._exec_cmd(cmd)
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py4107 for cmd in ("ls -lh /data/local/tmp/tcpdump/",
4112 out = ad.adb.shell(cmd)
4271 for cmd in ("ls -lh /data/local/tmp/tcpdump/",
4276 out = ad.adb.shell(cmd)
4418 cmd = "echo restart > /sys/kernel/debug/msm_subsys/modem"
4419 ad.log.info("Triggering Modem Crash from kernel using adb command %s", cmd)
4420 ad.adb.shell(cmd)
4434 cmd = ('am instrument -w -e request "4b 25 03 00" '
4437 ad.log.info("Crash modem by %s", cmd)
4438 ad.adb.shell(cmd, ignore_status=True)
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDeviceStateMonitor.java183 final String cmd = "ls /system/bin/adb"; in waitForDeviceShell() local
185 getIDevice().executeShellCommand(cmd, receiver, MAX_OP_TIME, TimeUnit.MILLISECONDS); in waitForDeviceShell()
192 CLog.e("%s failed on: %s", cmd, getSerialNumber()); in waitForDeviceShell()
195 CLog.e("%s failed on %s: timeout", cmd, getSerialNumber()); in waitForDeviceShell()
253 final String cmd = "getprop " + BOOTCOMPLETE_PROP; in waitForBootComplete() local
261 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForBootComplete()
265 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForBootComplete()
310 String cmd = null; in waitForStoreMount() local
313 cmd = writeCmd; in waitForStoreMount()
316 cmd = checkCmd; in waitForStoreMount()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DHostGTest.java69 public CommandResult executeHostCommand(String cmd) { in executeHostCommand() argument
70 return executeHostCommand(cmd, DEFAULT_HOST_COMMAND_TIMEOUT_MS); in executeHostCommand()
78 public CommandResult executeHostCommand(String cmd, long timeoutMs) { in executeHostCommand() argument
79 String[] cmds = cmd.split("\\s+"); in executeHostCommand()
90 String cmd, long timeoutMs, IShellOutputReceiver receiver) { in executeHostGTestCommand() argument
92 String[] cmds = cmd.split("\\s+"); in executeHostGTestCommand()
157 for (String cmd : getBeforeTestCmd()) { in runTest()
158 CommandResult result = executeHostCommand(cmd); in runTest()
166 String cmd = getGTestCmdLine(fullPath, flags); in runTest() local
167 CommandResult testResult = executeHostGTestCommand(cmd, maxTestTimeMs, resultParser); in runTest()
[all …]

1234567