Searched refs:cmd (Results 1 - 25 of 56) sorted by relevance

123

/system/netd/server/
H A DNetdCommand.cpp19 NetdCommand::NetdCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A DNetdCommand.h24 NetdCommand(const char *cmd);
H A DBandwidthController.cpp157 int BandwidthController::runIpxtablesCmd(const char *cmd, IptJumpOp jumpHandling, argument
161 ALOGV("runIpxtablesCmd(cmd=%s)", cmd);
162 res |= runIptablesCmd(cmd, jumpHandling, IptIpV4, failureHandling);
163 res |= runIptablesCmd(cmd, jumpHandling, IptIpV6, failureHandling);
174 int BandwidthController::runIptablesCmd(const char *cmd, IptJumpOp jumpHandling, argument
184 std::string fullCmd = cmd;
332 char cmd[MAX_CMD_LEN]; local
341 snprintf(cmd, sizeof(cmd), "
364 char cmd[MAX_CMD_LEN]; local
508 char cmd[MAX_CMD_LEN]; local
562 char cmd[MAX_CMD_LEN]; local
1288 char cmd[MAX_CMD_LEN]; local
[all...]
H A DIdletimerController.h39 int runIpxtablesCmd(int argc, const char **cmd);
/system/vold/
H A DVoldCommand.cpp19 VoldCommand::VoldCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A DVoldCommand.h24 VoldCommand(const char *cmd);
/system/security/keystore/
H A Dkeystore_cli.cpp47 #define NO_ARG_INT_RETURN(cmd) \
49 if (strcmp(argv[1], #cmd) == 0) { \
50 int32_t ret = service->cmd(); \
55 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
61 #define SINGLE_ARG_INT_RETURN(cmd) \
63 if (strcmp(argv[1], #cmd) == 0) { \
65 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
68 int32_t ret = service->cmd(String16(argv[2])); \
73 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
79 #define SINGLE_ARG_PLUS_UID_INT_RETURN(cmd) \
[all...]
/system/core/libsysutils/src/
H A DFrameworkCommand.cpp26 FrameworkCommand::FrameworkCommand(const char *cmd) { argument
27 mCommand = cmd;
/system/core/toolbox/
H A Dsyren.c64 int cmd = -1; local
76 cmd = SYREN_RD;
79 cmd = SYREN_WR;
82 cmd = SYREN_OLD_RD;
85 cmd = SYREN_OLD_WR;
91 if (cmd == SYREN_WR || cmd == SYREN_OLD_WR) {
105 if (cmd != SYREN_RD && cmd != SYREN_OLD_RD) {
113 if (ioctl(fd, cmd,
[all...]
H A Dtoolbox.c44 char *cmd = strrchr(argv[0], '/'); local
45 if (cmd)
46 name = cmd + 1;
H A Drenice.c97 char *cmd = argv[0]; local
115 usage(cmd);
123 usage(cmd);
130 usage(cmd);
/system/core/fastbootd/
H A Dprotocol.c64 struct fastboot_cmd *cmd; local
65 cmd = malloc(sizeof(*cmd));
66 if (cmd) {
67 cmd->prefix = prefix;
68 cmd->prefix_len = strlen(prefix);
69 cmd->execute = phandle;
70 cmd->next = cmdlist;
71 cmdlist = cmd;
155 struct fastboot_cmd *cmd; local
[all...]
/system/core/include/cutils/
H A Dandroid_reboot.h30 int android_reboot(int cmd, int flags, char *arg);
/system/core/logd/
H A DLogCommand.h25 LogCommand(const char *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/tests/wifi/stress/
H A DwifiLoadScanAssoc.c132 char cmd[MAXCMD]; local
304 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STATUS);
305 if (rv >= (signed) sizeof(cmd) - 1) {
309 testExecCmd(cmd);
350 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STATUS);
351 if (rv >= (signed) sizeof(cmd) - 1) {
355 testExecCmd(cmd);
359 rv = snprintf(cmd, sizeo
390 char cmd[MAXCMD]; local
[all...]
/system/core/fastboot/
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...]
H A Dusbtest.c128 const char *cmd; member in struct:__anon22
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 Dfastboot.h37 int fb_command(usb_handle *usb, const char *cmd);
38 int fb_command_response(usb_handle *usb, const char *cmd, char *response);
58 void fb_queue_command(const char *cmd, const char *msg);
H A Dengine.c70 char cmd[CMD_SIZE]; member in struct:Action
89 char cmd[CMD_SIZE] = "getvar:"; local
90 int getvar_len = strlen(cmd);
95 vsnprintf(cmd + getvar_len, sizeof(cmd) - getvar_len, fmt, args);
97 cmd[CMD_SIZE - 1] = '\0';
98 return fb_command_response(usb, cmd, response);
146 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap);
149 if (cmdsize >= sizeof(a->cmd)) {
342 fb_queue_command(const char *cmd, const char *msg) argument
[all...]
/system/core/include/sysutils/
H A DFrameworkCommand.h29 FrameworkCommand(const char *cmd);
H A DFrameworkListener.h43 void registerCmd(FrameworkCommand *cmd);
/system/extras/verity/
H A Dbuild_verity_metadata.py14 def run(cmd):
15 status, output = commands.getstatusoutput(cmd)
35 cmd = " ".join((signer_path, table_file.name, key_path, signature_file.name))
36 print cmd
37 run(cmd)
/system/core/init/
H A Dparser.c15 struct command *cmd;
39 cmd = node_to_item(node2, struct command, clist);
40 RAW(" %p", cmd->func);
41 for (n = 0; n < cmd->nargs; n++) {
42 RAW(" %s", cmd->args[n]);
/system/core/libcutils/
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);

Completed in 460 milliseconds

123