/build/kati/ |
find_test.cc | 33 string cmd; local 36 cmd += ' '; 37 cmd += argv[i]; 40 if (!fc.Parse(cmd)) { 45 if (!FindEmulator::Get()->HandleFind(cmd, fc, Loc(), &out)) { 55 string Run(const string& cmd) { 57 int ret = RunCommand("/bin/sh", "-c", cmd, RedirectStderr::NONE, &s); 60 fprintf(stderr, "Failed to run `%s`\n", cmd.c_str()); 69 void CompareFind(const string& cmd) { 70 string native = Run(cmd); [all...] |
/external/python/cpython2/Lib/distutils/ |
spawn.py | 18 def spawn(cmd, search_path=1, verbose=0, dry_run=0): 19 """Run another program, specified as a command list 'cmd', in a new process. 21 'cmd' is just the argument list for the new process, ie. 22 cmd[0] is the program to run and cmd[1:] are the rest of its arguments. 27 search path will be used to find the program; otherwise, cmd[0] 34 # cmd is documented as a list, but just in case some code passes a tuple 36 cmd = list(cmd) 38 _spawn_posix(cmd, search_path, dry_run=dry_run [all...] |
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/ |
md8475a.py | 491 cmd = "IMSCSCFSTAT? {}".format(virtual_network_id) 492 return self.send_query(cmd) 504 cmd = "IMSCSCFCALL {},{}".format(virtual_network_id, action) 505 self.send_command(cmd) 702 cmd = "LOADSIMPARAM \"" + filepath + '\";ERROR?' 703 self.send_query(cmd, LOAD_SIMULATION_PARAM_FILE_WAIT_TIME) 715 cmd = "LOADCELLPARAM \"" + filepath + '\";ERROR?' 716 status = int(self.send_query(cmd)) 718 raise AnritsuError(status, cmd) 779 cmd = "SIMMODEL? [all...] |
/external/python/cpython2/Lib/distutils/tests/ |
test_check.py | 19 cmd = check(dist) 20 cmd.initialize_options() 22 setattr(cmd, name, value) 23 cmd.ensure_finalized() 24 cmd.run() 25 return cmd 31 cmd = self._run() 32 self.assertEqual(cmd._warnings, 2) 40 cmd = self._run(metadata) 41 self.assertEqual(cmd._warnings, 0 [all...] |
test_bdist.py | 18 cmd = bdist(dist) 19 cmd.formats = ['msi'] 20 cmd.ensure_finalized() 21 self.assertEqual(cmd.formats, ['msi']) 26 found = sorted(cmd.format_command) 32 cmd = bdist(dist) 33 cmd.skip_build = 1 34 cmd.ensure_finalized() 35 dist.command_obj['bdist'] = cmd 43 subcmd = cmd.get_finalized_command(name [all...] |
test_install_scripts.py | 26 cmd = install_scripts(dist) 27 self.assertFalse(cmd.force) 28 self.assertFalse(cmd.skip_build) 29 self.assertIsNone(cmd.build_dir) 30 self.assertIsNone(cmd.install_dir) 32 cmd.finalize_options() 34 self.assertTrue(cmd.force) 35 self.assertTrue(cmd.skip_build) 36 self.assertEqual(cmd.build_dir, "/foo/bar") 37 self.assertEqual(cmd.install_dir, "/splat/funk" [all...] |
/frameworks/base/media/java/android/media/ |
AsyncPlayer.java | 54 private void startSound(Command cmd) { 61 player.setAudioAttributes(cmd.attributes); 62 player.setDataSource(cmd.context, cmd.uri); 63 player.setLooping(cmd.looping); 70 long delay = SystemClock.uptimeMillis() - cmd.requestTime; 76 Log.w(mTag, "error loading sound for " + cmd.uri, e); 87 Command cmd = null; local 91 cmd = mCmdQueue.removeFirst(); 94 switch (cmd.code) 198 Command cmd = new Command(); local 220 Command cmd = new Command(); local [all...] |
/external/autotest/client/common_lib/cros/manual/ |
audio_helper.py | 26 cmd = "cat /proc/asound/cards | grep \"{}\" | grep USB".format(name) 27 logging.info('---cmd: %s', cmd) 29 soundcard = dut.run(cmd, ignore_status=True).stdout.strip().split()[0] 32 logging.exception('Fail to execute %s.', cmd) 37 logging.exception('Fail to get sound card, cli=%s.', cmd) 88 cmd = ("cat /proc/asound/%s/stream0 | grep Status | " 90 stream_state = dut.run(cmd, ignore_status=True).stdout.split() 92 logging.exception('Fail to run cli: %s.', cmd) 139 cmd = ("cras_test_client --dump_server_info [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
SystemUtil.java | 60 * @param cmd the command to run 64 public static String runShellCommand(Instrumentation instrumentation, String cmd) 66 Log.v(TAG, "Running command: " + cmd); 67 if (cmd.startsWith("pm grant ") || cmd.startsWith("pm revoke ")) { 71 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); 86 public static String runShellCommand(String cmd) { 88 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd); 99 public static String runShellCommand(String cmd, Predicate<String> resultChecker) { 100 final String result = runShellCommand(cmd); [all...] |
/build/soong/zip/ |
zip_test.go | 29 in: `./cmd '"'-C`, 30 out: []string{"./cmd", `"-C`}, 34 in: `./cmd '-C`, 35 out: []string{"./cmd", `-C`}, 39 in: `./cmd '\"'-C`, 40 out: []string{"./cmd", `\"-C`}, 44 in: `./cmd '\\'-C`, 45 out: []string{"./cmd", `\\-C`}, 49 in: `./cmd \'-C`, 50 out: []string{"./cmd", `'-C`} [all...] |
/external/iproute2/tipc/ |
peer.c | 27 static int cmd_peer_rm_addr(struct nlmsghdr *nlh, const struct cmd *cmd, 64 static int cmd_peer_rm(struct nlmsghdr *nlh, const struct cmd *cmd, 67 const struct cmd cmds[] = { 72 return run_cmd(nlh, cmd, cmds, cmdl, NULL); 84 int cmd_peer(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, 87 const struct cmd cmds[] = { 92 return run_cmd(nlh, cmd, cmds, cmdl, NULL) [all...] |
/external/linux-kselftest/tools/testing/selftests/membarrier/ |
membarrier_test.c | 11 static int sys_membarrier(int cmd, int flags) 13 return syscall(__NR_membarrier, cmd, flags); 18 int cmd = -1, flags = 0; local 20 if (sys_membarrier(cmd, flags) != -1) { 23 cmd, flags); 28 cmd, flags); 34 int cmd = MEMBARRIER_CMD_QUERY, flags = 1; local 36 if (sys_membarrier(cmd, flags) != -1) { 50 int cmd = MEMBARRIER_CMD_SHARED, flags = 0; local 53 if (sys_membarrier(cmd, flags) != 0) [all...] |
/external/ltp/testcases/kernel/syscalls/ulimit/ |
ulimit01.c | 124 int cmd; variable 128 int cmd; member in struct:limits_t 180 cmd = Scenarios[i].cmd; 186 TEST(ulimit(cmd, limit)); 193 cmd, limit); 197 cmd, limit); 203 cmd, limit, TEST_RETURN); 207 cmd, limit, TEST_RETURN); 214 if (cmd == UL_GETFSIZE) [all...] |
/external/ltp/testcases/realtime/scripts/ |
run_c_files.sh | 38 cmd=$2 43 LOG_FILE="$LOG_DIR/$LOG_FORMAT-${cmd}${params// /}.log" 48 echo "--- Running testcase $cmd $params ---" 51 eval ./$cmd 2>&1 $params 54 echo "The $cmd test appears to have completed."
|
/external/python/cpython3/Lib/distutils/tests/ |
test_bdist.py | 17 cmd = bdist(dist) 18 cmd.formats = ['msi'] 19 cmd.ensure_finalized() 20 self.assertEqual(cmd.formats, ['msi']) 25 found = sorted(cmd.format_command) 31 cmd = bdist(dist) 32 cmd.skip_build = 1 33 cmd.ensure_finalized() 34 dist.command_obj['bdist'] = cmd 41 subcmd = cmd.get_finalized_command(name [all...] |
test_install_scripts.py | 26 cmd = install_scripts(dist) 27 self.assertFalse(cmd.force) 28 self.assertFalse(cmd.skip_build) 29 self.assertIsNone(cmd.build_dir) 30 self.assertIsNone(cmd.install_dir) 32 cmd.finalize_options() 34 self.assertTrue(cmd.force) 35 self.assertTrue(cmd.skip_build) 36 self.assertEqual(cmd.build_dir, "/foo/bar") 37 self.assertEqual(cmd.install_dir, "/splat/funk" [all...] |
test_check.py | 24 cmd = check(dist) 25 cmd.initialize_options() 27 setattr(cmd, name, value) 28 cmd.ensure_finalized() 29 cmd.run() 30 return cmd 36 cmd = self._run() 37 self.assertEqual(cmd._warnings, 2) 45 cmd = self._run(metadata) 46 self.assertEqual(cmd._warnings, 0 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/ |
test_bdist.py | 18 cmd = bdist(dist) 19 cmd.formats = ['msi'] 20 cmd.ensure_finalized() 21 self.assertEqual(cmd.formats, ['msi']) 26 found = sorted(cmd.format_command) 32 cmd = bdist(dist) 33 cmd.skip_build = 1 34 cmd.ensure_finalized() 35 dist.command_obj['bdist'] = cmd 43 subcmd = cmd.get_finalized_command(name [all...] |
test_install_scripts.py | 26 cmd = install_scripts(dist) 27 self.assertTrue(not cmd.force) 28 self.assertTrue(not cmd.skip_build) 29 self.assertTrue(cmd.build_dir is None) 30 self.assertTrue(cmd.install_dir is None) 32 cmd.finalize_options() 34 self.assertTrue(cmd.force) 35 self.assertTrue(cmd.skip_build) 36 self.assertEqual(cmd.build_dir, "/foo/bar") 37 self.assertEqual(cmd.install_dir, "/splat/funk" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/ |
test_bdist.py | 18 cmd = bdist(dist) 19 cmd.formats = ['msi'] 20 cmd.ensure_finalized() 21 self.assertEqual(cmd.formats, ['msi']) 26 found = sorted(cmd.format_command) 32 cmd = bdist(dist) 33 cmd.skip_build = 1 34 cmd.ensure_finalized() 35 dist.command_obj['bdist'] = cmd 43 subcmd = cmd.get_finalized_command(name [all...] |
test_install_scripts.py | 26 cmd = install_scripts(dist) 27 self.assertTrue(not cmd.force) 28 self.assertTrue(not cmd.skip_build) 29 self.assertTrue(cmd.build_dir is None) 30 self.assertTrue(cmd.install_dir is None) 32 cmd.finalize_options() 34 self.assertTrue(cmd.force) 35 self.assertTrue(cmd.skip_build) 36 self.assertEqual(cmd.build_dir, "/foo/bar") 37 self.assertEqual(cmd.install_dir, "/splat/funk" [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
test_install_scripts.py | 26 cmd = install_scripts(dist)
27 self.assertTrue(not cmd.force)
28 self.assertTrue(not cmd.skip_build)
29 self.assertTrue(cmd.build_dir is None)
30 self.assertTrue(cmd.install_dir is None)
32 cmd.finalize_options()
34 self.assertTrue(cmd.force)
35 self.assertTrue(cmd.skip_build)
36 self.assertEqual(cmd.build_dir, "/foo/bar")
37 self.assertEqual(cmd.install_dir, "/splat/funk") [all...] |
/external/autotest/client/site_tests/security_StatefulPermissions/ |
security_StatefulPermissions.py | 130 cmd = "-regextype posix-extended -regex STATEFUL_ROOT/home/.shadow/" 131 cmd += "[[:alnum:]]{40}/(vault/root|mount/[^/]*)/[^/]*/[^/]* " 132 cmd += "-uid {0} \\( -gid {1} -o -gid {2} \\) -prune -o ".format( 135 return cmd 171 cmd = "find STATEFUL_ROOT " 172 cmd += self.generate_prune_arguments(prunelist) 175 cmd += " -path STATEFUL_ROOT/encrypted/var/tmp -o " 176 cmd += " -writable -ls -o -user %s -ls 2>/dev/null" % user 177 return cmd 191 cmd = "find STATEFUL_ROOT [all...] |
/external/autotest/client/cros/faft/utils/ |
shell_wrapper.py | 22 def _run_command(self, cmd, block=True): 29 self._os_if.log('Executing %s' % cmd) 30 process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, 36 def run_command(self, cmd, block=True): 45 process = self._run_command(cmd, block) 47 err = ['Failed running: %s' % cmd] 55 (cmd, process.returncode)) 57 def run_command_get_status(self, cmd): 62 process = self._run_command(cmd) 65 def run_command_get_output(self, cmd) [all...] |
/external/iw/ |
iw.c | 86 extern struct cmd __start___cmd; 87 extern struct cmd __stop___cmd; 91 _cmd = (const struct cmd *)((char *)_cmd + cmd_size)) 94 static void __usage_cmd(const struct cmd *cmd, char *indent, bool full) 100 switch (cmd->idby) { 113 if (cmd->parent && cmd->parent->name) 114 printf("%s ", cmd->parent->name); 115 printf("%s", cmd->name) 185 const struct cmd *section, *cmd; local 299 const struct cmd *cmd, *match = NULL, *sectcmd; local 499 const struct cmd *cmd = NULL; local [all...] |