Searched refs:RegistrationListener (Results 1 – 7 of 7) sorted by relevance
106 ArgumentCaptor<NsdManager.RegistrationListener> actualRegistrationListenerCaptor = in registerService_nsdManagerSucceeds_serviceRegistrationSucceeds()107 ArgumentCaptor.forClass(NsdManager.RegistrationListener.class); in registerService_nsdManagerSucceeds_serviceRegistrationSucceeds()117 NsdManager.RegistrationListener actualRegistrationListener = in registerService_nsdManagerSucceeds_serviceRegistrationSucceeds()152 ArgumentCaptor<NsdManager.RegistrationListener> actualRegistrationListenerCaptor = in registerService_nsdManagerFails_serviceRegistrationFails()153 ArgumentCaptor.forClass(NsdManager.RegistrationListener.class); in registerService_nsdManagerFails_serviceRegistrationFails()163 NsdManager.RegistrationListener actualRegistrationListener = in registerService_nsdManagerFails_serviceRegistrationFails()221 ArgumentCaptor<NsdManager.RegistrationListener> actualRegistrationListenerCaptor = in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()222 ArgumentCaptor.forClass(NsdManager.RegistrationListener.class); in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()232 NsdManager.RegistrationListener actualRegistrationListener = in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()263 ArgumentCaptor<NsdManager.RegistrationListener> actualRegistrationListenerCaptor = in unregisterService_nsdManagerFails_serviceUnregistrationFails()[all …]
226 final NsdManager.RegistrationListener listener = mock( in testRegisterServiceWithAdvertisingRequest()227 NsdManager.RegistrationListener.class); in testRegisterServiceWithAdvertisingRequest()242 final NsdManager.RegistrationListener listener = mock( in testRegisterServiceWithCustomTtl()243 NsdManager.RegistrationListener.class); in testRegisterServiceWithCustomTtl()259 NsdManager.RegistrationListener listener1 = mock(NsdManager.RegistrationListener.class); in doTestRegisterService()260 NsdManager.RegistrationListener listener2 = mock(NsdManager.RegistrationListener.class); in doTestRegisterService()398 NsdManager.RegistrationListener listener1 = mock(NsdManager.RegistrationListener.class); in doTestInvalidCalls()401 NsdManager.RegistrationListener listener4 = mock(NsdManager.RegistrationListener.class); in doTestInvalidCalls()402 NsdManager.RegistrationListener listener5 = mock(NsdManager.RegistrationListener.class); in doTestInvalidCalls()403 NsdManager.RegistrationListener listener6 = mock(NsdManager.RegistrationListener.class); in doTestInvalidCalls()[all …]
94 import android.net.nsd.NsdManager.RegistrationListener;358 final RegistrationListener listener1 = mock(RegistrationListener.class); in testClientRequestsAreGCedAtDisconnection()397 final RegistrationListener listener1 = mock(RegistrationListener.class); in testCleanupDelayNoRequestActive()615 final RegistrationListener regListener = mock(RegistrationListener.class); in testServiceRegistrationSuccessfulAndFailed()800 final ArrayList<RegistrationListener> regListeners = new ArrayList<>(numEachListener); in testPerClientListenerLimit()804 final RegistrationListener regListener1 = mock(RegistrationListener.class); in testPerClientListenerLimit()808 final RegistrationListener regListener2 = mock(RegistrationListener.class); in testPerClientListenerLimit()837 final RegistrationListener failRegListener1 = mock(RegistrationListener.class); in testPerClientListenerLimit()839 final RegistrationListener failRegListener2 = mock(RegistrationListener.class); in testPerClientListenerLimit()1284 final RegistrationListener regListener = mock(RegistrationListener.class); in testDiscoveryWithMdnsDiscoveryManager_UsesSubtypes()[all …]
106 private final List<RegistrationListener> mRegistrationListeners = new ArrayList<>();133 for (RegistrationListener listener : mRegistrationListeners) { in tearDown()336 RegistrationListener listener = new RegistrationListener(); in discoveryProxy_multipleClientsBrowseAndResolveServiceOverMdns()450 private void registerService(NsdServiceInfo serviceInfo, RegistrationListener listener) in registerService()456 private void unregisterService(RegistrationListener listener) in unregisterService()462 private static class RegistrationListener implements NsdManager.RegistrationListener { class in ServiceDiscoveryTest466 RegistrationListener() {} in RegistrationListener() method in ServiceDiscoveryTest.RegistrationListener
72 private final SparseArray<RegistrationListener> mRegistrationListeners = new SparseArray<>(0);169 RegistrationListener listener = new RegistrationListener(serviceInfo, listenerId, receiver); in registerInternal()185 RegistrationListener registrationListener = mRegistrationListeners.get(listenerId); in unregisterInternal()394 private final class RegistrationListener implements NsdManager.RegistrationListener { class in NsdPublisher400 RegistrationListener( in RegistrationListener() method in NsdPublisher.RegistrationListener
934 public interface RegistrationListener { interface in NsdManager1106 executor.execute(() -> ((RegistrationListener) listener).onRegistrationFailed( in handleMessage()1110 executor.execute(() -> ((RegistrationListener) listener).onServiceRegistered( in handleMessage()1115 executor.execute(() -> ((RegistrationListener) listener).onUnregistrationFailed( in handleMessage()1122 executor.execute(() -> ((RegistrationListener) listener).onServiceUnregistered( in handleMessage()1257 RegistrationListener listener) { in registerService()1278 @NonNull Executor executor, @NonNull RegistrationListener listener) { in registerService()1296 RegistrationListener listener) { in isSubtypeUpdateRequest()1369 @NonNull RegistrationListener listener) { in registerService()1402 public void unregisterService(RegistrationListener listener) { in unregisterService()
234 …isterService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager.RegistrationListener);235 … @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.RegistrationListener);241 method public void unregisterService(android.net.nsd.NsdManager.RegistrationListener);264 public static interface NsdManager.RegistrationListener {