/system/extras/tests/mmc_tracepoints/ |
D | mmc_trace_sample_data | 12 … 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/ |
D | keystore_cli.cpp | 50 #define NO_ARG_INT_RETURN(cmd) \ argument 52 if (strcmp(argv[1], #cmd) == 0) { \ 54 service->cmd(&ret); \ 59 printf(#cmd ": %s (%d)\n", responses[ret], ret); \ 65 #define SINGLE_ARG_INT_RETURN(cmd) \ argument 67 if (strcmp(argv[1], #cmd) == 0) { \ 69 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \ 73 service->cmd(String16(argv[2]), &ret); \ 78 printf(#cmd ": %s (%d)\n", responses[ret], ret); \ 84 #define SINGLE_INT_ARG_INT_RETURN(cmd) \ argument [all …]
|
/system/vold/fs/ |
D | F2fs.cpp | 46 std::vector<std::string> cmd; in Check() local 47 cmd.push_back(kFsckPath); in Check() 48 cmd.push_back("-a"); in Check() 49 cmd.push_back(source); in Check() 52 return ForkExecvp(cmd, sFsckContext); in Check() 75 std::vector<std::string> cmd; in Format() local 76 cmd.push_back(kMkfsPath); in Format() 78 cmd.push_back("-f"); in Format() 79 cmd.push_back("-d1"); in Format() 82 cmd.push_back("-O"); in Format() [all …]
|
D | Ext4.cpp | 120 std::vector<std::string> cmd; in Check() local 121 cmd.push_back(kFsckPath); in Check() 122 cmd.push_back("-y"); in Check() 123 cmd.push_back(c_source); in Check() 126 return ForkExecvp(cmd, sFsckContext); in Check() 158 std::vector<std::string> cmd; in Resize() local 159 cmd.push_back(kResizefsPath); in Resize() 160 cmd.push_back("-f"); in Resize() 161 cmd.push_back(source); in Resize() 162 cmd.push_back(StringPrintf("%lu", numSectors)); in Resize() [all …]
|
D | Vfat.cpp | 67 std::vector<std::string> cmd; in Check() local 68 cmd.push_back(kFsckPath); in Check() 69 cmd.push_back("-p"); in Check() 70 cmd.push_back("-f"); in Check() 71 cmd.push_back(source); in Check() 74 rc = ForkExecvp(cmd, sFsckUntrustedContext); in Check() 160 std::vector<std::string> cmd; in Format() local 161 cmd.push_back(kMkfsPath); in Format() 162 cmd.push_back("-F"); in Format() 163 cmd.push_back("32"); in Format() [all …]
|
D | Exfat.cpp | 42 std::vector<std::string> cmd; in Check() local 43 cmd.push_back(kFsckPath); in Check() 44 cmd.push_back(source); in Check() 46 int rc = ForkExecvp(cmd, sFsckUntrustedContext); in Check() 77 std::vector<std::string> cmd; in Format() local 78 cmd.push_back(kMkfsPath); in Format() 79 cmd.push_back("-n"); in Format() 80 cmd.push_back("android"); in Format() 81 cmd.push_back(source); in Format() 83 int rc = ForkExecvp(cmd); in Format()
|
/system/core/trusty/storage/proxy/ |
D | rpmb.c | 81 struct mmc_ioc_cmd *cmd = mmc.multi.cmds; in rpmb_send() local 108 cmd->write_flag = MMC_WRITE_FLAG_RELW; in rpmb_send() 109 cmd->opcode = MMC_WRITE_MULTIPLE_BLOCK; in rpmb_send() 110 cmd->flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_ADTC; in rpmb_send() 111 cmd->blksz = MMC_BLOCK_SIZE; in rpmb_send() 112 cmd->blocks = req->reliable_write_size / MMC_BLOCK_SIZE; in rpmb_send() 113 mmc_ioc_cmd_set_data((*cmd), write_buf); in rpmb_send() 115 ALOGI("opcode: 0x%x, write_flag: 0x%x\n", cmd->opcode, cmd->write_flag); in rpmb_send() 120 cmd++; in rpmb_send() 130 cmd->write_flag = MMC_WRITE_FLAG_W; in rpmb_send() [all …]
|
/system/bt/stack/smp/ |
D | smp_l2c.cc | 142 uint8_t cmd; in smp_data_received() local 144 STREAM_TO_UINT8(cmd, p); in smp_data_received() 146 SMP_TRACE_EVENT("%s: SMDBG l2c, cmd=0x%x", __func__, cmd); in smp_data_received() 149 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd)) { in smp_data_received() 150 SMP_TRACE_WARNING("Ignore received command with RESERVED code 0x%02x", cmd); in smp_data_received() 156 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd) { in smp_data_received() 175 if (cmd == SMP_OPCODE_CONFIRM) { in smp_data_received() 179 __func__, cmd, p_cb->peer_auth_req, p_cb->loc_auth_req); in smp_data_received() 183 cmd = SMP_OPCODE_PAIR_COMMITM; in smp_data_received() 187 p_cb->rcvd_cmd_code = cmd; in smp_data_received() [all …]
|
/system/vold/model/ |
D | Disk.cpp | 317 std::vector<std::string> cmd; in readPartitions() local 318 cmd.push_back(kSgdiskPath); in readPartitions() 319 cmd.push_back("--android-dump"); in readPartitions() 320 cmd.push_back(mDevPath); in readPartitions() 323 status_t res = ForkExecvp(cmd, output); in readPartitions() 428 std::vector<std::string> cmd; in partitionPublic() local 429 cmd.push_back(kSgdiskPath); in partitionPublic() 430 cmd.push_back("--zap-all"); in partitionPublic() 431 cmd.push_back(mDevPath); in partitionPublic() 435 if ((res = ForkExecvp(cmd)) != 0) { in partitionPublic() [all …]
|
/system/core/trusty/gatekeeper/ |
D | trusty_gatekeeper_ipc.c | 45 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/keymaster/ |
D | trusty_keymaster_ipc.cpp | 49 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/vold/ |
D | MoveStorage.cpp | 58 static status_t pushBackContents(const std::string& path, std::vector<std::string>& cmd, in pushBackContents() argument 71 cmd.push_back(StringPrintf("%s/%s/*", path.c_str(), ent->d_name)); in pushBackContents() 73 cmd.push_back(StringPrintf("%s/%s", path.c_str(), ent->d_name)); in pushBackContents() 88 std::vector<std::string> cmd; in execRm() local 89 cmd.push_back(kRmPath); in execRm() 90 cmd.push_back("-f"); /* force: remove without confirmation, no error if it doesn't exist */ in execRm() 91 cmd.push_back("-R"); /* recursive: remove directory contents */ in execRm() 92 if (pushBackContents(path, cmd, true) != OK) { in execRm() 98 return ForkExecvp(cmd); in execRm() 101 pid_t pid = ForkExecvpAsync(cmd); in execRm() [all …]
|
/system/core/fastboot/ |
D | protocol.cpp | 116 static int64_t _command_start(Transport* transport, const std::string& cmd, uint32_t size, in _command_start() argument 118 if (cmd.size() > 64) { in _command_start() 119 g_error = android::base::StringPrintf("command too large (%zu)", cmd.size()); in _command_start() 127 if (transport->Write(cmd.c_str(), cmd.size()) != static_cast<int>(cmd.size())) { in _command_start() 170 static int64_t _command_send(Transport* transport, const std::string& cmd, const void* data, in _command_send() argument 176 int64_t r = _command_start(transport, cmd, size, response); in _command_send() 193 static int64_t _command_send_fd(Transport* transport, const std::string& cmd, int fd, uint32_t size, in _command_send_fd() argument 199 if (_command_start(transport, cmd, size, response) < 0) { in _command_send_fd() 226 static int _command_send_no_data(Transport* transport, const std::string& cmd, char* response) { in _command_send_no_data() argument 227 return _command_start(transport, cmd, 0, response); in _command_send_no_data() [all …]
|
D | usbtest.cpp | 128 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()
|
/system/bt/btif/src/ |
D | btif_sock_thread.cc | 242 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 …]
|
D | btif_a2dp_control.cc | 64 tA2DP_CTRL_CMD cmd = A2DP_CTRL_CMD_NONE; in btif_a2dp_recv_ctrl_data() local 69 cmd = static_cast<tA2DP_CTRL_CMD>(read_cmd); in btif_a2dp_recv_ctrl_data() 80 if (cmd == A2DP_CTRL_GET_PRESENTATION_POSITION) { in btif_a2dp_recv_ctrl_data() 82 audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data() 85 audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data() 88 a2dp_cmd_pending = cmd; in btif_a2dp_recv_ctrl_data() 89 switch (cmd) { in btif_a2dp_recv_ctrl_data() 93 __func__, audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data() 103 __func__, audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data() 116 __func__, audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data() [all …]
|
/system/core/logcat/tests/ |
D | exec_benchmark.cpp | 25 static void logcat_popen_libc(benchmark::State& state, const char* cmd) { in logcat_popen_libc() argument 27 FILE* fp = popen(cmd, "r"); in logcat_popen_libc() 39 static void logcat_popen_liblogcat(benchmark::State& state, const char* cmd) { in logcat_popen_liblogcat() argument 42 FILE* fp = android_logcat_popen(&ctx, cmd); in logcat_popen_liblogcat() 54 static void logcat_system_libc(benchmark::State& state, const char* cmd) { in logcat_system_libc() argument 56 system(cmd); in logcat_system_libc() 65 static void logcat_system_liblogcat(benchmark::State& state, const char* cmd) { in logcat_system_liblogcat() argument 67 android_logcat_system(cmd); in logcat_system_liblogcat()
|
/system/core/reboot/ |
D | reboot.c | 29 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/ |
D | cmd_help.cpp | 40 void PrintLongHelpForOneCommand(const Command& cmd); 47 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run() local 48 if (cmd == nullptr) { in Run() 55 PrintLongHelpForOneCommand(*cmd); in Run() 75 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp() local 76 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
|
/system/netd/netutils_wrappers/ |
D | NetUtilsWrapperTest-1.0.cpp | 61 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/chre/platform/linux/ |
D | init.cc | 59 TCLAP::CmdLine cmd(kSimDescription, ' ', kSimVersion); in main() local 61 "disable running static nanoapps", cmd, false); in main() 63 "nanoapp shared object to load and execute", false, "path", cmd); in main() 66 "WAV file to open for audio simulation", false, "", "path", cmd); in main() 68 "min buffer size for audio simulation", false, 1.0, "seconds", cmd); in main() 70 "max buffer size for audio simulation", false, 10.0, "seconds", cmd); in main() 72 cmd.parse(argc, argv); in main()
|
/system/tpm/trunks/ |
D | trunks_ftdi_spi.cc | 162 uint8_t cmd; in Init() local 185 FtdiReadReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); in Init() 187 if ((cmd & ~tpmEstablishment) != tpmRegValidSts) { in Init() 188 LOG(ERROR) << "invalid reset status: 0x" << std::hex << (unsigned)cmd; in Init() 191 cmd = requestUse; in Init() 192 FtdiWriteReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); in Init() 193 FtdiReadReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); in Init() 194 if ((cmd & ~tpmEstablishment) != (tpmRegValidSts | activeLocality)) { in Init() 196 << (unsigned)cmd; in Init() 206 FtdiReadReg(TPM_RID_REG, sizeof(cmd), &cmd); in Init() [all …]
|
/system/libhwbinder/ |
D | IPCThreadState.cpp | 142 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local 143 uint32_t code = (uint32_t)*cmd++; in printReturnCommand() 146 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl; in printReturnCommand() 147 return cmd; in printReturnCommand() 150 return cmd; in printReturnCommand() 158 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand() 163 const int32_t res = *cmd++; in printReturnCommand() 171 const int32_t b = *cmd++; in printReturnCommand() 172 const int32_t c = *cmd++; in printReturnCommand() 177 const int32_t p = *cmd++; in printReturnCommand() [all …]
|
/system/bt/stack/avrc/ |
D | avrc_bld_ct.cc | 385 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() 446 BT_HDR* p_pkt, const tAVRC_SET_BR_PLAYER_CMD* cmd) { in avrc_bld_set_browsed_player_cmd() argument [all …]
|
/system/netd/server/ |
D | IptablesBaseTest.cpp | 42 std::string cmd = argv[0]; in fake_android_fork_exec() local 45 cmd += " "; in fake_android_fork_exec() 46 cmd += argv[i]; in fake_android_fork_exec() 48 sCmds.push_back(cmd); in fake_android_fork_exec() 101 for (const auto& cmd : expectedCmds) { in expectIptablesRestoreCommands() local 102 expected.push_back({ V4V6, cmd }); in expectIptablesRestoreCommands()
|