Home
last modified time | relevance | path

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

12345

/system/extras/tests/mmc_tracepoints/
Dmmc_trace_sample_data12 … mmcqd/0-82 [000] ...1 49.828932: mmc_blk_rw_start: cmd=25,addr=0x002c6518,size=0x00000010
13 … <...>-1484 [000] ..s4 49.829171: mmc_blk_rw_end: cmd=25,addr=0x002c6518,size=0x00000010
14 … mmcqd/0-82 [000] ...1 49.830095: mmc_blk_rw_start: cmd=25,addr=0x002c6528,size=0x00000008
15 … kworker/0:2-48 [000] ..s4 49.830218: mmc_blk_rw_end: cmd=25,addr=0x002c6528,size=0x00000008
16 … mmcqd/0-82 [000] ...1 52.465957: mmc_blk_rw_start: cmd=18,addr=0x001ad578,size=0x00000020
17 … <idle>-0 [000] ..s3 52.466404: mmc_blk_rw_end: cmd=18,addr=0x001ad578,size=0x00000020
18 … mmcqd/0-82 [000] ...1 52.492868: mmc_blk_rw_start: cmd=18,addr=0x001aecb8,size=0x00000020
19 … <idle>-0 [000] ..s3 52.493157: mmc_blk_rw_end: cmd=18,addr=0x001aecb8,size=0x00000020
20 … mmcqd/0-82 [000] ...1 54.834287: mmc_blk_rw_start: cmd=25,addr=0x005420a8,size=0x00000008
21 … <idle>-0 [000] ..s3 54.834383: mmc_blk_rw_end: cmd=25,addr=0x005420a8,size=0x00000008
[all …]
/system/security/keystore/
Dkeystore_cli.cpp47 #define NO_ARG_INT_RETURN(cmd) \ argument
49 if (strcmp(argv[1], #cmd) == 0) { \
50 int32_t ret = service->cmd(); \
55 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
61 #define SINGLE_ARG_INT_RETURN(cmd) \ argument
63 if (strcmp(argv[1], #cmd) == 0) { \
65 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
68 int32_t ret = service->cmd(String16(argv[2])); \
73 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
79 #define SINGLE_INT_ARG_INT_RETURN(cmd) \ argument
[all …]
/system/vold/fs/
DExt4.cpp117 std::vector<std::string> cmd; in Check() local
118 cmd.push_back(kFsckPath); in Check()
119 cmd.push_back("-y"); in Check()
120 cmd.push_back(c_source); in Check()
123 return ForkExecvp(cmd, sFsckContext); in Check()
155 std::vector<std::string> cmd; in Resize() local
156 cmd.push_back(kResizefsPath); in Resize()
157 cmd.push_back("-f"); in Resize()
158 cmd.push_back(source); in Resize()
159 cmd.push_back(StringPrintf("%lu", numSectors)); in Resize()
[all …]
DVfat.cpp76 std::vector<std::string> cmd; in Check() local
77 cmd.push_back(kFsckPath); in Check()
78 cmd.push_back("-p"); in Check()
79 cmd.push_back("-f"); in Check()
80 cmd.push_back(source); in Check()
83 rc = ForkExecvp(cmd, sFsckUntrustedContext); in Check()
173 std::vector<std::string> cmd; in Format() local
174 cmd.push_back(kMkfsPath); in Format()
175 cmd.push_back("-F"); in Format()
176 cmd.push_back("32"); in Format()
[all …]
DF2fs.cpp44 std::vector<std::string> cmd; in Check() local
45 cmd.push_back(kFsckPath); in Check()
46 cmd.push_back("-a"); in Check()
47 cmd.push_back(source); in Check()
50 return ForkExecvp(cmd, sFsckContext); in Check()
73 std::vector<std::string> cmd; in Format() local
74 cmd.push_back(kMkfsPath); in Format()
75 cmd.push_back(source); in Format()
77 return ForkExecvp(cmd); in Format()
/system/netd/server/
DIptablesBaseTest.cpp33 std::string cmd = argv[0]; in fake_android_fork_exec() local
35 cmd += " "; in fake_android_fork_exec()
36 cmd += argv[i]; in fake_android_fork_exec()
38 sCmds.push_back(cmd); in fake_android_fork_exec()
44 std::string cmd = " -w"; in fakeExecIptables() local
51 cmd += " "; in fakeExecIptables()
52 cmd += arg; in fakeExecIptables()
57 sCmds.push_back(IPTABLES_PATH + cmd); in fakeExecIptables()
60 sCmds.push_back(IP6TABLES_PATH + cmd); in fakeExecIptables()
72 const std::string& cmd) { in expectIptablesCommand() argument
[all …]
DBandwidthController.cpp195 int BandwidthController::runIpxtablesCmd(const char *cmd, IptJumpOp jumpHandling, in runIpxtablesCmd() argument
199 ALOGV("runIpxtablesCmd(cmd=%s)", cmd); in runIpxtablesCmd()
200 res |= runIptablesCmd(cmd, jumpHandling, IptIpV4, failureHandling); in runIpxtablesCmd()
201 res |= runIptablesCmd(cmd, jumpHandling, IptIpV6, failureHandling); in runIpxtablesCmd()
212 int BandwidthController::runIptablesCmd(const char *cmd, IptJumpOp jumpHandling, in runIptablesCmd() argument
222 std::string fullCmd = cmd; in runIptablesCmd()
467 char cmd[MAX_CMD_LEN]; in prepCostlyIface() local
484 snprintf(cmd, sizeof(cmd), "-F %s", costCString); in prepCostlyIface()
485 res1 = runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide); in prepCostlyIface()
486 snprintf(cmd, sizeof(cmd), "-N %s", costCString); in prepCostlyIface()
[all …]
DNatController.cpp51 const char *cmd[32]; member
105 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) && in setupIptablesHooks()
128 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) && in setDefaults()
156 const char *cmd[] = { in enableNat() local
168 if (runCmd(ARRAY_SIZE(cmd), cmd)) { in enableNat()
/system/core/fastboot/
Dprotocol.cpp108 static int _command_start(Transport* transport, const char* cmd, uint32_t size, char* response) { in _command_start() argument
109 size_t cmdsize = strlen(cmd); in _command_start()
119 if (transport->Write(cmd, cmdsize) != static_cast<int>(cmdsize)) { in _command_start()
147 static int _command_send(Transport* transport, const char* cmd, const void* data, uint32_t size, in _command_send() argument
153 int r = _command_start(transport, cmd, size, response); in _command_send()
171 static int _command_send_no_data(Transport* transport, const char* cmd, char* response) { in _command_send_no_data() argument
172 return _command_start(transport, cmd, 0, response); in _command_send_no_data()
175 int fb_command(Transport* transport, const char* cmd) { in fb_command() argument
176 return _command_send_no_data(transport, cmd, 0); in fb_command()
179 int fb_command_response(Transport* transport, const char* cmd, char* response) { in fb_command_response() argument
[all …]
Dusbtest.cpp128 const char *cmd; member
145 for(i = 0; tests[i].cmd; i++) { in usage()
146 fprintf(stderr," %-8s %s\n", tests[i].cmd, tests[i].help); in usage()
191 for(i = 0; tests[i].cmd; i++) { in main()
192 if(!strcmp(argv[1], tests[i].cmd)) { in main()
197 tests[i].cmd); in main()
201 fprintf(stderr,"usbtest: %s: FAIL\n", tests[i].cmd); in main()
204 fprintf(stderr,"usbtest: %s: OKAY\n", tests[i].cmd); in main()
Dengine.cpp58 char cmd[CMD_SIZE]; member
79 std::string cmd = "getvar:"; in fb_getvar() local
80 cmd += key; in fb_getvar()
84 if (fb_command_response(transport, cmd.c_str(), buf)) { in fb_getvar()
111 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap); in queue_action()
114 if (cmdsize >= sizeof(a->cmd)) { in queue_action()
116 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd)); in queue_action()
229 fprintf(stderr,"Device %s is '%s'.\n", a->cmd + 7, resp); in cb_check()
262 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp); in cb_display()
280 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp); in cb_save()
[all …]
/system/vold/
DMoveTask.cpp63 static status_t pushBackContents(const std::string& path, std::vector<std::string>& cmd) { in pushBackContents() argument
74 cmd.push_back(StringPrintf("%s/%s", path.c_str(), ent->d_name)); in pushBackContents()
87 std::vector<std::string> cmd; in execRm() local
88 cmd.push_back(kRmPath); in execRm()
89 cmd.push_back("-f"); /* force: remove without confirmation, no error if it doesn't exist */ in execRm()
90 cmd.push_back("-R"); /* recursive: remove directory contents */ in execRm()
91 if (pushBackContents(path, cmd) != OK) { in execRm()
96 pid_t pid = ForkExecvpAsync(cmd); in execRm()
125 std::vector<std::string> cmd; in execCp() local
126 cmd.push_back(kCpPath); in execCp()
[all …]
DDisk.cpp291 std::vector<std::string> cmd; in readPartitions() local
292 cmd.push_back(kSgdiskPath); in readPartitions()
293 cmd.push_back("--android-dump"); in readPartitions()
294 cmd.push_back(mDevPath); in readPartitions()
297 status_t res = ForkExecvp(cmd, output); in readPartitions()
386 std::vector<std::string> cmd; in partitionPublic() local
387 cmd.push_back(kSgdiskPath); in partitionPublic()
388 cmd.push_back("--zap-all"); in partitionPublic()
389 cmd.push_back(mDevPath); in partitionPublic()
393 if ((res = ForkExecvp(cmd)) != 0) { in partitionPublic()
[all …]
Dvdc.cpp88 std::string cmd(android::base::StringPrintf("%d ", seq)); in do_cmd() local
91 cmd.append(argv[i]); in do_cmd()
93 cmd.push_back('\"'); in do_cmd()
94 cmd.append(argv[i]); in do_cmd()
95 cmd.push_back('\"'); in do_cmd()
99 cmd.push_back(' '); in do_cmd()
103 if (TEMP_FAILURE_RETRY(write(sock, cmd.c_str(), cmd.length() + 1)) < 0) { in do_cmd()
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper_ipc.c42 int trusty_gatekeeper_call(uint32_t cmd, void *in, uint32_t in_size, uint8_t *out, in trusty_gatekeeper_call() argument
51 msg->cmd = cmd; in trusty_gatekeeper_call()
58 ALOGE("failed to send cmd (%d) to %s: %s\n", cmd, in trusty_gatekeeper_call()
66 cmd, GATEKEEPER_PORT, strerror(errno)); in trusty_gatekeeper_call()
77 if ((cmd | GK_RESP_BIT) != msg->cmd) { in trusty_gatekeeper_call()
78 ALOGE("invalid command (%d)\n", msg->cmd); in trusty_gatekeeper_call()
/system/bt/stack/smp/
Dsmp_l2c.c150 UINT8 cmd ; in smp_data_received() local
153 STREAM_TO_UINT8(cmd, p); in smp_data_received()
156 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd)) in smp_data_received()
158 SMP_TRACE_WARNING( "Ignore received command with RESERVED code 0x%02x", cmd); in smp_data_received()
164 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd) in smp_data_received()
187 if (cmd == SMP_OPCODE_CONFIRM) in smp_data_received()
191 __FUNCTION__, cmd, p_cb->peer_auth_req, p_cb->loc_auth_req); in smp_data_received()
196 cmd = SMP_OPCODE_PAIR_COMMITM; in smp_data_received()
200 p_cb->rcvd_cmd_code = cmd; in smp_data_received()
202 smp_sm_event(p_cb, cmd, p); in smp_data_received()
[all …]
/system/bt/btif/src/
Dbtif_sock_thread.c264 sock_cmd_t cmd = {CMD_ADD_FD, fd, type, flags, user_id}; in btsock_thread_add_fd() local
268 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_add_fd()
270 return ret == sizeof(cmd); in btsock_thread_add_fd()
286 sock_cmd_t cmd = {CMD_REMOVE_FD, fd, 0, 0, 0}; in btsock_thread_remove_fd_and_close() local
289 OSI_NO_INTR(ret = send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_remove_fd_and_close()
291 return ret == sizeof(cmd); in btsock_thread_remove_fd_and_close()
306 sock_cmd_t cmd = {CMD_USER_PRIVATE, 0, type, size, user_id}; in btsock_thread_post_cmd() local
308 sock_cmd_t* cmd_send = &cmd; in btsock_thread_post_cmd()
309 int size_send = sizeof(cmd); in btsock_thread_post_cmd()
312 size_send = sizeof(cmd) + size; in btsock_thread_post_cmd()
[all …]
/system/extras/tests/wifi/stress/
DwifiLoadScanAssoc.c133 char cmd[MAXCMD]; in main() local
305 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STATUS); in main()
306 if (rv >= (signed) sizeof(cmd) - 1) { in main()
310 testExecCmd(cmd); in main()
351 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STATUS); in main()
352 if (rv >= (signed) sizeof(cmd) - 1) { in main()
356 testExecCmd(cmd); in main()
360 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK); in main()
361 if (rv >= (signed) sizeof(cmd) - 1) { in main()
365 testExecCmd(cmd); in main()
[all …]
/system/extras/simpleperf/
Dcmd_help.cpp38 void PrintLongHelpForOneCommand(const Command& cmd);
45 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run() local
46 if (cmd == nullptr) { in Run()
51 PrintLongHelpForOneCommand(*cmd); in Run()
67 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp() local
68 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
/system/tpm/trunks/
Dtrunks_ftdi_spi.cc159 uint8_t cmd; in Init() local
182 FtdiReadReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); in Init()
184 if ((cmd & ~tpmEstablishment) != tpmRegValidSts) { in Init()
185 LOG(ERROR) << "invalid reset status: 0x" << std::hex << (unsigned)cmd; in Init()
188 cmd = requestUse; in Init()
189 FtdiWriteReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); in Init()
190 FtdiReadReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); in Init()
191 if ((cmd & ~tpmEstablishment) != (tpmRegValidSts | activeLocality)) { in Init()
193 << (unsigned)cmd; in Init()
203 FtdiReadReg(TPM_RID_REG, sizeof(cmd), &cmd); in Init()
[all …]
/system/connectivity/shill/net/
Dgeneric_netlink_message.cc41 genl_header.cmd = command(); in EncodeHeader()
89 if (command_ != gnlh.cmd) { in InitAndStripHeader()
91 << " but the message thinks it's a " << gnlh.cmd; in InitAndStripHeader()
147 switch (header.cmd) { in CreateMessage()
154 << header.cmd; in CreateMessage()
155 return new UnknownControlMessage(header.cmd); in CreateMessage()
/system/tpm/trunks/ftdi/
Dsupport.c93 uint8_t cmd, in build_block_buffer() argument
105 if (mpsse->mode == I2C || (cmd & MPSSE_BITMODE)) { in build_block_buffer()
145 if (cmd == mpsse->rx) { in build_block_buffer()
153 buf[i++] = cmd; in build_block_buffer()
155 if (!(cmd & MPSSE_BITMODE)) { in build_block_buffer()
160 if (cmd == mpsse->tx || cmd == mpsse->txrx) { in build_block_buffer()
173 if (cmd == mpsse->rx) { in build_block_buffer()
184 else if (cmd == mpsse->tx) { in build_block_buffer()
/system/update_engine/common/
Dsubprocess.cc74 bool LaunchProcess(const vector<string>& cmd, in LaunchProcess() argument
78 for (const string& arg : cmd) in LaunchProcess()
171 pid_t Subprocess::Exec(const vector<string>& cmd, in Exec() argument
173 return ExecFlags(cmd, kRedirectStderrToStdout, {}, callback); in Exec()
176 pid_t Subprocess::ExecFlags(const vector<string>& cmd, in ExecFlags() argument
182 if (!LaunchProcess(cmd, flags, output_pipes, &record->proc)) { in ExecFlags()
231 bool Subprocess::SynchronousExec(const vector<string>& cmd, in SynchronousExec() argument
237 cmd, in SynchronousExec()
243 bool Subprocess::SynchronousExecFlags(const vector<string>& cmd, in SynchronousExecFlags() argument
251 if (!LaunchProcess(cmd, flags, {}, &proc)) { in SynchronousExecFlags()
Dsubprocess.h72 pid_t Exec(const std::vector<std::string>& cmd, const ExecCallback& callback);
73 pid_t ExecFlags(const std::vector<std::string>& cmd,
91 static bool SynchronousExec(const std::vector<std::string>& cmd,
94 static bool SynchronousExecFlags(const std::vector<std::string>& cmd,
/system/extras/verity/
Dbuild_verity_metadata.py14 def run(cmd): argument
15 status, output = commands.getstatusoutput(cmd)
35 cmd = " ".join((signer_path, table_file.name, key_path, signature_file.name))
36 print cmd
37 run(cmd)

12345