Home
last modified time | relevance | path

Searched refs:addUidInterfaceRules (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/tests/native/utilities/
Dfirewall.h35 Result<void> addUidInterfaceRules(const std::string& ifName, const std::vector<int32_t>& uids);
Dfirewall.cpp108 Result<void> Firewall::addUidInterfaceRules(const std::string& ifName, in addUidInterfaceRules() function in Firewall
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java195 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()
DConnectivityServiceTest.java10516 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/
DPermissionMonitorTest.java834 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/
DBpfNetMaps.java666 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/
DPermissionMonitor.java1112 mBpfNetMaps.addUidInterfaceRules(iface, toIntArray(uids)); in updateVpnUidsInterfaceRules()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp7166 if (auto r = mFw->addUidInterfaceRules(mIfname, {uid}); !r.ok()) { in enableVpnIsolation()