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

123

/system/netd/server/
H A DNetdCommand.cpp19 NetdCommand::NetdCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A DNatController.cpp51 const char *cmd[32]; member in struct:CommandsAndArgs
105 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) &&
118 * - the defaultsCommands[].cmd array is padded with NULL, and
119 * - the 1st argc of runCmd() will just be the max for the CommandsAndArgs[].cmd, and
128 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) &&
156 const char *cmd[] = { local
168 if (runCmd(ARRAY_SIZE(cmd), cmd)) {
[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/extras/simpleperf/
H A Dcmd_help.cpp38 void PrintLongHelpForOneCommand(const Command& cmd);
45 Command* cmd = Command::FindCommandByName(args[1]); local
46 if (cmd == nullptr) {
51 PrintLongHelpForOneCommand(*cmd);
H A Dcommand.cpp48 void Command::RegisterCommand(Command* cmd) { argument
49 Commands().push_back(cmd);
52 void Command::UnRegisterCommand(Command* cmd) { argument
54 if (*it == cmd) {
/system/core/libcutils/
H A Dandroid_reboot.c92 int android_reboot(int cmd, int flags UNUSED, const char *arg) argument
99 switch (cmd) {
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)));
78 ALOGI("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno);
/system/core/toolbox/
H A Drenice.c98 char *cmd = argv[0]; local
116 usage(cmd);
124 usage(cmd);
131 usage(cmd);
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("-f");
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);
/system/bt/stack/smp/
H A Dsmp_l2c.c148 UINT8 cmd ; local
151 STREAM_TO_UINT8(cmd, p);
154 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd))
156 SMP_TRACE_WARNING( "Ignore received command with RESERVED code 0x%02x", cmd);
162 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd)
184 if (cmd == SMP_OPCODE_CONFIRM)
186 SMP_TRACE_DEBUG ("in %s cmd = 0x%02x, peer_auth_req = 0x%02x,"
188 __FUNCTION__, cmd, p_c
298 UINT8 cmd ; local
[all...]
/system/core/libbacktrace/
H A DBacktraceMap.cpp101 char cmd[sizeof(pid_t)*3 + sizeof("vmmap -w -resident -submap -allSplitLibs -interleaved ") + 1]; local
108 // cmd is guaranteed to always be big enough to hold this string.
109 snprintf(cmd, sizeof(cmd), "vmmap -w -resident -submap -allSplitLibs -interleaved %d", pid_);
110 FILE* fp = popen(cmd, "r");
H A Dmap_info.c66 char cmd[1024]; local
70 snprintf(cmd, sizeof(cmd), "vmmap -w -resident -submap -allSplitLibs -interleaved %d", pid);
71 FILE* fp = popen(cmd, "r");
/system/bt/bta/sys/
H A Dutl.c181 ** cmd - the fields of the device class to update.
191 BOOLEAN utl_set_device_class(tBTA_UTL_COD *p_cod, UINT8 cmd) argument
203 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.c128 const char *cmd; member in struct:__anon1315
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.c109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, argument
112 int cmdsize = strlen(cmd);
123 if(usb_write(usb, cmd, cmdsize) != cmdsize) {
161 static int _command_send(usb_handle *usb, const char *cmd, argument
170 r = _command_start(usb, cmd, size, response);
188 static int _command_send_no_data(usb_handle *usb, const char *cmd, argument
191 return _command_start(usb, cmd, 0, response);
194 int fb_command(usb_handle *usb, const char *cmd) argument
196 return _command_send_no_data(usb, cmd, 0);
199 int fb_command_response(usb_handle *usb, const char *cmd, cha argument
206 char cmd[64]; local
290 char cmd[64]; local
[all...]
/system/core/init/
H A Dsignal_handler.cpp138 command* cmd = node_to_item(node, struct command, clist); local
139 cmd->func(cmd->nargs, cmd->args);
/system/core/logd/
H A DLogCommand.cpp26 LogCommand::LogCommand(const char *cmd) : FrameworkCommand(cmd) { argument
/system/extras/ext4_utils/
H A Dkey_control.cpp12 static long keyctl(int cmd, ...) argument
17 va_start(va, cmd);
23 return syscall(__NR_keyctl, cmd, arg2, arg3, arg4, arg5);
/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 432 milliseconds

123