Home
last modified time | relevance | path

Searched refs:NsdManager (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java57 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD;
66 NsdManager mManager;
76 mManager = new NsdManager(mContext, mService); in setUp()
84 @EnableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
91 @DisableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
98 @EnableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
105 @DisableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
112 @EnableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
119 @DisableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
126 @EnableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/
DNsdService.java20 import static android.net.nsd.NsdManager.MDNS_SERVICE_EVENT;
38 import android.net.nsd.NsdManager;
109 return NsdManager.nameOf(what); in getWhatToString()
138 sendMessageDelayed(NsdManager.DAEMON_CLEANUP, mCleanupDelayMs); in scheduleStop()
149 this.removeMessages(NsdManager.DAEMON_CLEANUP); in cancelStop()
168 case NsdManager.REGISTER_CLIENT: in processMessage()
180 case NsdManager.UNREGISTER_CLIENT: in processMessage()
191 case NsdManager.DISCOVER_SERVICES: in processMessage()
195 clientId, NsdManager.FAILURE_INTERNAL_ERROR); in processMessage()
198 case NsdManager.STOP_DISCOVERY: in processMessage()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java50 import android.net.nsd.NsdManager;
89 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD;
143 @DisableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
174 @EnableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
212 @EnableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
216 NsdManager client = connectClient(service); in testClientRequestsAreGCedAtDisconnection()
227 NsdManager.RegistrationListener listener1 = mock(NsdManager.RegistrationListener.class); in testClientRequestsAreGCedAtDisconnection()
236 NsdManager.DiscoveryListener listener2 = mock(NsdManager.DiscoveryListener.class); in testClientRequestsAreGCedAtDisconnection()
242 NsdManager.ResolveListener listener3 = mock(NsdManager.ResolveListener.class); in testClientRequestsAreGCedAtDisconnection()
258 @EnableCompatChanges(NsdManager.RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS)
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DNsdResolveQueue.java20 import android.net.nsd.NsdManager;
34 private final NsdManager mNsdManager;
40 public NsdResolveQueue(Context context, NsdManager nsdManager) { in NsdResolveQueue()
46 NsdManager getNsdManager() { in getNsdManager()
57 NsdManager.ResolveListener listener) { in resolve()
82 class NsdResolveRequest implements NsdManager.ResolveListener {
83 private final NsdManager mNsdManager;
85 private final NsdManager.ResolveListener mListener;
88 private NsdResolveRequest(NsdManager nsdManager, in NsdResolveRequest()
90 NsdManager.ResolveListener listener) { in NsdResolveRequest()
DMdnsDiscovery.java21 import android.net.nsd.NsdManager;
152 NsdManager nsdManager = mNsdResolveQueue.getNsdManager(); in onStart()
153 nsdManager.discoverServices(mServiceName, NsdManager.PROTOCOL_DNS_SD, serviceListener); in onStart()
160 NsdManager nsdManager = mNsdResolveQueue.getNsdManager(); in onStop()
179 private abstract class NsdServiceListener implements NsdManager.DiscoveryListener {
220 private class Resolver implements NsdManager.ResolveListener {
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DNsdShimImpl.java21 import android.net.nsd.NsdManager;
60 public void registerService(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in registerService()
62 @NonNull NsdManager.RegistrationListener listener) throws UnsupportedApiLevelException { in registerService()
67 public void discoverServices(@NonNull NsdManager nsdManager, @NonNull String serviceType, in discoverServices()
69 @NonNull Executor executor, @NonNull NsdManager.DiscoveryListener listener) in discoverServices()
75 public void discoverServices(@NonNull NsdManager nsdManager, @NonNull String serviceType, in discoverServices()
77 @NonNull Executor executor, @NonNull NsdManager.DiscoveryListener listener) in discoverServices()
84 public void resolveService(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in resolveService()
85 @NonNull Executor executor, @NonNull NsdManager.ResolveListener resolveListener) in resolveService()
/packages/modules/NetworkStack/apishim/33/com/android/networkstack/apishim/api33/
DNsdShimImpl.java21 import android.net.nsd.NsdManager;
65 public void registerService(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in registerService()
67 @NonNull NsdManager.RegistrationListener listener) { in registerService()
72 public void discoverServices(@NonNull NsdManager nsdManager, @NonNull String serviceType, in discoverServices()
74 @NonNull Executor executor, @NonNull NsdManager.DiscoveryListener listener) in discoverServices()
80 public void discoverServices(@NonNull NsdManager nsdManager, @NonNull String serviceType, in discoverServices()
82 @NonNull Executor executor, @NonNull NsdManager.DiscoveryListener listener) in discoverServices()
88 public void resolveService(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in resolveService()
89 @NonNull Executor executor, @NonNull NsdManager.ResolveListener resolveListener) in resolveService()
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DNsdShim.java21 import android.net.nsd.NsdManager;
22 import android.net.nsd.NsdManager.DiscoveryListener;
23 import android.net.nsd.NsdManager.RegistrationListener;
24 import android.net.nsd.NsdManager.ResolveListener;
49 void registerService(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in registerService()
56 void discoverServices(@NonNull NsdManager nsdManager, @NonNull String serviceType, in discoverServices()
64 void resolveService(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in resolveService()
71 void discoverServices(@NonNull NsdManager nsdManager, @NonNull String serviceType, in discoverServices()
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority-tiramisu.txt424 Landroid/net/nsd/NsdManager;-><init>(Landroid/content/Context;Landroid/net/nsd/INsdManager;)V
425 Landroid/net/nsd/NsdManager;->BASE:I
426 Landroid/net/nsd/NsdManager;->checkListener(Ljava/lang/Object;)V
427 Landroid/net/nsd/NsdManager;->checkProtocol(I)V
428 Landroid/net/nsd/NsdManager;->checkServiceInfo(Landroid/net/nsd/NsdServiceInfo;)V
429 Landroid/net/nsd/NsdManager;->DBG:Z
430 Landroid/net/nsd/NsdManager;->DISABLE:I
431 Landroid/net/nsd/NsdManager;->disconnect()V
432 Landroid/net/nsd/NsdManager;->DISCOVER_SERVICES:I
433 Landroid/net/nsd/NsdManager;->DISCOVER_SERVICES_FAILED:I
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerTest.kt44 import android.net.nsd.NsdManager in <lambda>()
45 import android.net.nsd.NsdManager.DiscoveryListener in <lambda>()
46 import android.net.nsd.NsdManager.RegistrationListener in <lambda>()
47 import android.net.nsd.NsdManager.ResolveListener in <lambda>()
93 private val nsdManager by lazy { context.getSystemService(NsdManager::class.java) } in <lambda>()
360 nsdManager.registerService(si, NsdManager.PROTOCOL_DNS_SD, registrationRecord) in <lambda>()
365 nsdManager.discoverServices(SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in <lambda>()
409 nsdManager.registerService(si2, NsdManager.PROTOCOL_DNS_SD, registrationRecord2) in <lambda>()
447 nsdShim.discoverServices(nsdManager, SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, in <lambda>()
485 nsdShim.discoverServices(nsdManager, SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, in <lambda>()
[all …]
DConnectivityFrameworkInitializerTiramisuTest.kt19 import android.net.nsd.NsdManager
38 assertNotNull(ctx.getSystemService(NsdManager::class.java), in testServicesRegistered()
/packages/modules/Connectivity/framework-t/api/
Dcurrent.txt189 public final class NsdManager {
190 method public void discoverServices(String, int, android.net.nsd.NsdManager.DiscoveryListener);
191 …work, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListene…
192 …uest, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListene…
193 …d registerService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager.RegistrationList…
194 … int, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.RegistrationList…
195 …method public void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdManager.Resol…
196 …Info, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.ResolveListener);
197 method public void stopServiceDiscovery(android.net.nsd.NsdManager.DiscoveryListener);
198 method public void unregisterService(android.net.nsd.NsdManager.RegistrationListener);
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/
DConnectivityFrameworkInitializerTiramisu.java26 import android.net.nsd.NsdManager;
49 NsdManager.class, in registerServiceWrappers()
52 return new NsdManager(context, service); in registerServiceWrappers()
/packages/services/BuiltInPrintService/src/com/android/bips/
DBuiltInPrintService.java30 import android.net.nsd.NsdManager;
125 NsdManager nsdManager = (NsdManager) getSystemService(Context.NSD_SERVICE); in onCreate()
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DNsdManager.java132 public final class NsdManager { class
133 private static final String TAG = NsdManager.class.getSimpleName();
494 public NsdManager(Context context, INsdManager service) { in NsdManager() method in NsdManager