Home
last modified time | relevance | path

Searched refs:DiscoveryListener (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DNsdManager.java518 final DiscoveryListener mBaseListener;
581 Executor baseExecutor, DiscoveryListener baseListener) { in PerNetworkDiscoveryTracker()
624 private class DelegatingDiscoveryListener implements DiscoveryListener {
626 private final DiscoveryListener mWrapped;
634 private DelegatingDiscoveryListener(Network network, DiscoveryListener listener, in DelegatingDiscoveryListener()
918 public interface DiscoveryListener { interface in NsdManager
1077 executor.execute(() -> ((DiscoveryListener) listener).onDiscoveryStarted(s)); in handleMessage()
1081 executor.execute(() -> ((DiscoveryListener) listener).onStartDiscoveryFailed( in handleMessage()
1085 executor.execute(() -> ((DiscoveryListener) listener).onServiceFound( in handleMessage()
1089 executor.execute(() -> ((DiscoveryListener) listener).onServiceLost( in handleMessage()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java93 import android.net.nsd.NsdManager.DiscoveryListener;
367 final DiscoveryListener listener2 = mock(DiscoveryListener.class); in testClientRequestsAreGCedAtDisconnection()
432 final DiscoveryListener discListener = mock(DiscoveryListener.class); in testDiscoverOnTetheringDownstream()
529 final DiscoveryListener discListener = mock(DiscoveryListener.class); in testDiscoverOnTetheringDownstream_DiscoveryManager()
580 final DiscoveryListener discListener = mock(DiscoveryListener.class); in testDiscoverOnBlackholeNetwork()
668 final DiscoveryListener discListener = mock(DiscoveryListener.class); in testServiceDiscoveryFailed()
799 final ArrayList<DiscoveryListener> discListeners = new ArrayList<>(numEachListener); in testPerClientListenerLimit()
802 final DiscoveryListener discListener1 = mock(DiscoveryListener.class); in testPerClientListenerLimit()
806 final DiscoveryListener discListener2 = mock(DiscoveryListener.class); in testPerClientListenerLimit()
836 final DiscoveryListener failDiscListener1 = mock(DiscoveryListener.class); in testPerClientListenerLimit()
[all …]
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DNsdPublisher.java73 private final SparseArray<DiscoveryListener> mDiscoveryListeners = new SparseArray<>(0);
223 DiscoveryListener listener = new DiscoveryListener(listenerId, type, callback); in discoverServiceInternal()
238 DiscoveryListener listener = mDiscoveryListeners.get(listenerId); in stopServiceDiscoveryInternal()
492 private final class DiscoveryListener implements NsdManager.DiscoveryListener { class in NsdPublisher
497 DiscoveryListener( in DiscoveryListener() method in NsdPublisher.DiscoveryListener
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DNsdPublisherTest.java477 ArgumentCaptor<NsdManager.DiscoveryListener> discoveryListenerArgumentCaptor = in discoverService_serviceDiscovered()
478 ArgumentCaptor.forClass(NsdManager.DiscoveryListener.class); in discoverService_serviceDiscovered()
484 NsdManager.DiscoveryListener actualDiscoveryListener = in discoverService_serviceDiscovered()
502 ArgumentCaptor<NsdManager.DiscoveryListener> discoveryListenerArgumentCaptor = in discoverService_serviceLost()
503 ArgumentCaptor.forClass(NsdManager.DiscoveryListener.class); in discoverService_serviceLost()
509 NsdManager.DiscoveryListener actualDiscoveryListener = in discoverService_serviceLost()
527 ArgumentCaptor<NsdManager.DiscoveryListener> discoveryListenerArgumentCaptor = in stopServiceDiscovery()
528 ArgumentCaptor.forClass(NsdManager.DiscoveryListener.class); in stopServiceDiscovery()
534 NsdManager.DiscoveryListener actualDiscoveryListener = in stopServiceDiscovery()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DIntegrationTestUtils.java322 NsdManager.DiscoveryListener listener = in discoverService()
342 public static NsdManager.DiscoveryListener discoverForServiceLost( in discoverForServiceLost()
346 NsdManager.DiscoveryListener listener = in discoverForServiceLost()
416 private static class DefaultDiscoveryListener implements NsdManager.DiscoveryListener {
/packages/modules/Connectivity/framework-t/api/
Dcurrent.txt230 method public void discoverServices(String, int, android.net.nsd.NsdManager.DiscoveryListener);
231 …rk, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListener);
232 …st, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListener);
233 …st, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListener);
239 method public void stopServiceDiscovery(android.net.nsd.NsdManager.DiscoveryListener);
255 public static interface NsdManager.DiscoveryListener {
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java321 NsdManager.DiscoveryListener listener = mock(NsdManager.DiscoveryListener.class); in doTestDiscoverService()
399 NsdManager.DiscoveryListener listener2 = mock(NsdManager.DiscoveryListener.class); in doTestInvalidCalls()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkControllerTest.java895 NsdManager.DiscoveryListener listener =
1139 NsdManager.DiscoveryListener listener =
1161 private NsdManager.DiscoveryListener discoverForServiceLost(
1163 NsdManager.DiscoveryListener listener =
1214 private static class DefaultDiscoveryListener implements NsdManager.DiscoveryListener {
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DMdnsDiscovery.java179 private abstract class NsdServiceListener implements NsdManager.DiscoveryListener {
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DServiceDiscoveryTest.java300 NsdManager.DiscoveryListener listener = in advertisingProxy_srpClientUnregistersService_serviceIsNotDiscoverableByMdns()
/packages/modules/Connectivity/service-t/src/com/android/server/
DNsdService.java331 private class DiscoveryListener extends MdnsListener { class in NsdService
333 DiscoveryListener(int clientRequestId, int transactionId, in DiscoveryListener() method in NsdService.DiscoveryListener
856 final MdnsListener listener = new DiscoveryListener(clientRequestId, in processMessage()
2890 if (listener instanceof DiscoveryListener) { in expungeAllRequests()