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

123

/system/netd/
H A DNetdCommand.cpp19 NetdCommand::NetdCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A DThrottleController.cpp43 int ThrottleController::runTcCmd(const char *cmd) { argument
45 size_t len = strnlen(cmd, 255);
54 asprintf(&buffer, "%s %s", TC_PATH, cmd);
61 char cmd[512]; local
82 sprintf(cmd, "qdisc add dev %s root handle 1: htb default 1 r2q 1000", ifn);
83 if (runTcCmd(cmd)) {
91 sprintf(cmd, "class add dev %s parent 1: classid 1:1 htb rate %dkbit", ifn, txKbps);
92 if (runTcCmd(cmd)) {
109 sprintf(cmd, "qdisc add dev ifb0 root handle 1: htb default 1 r2q 1000");
110 if (runTcCmd(cmd)) {
150 char cmd[128]; local
[all...]
H A DNetdCommand.h24 NetdCommand(const char *cmd);
H A DNatController.cpp48 int NatController::runCmd(const char *path, const char *cmd) { argument
50 size_t len = strnlen(cmd, 255);
59 asprintf(&buffer, "%s %s", path, cmd);
98 char cmd[255]; local
143 snprintf(cmd, sizeof(cmd), "-D natctrl_FORWARD -j DROP");
144 runCmd(IPTABLES_PATH, cmd);
145 snprintf(cmd, sizeof(cmd), "-A natctrl_FORWARD -j DROP");
146 runCmd(IPTABLES_PATH, cmd);
170 char cmd[255]; local
219 char cmd[255]; local
[all...]
H A DSecondaryTableController.cpp84 char *cmd; local
88 asprintf(&cmd, "%s route %s %s/%d dev %s table %d",
91 asprintf(&cmd, "%s route %s %s/%d via %s dev %s table %d",
95 if (runAndFree(cli, cmd)) {
160 char *cmd; local
165 asprintf(&cmd, "%s %s rule %s from %s table %d", IP_PATH, getVersion(addr),
167 if (runAndFree(NULL, cmd)) {
177 char *cmd; local
185 asprintf(&cmd, "%s route %s %s dev %s table %d", IP_PATH, action, addr, iface,
187 return runAndFree(NULL, cmd);
190 runAndFree(SocketClient *cli, char *cmd) argument
[all...]
H A DThrottleController.h27 static int runTcCmd(const char *cmd);
H A Doem_iptables_hook.cpp32 static int runIptablesCmd(const char *cmd) { argument
34 size_t len = strnlen(cmd, 255);
42 asprintf(&buffer, "%s %s", IPTABLES_PATH, cmd);
H A DIdletimerController.h39 int runIpxtablesCmd(const char *cmd);
H A DNatController.h42 int runCmd(const char *path, 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/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/include/cutils/
H A Dandroid_reboot.h31 int android_reboot(int cmd, int flags, char *arg);
/system/core/fastboot/
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 Dprotocol.c109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, argument
112 int cmdsize = strlen(cmd);
124 if(usb_write(usb, cmd, cmdsize) != cmdsize) {
162 static int _command_send(usb_handle *usb, const char *cmd, argument
171 r = _command_start(usb, cmd, size, response);
189 static int _command_send_no_data(usb_handle *usb, const char *cmd, argument
194 return _command_start(usb, cmd, 0, response);
197 int fb_command(usb_handle *usb, const char *cmd) argument
199 return _command_send_no_data(usb, cmd, 0);
202 int fb_command_response(usb_handle *usb, const char *cmd, cha argument
209 char cmd[64]; local
293 char cmd[64]; local
[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/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.h41 void registerCmd(FrameworkCommand *cmd);
/system/security/keystore/
H A Dkeystore_client.h49 ResponseCode keystore_cmd(command_code_t cmd, Keystore_Reply* reply, int numArgs, ...);
/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 1713 milliseconds

123