Home
last modified time | relevance | path

Searched refs:idCaptor (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java1485 final ArgumentCaptor<Integer> idCaptor = ArgumentCaptor.forClass(Integer.class); in testAdvertiseWithMdnsAdvertiser() local
1486 verify(mAdvertiser).addOrUpdateService(idCaptor.capture(), argThat(info -> in testAdvertiseWithMdnsAdvertiser()
1491 final int regId = idCaptor.getValue(); in testAdvertiseWithMdnsAdvertiser()
1507 verify(mAdvertiser).removeService(idCaptor.getValue()); in testAdvertiseWithMdnsAdvertiser()
1562 final ArgumentCaptor<Integer> idCaptor = ArgumentCaptor.forClass(Integer.class); in testAdvertiseWithMdnsAdvertiser_LongServiceName() local
1566 idCaptor.capture(), in testAdvertiseWithMdnsAdvertiser_LongServiceName()
1573 final int regId = idCaptor.getValue(); in testAdvertiseWithMdnsAdvertiser_LongServiceName()
1622 final ArgumentCaptor<Integer> idCaptor = ArgumentCaptor.forClass(Integer.class); in runValidTtlAdvertisingTest() local
1625 verify(mAdvertiser).addOrUpdateService(idCaptor.capture(), any(), in runValidTtlAdvertisingTest()
1630 final int regId = idCaptor.getValue(); in runValidTtlAdvertisingTest()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalAidlImplTest.java597 ArgumentCaptor<byte[]> idCaptor = ArgumentCaptor.forClass(byte[].class); in testSendNetworkEapIdentityResponse() local
600 idCaptor.capture(), encryptedIdCaptor.capture()); in testSendNetworkEapIdentityResponse()
604 assertEquals(identityStr, NativeUtil.stringFromByteArray(idCaptor.getValue())); in testSendNetworkEapIdentityResponse()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java5970 ArgumentCaptor<Integer> idCaptor = ArgumentCaptor.forClass(int.class); in testAddServiceRequestNoOverflow() local
5971 verify(mTestWifiP2pServiceRequest).setTransactionId(idCaptor.capture()); in testAddServiceRequestNoOverflow()
5972 assertTrue(idCaptor.getValue().intValue() > 0); in testAddServiceRequestNoOverflow()