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

123

/system/core/nexus/
H A DNexusCommand.cpp19 NexusCommand::NexusCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A DNexusCommand.h24 NexusCommand(const char *cmd);
/system/netd/
H A DNetdCommand.cpp19 NetdCommand::NetdCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A DNatController.cpp47 int NatController::runCmd(const char *path, const char *cmd) { argument
49 size_t len = strnlen(cmd, 255);
58 asprintf(&buffer, "%s %s", path, cmd);
107 char cmd[255]; local
130 snprintf(cmd, sizeof(cmd), "%s rule add from %s table %d", getVersion(argv[5+i]),
132 ret |= runCmd(IP_PATH, cmd);
133 if (ret) LOGE("IP rule %s got %d", cmd, ret);
135 snprintf(cmd, sizeof(cmd), "rout
182 char cmd[255]; local
230 char cmd[255]; local
[all...]
H A DThrottleController.cpp44 int ThrottleController::runTcCmd(const char *cmd) { argument
46 size_t len = strnlen(cmd, 255);
55 asprintf(&buffer, "%s %s", TC_PATH, cmd);
62 char cmd[512]; local
83 sprintf(cmd, "qdisc add dev %s root handle 1: htb default 1 r2q 1000", ifn);
84 if (runTcCmd(cmd)) {
92 sprintf(cmd, "class add dev %s parent 1: classid 1:1 htb rate %dkbit", ifn, txKbps);
93 if (runTcCmd(cmd)) {
110 sprintf(cmd, "qdisc add dev ifb0 root handle 1: htb default 1 r2q 1000");
111 if (runTcCmd(cmd)) {
151 char cmd[128]; local
[all...]
H A DNetdCommand.h24 NetdCommand(const char *cmd);
H A DThrottleController.h27 static int runTcCmd(const char *cmd);
H A DSecondaryTableController.cpp87 char *cmd; local
91 asprintf(&cmd, "%s route %s %s/%d dev %s table %d",
94 asprintf(&cmd, "%s route %s %s/%d via %s dev %s table %d",
98 if (runAndFree(cli, cmd)) {
131 int SecondaryTableController::runAndFree(SocketClient *cli, char *cmd) { argument
133 if (strlen(cmd) >= 255) {
134 LOGE("ip command (%s) too long", cmd);
137 free(cmd);
140 ret = system_nosh(cmd);
141 free(cmd);
[all...]
H A DNatController.h40 int runCmd(const char *path, const char *cmd);
H A Doem_iptables_hook.cpp33 static int runIptablesCmd(const char *cmd) { argument
35 size_t len = strnlen(cmd, 255);
43 asprintf(&buffer, "%s %s", IPTABLES_PATH, 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/core/libsysutils/src/
H A DFrameworkCommand.cpp24 FrameworkCommand::FrameworkCommand(const char *cmd) { argument
25 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 Drenice.c81 char *cmd = argv[0]; local
88 usage(cmd);
99 usage(cmd);
105 usage(cmd);
112 usage(cmd);
H A Dtoolbox.c44 char *cmd = strrchr(argv[0], '/'); local
45 if (cmd)
46 name = cmd + 1;
/system/core/fastboot/
H A Dfastboot.h35 int fb_command(usb_handle *usb, const char *cmd);
36 int fb_command_response(usb_handle *usb, const char *cmd, char *response);
51 void fb_queue_command(const char *cmd, const char *msg);
H A Dprotocol.c103 static int _command_send(usb_handle *usb, const char *cmd, argument
107 int cmdsize = strlen(cmd);
119 if(usb_write(usb, cmd, cmdsize) != cmdsize) {
157 int fb_command(usb_handle *usb, const char *cmd) argument
159 return _command_send(usb, cmd, 0, 0, 0);
162 int fb_command_response(usb_handle *usb, const char *cmd, char *response) argument
164 return _command_send(usb, cmd, 0, 0, response);
169 char cmd[64]; local
172 sprintf(cmd, "download:%08x", size);
173 r = _command_send(usb, cmd, dat
[all...]
H A Dusbtest.c128 const char *cmd; member in struct:__anon291
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);
/system/core/include/cutils/
H A Dandroid_reboot.h31 int android_reboot(int cmd, int flags, char *arg);
/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/include/sysutils/
H A DFrameworkCommand.h29 FrameworkCommand(const char *cmd);
H A DFrameworkListener.h35 void registerCmd(FrameworkCommand *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]);
H A Dsignal_handler.c52 struct command *cmd; local
112 cmd = node_to_item(node, struct command, clist);
113 cmd->func(cmd->nargs, cmd->args);

Completed in 135 milliseconds

123