/system/core/nexus/ |
H A D | NexusCommand.cpp | 19 NexusCommand::NexusCommand(const char *cmd) : argument 20 FrameworkCommand(cmd) {
|
H A D | NexusCommand.h | 24 NexusCommand(const char *cmd);
|
/system/netd/ |
H A D | NetdCommand.cpp | 19 NetdCommand::NetdCommand(const char *cmd) : argument 20 FrameworkCommand(cmd) {
|
H A D | NatController.cpp | 47 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 D | ThrottleController.cpp | 44 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 D | NetdCommand.h | 24 NetdCommand(const char *cmd);
|
H A D | ThrottleController.h | 27 static int runTcCmd(const char *cmd);
|
H A D | SecondaryTableController.cpp | 87 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 D | NatController.h | 40 int runCmd(const char *path, const char *cmd);
|
H A D | oem_iptables_hook.cpp | 33 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 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/fastboot/ |
H A D | fastboot.h | 35 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 D | protocol.c | 103 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 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/core/include/cutils/ |
H A D | android_reboot.h | 31 int android_reboot(int cmd, int flags, char *arg);
|
/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 | 35 void registerCmd(FrameworkCommand *cmd);
|
/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);
|