Searched refs:command (Results 1 - 18 of 18) sorted by relevance

/system/core/init/
H A Dinit.h26 struct command struct
48 struct command *current;
H A Dparser.c15 struct command *cmd;
39 cmd = node_to_item(node2, struct command, clist);
H A Dsignal_handler.c52 struct command *cmd;
114 cmd = node_to_item(node, struct command, clist);
H A Dbuiltins.c616 char command[PROP_VALUE_MAX]; local
622 res = expand_props(command, args[1], sizeof(command));
628 if (strncmp(command, "shutdown", 8) == 0) {
631 } else if (strncmp(command, "reboot", 6) == 0) {
635 ERROR("powerctl: unrecognized command '%s'\n", command);
639 if (command[len] == ',') {
640 reboot_target = &command[len + 1];
641 } else if (command[le
[all...]
H A Dinit.c79 static struct command *cur_command = NULL;
504 static struct command *get_first_command(struct action *act)
511 return node_to_item(node, struct command, clist);
514 static struct command *get_next_command(struct action *act, struct command *cmd)
523 return node_to_item(node, struct command, clist);
526 static int is_last_command(struct action *act, struct command *cmd)
550 INFO("command '%s' r=%d\n", cur_command->args[0], ret);
751 /* if this was given on kernel command line, override what we read
783 /* now propogate the info given on command lin
[all...]
H A Dinit_parser.c572 struct command *cmd;
651 struct command *cmd;
738 parse_error(state, "invalid command '%s'\n", args[0]);
843 struct command *cmd;
854 parse_error(state, "invalid command '%s'\n", args[0]);
/system/core/adb/
H A Dframebuffer_service.c73 const char* command = "screencap"; local
74 const char *args[2] = {command, NULL};
75 execvp(command, (char**)args);
H A Dtransport_usb.c34 p->msg.command = H4(p->msg.command);
H A Dcommandline.c85 " -d - directs command to the only connected USB device\n"
87 " -e - directs command to the only running emulator.\n"
89 " -s <specific device> - directs command to the device or emulator with the given\n"
106 " Using this command with no additional arguments\n"
116 " adb shell <command> - run remote shell command\n"
117 " adb emu <command> - run emulator console command\n"
164 " command line will be included even if -nosystem would\n"
374 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_typ argument
468 char command[4096]; local
1220 char command[100]; local
1352 const char* command = no_rebind ? "forward:norebind:" : "forward"; local
[all...]
H A Dtransport_local.c35 p->msg.command = H4(p->msg.command);
69 p->msg.command, p->msg.arg0, p->msg.arg1, p->msg.data_length, p->msg.data_check, p->msg.magic);
97 p->msg.command, p->msg.arg0, p->msg.arg1, p->msg.data_length, p->msg.data_check, p->msg.magic);
H A Dadb.c235 switch(p->msg.command){
272 p->msg.command = A_OKAY;
282 p->msg.command = A_CLSE;
322 cp->msg.command = A_CNXN;
344 p->msg.command = A_AUTH;
363 p->msg.command = A_AUTH;
382 p->msg.command = A_AUTH;
505 D("handle_packet() %c%c%c%c\n", ((char*) (&(p->msg.command)))[0],
506 ((char*) (&(p->msg.command)))[1],
507 ((char*) (&(p->msg.command)))[
[all...]
H A Dtransport.c105 unsigned command = p->msg.command; local
112 int b = (command >> (n*8)) & 255;
120 /* There is some non-ASCII name in the command, so dump
122 snprintf(cmd, sizeof cmd, "%08x", command);
223 p->msg.magic = p->msg.command ^ 0xffffffff;
268 p->msg.command = A_SYNC;
299 p->msg.command = A_SYNC;
330 if(p->msg.command == A_SYNC){
1202 if(p->msg.magic != (p->msg.command
[all...]
H A Dadb.h51 unsigned command; /* command identifier constant */ member in struct:amessage
56 unsigned magic; /* command ^ 0xffffffff */
294 /* these should only be used for the "adb disconnect" command */
H A Dsockets.c469 p->msg.command = A_WRTE;
482 p->msg.command = A_OKAY;
493 p->msg.command = A_CLSE;
552 p->msg.command = A_OPEN;
/system/extras/micro_bench/
H A Dmicro_bench.cpp612 printf(" If the command supports it, align the destination pointer to ALIGN.\n");
615 printf(" If the command supports it, or in the OR_MASK on to the destination pointer.\n");
620 printf(" If the command supports it, align the source pointer to ALIGN. The default is to use the\n");
623 printf(" If the command supports it, or in the OR_MASK on to the source pointer.\n");
627 printf(" If the command supports it, create a destination string of this length.\n");
657 function_t *command = NULL; local
717 } else if (!command) {
720 command = &function_table[j];
724 if (!command) {
725 printf("Uknown command
816 function_t *command = processOptions(argc, argv, &cmd_data); local
[all...]
/system/core/fastboot/
H A Dfastboot.c232 // at the command line with the -s option.
295 "usage: fastboot [ <option> ] <command>\n"
825 char command[256]; local
828 command[0] = 0;
830 strcat(command,*argv);
833 strcat(command," ");
836 fb_queue_command(command,"");
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp27 * This benchmark supports the following command-line options:
79 enum command { enum in class:AddIntsService
112 // Parse command line arguments
115 char *chptr; // character pointer for command-line parsing
/system/core/sh/
H A Dparser.c67 * Shell command parser.
107 STATIC union node *command(void);
123 * Read and parse a command. Returns NEOF on end of file. (NULL is a
258 n1 = command();
269 lp->n = command();
288 command(void) function
301 /* Check for redirection which may precede command */
310 TRACE(("command: TNOT recognized\n"));
476 /* Handle an empty command like other simple commands. */
479 * An empty command befor
[all...]

Completed in 178 milliseconds