/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/ |
D | md8475a.py | 560 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 …]
|
D | mg3710a.py | 153 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/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceRemoteCmdFormatter.java | 50 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/test/connectivity/acts/tests/google/bt/pts/ |
D | cmd_input.py | 26 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/framework/acts/controllers/rohdeschwarz_lib/ |
D | cmw500.py | 205 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/tradefederation/core/python-lib/tradefed_py/ |
D | adb_handler.py | 26 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/repohooks/rh/ |
D | git.py | 36 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 …]
|
D | utils.py | 77 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/test/connectivity/acts/tests/google/fuchsia/bt/ |
D | cmd_input.py | 52 import cmd 61 class CmdInput(cmd.Cmd): 206 cmd = "Start a connectable LE advertisement" 212 self.log.error(FAILURE.format(cmd, err)) 219 cmd = "Start a nonconnectable LE advertisement" 225 self.log.error(FAILURE.format(cmd, err)) 232 cmd = "Stop a connectable LE advertisement" 236 self.log.error(FAILURE.format(cmd, err)) 257 cmd = "Connect to a LE peripheral by input ID." 265 self.log.error(FAILURE.format(cmd, err)) [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_adb_test.py | 40 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/controllers/sniffer_lib/local/ |
D | tshark.py | 50 cmd = "{} -i {} -w {}".format(self._executable_path, self._interface, 53 cmd = "{} -a duration:{}".format(cmd, duration) 55 cmd = "{} -c {}".format(cmd, packet_count) 57 cmd = "{} {}".format(cmd, additional_args) 58 return cmd
|
D | tcpdump.py | 53 cmd = "{} -i {} -w {}".format(self._executable_path, self._interface, 56 cmd = "{} -c {}".format(cmd, packet_count) 58 cmd = "{} {}".format(cmd, additional_args) 59 return cmd
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | apollo_lib.py | 210 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/acloud/internal/lib/ |
D | ssh.py | 36 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/test_utils/instrumentation/device/command/ |
D | intent_builder.py | 66 cmd = [self._base_cmd] 68 cmd.append('-a %s' % self._action) 70 cmd.append('-n %s' % self._component) 72 cmd.append('-d %s' % self._data_uri) 73 cmd += self._flags 76 cmd.append('--esn %s' % key) 81 cmd.append(' '.join((TYPE_TO_FLAG[type(value)], key, 83 return ' '.join(cmd).strip()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandFileWatcher.java | 172 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/repohooks/tools/ |
D | pylint.py | 100 cmd = [pylint] 110 cmd += ['--rcfile', pylintrc] 112 cmd += unknown + opts.files 115 cmd += ['--init-hook', opts.init_hook] 118 os.execvp(cmd[0], cmd) 122 print('%s: unable to run `%s`: %s' % (__file__, cmd[0], e), 125 (__file__, os.path.basename(cmd[0])), file=sys.stderr)
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | adb.py | 57 def __init__(self, cmd, stdout, stderr, ret_code): argument 59 self.cmd = cmd 66 ) % (self.cmd, self.ret_code, self.stdout, self.stderr) 154 def _exec_cmd(self, cmd, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument 168 result = job.run(cmd, ignore_status=True, timeout=timeout) 172 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 179 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 181 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 189 def _exec_cmd_nb(self, cmd, **kwargs): argument 196 return job.run_async(cmd, **kwargs)
|
D | abstract_inst.py | 91 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/asuite/ |
D | asuite_run_unittests.py | 59 cmd = full_path + GRADLE_TEST 60 cmd_dict.update({cmd : full_path}) 62 for cmd, path in cmd_dict.items(): 63 subprocess.check_call(shlex.split(cmd), cwd=path) 84 cmd = "git status --short | egrep ^[ARM] | awk '{print $NF}'" 85 preupload_files = subprocess.check_output(cmd, shell=True,
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceStateMonitor.java | 51 final String cmd = "pm path android"; in waitForPmResponsive() local 53 getIDevice().executeShellCommand(cmd, receiver, MAX_OP_TIME, TimeUnit.MILLISECONDS); in waitForPmResponsive() 55 CLog.v("%s returned %s", cmd, output); in waitForPmResponsive() 60 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForPmResponsive() 62 CLog.i("%s on device %s failed: timeout", cmd, getSerialNumber()); in waitForPmResponsive() 64 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForPmResponsive() 66 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForPmResponsive()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | RunCommandTargetPreparer.java | 83 for (String cmd : mCommands) { in setUp() 88 device.executeShellV2Command(cmd, mRunCmdTimeout, TimeUnit.MILLISECONDS, 0); in setUp() 90 result = device.executeShellV2Command(cmd); in setUp() 98 cmd, result.getStdout(), result.getStderr()), in setUp() 104 cmd, result.getStdout(), result.getStderr()); in setUp() 129 for (String cmd : mTeardownCommands) { in tearDown() 131 CommandResult result = getDevice(testInfo).executeShellV2Command(cmd); in tearDown() 135 cmd, result.getStdout(), result.getStderr()); in tearDown() 144 public final void addRunCommand(String cmd) { in addRunCommand() argument 145 mCommands.add(cmd); in addRunCommand()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | WifiHelperTest.java | 50 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/tradefederation/core/src/com/android/tradefed/log/ |
D | LogReceiver.java | 34 public LogReceiver(ITestDevice device, String cmd, String desc) { in LogReceiver() argument 35 this(device, cmd, LOG_SIZE, DELAY, desc); in LogReceiver() 38 public LogReceiver(ITestDevice device, String cmd, String desc, in LogReceiver() argument 40 this(device, cmd, logcat_size, delay_secs, desc); in LogReceiver() 43 private LogReceiver(ITestDevice device, String cmd, in LogReceiver() argument 48 mDeviceAction = new BackgroundDeviceAction(cmd, desc, device, in LogReceiver()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | HostGTest.java | 69 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 …]
|