Searched refs:commands (Results 1 - 22 of 22) sorted by relevance

/system/netd/server/
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.cpp267 std::string commands; local
270 StringAppendF(&commands, "-A %s -p icmpv6 --icmpv6-type %s -j RETURN\n",
274 return commands;
279 std::string commands; local
280 StringAppendF(&commands, "*filter\n:%s -\n", name);
285 StringAppendF(&commands, "-A %s -m owner --uid-owner %d -j RETURN\n", name, uid);
289 StringAppendF(&commands,
294 StringAppendF(&commands,
298 StringAppendF(&commands, "-A %s -p esp -j RETURN\n", name);
302 StringAppendF(&commands, "
[all...]
H A DStrictController.h48 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
H A DIptablesBaseTest.h31 static int fakeExecIptablesRestore(IptablesTarget target, const std::string& commands);
32 static int fakeExecIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
35 const std::string& commands, std::string *output);
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 DIptablesRestoreController.h32 // Execute |commands| on the given |target|, and populate |output| with stdout.
33 virtual int execute(const IptablesTarget target, const std::string& commands,
45 int execute(const IptablesTarget target, const std::string& commands,
H A DNetdConstants.h43 int execIptablesRestore(IptablesTarget target, const std::string& commands);
44 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
93 * coexist with the commands in CommandListener.cpp. These are presumed not thread-safe because
95 * FrameworkListener that passes in commands one at a time.
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 DFirewallController.h87 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
H A DTetherControllerTest.cpp176 ExpectedIptablesCommands commands; local
181 appendAll(commands, setupFirstIPv4Commands);
184 appendAll(commands, setupFirstIPv6Commands);
186 appendAll(commands, startFirstNatCommands);
188 return commands;
H A DBandwidthController.cpp179 * Basic commands for creation of hooks into data accounting and data boxes.
181 * Included in these commands are rules to prevent the double-counting of IPsec
281 std::string commands = Join(IPT_FLUSH_COMMANDS, '\n'); local
282 iptablesRestoreFunction(V4V6, commands, nullptr);
309 std::string commands = Join(getBasicAccountingCommands(), '\n'); local
310 return iptablesRestoreFunction(V4V6, commands, nullptr);
790 std::vector<std::string> commands = { local
795 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr);
819 std::vector<std::string> commands = { local
824 if (iptablesRestoreFunction(V4V6, Join(commands, ""), nullpt
[all...]
H A DWakeupControllerTest.cpp56 MOCK_METHOD3(execute, int(const IptablesTarget target, const std::string& commands,
/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.cpp206 const char* commands[] = {"TEST_STR=abc123", local
211 for (std::string command : commands) {
223 for (const char* command : commands) {
/system/core/init/
H A Dinit_test.cpp40 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) {
52 for (const auto& command : commands) {
62 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) {
66 TestInit(tf.path, test_function_map, commands, service_list);
81 std::vector<ActionManagerCommand> commands{trigger_boot};
84 TestInitText(init_script, test_function_map, commands, &service_list);
110 std::vector<ActionManagerCommand> commands{trigger_boot};
113 TestInitText(init_script, test_function_map, commands, &service_list);
191 std::vector<ActionManagerCommand> commands{trigger_boot};
195 TestInit(start.path, test_function_map, commands,
39 TestInit(const std::string& init_script_file, const TestFunctionMap& test_function_map, const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) argument
61 TestInitText(const std::string& init_script, const TestFunctionMap& test_function_map, const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) argument
[all...]
/system/tpm/trunks/generator/
H A Dgenerator_test.py235 commands = parser.Parse()
236 self.assertIsNotNone(commands)
243 commands = parser.Parse()
244 self.assertEqual(len(commands), 1)
245 self.assertEqual(commands[0].name, 'TPM2_Test')
246 self.assertEqual(commands[0].command_code, 'TPM_CC_Test')
248 self.assertEqual(len(commands[0].request_args), 1)
249 self.assertEqual(commands[0].request_args[0]['type'], 'UINT16')
250 self.assertEqual(commands[0].request_args[0]['name'], 'input')
251 self.assertIsNotNone(commands[
[all...]
H A Dgenerator.py19 """A code generator for TPM 2.0 structures and commands.
22 extract_structures.sh script and a commands file as emitted by the
47 Sample input for commands looks like this:
1754 # These commands have handles that are serialized into the parameter
1867 """Parses everything in a commands file.
1872 commands = []
1876 return commands
1883 commands.append(cmd)
1884 return commands
1952 def GenerateHandleCountFunctions(commands, out_fil
[all...]
/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/bt/stack/include/
H A Dbtm_ble_api.h767 std::vector<ApcfCommand> commands,
/system/bt/service/client/
H A Dmain.cc1068 << "Type \"help\" to see possible commands.\n"
1073 // Add commands from the command line, if they exist.
1085 vector<string> commands = base::SplitString( local
1087 for (string command : commands) {
1091 commands.clear();
/system/bt/stack/btm/
H A Dbtm_ble_adv_filter.cc600 std::vector<ApcfCommand> commands,
608 for (const ApcfCommand& cmd : commands) {
599 BTM_LE_PF_set(tBTM_BLE_PF_FILT_INDEX filt_index, std::vector<ApcfCommand> commands, tBTM_BLE_PF_CFG_CBACK cb) argument
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
H A DHidlTestJava.java17 package com.android.commands.hidl_test_java;

Completed in 323 milliseconds