Searched defs:commands (Results 1 - 11 of 11) sorted by relevance

/system/core/adb/
H A Dconsole.cpp116 std::string commands = adb_construct_auth_command(); local
119 commands.append(argv[i]);
120 commands.push_back(i == argc - 1 ? '\n' : ' ');
123 commands.append("quit\n");
125 if (!WriteFdExactly(fd, commands)) {
H A Dshell_service_test.cpp226 const char* commands[] = {"TEST_STR=abc123", local
231 for (std::string command : commands) {
243 for (const char* command : commands) {
/system/bt/tools/hci/
H A Dmain.c37 static const command_t commands[] = { variable
204 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i)
205 if (!strcmp(commands[i].name, name)) return &commands[i];
212 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i)
213 printf(" %s\n", commands[i].name);
/system/core/init/
H A Dinit_test.cpp58 const std::vector<ActionManagerCommand>& commands) {
69 for (const auto& command : commands) {
79 const std::vector<ActionManagerCommand>& commands) {
83 TestInit(tf.path, test_function_map, commands);
98 std::vector<ActionManagerCommand> commands{trigger_boot};
100 TestInitText(init_script, test_function_map, commands);
126 std::vector<ActionManagerCommand> commands{trigger_boot};
128 TestInitText(init_script, test_function_map, commands);
185 std::vector<ActionManagerCommand> commands{trigger_boot};
187 TestInit(start.path, test_function_map, commands);
57 TestInit(const std::string& init_script_file, const TestFunctionMap& test_function_map, const std::vector<ActionManagerCommand>& commands) argument
78 TestInitText(const std::string& init_script, const TestFunctionMap& test_function_map, const std::vector<ActionManagerCommand>& commands) argument
[all...]
/system/netd/server/
H A DIptablesBaseTest.cpp75 const std::string& commands,
77 sRestoreCmds.push_back({ target, commands });
87 int IptablesBaseTest::fakeExecIptablesRestore(IptablesTarget target, const std::string& commands) { argument
88 return fakeExecIptablesRestoreWithOutput(target, commands, nullptr);
74 fakeExecIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, std::string *output) argument
H A DNetdConstants.cpp45 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, argument
47 return android::net::gCtls->iptablesRestoreCtrl.execute(target, commands, output);
50 int execIptablesRestore(IptablesTarget target, const std::string& commands) { argument
51 return execIptablesRestoreWithOutput(target, commands, nullptr);
H A DStrictController.cpp154 const std::string commands = Join(commandList, '\n'); local
155 return execIptablesRestore(V4V6, commands);
162 // exist, put each UID's rules in a chain specific to that UID. That way, the commands we need
167 std::vector<std::string> commands; local
170 commands = {
181 commands.push_back("*filter");
182 commands.push_back(StringPrintf(":%s -", perUidChain.c_str()));
183 commands.push_back(StringPrintf("-I %s -m owner --uid-owner %d -j %s",
185 commands.push_back(StringPrintf("-I %s -m owner --uid-owner %d -j %s",
189 commands
[all...]
H A DFirewallController.cpp245 std::string commands; local
248 StringAppendF(&commands, "-A %s -p icmpv6 --icmpv6-type %s -j RETURN\n",
252 return commands;
257 std::string commands; local
258 StringAppendF(&commands, "*filter\n:%s -\n", name);
263 StringAppendF(&commands, "-A %s -m owner --uid-owner %d -j RETURN\n", name, uid);
267 StringAppendF(&commands,
272 StringAppendF(&commands, "-A %s -i lo -j RETURN\n", name);
273 StringAppendF(&commands, "-A %s -o lo -j RETURN\n", name);
277 StringAppendF(&commands, "
[all...]
H A DBandwidthController.cpp215 std::string commands = Join(IPT_FLUSH_COMMANDS, '\n'); local
216 iptablesRestoreFunction(V4V6, commands, nullptr);
242 std::string commands = Join(IPT_BASIC_ACCOUNTING_COMMANDS, '\n'); local
243 return iptablesRestoreFunction(V4V6, commands, nullptr);
719 std::vector<std::string> commands = { local
724 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr);
748 std::vector<std::string> commands = { local
753 if (iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr) != 0) {
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
H A DHidlTestJava.java17 package com.android.commands.hidl_test_java;
/system/bt/service/client/
H A Dmain.cc1067 << "Type \"help\" to see possible commands.\n"
1072 // Add commands from the command line, if they exist.
1084 vector<string> commands = base::SplitString( local
1086 for (string command : commands) {
1090 commands.clear();

Completed in 169 milliseconds