Home
last modified time | relevance | path

Searched refs:nsdManager (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DIntegrationTestUtils.java319 public static NsdServiceInfo discoverService(NsdManager nsdManager, String serviceType) in discoverService() argument
329 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverService()
333 nsdManager.stopServiceDiscovery(listener); in discoverService()
343 NsdManager nsdManager, in discoverForServiceLost() argument
353 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverForServiceLost()
358 public static NsdServiceInfo resolveService(NsdManager nsdManager, NsdServiceInfo serviceInfo) in resolveService() argument
360 return resolveServiceUntil(nsdManager, serviceInfo, s -> true); in resolveService()
365 NsdManager nsdManager, NsdServiceInfo serviceInfo, Predicate<NsdServiceInfo> predicate) in resolveServiceUntil() argument
377 nsdManager.registerServiceInfoCallback(serviceInfo, directExecutor(), callback); in resolveServiceUntil()
382 nsdManager.unregisterServiceInfoCallback(callback); in resolveServiceUntil()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerDownstreamTetheringTest.kt48 private val nsdManager by lazy { context.getSystemService(NsdManager::class.java)!! } in <lambda>() constant in android.net.cts.NsdManagerDownstreamTetheringTest
90 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryCanSendPacketOnLocalOnlyDownstreamTetheringInterface()
94 nsdManager.stopServiceDiscovery(discoveryRecord) in testMdnsDiscoveryCanSendPacketOnLocalOnlyDownstreamTetheringInterface()
137 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryWorkOnTetheringInterface()
142 nsdManager.stopServiceDiscovery(discoveryRecord) in testMdnsDiscoveryWorkOnTetheringInterface()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DNsdResolveQueue.java40 public NsdResolveQueue(Context context, NsdManager nsdManager) { in NsdResolveQueue() argument
41 mNsdManager = nsdManager; in NsdResolveQueue()
88 private NsdResolveRequest(NsdManager nsdManager, in NsdResolveRequest() argument
91 mNsdManager = nsdManager; in NsdResolveRequest()
DMdnsDiscovery.java152 NsdManager nsdManager = mNsdResolveQueue.getNsdManager(); in onStart() local
153 nsdManager.discoverServices(mServiceName, NsdManager.PROTOCOL_DNS_SD, serviceListener); in onStart()
160 NsdManager nsdManager = mNsdResolveQueue.getNsdManager(); in onStop() local
162 nsdManager.stopServiceDiscovery(listener); in onStop()
/packages/services/BuiltInPrintService/src/com/android/bips/
DBuiltInPrintService.java125 NsdManager nsdManager = (NsdManager) getSystemService(Context.NSD_SERVICE); in onCreate() local
126 mNsdResolveQueue = new NsdResolveQueue(this, nsdManager); in onCreate()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DNsdPublisher.java78 public NsdPublisher(NsdManager nsdManager, DnsResolver dnsResolver, Handler handler) { in NsdPublisher() argument
80 mNsdManager = nsdManager; in NsdPublisher()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java2072 final NsdManager nsdManager = new NsdManager(mContext, service); in connectClient() local
2075 return nsdManager; in connectClient()