Searched defs:command (Results 1 - 14 of 14) sorted by relevance

/system/netd/server/
H A DFwmarkServer.cpp49 FwmarkCommand command; local
52 iov.iov_base = &command;
53 iov.iov_len = sizeof(command);
74 if (messageLength != sizeof(command)) {
96 switch (command.cmdId) {
149 fwmark.netId = command.netId;
150 if (command.netId == NETID_UNSET) {
156 command.netId)) {
174 // PROTECT_FROM_VPN command should unset it.
187 fwmark.netId = mNetworkController->getNetworkForUser(command
[all...]
/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 Dservices.c136 // Don't return early. Give the reboot command time to take effect
146 const char* command = arg; local
148 if (handle_forward_request(command, kTransportAny, NULL, fd) < 0) {
149 sendfailmsg(fd, "not a reverse forwarding command");
H A Dadb.h52 unsigned command; /* command identifier constant */ member in struct:amessage
57 unsigned magic; /* command ^ 0xffffffff */
301 /* these should only be used for the "adb disconnect" command */
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){
1206 if(p->msg.magic != (p->msg.command
[all...]
H A Dcommandline.c88 " -d - directs command to the only connected USB device\n"
90 " -e - directs command to the only running emulator.\n"
92 " -s <specific device> - directs command to the device or emulator with the given\n"
109 " Using this command with no additional arguments\n"
124 " adb shell <command> - run remote shell command\n"
125 " adb emu <command> - run emulator console command\n"
188 " command line will be included even if -nosystem would\n"
438 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_typ argument
641 char command[4096]; local
1445 char command[100]; local
1584 const char* command = no_rebind ? "forward:norebind:" : "forward"; local
[all...]
/system/core/libsysutils/src/
H A DSocketListener.cpp305 void SocketListener::runOnEachSocket(SocketClientCommand *command) { argument
325 command->runSocketCommand(c);
/system/core/init/
H A Dinit.h26 struct command struct
52 struct command *current;
H A Dbuiltins.c479 int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC, 0600);
485 ERROR("could not open /cache/recovery/command\n");
666 char command[PROP_VALUE_MAX]; local
672 res = expand_props(command, args[1], sizeof(command));
678 if (strncmp(command, "shutdown", 8) == 0) {
681 } else if (strncmp(command, "reboot", 6) == 0) {
685 ERROR("powerctl: unrecognized command '%s'\n", command);
689 if (command[le
[all...]
/system/core/logcat/tests/
H A Dlogcat_test.cpp491 char command[sizeof(buf) + sizeof(comm)]; local
492 sprintf(command, comm, buf);
495 EXPECT_FALSE((ret = system(command)));
497 sprintf(command, "ls -s %s 2>/dev/null", buf);
500 EXPECT_TRUE(NULL != (fp = popen(command, "r")));
519 sprintf(command, "rm -rf %s", buf);
520 EXPECT_FALSE(system(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/netd/client/
H A DNetdClient.cpp65 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0}; local
66 if (int error = FwmarkClient().send(&command, sizeof(command), acceptedSocket)) {
75 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0}; local
76 if (int error = FwmarkClient().send(&command, sizeof(command), sockfd)) {
185 FwmarkCommand command = {FwmarkCommand::SELECT_NETWORK, netId, 0}; local
186 return FwmarkClient().send(&command, sizeof(command), socketFd);
201 FwmarkCommand command local
209 FwmarkCommand command = {FwmarkCommand::SELECT_FOR_USER, 0, uid}; local
[all...]
/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.c223 // at the command line with the -s option.
286 "usage: fastboot [ <option> ] <command>\n"
839 char command[256]; local
842 command[0] = 0;
844 strcat(command,*argv);
847 strcat(command," ");
850 fb_queue_command(command,"");

Completed in 9508 milliseconds