Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSuggestionsManagerTest.java956 ArgumentCaptor<Integer> uidCaptor = ArgumentCaptor.forClass(Integer.class); in testOnNetworkConnectionSuccessWithMultipleMatch() local
958 .enforceCanAccessScanResults(packageNameCaptor.capture(), uidCaptor.capture()); in testOnNetworkConnectionSuccessWithMultipleMatch()
960 assertEquals(Integer.valueOf(TEST_UID_1), uidCaptor.getValue()); in testOnNetworkConnectionSuccessWithMultipleMatch()
963 assertEquals(Integer.valueOf(TEST_UID_2), uidCaptor.getValue()); in testOnNetworkConnectionSuccessWithMultipleMatch()
1018 ArgumentCaptor<Integer> uidCaptor = ArgumentCaptor.forClass(Integer.class); in testOnNetworkConnectionSuccessWithBssidMultipleMatch() local
1020 .enforceCanAccessScanResults(packageNameCaptor.capture(), uidCaptor.capture()); in testOnNetworkConnectionSuccessWithBssidMultipleMatch()
1022 assertEquals(Integer.valueOf(TEST_UID_1), uidCaptor.getValue()); in testOnNetworkConnectionSuccessWithBssidMultipleMatch()
1025 assertEquals(Integer.valueOf(TEST_UID_2), uidCaptor.getValue()); in testOnNetworkConnectionSuccessWithBssidMultipleMatch()
1081 ArgumentCaptor<Integer> uidCaptor = ArgumentCaptor.forClass(Integer.class); in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch() local
1083 .enforceCanAccessScanResults(packageNameCaptor.capture(), uidCaptor.capture()); in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java6670 ArgumentCaptor<int[]> uidCaptor = ArgumentCaptor.forClass(int[].class); in testFullyRoutedVpnResultsInInterfaceFilteringRules() local
6671 verify(mMockNetd, times(2)).firewallAddUidInterfaceRules(eq("tun0"), uidCaptor.capture()); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6672 assertContainsExactly(uidCaptor.getAllValues().get(0), APP1_UID, APP2_UID); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6673 assertContainsExactly(uidCaptor.getAllValues().get(1), APP1_UID, APP2_UID); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6680 verify(mMockNetd).firewallRemoveUidInterfaceRules(uidCaptor.capture()); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6681 assertContainsExactly(uidCaptor.getValue(), APP1_UID, APP2_UID); in testFullyRoutedVpnResultsInInterfaceFilteringRules()
6728 ArgumentCaptor<int[]> uidCaptor = ArgumentCaptor.forClass(int[].class); in testVpnHandoverChangesInterfaceFilteringRule() local
6729 verify(mMockNetd, times(2)).firewallAddUidInterfaceRules(eq("tun0"), uidCaptor.capture()); in testVpnHandoverChangesInterfaceFilteringRule()
6730 assertContainsExactly(uidCaptor.getAllValues().get(0), APP1_UID, APP2_UID); in testVpnHandoverChangesInterfaceFilteringRule()
6731 assertContainsExactly(uidCaptor.getAllValues().get(1), APP1_UID, APP2_UID); in testVpnHandoverChangesInterfaceFilteringRule()
[all …]