Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 52) sorted by relevance

123

/system/netd/server/
DFwmarkServer.cpp49 FwmarkCommand command; in processClient() local
52 iov.iov_base = &command; in processClient()
53 iov.iov_len = sizeof(command); in processClient()
74 if (messageLength != sizeof(command)) { in processClient()
80 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) { in processClient()
84 return mNetworkController->checkUserNetworkAccess(command.uid, command.netId); in processClient()
103 switch (command.cmdId) { in processClient()
156 fwmark.netId = command.netId; in processClient()
157 if (command.netId == NETID_UNSET) { in processClient()
163 command.netId)) { in processClient()
[all …]
/system/netd/client/
DNetdClient.cpp67 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0}; in netdClientAccept4() local
68 if (int error = FwmarkClient().send(&command, acceptedSocket)) { in netdClientAccept4()
77 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0}; in netdClientConnect() local
78 if (int error = FwmarkClient().send(&command, sockfd)) { in netdClientConnect()
187 FwmarkCommand command = {FwmarkCommand::SELECT_NETWORK, netId, 0}; in setNetworkForSocket() local
188 return FwmarkClient().send(&command, socketFd); in setNetworkForSocket()
203 FwmarkCommand command = {FwmarkCommand::PROTECT_FROM_VPN, 0, 0}; in protectFromVpn() local
204 return FwmarkClient().send(&command, socketFd); in protectFromVpn()
211 FwmarkCommand command = {FwmarkCommand::SELECT_FOR_USER, 0, uid}; in setNetworkForUser() local
212 return FwmarkClient().send(&command, socketFd); in setNetworkForUser()
[all …]
/system/extras/tests/net_test/
Diproute.py183 def CommandVerb(command): argument
184 return ["NEW", "DEL", "GET", "SET"][command % 4]
187 def CommandSubject(command): argument
188 return ["LINK", "ADDR", "ROUTE", "NEIGH", "RULE"][(command - 16) / 4]
191 def CommandName(command): argument
193 return "RTM_%s%s" % (CommandVerb(command), CommandSubject(command))
195 return "RTM_%d" % command
242 def _Decode(self, command, family, nla_type, nla_data): argument
271 if command == -RTA_METRICS:
275 if command == -RTA_METRICS:
[all …]
/system/extras/simpleperf/
Dcmd_help.cpp59 for (auto& command : Command::GetAllCommands()) { in PrintShortHelp() local
60 printf("%-20s%s\n", command->Name().c_str(), command->ShortHelpString().c_str()); in PrintShortHelp()
64 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand() argument
65 printf("%s\n", command.LongHelpString().c_str()); in PrintLongHelpForOneCommand()
Dmain.cpp41 Command* command = Command::FindCommandByName(args[0]); in main() local
42 if (command == nullptr) { in main()
49 bool result = command->Run(args); in main()
Dcommand.cpp31 for (auto& command : Commands()) { in FindCommandByName() local
32 if (command->Name() == cmd_name) { in FindCommandByName()
33 return command; in FindCommandByName()
Dcommand_test.cpp31 TEST(command, FindCommandByName) { in TEST() argument
40 TEST(command, GetAllCommands) { in TEST() argument
/system/bt/tools/hci/
Dmain.c49 const command_t *command = find_command(argv[0]); in help() local
50 if (!command) { in help()
55 printf("%s %s\n", argv[0], command->help); in help()
130 const command_t *command = find_command(argv[1]); in main() local
131 if (!command) { in main()
136 if (!command->handler) { in main()
141 return command->handler(argc - 2, &argv[2]); in main()
/system/bt/hci/include/
Dhci_layer.h74 typedef void (*command_status_cb)(uint8_t status, BT_HDR *command, void *context);
78 void (*send_low_power_command)(low_power_command_t command);
91 BT_HDR *command,
97 future_t *(*transmit_command_futured)(BT_HDR *command);
Dlow_power_manager.h35 void (*post_command)(low_power_command_t command);
/system/bt/hci/src/
Dlow_power_manager.c97 static void post_command(low_power_command_t command) { in post_command() argument
98 if (command > LPM_WAKE_DEASSERT) { in post_command()
99 LOG_ERROR("%s unknown low power command %d", __func__, command); in post_command()
103 thread_post(thread, event_functions[command], NULL); in post_command()
147 uint8_t command = enable ? BT_VND_LPM_ENABLE : BT_VND_LPM_DISABLE; in enable() local
151 vendor->send_async_command(VENDOR_SET_LPM_MODE, &command); in enable()
Dhci_layer.c97 BT_HDR *command; member
345 BT_HDR *command, in transmit_command() argument
355 uint8_t *stream = command->data + command->offset; in transmit_command()
359 wait_entry->command = command; in transmit_command()
364 command->event = MSG_STACK_TO_HC_HCI_CMD; in transmit_command()
369 static future_t *transmit_command_futured(BT_HDR *command) { in transmit_command_futured() argument
375 uint8_t *stream = command->data + command->offset; in transmit_command_futured()
378 wait_entry->command = command; in transmit_command_futured()
382 command->event = MSG_STACK_TO_HC_HCI_CMD; in transmit_command_futured()
467 packet_fragmenter->fragment_and_dispatch(wait_entry->command); in event_command_ready()
[all …]
/system/extras/ext4_utils/
Dext4_crypt_init_extensions.cpp23 static std::string vold_command(std::string const& command) in vold_command() argument
25 KLOG_INFO(TAG, "Running command %s\n", command.c_str()); in vold_command()
55 std::string actual_command = arbitrary_sequence_number + " " + command; in vold_command()
176 auto command = std::string() + "cryptfs setusercryptopolicies " + dir; in e4crypt_set_user_crypto_policies() local
177 auto result = vold_command(command); in e4crypt_set_user_crypto_policies()
/system/core/logcat/tests/
Dlogcat_test.cpp491 char command[sizeof(buf) + sizeof(comm)]; in TEST() local
492 sprintf(command, comm, buf); in TEST()
495 EXPECT_FALSE((ret = system(command))); in TEST()
497 sprintf(command, "ls -s %s 2>/dev/null", buf); in TEST()
500 EXPECT_TRUE(NULL != (fp = popen(command, "r"))); in TEST()
525 sprintf(command, "rm -rf %s", buf); in TEST()
526 EXPECT_FALSE(system(command)); in TEST()
536 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd)]; in TEST() local
537 sprintf(command, logcat_cmd, tmp_out_dir); in TEST()
540 EXPECT_FALSE((ret = system(command))); in TEST()
[all …]
/system/core/adb/
Dadb_auth.cpp47 p->msg.command = A_AUTH; in send_auth_request()
66 p->msg.command = A_AUTH; in send_auth_response()
85 p->msg.command = A_AUTH; in send_auth_publickey()
Dframebuffer_service.cpp76 const char* command = "screencap"; in framebuffer_service() local
77 const char *args[2] = {command, NULL}; in framebuffer_service()
78 execvp(command, (char**)args); in framebuffer_service()
Dcommandline.cpp435 static std::string format_host_command(const char* command, transport_type type, const char* serial… in format_host_command() argument
437 return android::base::StringPrintf("host-serial:%s:%s", serial, command); in format_host_command()
446 return android::base::StringPrintf("%s:%s", prefix, command); in format_host_command()
702 const std::string& command) { in send_shell_command() argument
706 fd = adb_connect(command, &error); in send_shell_command()
929 static int adb_connect_command(const std::string& command) { in adb_connect_command() argument
931 int fd = adb_connect(command, &error); in adb_connect_command()
941 static int adb_query_command(const std::string& command) { in adb_query_command() argument
944 if (!adb_query(command, &result, &error)) { in adb_query_command()
1257 std::string command; in adb_commandline() local
[all …]
Dadb.cpp238 switch(p->msg.command){ in print_packet()
275 p->msg.command = A_OKAY; in send_ready()
285 p->msg.command = A_CLSE; in send_close()
325 cp->msg.command = A_CNXN; in send_connect()
397 D("handle_packet() %c%c%c%c\n", ((char*) (&(p->msg.command)))[0], in handle_packet()
398 ((char*) (&(p->msg.command)))[1], in handle_packet()
399 ((char*) (&(p->msg.command)))[2], in handle_packet()
400 ((char*) (&(p->msg.command)))[3]); in handle_packet()
403 switch(p->msg.command){ in handle_packet()
530 printf("handle_packet: what is %08x?!\n", p->msg.command); in handle_packet()
/system/core/fastboot/
Dfastboot_protocol.txt24 1. Host sends a command, which is an ascii string in a single
36 b. FAIL -> the requested command failed. The remaining 60 bytes
40 c. OKAY -> the requested command completed successfully. Go to #5
42 d. DATA -> the requested command is ready for the data phase.
47 3. Data phase. Depending on the command, the host or client will
60 reason and consider the command failed. Stop.
92 Host: "powerdown" send a command
94 Client: "FAILunknown command" indicate failure
148 The "getvar:%s" command is used to read client variables which
/system/core/logd/
DLogReader.cpp35 FlushCommand command(*this); in notifyNewLog() local
36 runOnEachSocket(&command); in notifyNewLog()
163 FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence); in onDataAvailable() local
164 command.runSocketCommand(cli); in onDataAvailable()
/system/core/init/
Dbuiltins.cpp557 char command[PROP_VALUE_MAX]; in do_powerctl() local
563 res = expand_props(command, args[1], sizeof(command)); in do_powerctl()
569 if (strncmp(command, "shutdown", 8) == 0) { in do_powerctl()
572 } else if (strncmp(command, "reboot", 6) == 0) { in do_powerctl()
576 ERROR("powerctl: unrecognized command '%s'\n", command); in do_powerctl()
580 if (command[len] == ',') { in do_powerctl()
581 reboot_target = &command[len + 1]; in do_powerctl()
582 } else if (command[len] == '\0') { in do_powerctl()
585 ERROR("powerctl: unrecognized reboot target '%s'\n", &command[len]); in do_powerctl()
Dinit.h28 struct command struct
60 struct command *current; argument
Dreadme.txt33 Each action in the queue is dequeued in sequence and each command in
41 <command>
42 <command>
43 <command>
85 this command. You must instead request the capabilities in-process while
183 exec [ <seclabel> [ <user> [ <group> ]* ] ] -- <command> [ <argument> ]*
184 Fork and execute command with the given arguments. The command starts
192 started after this command is executed)
312 init.command
313 Equal to the command being executed or "" if none.
[all …]
/system/extras/perfprofd/quipper/
Dperf_parser.h54 const string command() const { in command() function
60 void set_command(const string* command) { in set_command()
61 command_ = command; in set_command()
/system/extras/micro_bench/
Dmicro_bench.cpp676 function_t *command = NULL; in processOptions() local
736 } else if (!command) { in processOptions()
739 command = &function_table[j]; in processOptions()
743 if (!command) { in processOptions()
788 return command; in processOptions()
835 function_t *command = processOptions(argc, argv, &cmd_data); in main() local
836 if (!command) { in main()
845 printf("%s\n", command->name); in main()
846 return (*command->ptr)(command->name, cmd_data, command->func); in main()

123