Searched defs:cmd (Results 1 - 25 of 75) sorted by relevance

123

/system/netd/server/
H A DNetdCommand.cpp19 NetdCommand::NetdCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A DIptablesBaseTest.cpp33 std::string cmd = argv[0]; local
35 cmd += " ";
36 cmd += argv[i];
38 sCmds.push_back(cmd);
44 std::string cmd = " -w"; local
51 cmd += " ";
52 cmd += arg;
57 sCmds.push_back(IPTABLES_PATH + cmd);
60 sCmds.push_back(IP6TABLES_PATH + cmd);
72 const std::string& cmd) {
71 expectIptablesCommand(IptablesTarget target, int pos, const std::string& cmd) argument
102 auto cmd = expectedCmds[i].second; local
[all...]
/system/vold/
H A DVoldCommand.cpp19 VoldCommand::VoldCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
/system/core/libsysutils/src/
H A DFrameworkCommand.cpp26 FrameworkCommand::FrameworkCommand(const char *cmd) { argument
27 mCommand = cmd;
H A DFrameworkListener.cpp81 void FrameworkListener::registerCmd(FrameworkCommand *cmd) { argument
82 mCommands->push_back(cmd);
/system/core/reboot/
H A Dreboot.c29 const char *cmd = "reboot"; local
44 cmd = "shutdown";
60 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg);
/system/core/trusty/gatekeeper/
H A Dgatekeeper_ipc.h32 * @cmd: the command, one of ENROLL, VERIFY. Payload must be a serialized
37 uint32_t cmd; member in struct:gatekeeper_message
H A Dtrusty_gatekeeper_ipc.c42 int trusty_gatekeeper_call(uint32_t cmd, void *in, uint32_t in_size, uint8_t *out, argument
51 msg->cmd = cmd;
58 ALOGE("failed to send cmd (%d) to %s: %s\n", cmd,
65 ALOGE("failed to retrieve response for cmd (%d) to %s: %s\n",
66 cmd, GATEKEEPER_PORT, strerror(errno));
77 if ((cmd | GK_RESP_BIT) != msg->cmd) {
78 ALOGE("invalid command (%d)\n", msg->cmd);
[all...]
/system/extras/simpleperf/
H A Dcmd_help.cpp38 void PrintLongHelpForOneCommand(const Command& cmd);
45 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); local
46 if (cmd == nullptr) {
51 PrintLongHelpForOneCommand(*cmd);
67 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); local
68 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str());
/system/core/toolbox/
H A Dtoolbox.c59 char *cmd = strrchr(argv[0], '/'); local
60 if (cmd)
61 name = cmd + 1;
/system/vold/fs/
H A DF2fs.cpp44 std::vector<std::string> cmd; local
45 cmd.push_back(kFsckPath);
46 cmd.push_back("-a");
47 cmd.push_back(source);
50 return ForkExecvp(cmd, sFsckContext);
73 std::vector<std::string> cmd; local
74 cmd.push_back(kMkfsPath);
75 cmd.push_back(source);
77 return ForkExecvp(cmd);
H A DVfat.cpp76 std::vector<std::string> cmd; local
77 cmd.push_back(kFsckPath);
78 cmd.push_back("-p");
79 cmd.push_back("-f");
80 cmd.push_back(source);
83 rc = ForkExecvp(cmd, sFsckUntrustedContext);
173 std::vector<std::string> cmd; local
174 cmd.push_back(kMkfsPath);
175 cmd.push_back("-F");
176 cmd
[all...]
/system/bt/stack/smp/
H A Dsmp_l2c.c150 UINT8 cmd ; local
153 STREAM_TO_UINT8(cmd, p);
156 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd))
158 SMP_TRACE_WARNING( "Ignore received command with RESERVED code 0x%02x", cmd);
164 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd)
187 if (cmd == SMP_OPCODE_CONFIRM)
189 SMP_TRACE_DEBUG ("in %s cmd = 0x%02x, peer_auth_req = 0x%02x,"
191 __FUNCTION__, cmd, p_c
301 UINT8 cmd ; local
[all...]
/system/core/libbacktrace/
H A DBacktraceMap.cpp98 char cmd[sizeof(pid_t)*3 + sizeof("vmmap -w -resident -submap -allSplitLibs -interleaved ") + 1]; local
105 // cmd is guaranteed to always be big enough to hold this string.
106 snprintf(cmd, sizeof(cmd), "vmmap -w -resident -submap -allSplitLibs -interleaved %d", pid_);
107 FILE* fp = popen(cmd, "r");
/system/extras/ext4_utils/
H A Dkey_control.cpp8 static long keyctl(int cmd, ...) argument
13 va_start(va, cmd);
19 return syscall(__NR_keyctl, cmd, arg2, arg3, arg4, arg5);
/system/bt/bta/sys/
H A Dutl.c159 ** cmd - the fields of the device class to update.
169 BOOLEAN utl_set_device_class(tBTA_UTL_COD *p_cod, UINT8 cmd) argument
181 switch(cmd)
/system/bt/btif/co/
H A Dbta_gatts_co.c124 ** informaiton. The request consists of the cmd and p_req and the
127 ** Parameter cmd - request command
136 BOOLEAN bta_gatts_co_srv_chg(tBTA_GATTS_SRV_CHG_CMD cmd, argument
140 UNUSED(cmd);
/system/core/fastboot/
H A Dusbtest.cpp128 const char *cmd; member in struct:__anon1519
145 for(i = 0; tests[i].cmd; i++) {
146 fprintf(stderr," %-8s %s\n", tests[i].cmd, tests[i].help);
191 for(i = 0; tests[i].cmd; i++) {
192 if(!strcmp(argv[1], tests[i].cmd)) {
197 tests[i].cmd);
201 fprintf(stderr,"usbtest: %s: FAIL\n", tests[i].cmd);
204 fprintf(stderr,"usbtest: %s: OKAY\n", tests[i].cmd);
H A Dprotocol.cpp108 static int _command_start(Transport* transport, const char* cmd, uint32_t size, char* response) { argument
109 size_t cmdsize = strlen(cmd);
119 if (transport->Write(cmd, cmdsize) != static_cast<int>(cmdsize)) {
147 static int _command_send(Transport* transport, const char* cmd, const void* data, uint32_t size, argument
153 int r = _command_start(transport, cmd, size, response);
171 static int _command_send_no_data(Transport* transport, const char* cmd, char* response) { argument
172 return _command_start(transport, cmd, 0, response);
175 int fb_command(Transport* transport, const char* cmd) { argument
176 return _command_send_no_data(transport, cmd, 0);
179 int fb_command_response(Transport* transport, const char* cmd, cha argument
184 char cmd[64]; local
259 char cmd[64]; local
[all...]
/system/core/logd/
H A DLogCommand.cpp27 LogCommand::LogCommand(const char *cmd) : FrameworkCommand(cmd) { argument
/system/bt/vendor_libs/test_vendor_lib/scripts/
H A Dtest_channel.py40 import cmd namespace
154 class TestChannelShell(cmd.Cmd):
168 cmd.Cmd.__init__(self)
/system/core/libcutils/
H A Dandroid_reboot.c213 int cmd, int flags __unused, const char *arg,
218 switch (cmd) {
239 int android_reboot(int cmd, int flags, const char *arg) argument
241 return android_reboot_with_callback(cmd, flags, arg, NULL);
212 android_reboot_with_callback( int cmd, int flags __unused, const char *arg, void (*cb_on_remount)(const struct mntent*)) argument
H A Dqtaguid.c61 static int write_ctrl(const char *cmd) { argument
64 ALOGV("write_ctrl(%s)", cmd);
71 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
79 ALOGV("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno);
/system/core/libion/kernel-headers/linux/
H A Dion.h64 unsigned int cmd; member in struct:ion_custom_data
/system/core/libion/original-kernel-headers/linux/
H A Dion.h119 * @cmd: the custom ioctl function to call
123 * This works just like the regular cmd and arg fields of an ioctl.
126 unsigned int cmd; member in struct:ion_custom_data

Completed in 461 milliseconds

123