Home
last modified time | relevance | path

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

1234567891011

/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/vold/fs/
DF2fs.cpp45 std::vector<std::string> cmd; in Check() local
46 cmd.push_back(kFsckPath); in Check()
47 cmd.push_back("-a"); in Check()
48 cmd.push_back(source); in Check()
51 return ForkExecvp(cmd, nullptr, sFsckContext); in Check()
74 std::vector<std::string> cmd; in Format() local
75 cmd.push_back(kMkfsPath); in Format()
77 cmd.push_back("-f"); in Format()
78 cmd.push_back("-d1"); in Format()
81 cmd.push_back("-O"); in Format()
[all …]
DExt4.cpp114 std::vector<std::string> cmd; in Check() local
115 cmd.push_back(kFsckPath); in Check()
116 cmd.push_back("-y"); in Check()
117 cmd.push_back(c_source); in Check()
120 return ForkExecvp(cmd, nullptr, sFsckContext); in Check()
152 std::vector<std::string> cmd; in Resize() local
153 cmd.push_back(kResizefsPath); in Resize()
154 cmd.push_back("-f"); in Resize()
155 cmd.push_back(source); in Resize()
156 cmd.push_back(StringPrintf("%lu", numSectors)); in Resize()
[all …]
DVfat.cpp63 std::vector<std::string> cmd; in Check() local
64 cmd.push_back(kFsckPath); in Check()
65 cmd.push_back("-p"); in Check()
66 cmd.push_back("-f"); in Check()
67 cmd.push_back("-y"); in Check()
68 cmd.push_back(source); in Check()
71 rc = ForkExecvp(cmd, nullptr, sFsckUntrustedContext); in Check()
156 std::vector<std::string> cmd; in Format() local
157 cmd.push_back(kMkfsPath); in Format()
158 cmd.push_back("-O"); in Format()
[all …]
DExfat.cpp42 std::vector<std::string> cmd; in Check() local
43 cmd.push_back(kFsckPath); in Check()
44 cmd.push_back("-a"); in Check()
45 cmd.push_back(source); in Check()
47 int rc = ForkExecvp(cmd, nullptr, sFsckUntrustedContext); in Check()
78 std::vector<std::string> cmd; in Format() local
79 cmd.push_back(kMkfsPath); in Format()
80 cmd.push_back("-n"); in Format()
81 cmd.push_back("android"); in Format()
82 cmd.push_back(source); in Format()
[all …]
/system/security/keystore/
Dkeystore_cli.cpp50 #define SINGLE_ARG_INT_RETURN(cmd) \ argument
52 if (strcmp(argv[1], #cmd) == 0) { \
54 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
58 service->cmd(String16(argv[2]), &ret); \
63 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
69 #define SINGLE_INT_ARG_INT_RETURN(cmd) \ argument
71 if (strcmp(argv[1], #cmd) == 0) { \
73 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
77 service->cmd(atoi(argv[2]), &ret); \
82 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
[all …]
/system/apex/apexer/
Dapexer.py185 def RunCommand(cmd, verbose=False, env=None): argument
189 cmd[0] = FindBinaryPath(cmd[0])
192 print('Running: ' + ' '.join(cmd))
194 cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)
200 assert p.returncode is 0, 'Failed to execute: ' + ' '.join(cmd)
490 cmd = ['mke2fs']
491 cmd.extend(['-O', '^has_journal']) # because image is read-only
492 cmd.extend(['-b', str(BLOCK_SIZE)])
493 cmd.extend(['-m', '0']) # reserved block percentage
494 cmd.extend(['-t', 'ext4'])
[all …]
Dapexer_test.py205 cmd = ["debugfs_static", '-R', 'rdump ./ %s' % dir_name, img_file_path]
206 run_host_command(cmd)
219 cmd = ["deapexer", "extract", apex_file_path, dir_name]
220 run_host_command(cmd)
240 cmd = ["apexer", "--force", "--include_build_info", "--do_not_check_keyname"]
241 cmd.extend(["--manifest", container_files["apex_manifest.pb"]])
243 cmd.extend(["--manifest_json", container_files["apex_manifest.json"]])
244 cmd.extend(["--build_info", container_files["apex_build_info.pb"]])
246 cmd.extend(["--assets_dir", "assets"])
248 cmd.extend(["--key", os.path.join(get_current_dir(), TEST_PRIVATE_KEY)])
[all …]
/system/extras/tests/kernel.config/
Dsysvipc_test.cpp35 int msgctl(int id, int cmd, msqid_ds* buf) { in msgctl() argument
39 cmd |= IPC_64; in msgctl()
42 return syscall(SYS_msgctl, id, cmd, buf); in msgctl()
44 return syscall(SYS_ipc, MSGCTL, id, cmd, 0, buf, 0); in msgctl()
48 int semctl(int id, int num, int cmd, semid_ds* buf) { in semctl() argument
52 cmd |= IPC_64; in semctl()
55 return syscall(SYS_semctl, id, num, cmd, buf); in semctl()
57 return syscall(SYS_ipc, SEMCTL, id, num, cmd, buf, 0); in semctl()
61 int shmctl(int id, int cmd, shmid_ds* buf) { in shmctl() argument
65 cmd |= IPC_64; in shmctl()
[all …]
/system/vold/model/
DDisk.cpp309 std::vector<std::string> cmd; in readPartitions() local
310 cmd.push_back(kSgdiskPath); in readPartitions()
311 cmd.push_back("--android-dump"); in readPartitions()
312 cmd.push_back(mDevPath); in readPartitions()
315 status_t res = ForkExecvp(cmd, &output); in readPartitions()
420 std::vector<std::string> cmd; in partitionPublic() local
421 cmd.push_back(kSgdiskPath); in partitionPublic()
422 cmd.push_back("--zap-all"); in partitionPublic()
423 cmd.push_back(mDevPath); in partitionPublic()
427 if ((res = ForkExecvp(cmd)) != 0) { in partitionPublic()
[all …]
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper_ipc.c45 int trusty_gatekeeper_call(uint32_t cmd, void *in, uint32_t in_size, uint8_t *out, in trusty_gatekeeper_call() argument
54 msg->cmd = cmd; in trusty_gatekeeper_call()
61 ALOGE("failed to send cmd (%d) to %s: %s\n", cmd, in trusty_gatekeeper_call()
69 cmd, GATEKEEPER_PORT, strerror(errno)); in trusty_gatekeeper_call()
80 if ((cmd | GK_RESP_BIT) != msg->cmd) { in trusty_gatekeeper_call()
81 ALOGE("invalid command (%d)\n", msg->cmd); in trusty_gatekeeper_call()
/system/core/trusty/storage/proxy/
Drpmb.c139 struct mmc_ioc_cmd* cmd = mmc.multi.cmds; in send_mmc_rpmb_req() local
144 cmd->write_flag = MMC_WRITE_FLAG_RELW; in send_mmc_rpmb_req()
145 cmd->opcode = MMC_WRITE_MULTIPLE_BLOCK; in send_mmc_rpmb_req()
146 cmd->flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_ADTC; in send_mmc_rpmb_req()
147 cmd->blksz = MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
148 cmd->blocks = req->reliable_write_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
149 mmc_ioc_cmd_set_data((*cmd), write_buf); in send_mmc_rpmb_req()
151 ALOGI("opcode: 0x%x, write_flag: 0x%x\n", cmd->opcode, cmd->write_flag); in send_mmc_rpmb_req()
156 cmd++; in send_mmc_rpmb_req()
160 cmd->write_flag = MMC_WRITE_FLAG_W; in send_mmc_rpmb_req()
[all …]
/system/bt/stack/smp/
Dsmp_l2c.cc138 uint8_t cmd; in smp_data_received() local
148 STREAM_TO_UINT8(cmd, p); in smp_data_received()
150 SMP_TRACE_EVENT("%s: SMDBG l2c, cmd=0x%x", __func__, cmd); in smp_data_received()
153 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd)) { in smp_data_received()
154 SMP_TRACE_WARNING("Ignore received command with RESERVED code 0x%02x", cmd); in smp_data_received()
160 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd) { in smp_data_received()
182 if (cmd == SMP_OPCODE_CONFIRM) { in smp_data_received()
186 __func__, cmd, p_cb->peer_auth_req, p_cb->loc_auth_req); in smp_data_received()
190 cmd = SMP_OPCODE_PAIR_COMMITM; in smp_data_received()
194 p_cb->rcvd_cmd_code = cmd; in smp_data_received()
[all …]
/system/vold/
DMoveStorage.cpp59 static bool pushBackContents(const std::string& path, std::vector<std::string>& cmd, in pushBackContents() argument
62 cmd.emplace_back(path); in pushBackContents()
77 found |= pushBackContents(subdir, cmd, searchLevels - 1); in pushBackContents()
89 std::vector<std::string> cmd; in execRm() local
90 cmd.push_back(kRmPath); in execRm()
91 cmd.push_back("-f"); /* force: remove without confirmation, no error if it doesn't exist */ in execRm()
92 cmd.push_back("-R"); /* recursive: remove directory contents */ in execRm()
93 if (!pushBackContents(path, cmd, 2)) { in execRm()
99 return ForkExecvp(cmd); in execRm()
102 pid_t pid = ForkExecvpAsync(cmd); in execRm()
[all …]
/system/teeui/libteeui/include/teeui/
Dgeneric_messages.h41 template <Protocol Proto, typename CmdT, CmdT cmd> struct Cmd {};
46 #define DECLARE_GENERIC_COMMAND(cmd) using Cmd##cmd = Cmd<kProtoGeneric, Command, Command::cmd> argument
62 template <uint32_t proto, typename CmdT, CmdT cmd>
63 inline WriteStream write(WriteStream out, Cmd<proto, CmdT, cmd>) { in write() argument
70 if (out) *cmdptr = cmd; in write()
81 template <Protocol proto, typename CmdT, CmdT cmd, typename... Fields>
82 std::tuple<ReadStream, Fields...> read(Message<Cmd<proto, CmdT, cmd>, Fields...>, ReadStream in) { in read() argument
86 template <Protocol proto, typename CmdT, CmdT cmd, typename... T>
87 struct msg2tuple<Message<Cmd<proto, CmdT, cmd>, T...>> {
103 auto [_, cmd] = readCmd<CmdT>(in);
[all …]
/system/bt/btif/src/
Dbtif_sock_thread.cc242 sock_cmd_t cmd = {CMD_ADD_FD, fd, type, flags, user_id}; in btsock_thread_add_fd() local
246 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_add_fd()
248 return ret == sizeof(cmd); in btsock_thread_add_fd()
261 sock_cmd_t cmd = {CMD_REMOVE_FD, fd, 0, 0, 0}; in btsock_thread_remove_fd_and_close() local
264 OSI_NO_INTR(ret = send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_remove_fd_and_close()
266 return ret == sizeof(cmd); in btsock_thread_remove_fd_and_close()
280 sock_cmd_t cmd = {CMD_USER_PRIVATE, 0, type, size, user_id}; in btsock_thread_post_cmd() local
282 sock_cmd_t* cmd_send = &cmd; in btsock_thread_post_cmd()
283 int size_send = sizeof(cmd); in btsock_thread_post_cmd()
285 size_send = sizeof(cmd) + size; in btsock_thread_post_cmd()
[all …]
Dbtif_a2dp_control.cc66 tA2DP_CTRL_CMD cmd = A2DP_CTRL_CMD_NONE; in btif_a2dp_recv_ctrl_data() local
71 cmd = static_cast<tA2DP_CTRL_CMD>(read_cmd); in btif_a2dp_recv_ctrl_data()
82 if (cmd == A2DP_CTRL_GET_PRESENTATION_POSITION) { in btif_a2dp_recv_ctrl_data()
84 audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
87 audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
90 a2dp_cmd_pending = cmd; in btif_a2dp_recv_ctrl_data()
91 switch (cmd) { in btif_a2dp_recv_ctrl_data()
95 __func__, audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
105 __func__, audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
118 __func__, audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
[all …]
/system/core/reboot/
Dreboot.c29 const char* cmd = reboot; in main() local
44 cmd = "shutdown"; in main()
61 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg); in main()
63 fprintf(stderr, "%s command too long: %s\n", cmd, optarg); in main()
69 perror(cmd); in main()
75 if (cmd == reboot) { in main()
/system/extras/simpleperf/
Dcmd_help.cpp42 void PrintLongHelpForOneCommand(const Command& cmd);
49 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run() local
50 if (cmd == nullptr) { in Run()
57 PrintLongHelpForOneCommand(*cmd); in Run()
80 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp() local
81 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
/system/netd/netutils_wrappers/
DNetUtilsWrapperTest-1.0.cpp61 for (const Command& cmd : COMMANDS) { in TEST() local
62 std::vector<std::string> pieces = android::base::Split(cmd.cmdString, " "); in TEST()
67 EXPECT_EQ(cmd.valid, checkExpectedCommand(pieces.size(), argv)) << in TEST()
69 (cmd.valid ? "valid" : "invalid") << ", but was " << in TEST()
70 (cmd.valid ? "invalid" : "valid") << ": '" << cmd.cmdString << "'"; in TEST()
/system/core/trusty/utils/rpmb_dev/
Drpmb_dev.c81 struct rpmb_packet cmd[MAX_PACKET_COUNT]; member
142 s->header.key = s->cmd[0].key_mac; in rpmb_dev_program_key()
168 uint16_t addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_data_write()
180 write_counter = rpmb_get_u32(s->cmd[0].write_counter); in rpmb_dev_data_write()
196 ret = write(s->data_fd, s->cmd[i].data, RPMB_PACKET_DATA_SIZE); in rpmb_dev_data_write()
227 addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_data_read()
297 uint16_t req_resp = rpmb_get_u16(s->cmd[0].req_resp); in rpmb_dev_process_cmd()
298 uint16_t addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_process_cmd()
301 struct rpmb_dev_cmd* cmd = &rpmb_dev_cmd_table[cmd_index]; in rpmb_dev_process_cmd() local
306 if (cmd->check_result_read) { in rpmb_dev_process_cmd()
[all …]
/system/chre/platform/linux/
Dinit.cc61 TCLAP::CmdLine cmd(kSimDescription, ' ', kSimVersion); in main() local
63 "disable running static nanoapps", cmd, false); in main()
65 "nanoapp shared object to load and execute", false, "path", cmd); in main()
68 "WAV file to open for audio simulation", false, "", "path", cmd); in main()
70 "min buffer size for audio simulation", false, 1.0, "seconds", cmd); in main()
72 "max buffer size for audio simulation", false, 10.0, "seconds", cmd); in main()
74 cmd.parse(argc, argv); in main()
/system/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp49 int trusty_keymaster_call(uint32_t cmd, void* in, uint32_t in_size, uint8_t* out, in trusty_keymaster_call() argument
63 msg->cmd = cmd; in trusty_keymaster_call()
70 ALOGE("failed to send cmd (%d) to %s: %s\n", cmd, KEYMASTER_PORT, strerror(errno)); in trusty_keymaster_call()
84 ALOGE("failed to retrieve response for cmd (%d) to %s: %s\n", cmd, KEYMASTER_PORT, in trusty_keymaster_call()
94 if ((cmd | KEYMASTER_RESP_BIT) != (header.cmd & ~(KEYMASTER_STOP_BIT))) { in trusty_keymaster_call()
95 ALOGE("invalid command (%d)", header.cmd); in trusty_keymaster_call()
99 if (header.cmd & KEYMASTER_STOP_BIT) { in trusty_keymaster_call()
/system/bt/stack/avrc/
Davrc_bld_ct.cc385 const tAVRC_GET_ITEMS_CMD* cmd) { in avrc_bld_get_folder_items_cmd() argument
388 cmd->scope, cmd->start_item, cmd->end_item); in avrc_bld_get_folder_items_cmd()
398 UINT8_TO_BE_STREAM(p_data, cmd->scope); /* scope (1bytes) */ in avrc_bld_get_folder_items_cmd()
399 UINT32_TO_BE_STREAM(p_data, cmd->start_item); /* start item (4bytes) */ in avrc_bld_get_folder_items_cmd()
400 UINT32_TO_BE_STREAM(p_data, cmd->end_item); /* end item (4bytes) */ in avrc_bld_get_folder_items_cmd()
417 const tAVRC_CHG_PATH_CMD* cmd) { in avrc_bld_change_folder_cmd() argument
428 UINT16_TO_BE_STREAM(p_data, cmd->uid_counter); in avrc_bld_change_folder_cmd()
429 UINT8_TO_BE_STREAM(p_data, cmd->direction); in avrc_bld_change_folder_cmd()
430 ARRAY_TO_BE_STREAM(p_data, cmd->folder_uid, AVRC_UID_SIZE); in avrc_bld_change_folder_cmd()
435 BT_HDR* p_pkt, const tAVRC_GET_ATTRS_CMD* cmd) { in avrc_bld_get_item_attributes_cmd() argument
[all …]
/system/bt/test/
Dgen_coverage.py219 cmd = []
220 cmd.append(os.path.join(get_android_root_or_die(), LLVM_MERGE + " merge "))
223 cmd.append(os.path.join(test_working_dir, test_name + ".profraw"))
226 cmd.append('-o ' + profdata_file)
228 logging.debug('cmd: ' + " ".join(cmd))
229 if subprocess.call(" ".join(cmd), shell=True) != 0:
243 cmd = [
252 cmd.append(test_cmd)
256 cmd.append(os.path.join(get_android_root_or_die(), filename))
259 logging.debug('cmd: ' + " ".join(cmd))
[all …]

1234567891011