Searched refs:addUidInterfaceRules (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Connectivity/tests/native/utilities/ |
D | firewall.h | 35 Result<void> addUidInterfaceRules(const std::string& ifName, const std::vector<int32_t>& uids);
|
D | firewall.cpp | 108 Result<void> Firewall::addUidInterfaceRules(const std::string& ifName, in addUidInterfaceRules() function in Firewall
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | BpfNetMapsTest.java | 195 mBpfNetMaps.addUidInterfaceRules(TEST_IF_NAME, TEST_UIDS); in testBpfNetMapsBeforeT() 412 mBpfNetMaps.addUidInterfaceRules(TEST_IF_NAME, TEST_UIDS); in testAddUidInterfaceRules() 428 mBpfNetMaps.addUidInterfaceRules(TEST_IF_NAME, TEST_UIDS); in testAddUidInterfaceRulesWithOtherMatch() 444 mBpfNetMaps.addUidInterfaceRules(TEST_IF_NAME, TEST_UIDS); in testAddUidInterfaceRulesWithExistingIifMatch() 455 () -> mBpfNetMaps.addUidInterfaceRules(TEST_IF_NAME, TEST_UIDS)); in testAddUidInterfaceRulesGetIfIndexFail() 468 mBpfNetMaps.addUidInterfaceRules(null /* ifName */, TEST_UIDS); in testAddUidInterfaceRulesWithNullInterface()
|
D | ConnectivityServiceTest.java | 10516 verify(mBpfNetMaps, never()).addUidInterfaceRules(any(), any()); 12101 verify(mBpfNetMaps, times(2)).addUidInterfaceRules(eq("tun0"), uidCaptor.capture()); 12126 verify(mBpfNetMaps, times(2)).addUidInterfaceRules( 12148 verify(mBpfNetMaps, never()).addUidInterfaceRules(any(), any()); 12187 verify(mBpfNetMaps, times(2)).addUidInterfaceRules(eq("tun0"), uidCaptor.capture()); 12200 inOrder.verify(mBpfNetMaps).addUidInterfaceRules(eq("tun1"), uidCaptor.capture()); 12221 verify(mBpfNetMaps).addUidInterfaceRules(eq("tun1"), uidCaptor.capture()); 12251 inOrder.verify(mBpfNetMaps).addUidInterfaceRules(eq("tun0"), uidCaptor.capture());
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 834 verify(mBpfNetMaps).addUidInterfaceRules(eq(ifName), aryEq(new int[]{MOCK_UID11})); in doTestUidFilteringDuringVpnConnectDisconnectAndUidUpdates() 842 verify(mBpfNetMaps).addUidInterfaceRules(eq(ifName), aryEq(new int[]{MOCK_UID11})); in doTestUidFilteringDuringVpnConnectDisconnectAndUidUpdates() 851 verify(mBpfNetMaps).addUidInterfaceRules(eq(ifName), aryEq(new int[]{MOCK_UID12})); in doTestUidFilteringDuringVpnConnectDisconnectAndUidUpdates() 888 verify(mBpfNetMaps).addUidInterfaceRules(eq(ifName), aryEq(new int[]{MOCK_UID11})); in doTestUidFilteringDuringPackageInstallAndUninstall() 889 verify(mBpfNetMaps).addUidInterfaceRules(eq(ifName), aryEq(new int[]{MOCK_UID21})); in doTestUidFilteringDuringPackageInstallAndUninstall()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | BpfNetMaps.java | 666 public void addUidInterfaceRules(final String ifName, final int[] uids) throws RemoteException { in addUidInterfaceRules() method in BpfNetMaps
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | PermissionMonitor.java | 1112 mBpfNetMaps.addUidInterfaceRules(iface, toIntArray(uids)); in updateVpnUidsInterfaceRules()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 7166 if (auto r = mFw->addUidInterfaceRules(mIfname, {uid}); !r.ok()) { in enableVpnIsolation()
|