Home
last modified time | relevance | path

Searched refs:SocketCallback (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsMultinetworkSocketClientTest.java19 import static com.android.server.connectivity.mdns.MdnsSocketProvider.SocketCallback;
101 private SocketCallback expectSocketCallback() { in expectSocketCallback()
105 private SocketCallback expectSocketCallback(MdnsServiceBrowserListener listener, in expectSocketCallback()
111 private SocketCallback expectSocketCallback(MdnsServiceBrowserListener listener, in expectSocketCallback()
113 final ArgumentCaptor<SocketCallback> callbackCaptor = in expectSocketCallback()
114 ArgumentCaptor.forClass(SocketCallback.class); in expectSocketCallback()
135 final SocketCallback callback = expectSocketCallback(); in testSendPacket()
196 final SocketCallback callback = expectSocketCallback(); in testReceivePacket()
245 final SocketCallback callback = expectSocketCallback(mListener, null); in testSocketRemovedAfterNetworkUnrequested()
284 final ArgumentCaptor<SocketCallback> callback2Captor = in testSocketRemovedAfterNetworkUnrequested()
[all …]
DMdnsAdvertiserTest.kt36 import com.android.server.connectivity.mdns.MdnsSocketProvider.SocketCallback
235 val socketCbCaptor = ArgumentCaptor.forClass(SocketCallback::class.java) in testAddService_OneNetwork()
299 val socketCbCaptor = ArgumentCaptor.forClass(SocketCallback::class.java) in testAddService_AllNetworksWithSubType()
393 val socketCbCaptor = ArgumentCaptor.forClass(SocketCallback::class.java) in testAddService_OffloadPriority()
439 val oneNetSocketCbCaptor = ArgumentCaptor.forClass(SocketCallback::class.java) in testAddService_Conflicts()
446 val allNetSocketCbCaptor = ArgumentCaptor.forClass(SocketCallback::class.java) in testAddService_Conflicts()
528 val socketCbCaptor = ArgumentCaptor.forClass(SocketCallback::class.java) in testAddOrUpdateService_Updates()
570 val socketCbCaptor = ArgumentCaptor.forClass(SocketCallback::class.java) in testAddOrUpdateService_customTtl_registeredSuccess()
DMdnsSocketProviderTest.java238 private class TestSocketCallback implements MdnsSocketProvider.SocketCallback {
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsSocketProvider.java93 private final ArrayMap<SocketCallback, Network> mCallbacksToRequestedNetworks =
638 private void retrieveAndNotifySocketFromNetwork(Network network, SocketCallback cb) { in retrieveAndNotifySocketFromNetwork()
656 private void retrieveAndNotifySocketFromInterface(String interfaceName, SocketCallback cb) { in retrieveAndNotifySocketFromInterface()
679 public void requestSocket(@Nullable Network network, @NonNull SocketCallback cb) { in requestSocket()
708 public void unrequestSocket(@NonNull SocketCallback cb) { in unrequestSocket()
747 public interface SocketCallback { interface in MdnsSocketProvider
DMdnsMultinetworkSocketClient.java71 private class InterfaceSocketCallback implements MdnsSocketProvider.SocketCallback {
DMdnsAdvertiser.java347 private class InterfaceAdvertiserRequest implements MdnsSocketProvider.SocketCallback {