/frameworks/base/tests/net/java/android/net/nsd/ |
D | NsdManagerTest.java | 55 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD; 61 NsdManager mManager; 87 NsdManager manager = mManager; in testResolveService() 91 NsdManager.ResolveListener listener = mock(NsdManager.ResolveListener.class); in testResolveService() 94 int key1 = verifyRequest(NsdManager.RESOLVE_SERVICE); in testResolveService() 96 sendResponse(NsdManager.RESOLVE_SERVICE_FAILED, err, key1, null); in testResolveService() 100 int key2 = verifyRequest(NsdManager.RESOLVE_SERVICE); in testResolveService() 101 sendResponse(NsdManager.RESOLVE_SERVICE_SUCCEEDED, 0, key2, reply); in testResolveService() 107 NsdManager manager = mManager; in testParallelResolveService() 112 NsdManager.ResolveListener listener1 = mock(NsdManager.ResolveListener.class); in testParallelResolveService() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NsdService.java | 28 import android.net.nsd.NsdManager; 94 return NsdManager.nameOf(what); in getWhatToString() 165 case NsdManager.DISCOVER_SERVICES: in processMessage() 166 replyToMessage(msg, NsdManager.DISCOVER_SERVICES_FAILED, in processMessage() 167 NsdManager.FAILURE_INTERNAL_ERROR); in processMessage() 169 case NsdManager.STOP_DISCOVERY: in processMessage() 170 replyToMessage(msg, NsdManager.STOP_DISCOVERY_FAILED, in processMessage() 171 NsdManager.FAILURE_INTERNAL_ERROR); in processMessage() 173 case NsdManager.REGISTER_SERVICE: in processMessage() 174 replyToMessage(msg, NsdManager.REGISTER_SERVICE_FAILED, in processMessage() [all …]
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
D | DiscoveryListenerMultiplexer.java | 19 import android.net.nsd.NsdManager; 46 public static void addListener(@NonNull NsdManager nsdManager, @NonNull String serviceType, in addListener() 47 @NonNull NsdManager.DiscoveryListener newListener) { in addListener() 52 ArrayList<NsdManager.DiscoveryListener> subListeners = new ArrayList<>(1); in addListener() 61 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, in addListener() 78 public static boolean removeListener(@NonNull NsdManager nsdManager, in removeListener() 79 @NonNull NsdManager.DiscoveryListener listener) { in removeListener() 104 final @NonNull ArrayList<NsdManager.DiscoveryListener> subListeners; 109 private DiscoveryListenerSet(ArrayList<NsdManager.DiscoveryListener> subListeners, in DiscoveryListenerSet() 120 private static class MultiListener implements NsdManager.DiscoveryListener { [all …]
|
D | NsdResolveQueue.java | 19 import android.net.nsd.NsdManager; 60 final @NonNull NsdManager nsdManager; 62 final @NonNull NsdManager.ResolveListener listener; 64 private NsdResolveRequest(@NonNull NsdManager nsdManager, in NsdResolveRequest() 65 @NonNull NsdServiceInfo serviceInfo, @NonNull NsdManager.ResolveListener listener) { in NsdResolveRequest() 79 public void resolve(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in resolve() 80 @NonNull NsdManager.ResolveListener listener) { in resolve() 95 private class ListenerWrapper implements NsdManager.ResolveListener { 96 private final @NonNull NsdManager.ResolveListener mListener; 98 private ListenerWrapper(@NonNull NsdManager.ResolveListener listener) { in ListenerWrapper()
|
D | MDNSFilteredDiscovery.java | 19 import android.net.nsd.NsdManager; 39 public class MDNSFilteredDiscovery implements NsdManager.DiscoveryListener { 106 private NsdManager getNDSManager() { in getNDSManager() 107 return (NsdManager) mContext.getSystemService(Context.NSD_SERVICE); in getNDSManager() 161 new NsdManager.ResolveListener() { in onServiceFound() 185 new NsdManager.ResolveListener() { in onServiceLost()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | NsdServiceTest.java | 35 import android.net.nsd.NsdManager; 57 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD; 92 NsdManager client1 = connectClient(service); in testClientsCanConnectAndDisconnect() 95 NsdManager client2 = connectClient(service); in testClientsCanConnectAndDisconnect() 112 NsdManager client = connectClient(service); in testClientRequestsAreGCedAtDisconnection() 120 NsdManager.RegistrationListener listener1 = mock(NsdManager.RegistrationListener.class); in testClientRequestsAreGCedAtDisconnection() 125 NsdManager.DiscoveryListener listener2 = mock(NsdManager.DiscoveryListener.class); in testClientRequestsAreGCedAtDisconnection() 130 NsdManager.ResolveListener listener3 = mock(NsdManager.ResolveListener.class); in testClientRequestsAreGCedAtDisconnection() 154 NsdManager connectClient(NsdService service) { in connectClient() 155 return new NsdManager(mContext, service); in connectClient()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/ |
D | ServiceResolveQueue.java | 19 import android.net.nsd.NsdManager; 28 private final NsdManager mNsdManager; 37 public static void createInstance(NsdManager nsdManager) { in createInstance() 41 public static ServiceResolveQueue getInstance(NsdManager nsdManager) { in getInstance() 56 public ServiceResolveQueue(NsdManager nsdManager) { in ServiceResolveQueue() 84 new NsdManager.ResolveListener() { in makeNextRequest()
|
D | ServiceListener.java | 21 import android.net.nsd.NsdManager; 37 private final NsdManager mNSDManager; 42 private List<NsdManager.DiscoveryListener> mListeners = new ArrayList<>(); 53 mNSDManager = (NsdManager)context.getSystemService(Context.NSD_SERVICE); in ServiceListener() 134 NsdManager.DiscoveryListener listener = new NsdManager.DiscoveryListener() { in start() 172 for(NsdManager.DiscoveryListener listener : mListeners) { in stop()
|
D | ServiceRecommendationPlugin.java | 20 import android.net.nsd.NsdManager; 38 protected final NsdManager mNSDManager; 43 mNSDManager = (NsdManager)context.getSystemService(Context.NSD_SERVICE); in ServiceRecommendationPlugin()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/ |
D | ServiceResolver.java | 19 import android.net.nsd.NsdManager; 33 private final NsdManager mNSDManager; 39 private final List<NsdManager.DiscoveryListener> mListeners = new ArrayList<>(); 50 mNSDManager = (NsdManager) context.getSystemService(Context.NSD_SERVICE); in ServiceResolver() 58 NsdManager.DiscoveryListener listener = new NsdManager.DiscoveryListener() { in start() 96 for (NsdManager.DiscoveryListener listener : mListeners) { in stop() 135 … mNsdResolveQueue.resolve(mNSDManager, mCurrentRequest, new NsdManager.ResolveListener() { in makeNextRequest()
|
D | XeroxPrintServiceRecommendationPlugin.java | 19 import android.net.nsd.NsdManager; 31 protected final NsdManager mNSDManager; 38 mNSDManager = (NsdManager) context.getSystemService(Context.NSD_SERVICE); in XeroxPrintServiceRecommendationPlugin()
|
/frameworks/base/core/java/android/net/nsd/ |
D | NsdManager.java | 124 public final class NsdManager { class 125 private static final String TAG = NsdManager.class.getSimpleName(); 268 public NsdManager(Context context, INsdManager service) { in NsdManager() method in NsdManager
|
/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 92 import android.net.nsd.NsdManager; 416 registerService(Context.NSD_SERVICE, NsdManager.class, in registerService() 417 new CachedServiceFetcher<NsdManager>() { in registerService() 419 public NsdManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService() 422 return new NsdManager(ctx.getOuterContext(), service); in registerService()
|
/frameworks/support/compat/src/main/java/androidx/core/content/ |
D | ContextCompat.java | 108 import android.net.nsd.NsdManager; 757 SERVICES.put(NsdManager.class, NSD_SERVICE); in SERVICES.put()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
D | UsbHostManagementActivity.java | 31 import android.net.nsd.NsdManager.DiscoveryListener;
|
/frameworks/base/config/ |
D | hiddenapi-public-dex.txt | 25649 Landroid/net/nsd/NsdManager$DiscoveryListener; 25650 Landroid/net/nsd/NsdManager$DiscoveryListener;->onDiscoveryStarted(Ljava/lang/String;)V 25651 Landroid/net/nsd/NsdManager$DiscoveryListener;->onDiscoveryStopped(Ljava/lang/String;)V 25652 Landroid/net/nsd/NsdManager$DiscoveryListener;->onServiceFound(Landroid/net/nsd/NsdServiceInfo;)V 25653 Landroid/net/nsd/NsdManager$DiscoveryListener;->onServiceLost(Landroid/net/nsd/NsdServiceInfo;)V 25654 Landroid/net/nsd/NsdManager$DiscoveryListener;->onStartDiscoveryFailed(Ljava/lang/String;I)V 25655 Landroid/net/nsd/NsdManager$DiscoveryListener;->onStopDiscoveryFailed(Ljava/lang/String;I)V 25656 Landroid/net/nsd/NsdManager$RegistrationListener; 25657 Landroid/net/nsd/NsdManager$RegistrationListener;->onRegistrationFailed(Landroid/net/nsd/NsdService… 25658 Landroid/net/nsd/NsdManager$RegistrationListener;->onServiceRegistered(Landroid/net/nsd/NsdServiceI… [all …]
|
D | preloaded-classes | 2306 android.net.nsd.NsdManager
|
D | boot-image-profile.txt | 56853 Landroid/net/nsd/NsdManager;
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 17573 public final class NsdManager { 17574 …method public void discoverServices(java.lang.String, int, android.net.nsd.NsdManager.DiscoveryLis… 17575 …d registerService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager.RegistrationList… 17576 …method public void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdManager.Resol… 17577 method public void stopServiceDiscovery(android.net.nsd.NsdManager.DiscoveryListener); 17578 method public void unregisterService(android.net.nsd.NsdManager.RegistrationListener); 17589 public static abstract interface NsdManager.DiscoveryListener { 17598 public static abstract interface NsdManager.RegistrationListener { 17605 public static abstract interface NsdManager.ResolveListener {
|
/frameworks/base/api/ |
D | current.txt | 27642 public final class NsdManager { 27643 …method public void discoverServices(java.lang.String, int, android.net.nsd.NsdManager.DiscoveryLis… 27644 …d registerService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager.RegistrationList… 27645 …method public void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdManager.Resol… 27646 method public void stopServiceDiscovery(android.net.nsd.NsdManager.DiscoveryListener); 27647 method public void unregisterService(android.net.nsd.NsdManager.RegistrationListener); 27658 public static abstract interface NsdManager.DiscoveryListener { 27667 public static abstract interface NsdManager.RegistrationListener { 27674 public static abstract interface NsdManager.ResolveListener {
|