Home
last modified time | relevance | path

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

123

/development/tools/
Dmonkey44 def PrintCommand(cmd, env=None): argument
54 sys.stdout.write(" ".join(cmd))
73 def Exec(self, cmd, stdout=None, stderr=None): argument
82 cmd = self._command + cmd
83 PrintCommand(cmd)
84 result = subprocess.call(cmd, stdout=stdout, stderr=stderr)
86 raise ExecutionException("adb: %s returned %s" % (cmd, result))
94 def Run(self, cmd, stdout=None, stderr=None): argument
104 self.Exec(cmd, stdout=stdout, stderr=stderr)
107 def Get(self, cmd): argument
[all …]
/development/vndk/tools/vtable-dumper/tests/
Dtest_vndk_vtable_dumper.py64 def run_cmd(cmd, verbose=False): argument
67 print('RUN:', ' '.join(cmd), file=sys.stderr)
68 subprocess.check_call(cmd)
71 def run_output(cmd, verbose=False): argument
74 print('RUN:', ' '.join(cmd), file=sys.stderr)
75 return subprocess.check_output(cmd, universal_newlines=True)
102 cmd = [clangpp, '-o', obj_file, '-c', src_file]
103 cmd.extend(['-fPIE', '-fPIC', '-fno-rtti', '-std=c++11'])
104 cmd.extend(['-gcc-toolchain', self.gcc_toolchain_dir])
105 cmd.extend(['-target', self.target_triple])
[all …]
/development/vndk/tools/header-checker/tests/
Dutils.py24 cmd = ['header-abi-dumper', '-o', output_name, input_path,]
26 cmd += ['-I', d]
27 cmd+= ['--']
29 cmd += ['-isystem', d]
30 cmd += cflags
31 subprocess.check_call(cmd)
/development/vndk/tools/definition-tool/tests/
Dndk_toolchain.py94 cmd = [clang, '-o', obj_file, '-c', src_file]
95 cmd.extend(['-fPIE', '-fPIC'])
96 cmd.extend(['-gcc-toolchain', self.gcc_toolchain_dir])
97 cmd.extend(['-target', self.target_triple])
98 cmd.extend(['-isystem', self.ndk_include])
99 cmd.extend(cflags)
100 cmd.extend(self.target_cflags)
101 subprocess.check_call(cmd)
113 cmd = [clang, '-o', out_file]
114 cmd.extend(['-fPIE', '-fPIC', '-Wl,--no-undefined', '-nostdlib'])
[all …]
/development/python-packages/adb/
Ddevice.py41 def __init__(self, cmd, stdout, stderr, exit_code): argument
43 '`{0}` exited with code {1}'.format(cmd, exit_code))
44 self.cmd = cmd
325 def _simple_call(self, cmd): argument
326 logging.info(' '.join(self.adb_cmd + cmd))
328 self.adb_cmd + cmd, stderr=subprocess.STDOUT)
330 def shell(self, cmd): argument
343 exit_code, stdout, stderr = self.shell_nocheck(cmd)
345 raise ShellError(cmd, stdout, stderr, exit_code)
348 def shell_nocheck(self, cmd): argument
[all …]
/development/ndk/platforms/android-9/include/linux/
Dwireless.h91 #define IW_IOCTL_IDX(cmd) ((cmd) - SIOCIWFIRST) argument
93 #define IW_IS_SET(cmd) (!((cmd) & 0x1)) argument
94 #define IW_IS_GET(cmd) ((cmd) & 0x1) argument
108 #define IW_EVENT_IDX(cmd) ((cmd) - IWEVFIRST) argument
279 #define IW_EVENT_CAPA_BASE(cmd) ((cmd >= SIOCIWFIRSTPRIV) ? (cmd - SIOCIWFIRSTPRIV + 0x60) : (c… argument
280 #define IW_EVENT_CAPA_INDEX(cmd) (IW_EVENT_CAPA_BASE(cmd) >> 5) argument
281 #define IW_EVENT_CAPA_MASK(cmd) (1 << (IW_EVENT_CAPA_BASE(cmd) & 0x1F)) argument
286 #define IW_EVENT_CAPA_SET(event_capa, cmd) (event_capa[IW_EVENT_CAPA_INDEX(cmd)] |= IW_EVENT_CAPA_M… argument
371 __u16 cmd; member
384 __u32 cmd; member
[all …]
Dquota.h39 #define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK)) argument
Dcapi.h57 unsigned long cmd; member
74 capi_manufacturer_cmd cmd; member
/development/ndk/platforms/android-21/include/linux/
Dwireless.h95 #define IW_IOCTL_IDX(cmd) ((cmd) - SIOCIWFIRST) argument
97 #define IW_IS_SET(cmd) (!((cmd) & 0x1)) argument
99 #define IW_IS_GET(cmd) ((cmd) & 0x1) argument
114 #define IW_EVENT_IDX(cmd) ((cmd) - IWEVFIRST) argument
310 #define IW_EVENT_CAPA_BASE(cmd) ((cmd >= SIOCIWFIRSTPRIV) ? (cmd - SIOCIWFIRSTPRIV + 0x60) : (c… argument
311 #define IW_EVENT_CAPA_INDEX(cmd) (IW_EVENT_CAPA_BASE(cmd) >> 5) argument
312 #define IW_EVENT_CAPA_MASK(cmd) (1 << (IW_EVENT_CAPA_BASE(cmd) & 0x1F)) argument
316 #define IW_EVENT_CAPA_SET(event_capa, cmd) (event_capa[IW_EVENT_CAPA_INDEX(cmd)] |= IW_EVENT_CAPA_M… argument
406 __u16 cmd; member
419 __u32 cmd; member
[all …]
Dethtool.h25 __u32 cmd; member
54 __u32 cmd; member
72 __u32 cmd; member
80 __u32 cmd; member
85 __u32 cmd; member
92 __u32 cmd; member
101 __u32 cmd; member
115 __u32 cmd; member
122 __u32 cmd; member
154 __u32 cmd; member
[all …]
Dipmi.h67 unsigned char cmd; member
75 unsigned char cmd; member
125 unsigned char cmd; member
132 unsigned int cmd; member
Dbaycom.h29 int cmd; member
Dcapi.h61 unsigned long cmd; member
77 capi_manufacturer_cmd cmd; member
/development/ndk/platforms/android-9/include/linux/mmc/
Dmmc.h46 #define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MM… argument
48 #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) argument
88 struct mmc_command *cmd; member
/development/testrunner/
Drun_command.py37 def RunCommand(cmd, timeout_time=None, retry_count=3, return_output=True, argument
54 result = RunOnce(cmd, timeout_time=timeout_time,
60 logger.Log("No response for %s, retrying" % cmd)
65 def RunOnce(cmd, timeout_time=None, return_output=True, stdin_input=None): argument
99 cmd,
111 logger.SilentLog("failed to retrieve stdout from: %s" % cmd)
116 logger.SilentLog("Error: %s returned %d error code" %(cmd,
137 logger.SilentLog("about to raise a timeout for: %s" % cmd)
/development/tools/idegen/
Dintellij-gen.sh75 cmd="java -cp $idegenjar com.android.idegen.IntellijProject $index_file $project_dir $module_dirs"
76 echo $cmd
77 $cmd
/development/vndk/tools/abi-tool/
Dvndk_abi_tool.py20 def check_silent_call(cmd): argument
21 subprocess.check_call(cmd, stdout=subprocess.DEVNULL,
29 def which(cmd, mode=os.F_OK | os.X_OK, path=None): argument
38 if file_name != cmd:
48 def check_silent_call(cmd): argument
50 subprocess.check_call(cmd, stdout=devnull, stderr=devnull)
217 def run_cmd(cmd, show_commands): argument
219 print(' '.join(cmd))
220 check_silent_call(cmd)
259 cmd = cmd_base + [path, '-o', out_path]
[all …]
/development/python-packages/gdbrunner/
D__init__.py230 cmd = ["cat", executable_path, ">", remote_temp_path]
232 cmd = run_as_cmd + cmd
235 device.shell(cmd)
264 cmd = ["which", executable_name]
266 cmd = run_as_cmd + cmd
269 output, _ = device.shell(cmd)
/development/testrunner/test_defs/
Dhost_test.py102 cmd = "java -cp %s %s %s -s %s -p %s" % (":".join(full_lib_paths),
106 logger.Log(cmd)
108 run_command.RunOnce(cmd, return_output=False)
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyCommandEvent.java31 public MonkeyCommandEvent(String cmd) { in MonkeyCommandEvent() argument
33 mCmd = cmd; in MonkeyCommandEvent()
DMonkeyGetAppFrameRateEvent.java126 String cmd = String.format(GET_APP_FRAMERATE_TMPL, sActivityName); in injectEvent() local
128 p = Runtime.getRuntime().exec(cmd); in injectEvent()
132 cmd, status)); in injectEvent()
151 Logger.err.println("// Exception from " + cmd + ":"); in injectEvent()
/development/ndk/platforms/android-21/include/linux/dvb/
Dosd.h54 OSD_Command cmd; member
92 int cmd; member
/development/scripts/
Dsymbol.py39 cmd = ("CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core "
42 stream = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).stdout
70 def GetProcess(self, cmd): argument
71 cmd_tuple = tuple(cmd) # Need to use a tuple as lists can't be dict keys.
88 pipe = self.SpawnProcess(cmd)
93 def SpawnProcess(self, cmd): argument
94 return subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
297 cmd = [ToolPath("addr2line"), "--functions", "--inlines",
299 child = _PIPE_ADDR2LINE_CACHE.GetProcess(cmd)
386 cmd = [ToolPath("objdump"),
[all …]
Dusb-reset-by-serial.py89 def docmdlines(cmd, nf=None): argument
91 verbose(2, "+ docmdlines executing: %s" % cmd)
92 args = shlex.split(cmd)
/development/ndk/platforms/android-9/include/linux/raid/
Dmd_k.h180cmd) do { wait_queue_t __wait; init_waitqueue_entry(&__wait, current); add_wait_queue(&wq… argument
182 …ent_lock_irq(wq, condition, lock, cmd) do { if (condition) break; __wait_event_lock_irq(wq,… argument

123