Home
last modified time | relevance | path

Searched refs:uidCaptor (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java6662 ArgumentCaptor<int[]> uidCaptor = ArgumentCaptor.forClass(int[].class); in testFullyRoutedVpnResultsInInterfaceFilteringRules() local
6663 verify(mMockNetd, times(2)).firewallAddUidInterfaceRules(eq("tun0"), uidCaptor.capture()); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6664 assertContainsExactly(uidCaptor.getAllValues().get(0), APP1_UID, APP2_UID); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6665 assertContainsExactly(uidCaptor.getAllValues().get(1), APP1_UID, APP2_UID); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6672 verify(mMockNetd).firewallRemoveUidInterfaceRules(uidCaptor.capture()); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6673 assertContainsExactly(uidCaptor.getValue(), APP1_UID, APP2_UID); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6720 ArgumentCaptor<int[]> uidCaptor = ArgumentCaptor.forClass(int[].class); in testVpnHandoverChangesInterfaceFilteringRule() local
6721 verify(mMockNetd, times(2)).firewallAddUidInterfaceRules(eq("tun0"), uidCaptor.capture()); in testVpnHandoverChangesInterfaceFilteringRule()
6722 assertContainsExactly(uidCaptor.getAllValues().get(0), APP1_UID, APP2_UID); in testVpnHandoverChangesInterfaceFilteringRule()
6723 assertContainsExactly(uidCaptor.getAllValues().get(1), APP1_UID, APP2_UID); in testVpnHandoverChangesInterfaceFilteringRule()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSuggestionsManagerTest.java1333 ArgumentCaptor<Integer> uidCaptor = ArgumentCaptor.forClass(Integer.class); in testOnNetworkConnectionSuccessWithMultipleMatch() local
1335 packageNameCaptor.capture(), featureIdCaptor.capture(), uidCaptor.capture(), in testOnNetworkConnectionSuccessWithMultipleMatch()
1339 assertEquals(Integer.valueOf(TEST_UID_1), uidCaptor.getValue()); in testOnNetworkConnectionSuccessWithMultipleMatch()
1393 ArgumentCaptor<Integer> uidCaptor = ArgumentCaptor.forClass(Integer.class); in testOnNetworkConnectionSuccessWithBssidMultipleMatch() local
1395 packageNameCaptor.capture(), featureIdCaptor.capture(), uidCaptor.capture(), in testOnNetworkConnectionSuccessWithBssidMultipleMatch()
1399 assertEquals(Integer.valueOf(TEST_UID_1), uidCaptor.getValue()); in testOnNetworkConnectionSuccessWithBssidMultipleMatch()
1456 ArgumentCaptor<Integer> uidCaptor = ArgumentCaptor.forClass(Integer.class); in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch() local
1458 packageNameCaptor.capture(), featureIdCaptor.capture(), uidCaptor.capture(), in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch()
1462 assertEquals(Integer.valueOf(TEST_UID_1), uidCaptor.getValue()); in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch()