/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | NsdPublisherTest.java | 20 import static android.net.nsd.NsdManager.FAILURE_INTERNAL_ERROR; 21 import static android.net.nsd.NsdManager.PROTOCOL_DNS_SD; 39 import android.net.nsd.NsdManager; 71 @Mock private NsdManager mMockNsdManager; 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() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/ |
D | NsdManagerTest.java | 20 import static android.net.nsd.NsdManager.checkServiceInfoForRegistration; 72 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD; 81 NsdManager mManager; 91 mManager = new NsdManager(mContext, mService); in setUp() 177 NsdManager manager = mManager; in doTestResolveService() 181 NsdManager.ResolveListener listener = mock(NsdManager.ResolveListener.class); in doTestResolveService() 197 NsdManager manager = mManager; in doTestParallelResolveService() 202 NsdManager.ResolveListener listener1 = mock(NsdManager.ResolveListener.class); in doTestParallelResolveService() 203 NsdManager.ResolveListener listener2 = mock(NsdManager.ResolveListener.class); in doTestParallelResolveService() 221 final NsdManager manager = mManager; in testRegisterServiceWithAdvertisingRequest() [all …]
|
D | AdvertisingRequestTest.kt | 20 import android.net.nsd.NsdManager.PROTOCOL_DNS_SD
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | NsdResolveQueue.java | 20 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()
|
D | MdnsDiscovery.java | 21 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/Connectivity/service-t/src/com/android/server/ |
D | NsdService.java | 26 import static android.net.nsd.NsdManager.MDNS_DISCOVERY_MANAGER_EVENT; 27 import static android.net.nsd.NsdManager.MDNS_SERVICE_EVENT; 28 import static android.net.nsd.NsdManager.RESOLVE_SERVICE_SUCCEEDED; 29 import static android.net.nsd.NsdManager.SUBTYPE_LABEL_REGEX; 30 import static android.net.nsd.NsdManager.TYPE_REGEX; 66 import android.net.nsd.NsdManager; 342 NsdManager.SERVICE_FOUND, in onServiceNameDiscovered() 349 NsdManager.SERVICE_LOST, in onServiceNameRemoved() 379 NsdManager.RESOLVE_SERVICE_SUCCEEDED, in onServiceFound() 411 NsdManager.SERVICE_UPDATED, in onServiceFound() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 35 import static android.net.nsd.NsdManager.FAILURE_BAD_PARAMETERS; 36 import static android.net.nsd.NsdManager.FAILURE_INTERNAL_ERROR; 37 import static android.net.nsd.NsdManager.FAILURE_MAX_LIMIT; 38 import static android.net.nsd.NsdManager.FAILURE_OPERATION_NOT_RUNNING; 92 import android.net.nsd.NsdManager; 93 import android.net.nsd.NsdManager.DiscoveryListener; 94 import android.net.nsd.NsdManager.RegistrationListener; 95 import android.net.nsd.NsdManager.ResolveListener; 96 import android.net.nsd.NsdManager.ServiceInfoCallback; 166 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD; [all …]
|
/packages/modules/Connectivity/framework-t/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority-tiramisu.txt | 424 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/thread/tests/integration/src/android/net/thread/utils/ |
D | IntegrationTestUtils.java | 37 import android.net.nsd.NsdManager; 319 public static NsdServiceInfo discoverService(NsdManager nsdManager, String serviceType) in discoverService() 322 NsdManager.DiscoveryListener listener = in discoverService() 329 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverService() 342 public static NsdManager.DiscoveryListener discoverForServiceLost( in discoverForServiceLost() 343 NsdManager nsdManager, in discoverForServiceLost() 346 NsdManager.DiscoveryListener listener = in discoverForServiceLost() 353 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverForServiceLost() 358 public static NsdServiceInfo resolveService(NsdManager nsdManager, NsdServiceInfo serviceInfo) in resolveService() 365 NsdManager nsdManager, NsdServiceInfo serviceInfo, Predicate<NsdServiceInfo> predicate) in resolveServiceUntil() [all …]
|
/packages/modules/Connectivity/framework-t/api/ |
D | current.txt | 229 public final class NsdManager { 230 method public void discoverServices(String, int, android.net.nsd.NsdManager.DiscoveryListener); 231 …work, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListene… 232 …uest, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListene… 233 …uest, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.DiscoveryListene… 234 …d registerService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager.RegistrationList… 235 … int, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.RegistrationList… 236 …Info, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.ServiceInfoCallb… 237 …ic void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdManager.ResolveListener); 238 …Info, @NonNull java.util.concurrent.Executor, @NonNull android.net.nsd.NsdManager.ResolveListener); [all …]
|
D | system-lint-baseline.txt | 74 UnflaggedApi: android.net.nsd.NsdManager#registerOffloadEngine(String, long, long, java.util.concur… 75 …New API must be flagged with @FlaggedApi: method android.net.nsd.NsdManager.registerOffloadEngine(… 76 UnflaggedApi: android.net.nsd.NsdManager#unregisterOffloadEngine(android.net.nsd.OffloadEngine): 77 …New API must be flagged with @FlaggedApi: method android.net.nsd.NsdManager.unregisterOffloadEngin…
|
D | system-current.txt | 386 public final class NsdManager {
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NsdManagerDownstreamTetheringTest.kt | 24 import android.net.nsd.NsdManager 48 private val nsdManager by lazy { context.getSystemService(NsdManager::class.java)!! } in <lambda>() 90 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryCanSendPacketOnLocalOnlyDownstreamTetheringInterface() 137 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryWorkOnTetheringInterface()
|
D | ConnectivityFrameworkInitializerTiramisuTest.kt | 19 import android.net.nsd.NsdManager 38 assertNotNull(ctx.getSystemService(NsdManager::class.java), in testServicesRegistered()
|
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/ |
D | NsdPublisher.java | 19 import static android.net.nsd.NsdManager.PROTOCOL_DNS_SD; 28 import android.net.nsd.NsdManager; 68 private final NsdManager mNsdManager; 78 public NsdPublisher(NsdManager nsdManager, DnsResolver dnsResolver, Handler handler) { in NsdPublisher() 88 context.getSystemService(NsdManager.class), DnsResolver.getInstance(), handler); in newInstance() 175 listener.onRegistrationFailed(serviceInfo, NsdManager.FAILURE_INTERNAL_ERROR); in registerInternal() 394 private final class RegistrationListener implements NsdManager.RegistrationListener { 492 private final class DiscoveryListener implements NsdManager.DiscoveryListener { 569 private final class ServiceInfoListener implements NsdManager.ServiceInfoCallback {
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | ConnectivityFrameworkInitializerTiramisu.java | 26 import android.net.nsd.NsdManager; 53 NsdManager.class, in registerServiceWrappers() 56 return new NsdManager(context, service); in registerServiceWrappers()
|
/packages/modules/Connectivity/framework-t/src/android/net/nsd/ |
D | DiscoveryRequest.java | 32 @FlaggedApi(NsdManager.Flags.NSD_SUBTYPES_SUPPORT_ENABLED) 177 this(NsdManager.PROTOCOL_DNS_SD, serviceType); in Builder() 182 NsdManager.checkProtocol(protocolType); in Builder()
|
D | NsdManager.java | 147 public final class NsdManager { class 148 private static final String TAG = NsdManager.class.getSimpleName(); 454 @FlaggedApi(NsdManager.Flags.REGISTER_NSD_OFFLOAD_ENGINE_API) 492 @FlaggedApi(NsdManager.Flags.REGISTER_NSD_OFFLOAD_ENGINE_API) 721 public NsdManager(Context context, INsdManager service) { in NsdManager() method in NsdManager
|
D | NsdServiceInfo.java | 520 @FlaggedApi(NsdManager.Flags.NSD_SUBTYPES_SUPPORT_ENABLED) 533 @FlaggedApi(NsdManager.Flags.NSD_SUBTYPES_SUPPORT_ENABLED)
|
/packages/modules/Connectivity/ |
D | OWNERS_core_networking_xts | 9 # In addition to cherry-picks and flaky test fixes, also for incremental changes on NsdManager tests 10 # to increase coverage for existing behavior, and testing of bug fixes in NsdManager
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ServiceDiscoveryTest.java | 20 import static android.net.nsd.NsdManager.PROTOCOL_DNS_SD; 38 import android.net.nsd.NsdManager; 103 private NsdManager mNsdManager; 113 mNsdManager = mContext.getSystemService(NsdManager.class); in setUp() 300 NsdManager.DiscoveryListener listener = in advertisingProxy_srpClientUnregistersService_serviceIsNotDiscoverableByMdns() 462 private static class RegistrationListener implements NsdManager.RegistrationListener {
|
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/ |
D | ThreadNetworkControllerTest.java | 55 import android.net.nsd.NsdManager; 123 private NsdManager mNsdManager; 138 mNsdManager = mContext.getSystemService(NsdManager.class); in setUp() 895 NsdManager.DiscoveryListener listener = 1139 NsdManager.DiscoveryListener listener = 1148 NsdManager.PROTOCOL_DNS_SD, 1161 private NsdManager.DiscoveryListener discoverForServiceLost( 1163 NsdManager.DiscoveryListener listener = 1172 NsdManager.PROTOCOL_DNS_SD, 1184 NsdManager.ServiceInfoCallback callback = [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | BuiltInPrintService.java | 30 import android.net.nsd.NsdManager; 125 NsdManager nsdManager = (NsdManager) getSystemService(Context.NSD_SERVICE); in onCreate()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsAdvertiser.java | 30 import android.net.nsd.NsdManager; 881 mCb.onRegisterServiceFailed(id, NsdManager.FAILURE_INTERNAL_ERROR); in addOrUpdateService() 887 mCb.onRegisterServiceFailed(id, NsdManager.FAILURE_INTERNAL_ERROR); in addOrUpdateService() 899 mCb.onRegisterServiceFailed(id, NsdManager.FAILURE_INTERNAL_ERROR); in addOrUpdateService()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsAdvertiserTest.kt | 24 import android.net.nsd.NsdManager 542 verify(cb).onRegisterServiceFailed(SERVICE_ID_2, NsdManager.FAILURE_INTERNAL_ERROR) in testAddOrUpdateService_Updates() 547 verify(cb).onRegisterServiceFailed(SERVICE_ID_1, NsdManager.FAILURE_INTERNAL_ERROR) in testAddOrUpdateService_Updates()
|