/system/netd/server/ |
D | StrictController.cpp | 154 const std::string commands = Join(commandList, '\n'); in resetChains() local 155 return (execIptablesRestore(V4V6, commands) == 0) ? 0 : -EREMOTEIO; in resetChains() 167 std::vector<std::string> commands; in setUidCleartextPenalty() local 170 commands = { in setUidCleartextPenalty() 181 commands.push_back("*filter"); in setUidCleartextPenalty() 182 commands.push_back(StringPrintf(":%s -", perUidChain.c_str())); in setUidCleartextPenalty() 183 commands.push_back(StringPrintf("-I %s -m owner --uid-owner %d -j %s", in setUidCleartextPenalty() 185 commands.push_back(StringPrintf("-I %s -m owner --uid-owner %d -j %s", in setUidCleartextPenalty() 189 commands.push_back(StringPrintf("-A %s -j %s", perUidChain.c_str(), LOCAL_PENALTY_LOG)); in setUidCleartextPenalty() 191 commands.push_back(StringPrintf("-A %s -j %s", perUidChain.c_str(), in setUidCleartextPenalty() [all …]
|
D | FirewallController.cpp | 283 std::string commands; in makeCriticalCommands() local 286 StringAppendF(&commands, "-A %s -p icmpv6 --icmpv6-type %s -j RETURN\n", in makeCriticalCommands() 290 return commands; in makeCriticalCommands() 295 std::string commands; in makeUidRules() local 296 StringAppendF(&commands, "*filter\n:%s -\n", name); in makeUidRules() 301 StringAppendF(&commands, "-A %s -m owner --uid-owner %d -j RETURN\n", name, uid); in makeUidRules() 305 StringAppendF(&commands, in makeUidRules() 310 StringAppendF(&commands, in makeUidRules() 314 StringAppendF(&commands, "-A %s -p esp -j RETURN\n", name); in makeUidRules() 318 StringAppendF(&commands, "-A %s -i lo -j RETURN\n", name); in makeUidRules() [all …]
|
D | IptablesBaseTest.h | 31 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);
|
D | IptablesBaseTest.cpp | 75 const std::string& commands, in fakeExecIptablesRestoreWithOutput() argument 77 sRestoreCmds.push_back({ target, commands }); in fakeExecIptablesRestoreWithOutput() 87 int IptablesBaseTest::fakeExecIptablesRestore(IptablesTarget target, const std::string& commands) { in fakeExecIptablesRestore() argument 88 return fakeExecIptablesRestoreWithOutput(target, commands, nullptr); in fakeExecIptablesRestore()
|
D | NetdConstants.cpp | 37 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, in execIptablesRestoreWithOutput() argument 39 return android::net::gCtls->iptablesRestoreCtrl.execute(target, commands, output); in execIptablesRestoreWithOutput() 42 int execIptablesRestore(IptablesTarget target, const std::string& commands) { in execIptablesRestore() argument 43 return execIptablesRestoreWithOutput(target, commands, nullptr); in execIptablesRestore()
|
D | NetdConstants.h | 32 int execIptablesRestore(IptablesTarget target, const std::string& commands); 33 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
|
D | IptablesRestoreController.h | 33 virtual int execute(const IptablesTarget target, const std::string& commands, 45 int execute(const IptablesTarget target, const std::string& commands,
|
D | BandwidthController.cpp | 305 std::string commands = Join(IPT_FLUSH_COMMANDS, '\n'); in flushCleanTables() local 306 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables() 324 std::string commands = Join(getBasicAccountingCommands(mBpfSupported), '\n'); in enableBandwidthControl() local 325 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl() 773 std::vector<std::string> commands = { in setCostlyAlert() local 778 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr); in setCostlyAlert() 803 std::vector<std::string> commands = { in removeCostlyAlert() local 808 if (iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr) != 0) { in removeCostlyAlert()
|
D | StrictController.h | 49 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
|
D | TetherControllerTest.cpp | 247 ExpectedIptablesCommands commands; in allNewNatCommands() local 252 appendAll(commands, setupFirstIPv4Commands); in allNewNatCommands() 255 appendAll(commands, setupFirstIPv6Commands); in allNewNatCommands() 258 appendAll(commands, ALERT_ADD_COMMAND); in allNewNatCommands() 260 appendAll(commands, startFirstNatCommands); in allNewNatCommands() 262 return commands; in allNewNatCommands()
|
/system/core/init/ |
D | init_test.cpp | 44 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) { in TestInit() argument 57 for (const auto& command : commands) { in TestInit() 67 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) { in TestInitText() argument 71 TestInit(tf.path, test_function_map, commands, service_list); in TestInitText() 91 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local 94 TestInitText(init_script, test_function_map, commands, &service_list); in TEST() 154 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local 157 TestInitText(init_script, test_function_map, commands, &service_list); in TEST() 236 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local 240 TestInit(start.path, test_function_map, commands, &service_list); in TEST()
|
/system/core/adb/client/ |
D | console.cpp | 116 std::string commands = adb_construct_auth_command(); in adb_send_emulator_command() local 119 commands.append(argv[i]); in adb_send_emulator_command() 120 commands.push_back(i == argc - 1 ? '\n' : ' '); in adb_send_emulator_command() 123 commands.append("quit\n"); in adb_send_emulator_command() 125 if (!WriteFdExactly(fd, commands)) { in adb_send_emulator_command()
|
/system/bt/tools/hci/ |
D | main.c | 38 static const command_t commands[] = { variable 205 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in find_command() 206 if (!strcmp(commands[i].name, name)) return &commands[i]; in find_command() 213 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in usage() 214 printf(" %s\n", commands[i].name); in usage()
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java | 16 app_process /data/framework com.android.commands.hidl_test_java.HidlTestJava -c \ 23 app_process /data/framework com.android.commands.hidl_test_java.HidlTestJava -s &
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | hal_drm.te | 34 # only allow unprivileged socket ioctl commands 46 # do not allow privileged socket ioctl commands
|
D | cameraserver.te | 56 # Allow shell commands from ADB for CTS testing/dumping 69 # Allow shell commands from ADB for CTS testing/dumping
|
/system/sepolicy/public/ |
D | hal_drm.te | 39 # only allow unprivileged socket ioctl commands 51 # do not allow privileged socket ioctl commands
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | hal_drm.te | 39 # only allow unprivileged socket ioctl commands 51 # do not allow privileged socket ioctl commands
|
D | cameraserver.te | 56 # Allow shell commands from ADB for CTS testing/dumping 69 # Allow shell commands from ADB for CTS testing/dumping
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | hal_drm.te | 40 # only allow unprivileged socket ioctl commands 52 # do not allow privileged socket ioctl commands
|
D | cameraserver.te | 53 # Allow shell commands from ADB for CTS testing/dumping 60 # Allow shell commands from ADB for CTS testing/dumping
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | hal_drm.te | 47 # only allow unprivileged socket ioctl commands 59 # do not allow privileged socket ioctl commands
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | hal_drm.te | 47 # only allow unprivileged socket ioctl commands 59 # do not allow privileged socket ioctl commands
|
/system/core/adb/daemon/ |
D | shell_service_test.cpp | 207 const char* commands[] = {"TEST_STR=abc123", in TEST_F() local 212 for (std::string command : commands) { in TEST_F() 224 for (const char* command : commands) { in TEST_F()
|
/system/iorap/src/perfetto/ |
D | main.cc | 99 auto /*observable<PerfettoStreamCommand>*/ commands = in CollectPerfettoTraceBufferViaAbstractions() local 114 producer_factory.CreateTraceStream(commands); in CollectPerfettoTraceBufferViaAbstractions()
|