Searched refs:mSocketProvider (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsSocketProviderTest.java | 125 private MdnsSocketProvider mSocketProvider; field in MdnsSocketProviderTest 175 mSocketProvider = new MdnsSocketProvider(mContext, mHandlerThread.getLooper(), mDeps, mLog, in setUp() 214 runOnHandler(mSocketProvider::startMonitoringSockets); 221 runOnHandler(mSocketProvider::startNetLinkMonitor); 340 runOnHandler(() -> mSocketProvider.requestSocket(TEST_NETWORK, testCallback1)); 349 runOnHandler(() -> mSocketProvider.requestSocket(TEST_NETWORK, testCallback2)); 356 runOnHandler(() -> mSocketProvider.requestSocket(null /* network */, testCallback3)); 381 runOnHandler(() -> mSocketProvider.unrequestSocket(testCallback1)); 398 runOnHandler(() -> mSocketProvider.unrequestSocket(testCallback3)); 431 runOnHandler(() -> mSocketProvider.requestSocket(null /* network */, testCallbackAll)); [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsMultinetworkSocketClient.java | 52 @NonNull private final MdnsSocketProvider mSocketProvider; field in MdnsMultinetworkSocketClient 66 mSocketProvider = provider; in MdnsMultinetworkSocketClient() 189 mSocketProvider.requestSocket(network, callback); in notifyNetworkRequested() 204 mSocketProvider.unrequestSocket(callback); in notifyNetworkUnrequested()
|
D | MdnsAdvertiser.java | 81 private final MdnsSocketProvider mSocketProvider; field in MdnsAdvertiser 356 mSocketProvider.requestSocket(requestedNetwork, this); in InterfaceAdvertiserRequest() 395 mSocketProvider.unrequestSocket(this); in onAdvertiserDestroyed() 825 mSocketProvider = socketProvider; in MdnsAdvertiser()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 195 @Mock MdnsSocketProvider mSocketProvider; field in NsdServiceTest 244 doReturn(mSocketProvider).when(mDeps).makeMdnsSocketProvider(any(), any(), any(), any()); in setUp() 1011 verify(mSocketProvider).startMonitoringSockets(); in testRegisterAndUnregisterServiceInfoCallback() 1170 verify(mSocketProvider).startMonitoringSockets(); in testDiscoveryWithMdnsDiscoveryManager() 1232 verify(mSocketProvider, timeout(CLEANUP_DELAY_MS + TIMEOUT_MS)).requestStopWhenInactive(); in testDiscoveryWithMdnsDiscoveryManager() 1317 verify(mSocketProvider).startMonitoringSockets(); in testResolutionWithMdnsDiscoveryManager() 1371 verify(mSocketProvider, timeout(CLEANUP_DELAY_MS + TIMEOUT_MS)).requestStopWhenInactive(); in testResolutionWithMdnsDiscoveryManager() 1484 verify(mSocketProvider).startMonitoringSockets(); in testAdvertiseWithMdnsAdvertiser() 1510 verify(mSocketProvider, timeout(TIMEOUT_MS)).requestStopWhenInactive(); in testAdvertiseWithMdnsAdvertiser() 1674 verify(mSocketProvider).startMonitoringSockets(); in testStopServiceResolutionWithMdnsDiscoveryManager() [all …]
|