Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java54 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD;
60 NsdManager mManager;
86 NsdManager manager = mManager; in testResolveService()
90 NsdManager.ResolveListener listener = mock(NsdManager.ResolveListener.class); in testResolveService()
93 int key1 = verifyRequest(NsdManager.RESOLVE_SERVICE); in testResolveService()
95 sendResponse(NsdManager.RESOLVE_SERVICE_FAILED, err, key1, null); in testResolveService()
99 int key2 = verifyRequest(NsdManager.RESOLVE_SERVICE); in testResolveService()
100 sendResponse(NsdManager.RESOLVE_SERVICE_SUCCEEDED, 0, key2, reply); in testResolveService()
106 NsdManager manager = mManager; in testParallelResolveService()
111 NsdManager.ResolveListener listener1 = mock(NsdManager.ResolveListener.class); in testParallelResolveService()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNsdService.java26 import android.net.nsd.NsdManager;
92 return NsdManager.nameOf(what); in getWhatToString()
163 case NsdManager.DISCOVER_SERVICES: in processMessage()
164 replyToMessage(msg, NsdManager.DISCOVER_SERVICES_FAILED, in processMessage()
165 NsdManager.FAILURE_INTERNAL_ERROR); in processMessage()
167 case NsdManager.STOP_DISCOVERY: in processMessage()
168 replyToMessage(msg, NsdManager.STOP_DISCOVERY_FAILED, in processMessage()
169 NsdManager.FAILURE_INTERNAL_ERROR); in processMessage()
171 case NsdManager.REGISTER_SERVICE: in processMessage()
172 replyToMessage(msg, NsdManager.REGISTER_SERVICE_FAILED, in processMessage()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DDiscoveryListenerMultiplexer.java19 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 …]
DNsdResolveQueue.java19 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()
DMDNSFilteredDiscovery.java19 import android.net.nsd.NsdManager;
38 public class MDNSFilteredDiscovery implements NsdManager.DiscoveryListener {
105 private NsdManager getNDSManager() { in getNDSManager()
106 return (NsdManager) mContext.getSystemService(Context.NSD_SERVICE); in getNDSManager()
167 new NsdManager.ResolveListener() { in onServiceFound()
/frameworks/base/tests/net/java/com/android/server/
DNsdServiceTest.java30 import android.net.nsd.NsdManager;
59 static final int PROTOCOL = NsdManager.PROTOCOL_DNS_SD;
94 NsdManager client1 = connectClient(service); in testClientsCanConnectAndDisconnect()
97 NsdManager client2 = connectClient(service); in testClientsCanConnectAndDisconnect()
114 NsdManager client = connectClient(service); in testClientRequestsAreGCedAtDisconnection()
122 NsdManager.RegistrationListener listener1 = mock(NsdManager.RegistrationListener.class); in testClientRequestsAreGCedAtDisconnection()
127 NsdManager.DiscoveryListener listener2 = mock(NsdManager.DiscoveryListener.class); in testClientRequestsAreGCedAtDisconnection()
132 NsdManager.ResolveListener listener3 = mock(NsdManager.ResolveListener.class); in testClientRequestsAreGCedAtDisconnection()
156 NsdManager connectClient(NsdService service) { in connectClient()
157 return new NsdManager(mContext, service); in connectClient()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DServiceResolver.java19 import android.net.nsd.NsdManager;
34 private final NsdManager mNSDManager;
40 private final List<NsdManager.DiscoveryListener> mListeners = new ArrayList<>();
51 mNSDManager = (NsdManager) context.getSystemService(Context.NSD_SERVICE); in ServiceResolver()
59 NsdManager.DiscoveryListener listener = new NsdManager.DiscoveryListener() { in start()
97 for (NsdManager.DiscoveryListener listener : mListeners) { in stop()
136 … mNsdResolveQueue.resolve(mNSDManager, mCurrentRequest, new NsdManager.ResolveListener() { in makeNextRequest()
DXeroxPrintServiceRecommendationPlugin.java19 import android.net.nsd.NsdManager;
31 protected final NsdManager mNSDManager;
38 mNSDManager = (NsdManager) context.getSystemService(Context.NSD_SERVICE); in XeroxPrintServiceRecommendationPlugin()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DServiceResolveQueue.java19 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()
DServiceListener.java21 import android.net.nsd.NsdManager;
38 private final NsdManager mNSDManager;
43 private List<NsdManager.DiscoveryListener> mListeners = new ArrayList<>();
54 mNSDManager = (NsdManager)context.getSystemService(Context.NSD_SERVICE); in ServiceListener()
135 NsdManager.DiscoveryListener listener = new NsdManager.DiscoveryListener() { in start()
173 for(NsdManager.DiscoveryListener listener : mListeners) { in stop()
DServiceRecommendationPlugin.java20 import android.net.nsd.NsdManager;
38 protected final NsdManager mNSDManager;
43 mNSDManager = (NsdManager)context.getSystemService(Context.NSD_SERVICE); in ServiceRecommendationPlugin()
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java124 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/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbHostManagementActivity.java31 import android.net.nsd.NsdManager.DiscoveryListener;
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java123 import android.net.nsd.NsdManager;
549 registerService(Context.NSD_SERVICE, NsdManager.class, in registerService()
550 new CachedServiceFetcher<NsdManager>() { in registerService()
552 public NsdManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
555 return new NsdManager(ctx.getOuterContext(), service); in registerService()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java47 import android.net.nsd.NsdManager;
175 class PairingThread extends Thread implements NsdManager.RegistrationListener {
176 private NsdManager mNsdManager;
197 mNsdManager = (NsdManager) mContext.getSystemService(Context.NSD_SERVICE); in PairingThread()
217 mNsdManager.registerService(serviceInfo, NsdManager.PROTOCOL_DNS_SD, this); in run()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44894 Landroid/net/nsd/NsdManager;-><init>(Landroid/content/Context;Landroid/net/nsd/INsdManager;)V
44895 Landroid/net/nsd/NsdManager;->BASE:I
44896 Landroid/net/nsd/NsdManager;->checkListener(Ljava/lang/Object;)V
44897 Landroid/net/nsd/NsdManager;->checkProtocol(I)V
44898 Landroid/net/nsd/NsdManager;->checkServiceInfo(Landroid/net/nsd/NsdServiceInfo;)V
44899 Landroid/net/nsd/NsdManager;->DBG:Z
44900 Landroid/net/nsd/NsdManager;->DISABLE:I
44901 Landroid/net/nsd/NsdManager;->disconnect()V
44902 Landroid/net/nsd/NsdManager;->DISCOVER_SERVICES:I
44903 Landroid/net/nsd/NsdManager;->DISCOVER_SERVICES_FAILED:I
[all …]
Dpreloaded-classes2610 android.net.nsd.NsdManager
Dboot-image-profile.txt34986 Landroid/net/nsd/NsdManager;
41051 …app/SystemServiceRegistry$34;->createService(Landroid/app/ContextImpl;)Landroid/net/nsd/NsdManager;
42215 HSPLandroid/net/nsd/NsdManager;->access$000(Landroid/net/nsd/NsdManager;)Lcom/android/internal/util…
42216 HSPLandroid/net/nsd/NsdManager;->access$100(Landroid/net/nsd/NsdManager;)Ljava/util/concurrent/Coun…
42217 HSPLandroid/net/nsd/NsdManager;->getMessenger()Landroid/os/Messenger;
42218 HSPLandroid/net/nsd/NsdManager;-><init>(Landroid/content/Context;Landroid/net/nsd/INsdManager;)V
42219 HSPLandroid/net/nsd/NsdManager;->init()V
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17573 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/non-updatable-api/
Dcurrent.txt29544 public final class NsdManager {
29545 method public void discoverServices(String, int, android.net.nsd.NsdManager.DiscoveryListener);
29546 …d registerService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager.RegistrationList…
29547 …method public void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdManager.Resol…
29548 method public void stopServiceDiscovery(android.net.nsd.NsdManager.DiscoveryListener);
29549 method public void unregisterService(android.net.nsd.NsdManager.RegistrationListener);
29560 public static interface NsdManager.DiscoveryListener {
29569 public static interface NsdManager.RegistrationListener {
29576 public static interface NsdManager.ResolveListener {
/frameworks/base/api/
Dcurrent.txt29674 public final class NsdManager {
29675 method public void discoverServices(String, int, android.net.nsd.NsdManager.DiscoveryListener);
29676 …d registerService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager.RegistrationList…
29677 …method public void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdManager.Resol…
29678 method public void stopServiceDiscovery(android.net.nsd.NsdManager.DiscoveryListener);
29679 method public void unregisterService(android.net.nsd.NsdManager.RegistrationListener);
29690 public static interface NsdManager.DiscoveryListener {
29699 public static interface NsdManager.RegistrationListener {
29706 public static interface NsdManager.ResolveListener {