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.cpp46 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, nullptr, sFsckContext); in Check()
76 std::vector<char const*> cmd; in Format() local
77 cmd.emplace_back(kMkfsPath); in Format()
79 cmd.emplace_back("-f"); in Format()
80 cmd.emplace_back("-d1"); in Format()
82 cmd.emplace_back("-g"); in Format()
[all …]
DExt4.cpp112 std::vector<std::string> cmd; in Check() local
113 cmd.push_back(kFsckPath); in Check()
114 cmd.push_back("-y"); in Check()
115 cmd.push_back(c_source); in Check()
118 return ForkExecvp(cmd, nullptr, sFsckContext); in Check()
150 std::vector<std::string> cmd; in Resize() local
151 cmd.push_back(kResizefsPath); in Resize()
152 cmd.push_back("-f"); in Resize()
153 cmd.push_back(source); in Resize()
154 cmd.push_back(StringPrintf("%lu", numSectors)); in Resize()
[all …]
DVfat.cpp64 std::vector<std::string> cmd; in Check() local
65 cmd.push_back(kFsckPath); in Check()
66 cmd.push_back("-p"); in Check()
67 cmd.push_back("-f"); in Check()
68 cmd.push_back("-y"); in Check()
69 cmd.push_back(source); in Check()
72 rc = ForkExecvpTimeout(cmd, kUntrustedFsckSleepTime, sFsckUntrustedContext); in Check()
202 std::vector<std::string> cmd; in Format() local
203 cmd.push_back(kMkfsPath); in Format()
204 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("-y"); in Check()
45 cmd.push_back(source); in Check()
47 int rc = ForkExecvpTimeout(cmd, kUntrustedFsckSleepTime, sFsckUntrustedContext); in Check()
81 std::vector<std::string> cmd; in Format() local
82 cmd.push_back(kMkfsPath); in Format()
83 cmd.push_back("-n"); in Format()
84 cmd.push_back("android"); in Format()
85 cmd.push_back(source); in Format()
[all …]
/system/apex/apexer/
Dapexer.py204 def RunCommand(cmd, verbose=False, env=None, expected_return_values={0}): argument
208 cmd[0] = FindBinaryPath(cmd[0])
211 print('Running: ' + ' '.join(cmd))
213 cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)
220 assert p.returncode in expected_return_values, 'Failed to execute: ' + ' '.join(cmd)
503 cmd = ['mke2fs']
504 cmd.extend(['-O', '^has_journal']) # because image is read-only
505 cmd.extend(['-b', str(BLOCK_SIZE)])
506 cmd.extend(['-m', '0']) # reserved block percentage
507 cmd.extend(['-t', 'ext4'])
[all …]
Dapexer_test.py243 cmd = ["debugfs_static", '-R', 'rdump ./ %s' % dir_name, img_file_path]
244 run_host_command(cmd)
257 cmd = ["deapexer", "--debugfs_path", self.host_tools["debugfs_static"],
260 run_host_command(cmd)
280 cmd = ["apexer", "--force", "--include_build_info", "--do_not_check_keyname"]
282 cmd.append('-v')
283 cmd.extend(["--apexer_tool_path", os.environ["APEXER_TOOL_PATH"]])
284 cmd.extend(["--android_jar_path", self.host_tools["android.jar"]])
285 cmd.extend(["--manifest", container_files["apex_manifest.pb"]])
287 cmd.extend(["--manifest_json", container_files["apex_manifest.json"]])
[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/
DMoveStorage.cpp59 static bool pushBackContents(const std::string& path, std::vector<std::string>& cmd, in pushBackContents() argument
62 cmd.emplace_back(path); in pushBackContents()
75 found |= pushBackContents(subdir, cmd, searchLevels - 1); 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, 2)) { in execRm()
97 return ForkExecvp(cmd); in execRm()
100 pid_t pid = ForkExecvpAsync(cmd); in execRm()
[all …]
/system/tools/hidl/test/java_test/
Dhidl_test_java.py23 def run_cmd(cmd, ignore_error=False): argument
24 print("Running command:", cmd)
25 p = subprocess.Popen(cmd, shell=True)
28 raise subprocess.CalledProcessError(p.returncode, cmd)
42 def cleanup(cmd): argument
43 binary = cmd.split()[0]
75 def short_name(cmd): argument
76 if "app" in cmd:
78 if "64" in cmd:
/system/vold/model/
DDisk.cpp333 std::vector<std::string> cmd; in readPartitions() local
334 cmd.push_back(kSgdiskPath); in readPartitions()
335 cmd.push_back("--android-dump"); in readPartitions()
336 cmd.push_back(mDevPath); in readPartitions()
339 status_t res = ForkExecvp(cmd, &output); in readPartitions()
452 std::vector<std::string> cmd; in partitionPublic() local
453 cmd.push_back(kSgdiskPath); in partitionPublic()
454 cmd.push_back("--zap-all"); in partitionPublic()
455 cmd.push_back(mDevPath); in partitionPublic()
459 if ((res = ForkExecvp(cmd)) != 0) { in partitionPublic()
[all …]
/system/apex/tools/
Dapex_compression_tool.py48 def RunCommand(cmd, verbose=False, env=None, expected_return_values=None): argument
53 cmd[0] = FindBinaryPath(cmd[0])
56 print('Running: ' + ' '.join(cmd))
58 cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env)
65 + ' '.join(cmd)
88 cmd = ['soong_zip']
89 cmd.extend(['-o', args.output])
99 cmd.extend(['-C', work_dir])
100 cmd.extend(['-f', original_apex])
112 cmd.extend(['-C', extract_dir])
[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/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/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.cpp43 void PrintLongHelpForOneCommand(const Command& cmd);
50 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run() local
51 if (cmd == nullptr) { in Run()
58 PrintLongHelpForOneCommand(*cmd); in Run()
81 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp() local
82 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
/system/nfc/tools/casimir/src/
Dcontroller.rs751 async fn core_reset(&mut self, cmd: nci::CoreResetCommand) -> Result<()> { in core_reset()
753 info!(" ResetType: {:?}", cmd.get_reset_type()); in core_reset()
755 match cmd.get_reset_type() { in core_reset()
773 config_status: match cmd.get_reset_type() { in core_reset()
829 async fn core_set_config(&mut self, cmd: nci::CoreSetConfigCommand) -> Result<()> { in core_set_config()
833 for parameter in cmd.get_parameters().iter() { in core_set_config()
882 async fn core_get_config(&mut self, cmd: nci::CoreGetConfigCommand) -> Result<()> { in core_get_config()
887 for id in cmd.get_parameters() { in core_get_config()
920 async fn core_conn_create(&mut self, cmd: nci::CoreConnCreateCommand) -> Result<()> { in core_conn_create()
933 let logical_connection = match cmd.get_destination_type() { in core_conn_create()
[all …]
/system/core/trusty/utils/rpmb_dev/
Drpmb_dev.c74 struct rpmb_packet cmd[MAX_PACKET_COUNT]; member
135 s->header.key = s->cmd[0].key_mac; in rpmb_dev_program_key()
161 uint16_t addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_data_write()
173 write_counter = rpmb_get_u32(s->cmd[0].write_counter); in rpmb_dev_data_write()
189 ret = write(s->data_fd, s->cmd[i].data, RPMB_PACKET_DATA_SIZE); in rpmb_dev_data_write()
220 addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_data_read()
291 uint16_t req_resp = rpmb_get_u16(s->cmd[0].req_resp); in rpmb_dev_process_cmd()
292 uint16_t addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_process_cmd()
295 struct rpmb_dev_cmd* cmd = &rpmb_dev_cmd_table[cmd_index]; in rpmb_dev_process_cmd() local
300 if (cmd->check_result_read) { in rpmb_dev_process_cmd()
[all …]
/system/netd/netutils_wrappers/
DNetUtilsWrapperTest-1.0.cpp64 for (const Command& cmd : COMMANDS) { in TEST() local
65 std::vector<std::string> pieces = android::base::Split(cmd.cmdString, " "); in TEST()
70 EXPECT_EQ(cmd.valid, checkExpectedCommand(pieces.size(), argv)) << in TEST()
72 (cmd.valid ? "valid" : "invalid") << ", but was " << in TEST()
73 (cmd.valid ? "invalid" : "valid") << ": '" << cmd.cmdString << "'"; in TEST()
/system/tools/xsdc/src/main/java/com/android/xsdc/
DMain.java129 CommandLine cmd; in main() local
132 cmd = CommandParser.parse(options, args); in main()
139 String packageName = cmd.getOptionValue('p', null); in main()
140 String outDir = cmd.getOptionValue('o', null); in main()
141 boolean writer = cmd.hasOption('w'); in main()
142 boolean nullability = cmd.hasOption('n'); in main()
143 boolean genHas = cmd.hasOption('g'); in main()
144 boolean enumsOnly = cmd.hasOption('e'); in main()
145 boolean parserOnly = cmd.hasOption('x'); in main()
146 boolean booleanGetter = cmd.hasOption('b'); in main()
[all …]
/system/core/trusty/storage/proxy/
Drpmb.c330 struct mmc_ioc_cmd* cmd = mmc.multi.cmds; in send_mmc_rpmb_req() local
335 cmd->write_flag = MMC_WRITE_FLAG_RELW; in send_mmc_rpmb_req()
336 cmd->opcode = MMC_WRITE_MULTIPLE_BLOCK; in send_mmc_rpmb_req()
337 cmd->flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_ADTC; in send_mmc_rpmb_req()
338 cmd->blksz = MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
339 cmd->blocks = req->reliable_write_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
340 mmc_ioc_cmd_set_data((*cmd), write_buf); in send_mmc_rpmb_req()
342 ALOGI("opcode: 0x%x, write_flag: 0x%x\n", cmd->opcode, cmd->write_flag); in send_mmc_rpmb_req()
347 cmd++; in send_mmc_rpmb_req()
351 cmd->write_flag = MMC_WRITE_FLAG_W; in send_mmc_rpmb_req()
[all …]
/system/chre/platform/linux/
Dinit.cc62 TCLAP::CmdLine cmd(kSimDescription, ' ', kSimVersion); in main() local
64 "disable running static nanoapps", cmd, in main()
68 "path", cmd); in main()
72 "path", cmd); in main()
75 1.0, "seconds", cmd); in main()
78 10.0, "seconds", cmd); in main()
80 cmd.parse(argc, argv); in main()
/system/core/trusty/keymaster/set_attestation_key/
Dset_attestation_key.cpp118 static int set_attestation_key_or_cert_bin(uint32_t cmd, keymaster_algorithm_t algorithm, in set_attestation_key_or_cert_bin() argument
127 ret = trusty_keymaster_send(cmd, req, &rsp); in set_attestation_key_or_cert_bin()
129 fprintf(stderr, "trusty_keymaster_send cmd 0x%x failed %d\n", cmd, ret); in set_attestation_key_or_cert_bin()
136 static int set_attestation_key_or_cert_pem(uint32_t cmd, keymaster_algorithm_t algorithm, in set_attestation_key_or_cert_pem() argument
163 ret = set_attestation_key_or_cert_bin(cmd, algorithm, key, keylen); in set_attestation_key_or_cert_pem()
172 static int set_attestation_key_or_cert_iecs(uint32_t cmd, keymaster_algorithm_t algorithm, in set_attestation_key_or_cert_iecs() argument
207 ret = set_attestation_key_or_cert_bin(cmd, algorithm, key, keylen); in set_attestation_key_or_cert_iecs()
226 static int set_attestation_key_or_cert(uint32_t cmd, const xmlChar* algorithm_str, in set_attestation_key_or_cert() argument
237 ret = set_attestation_key_or_cert_pem(cmd, algorithm, str); in set_attestation_key_or_cert()
239 ret = set_attestation_key_or_cert_iecs(cmd, algorithm, str); in set_attestation_key_or_cert()
[all …]
/system/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp75 std::variant<int, std::vector<uint8_t>> trusty_keymaster_call_2(uint32_t cmd, void* in, in trusty_keymaster_call_2() argument
89 msg->cmd = cmd; in trusty_keymaster_call_2()
103 ALOGW("write for cmd %d is taking more than %lld nsecs", cmd, in trusty_keymaster_call_2()
121 ALOGW("write for cmd %d finished after %lld nsecs", cmd, in trusty_keymaster_call_2()
127 ALOGE("failed to send cmd (%d) to %s: %s\n", cmd, KEYMASTER_PORT, strerror(errno)); in trusty_keymaster_call_2()
172 ALOGW("readv for cmd %d is taking more than %lld nsecs", cmd, in trusty_keymaster_call_2()
189 ALOGW("readv for cmd %d finished after %lld nsecs", cmd, in trusty_keymaster_call_2()
193 ALOGE("failed to retrieve response for cmd (%d) to %s: %s\n", cmd, KEYMASTER_PORT, in trusty_keymaster_call_2()
203 if ((cmd | KEYMASTER_RESP_BIT) != (header.cmd & ~(KEYMASTER_STOP_BIT))) { in trusty_keymaster_call_2()
204 ALOGE("invalid command (%d)", header.cmd); in trusty_keymaster_call_2()
[all …]
/system/libhwbinder/
DIPCThreadState.cpp117 static const char* getReturnString(uint32_t cmd) in getReturnString() argument
119 size_t idx = cmd & _IOC_NRMASK; in getReturnString()
148 const int32_t* cmd = (const int32_t*)_cmd; in printReturnCommand() local
149 uint32_t code = (uint32_t)*cmd++; in printReturnCommand()
152 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl; in printReturnCommand()
153 return cmd; in printReturnCommand()
156 return cmd; in printReturnCommand()
164 cmd = (const int32_t *)printBinderTransactionData(out, cmd); in printReturnCommand()
169 const int32_t res = *cmd++; in printReturnCommand()
177 const int32_t b = *cmd++; in printReturnCommand()
[all …]

1234567891011