/system/netd/ |
H A D | NetdCommand.cpp | 19 NetdCommand::NetdCommand(const char *cmd) : argument 20 FrameworkCommand(cmd) {
|
H A D | ThrottleController.cpp | 43 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 D | NetdCommand.h | 24 NetdCommand(const char *cmd);
|
H A D | NatController.cpp | 48 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 D | SecondaryTableController.cpp | 84 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 D | ThrottleController.h | 27 static int runTcCmd(const char *cmd);
|
H A D | oem_iptables_hook.cpp | 32 static int runIptablesCmd(const char *cmd) { argument 34 size_t len = strnlen(cmd, 255); 42 asprintf(&buffer, "%s %s", IPTABLES_PATH, cmd);
|
H A D | IdletimerController.h | 39 int runIpxtablesCmd(const char *cmd);
|
H A D | NatController.h | 42 int runCmd(const char *path, const char *cmd);
|
/system/vold/ |
H A D | VoldCommand.cpp | 19 VoldCommand::VoldCommand(const char *cmd) : argument 20 FrameworkCommand(cmd) {
|
H A D | VoldCommand.h | 24 VoldCommand(const char *cmd);
|
/system/core/libsysutils/src/ |
H A D | FrameworkCommand.cpp | 24 FrameworkCommand::FrameworkCommand(const char *cmd) { argument 25 mCommand = cmd;
|
/system/core/toolbox/ |
H A D | syren.c | 64 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 D | renice.c | 81 char *cmd = argv[0]; local 88 usage(cmd); 99 usage(cmd); 105 usage(cmd); 112 usage(cmd);
|
H A D | toolbox.c | 44 char *cmd = strrchr(argv[0], '/'); local 45 if (cmd) 46 name = cmd + 1;
|
/system/core/include/cutils/ |
H A D | android_reboot.h | 31 int android_reboot(int cmd, int flags, char *arg);
|
/system/core/fastboot/ |
H A D | fastboot.h | 37 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 D | protocol.c | 109 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 D | usbtest.c | 128 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 D | wifiLoadScanAssoc.c | 132 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 D | FrameworkCommand.h | 29 FrameworkCommand(const char *cmd);
|
H A D | FrameworkListener.h | 41 void registerCmd(FrameworkCommand *cmd);
|
/system/security/keystore/ |
H A D | keystore_client.h | 49 ResponseCode keystore_cmd(command_code_t cmd, Keystore_Reply* reply, int numArgs, ...);
|
/system/core/init/ |
H A D | parser.c | 15 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 D | signal_handler.c | 52 struct command *cmd; local 112 cmd = node_to_item(node, struct command, clist); 113 cmd->func(cmd->nargs, cmd->args);
|