Lines Matching defs:runCmd
58 int NatController::runCmd(int argc, const char **argv) {
67 * HACK: Sometimes runCmd() is called with a ridcously large value (32)
76 ALOGV("runCmd(%s) res=%d", full_cmd.c_str(), res);
113 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) &&
127 * - the 1st argc of runCmd() will just be the max for the CommandsAndArgs[].cmd, and
138 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) &&
186 if (runCmd(ARRAY_SIZE(v4Cmd), v4Cmd) || runCmd(ARRAY_SIZE(v6Cmd), v6Cmd)) {
212 runCmd(ARRAY_SIZE(cmd1), cmd1);
221 runCmd(ARRAY_SIZE(cmd2), cmd2);
262 if (runCmd(ARRAY_SIZE(cmd2b), cmd2b) || runCmd(ARRAY_SIZE(cmd2c), cmd2c)) {
285 if (runCmd(ARRAY_SIZE(cmd3b), cmd3b) || runCmd(ARRAY_SIZE(cmd3c), cmd3c)) {
314 if (runCmd(ARRAY_SIZE(cmd1), cmd1) && add) {
367 if (runCmd(ARRAY_SIZE(cmd2), cmd2) && add) {
373 if (runCmd(ARRAY_SIZE(cmd3), cmd3) && add) {
380 if (runCmd(ARRAY_SIZE(cmd4), cmd4) && add && false /* STOPSHIP */) {
394 runCmd(ARRAY_SIZE(cmd3), cmd3);
397 runCmd(ARRAY_SIZE(cmd2), cmd2);
400 runCmd(ARRAY_SIZE(cmd1), cmd1);