/system/netd/server/ |
D | Controllers.h | 61 static std::set<std::string> findExistingChildChains(const IptablesTarget target, 64 static void createChildChains(IptablesTarget target, const char* table, const char* parentChain, 66 static int (*execIptablesRestore)(IptablesTarget, const std::string&); 67 static int (*execIptablesRestoreWithOutput)(IptablesTarget, const std::string&, std::string *);
|
D | IptablesRestoreControllerTest.cpp | 203 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F() 208 EXPECT_EQ(0, con.execute(IptablesTarget::V6, "#Test\n", nullptr)); in TEST_F() 209 EXPECT_EQ(0, con.execute(IptablesTarget::V4, "#Test\n", nullptr)); in TEST_F() 211 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F() 223 IptablesTarget target = (IptablesTarget) (i % 3); in TEST_F() 236 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F() 250 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F() 284 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() 288 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() 289 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() [all …]
|
D | IptablesBaseTest.h | 29 typedef std::vector<std::pair<IptablesTarget, std::string>> ExpectedIptablesCommands; 33 static int fakeExecIptablesRestore(IptablesTarget target, const std::string& commands); 34 static int fakeExecIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, 36 static int fakeExecIptablesRestoreCommand(IptablesTarget target, const std::string& table,
|
D | NetdConstants.h | 32 enum IptablesTarget { V4, V6, V4V6 }; enum 34 int execIptablesRestore(IptablesTarget target, const std::string& commands); 35 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, 37 int execIptablesRestoreCommand(IptablesTarget target, const std::string& table,
|
D | FirewallController.h | 53 static std::string makeCriticalCommands(IptablesTarget target, const char* chainName); 67 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
|
D | IptablesBaseTest.cpp | 74 int IptablesBaseTest::fakeExecIptablesRestoreWithOutput(IptablesTarget target, in fakeExecIptablesRestoreWithOutput() 87 int IptablesBaseTest::fakeExecIptablesRestore(IptablesTarget target, const std::string& commands) { in fakeExecIptablesRestore() 91 int IptablesBaseTest::fakeExecIptablesRestoreCommand(IptablesTarget target, in fakeExecIptablesRestoreCommand()
|
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 | NetdConstants.cpp | 37 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, in execIptablesRestoreWithOutput() 42 int execIptablesRestore(IptablesTarget target, const std::string& commands) { in execIptablesRestore() 46 int execIptablesRestoreCommand(IptablesTarget target, const std::string& table, in execIptablesRestoreCommand()
|
D | BandwidthController.h | 86 std::string makeDataSaverCommand(IptablesTarget target, bool enable); 116 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *);
|
D | StrictController.h | 49 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
|
D | IdletimerController.h | 46 static int (*execIptablesRestore)(IptablesTarget, const std::string&);
|
D | StrictControllerTest.cpp | 103 std::vector<std::pair<IptablesTarget, std::string>> expected = { in TEST_F()
|
D | Controllers.cpp | 123 std::set<std::string> Controllers::findExistingChildChains(const IptablesTarget target, in findExistingChildChains() 163 void Controllers::createChildChains(IptablesTarget target, const char* table, in createChildChains()
|
D | FirewallController.cpp | 151 std::string FirewallController::makeCriticalCommands(IptablesTarget target, const char* chainName) { in makeCriticalCommands()
|
D | ControllersTest.cpp | 45 std::set<std::string> findExistingChildChains(IptablesTarget a, const char* b, const char*c) { in findExistingChildChains()
|
D | TetherController.h | 180 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *);
|
D | RouteController.h | 197 static int (*iptablesRestoreCommandFunction)(IptablesTarget, const std::string&,
|
D | IptablesRestoreController.cpp | 334 int IptablesRestoreController::execute(const IptablesTarget target, const std::string& command, in execute()
|
D | WakeupControllerTest.cpp | 56 MOCK_METHOD3(execute, int(const IptablesTarget target, const std::string& commands,
|
D | BandwidthController.cpp | 290 std::string BandwidthController::makeDataSaverCommand(IptablesTarget target, bool enable) { in makeDataSaverCommand()
|
D | TetherController.cpp | 908 for (const IptablesTarget target : {V4, V6}) { in getTetherStats()
|