Home
last modified time | relevance | path

Searched refs:NsdServiceInfo (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/tests/net/java/android/net/nsd/
DNsdServiceInfoTest.java58 NsdServiceInfo info = new NsdServiceInfo(); in testLimits()
114 NsdServiceInfo emptyInfo = new NsdServiceInfo(); in testParcel()
117 NsdServiceInfo fullInfo = new NsdServiceInfo(); in testParcel()
124 NsdServiceInfo noHostInfo = new NsdServiceInfo(); in testParcel()
130 NsdServiceInfo attributedInfo = new NsdServiceInfo(); in testParcel()
153 public void checkParcelable(NsdServiceInfo original) { in checkParcelable()
163 reader.setClassLoader(NsdServiceInfo.class.getClassLoader()); in checkParcelable()
164 NsdServiceInfo result = reader.getParcelable("test_info"); in checkParcelable()
181 public void assertEmptyServiceInfo(NsdServiceInfo shouldBeEmpty) { in assertEmptyServiceInfo()
DNsdManagerTest.java88 NsdServiceInfo request = new NsdServiceInfo("a_name", "a_type"); in testResolveService()
89 NsdServiceInfo reply = new NsdServiceInfo("resolved_name", "resolved_type"); in testResolveService()
108 NsdServiceInfo request = new NsdServiceInfo("a_name", "a_type"); in testParallelResolveService()
109 NsdServiceInfo reply = new NsdServiceInfo("resolved_name", "resolved_type"); in testParallelResolveService()
131 NsdServiceInfo request1 = new NsdServiceInfo("a_name", "a_type"); in testRegisterService()
132 NsdServiceInfo request2 = new NsdServiceInfo("another_name", "another_type"); in testRegisterService()
190 NsdServiceInfo reply1 = new NsdServiceInfo("a_name", "a_type"); in testDiscoverService()
191 NsdServiceInfo reply2 = new NsdServiceInfo("another_name", "a_type"); in testDiscoverService()
192 NsdServiceInfo reply3 = new NsdServiceInfo("a_third_name", "a_type"); in testDiscoverService()
272 NsdServiceInfo invalidService = new NsdServiceInfo(null, null); in testInvalidCalls()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DServiceResolveQueue.java20 import android.net.nsd.NsdServiceInfo;
29 private final LinkedList<Pair<NsdServiceInfo, ResolveCallback>> mQueue = new LinkedList<>();
35 private Pair<NsdServiceInfo, ResolveCallback> mCurrentRequest = null;
53 void serviceResolved(NsdServiceInfo nsdServiceInfo); in serviceResolved()
61 public void queueRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) { in queueRequest()
63 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback); in queueRequest()
70 public void removeRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) { in removeRequest()
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback); in removeRequest()
86 public void onResolveFailed(NsdServiceInfo nsdServiceInfo, int i) { in makeNextRequest()
94 public void onServiceResolved(NsdServiceInfo nsdServiceInfo) { in makeNextRequest()
DServiceListener.java22 import android.net.nsd.NsdServiceInfo;
47 boolean matchesCriteria(String vendor, NsdServiceInfo serviceInfo); in matchesCriteria()
72 public void serviceResolved(NsdServiceInfo nsdServiceInfo) { in serviceResolved()
76 private synchronized void printerFound(NsdServiceInfo nsdServiceInfo) { in printerFound()
119 private synchronized void printerRemoved(NsdServiceInfo nsdServiceInfo) { in printerRemoved()
157 public void onServiceFound(NsdServiceInfo nsdServiceInfo) { in start()
162 public void onServiceLost(NsdServiceInfo nsdServiceInfo) { in start()
DMDnsUtils.java19 import android.net.nsd.NsdServiceInfo;
37 public static boolean isVendorPrinter(NsdServiceInfo networkDevice, String[] vendorValues) { in isVendorPrinter()
48 public static String getVendor(NsdServiceInfo networkDevice) { in getVendor()
DServiceRecommendationPlugin.java21 import android.net.nsd.NsdServiceInfo;
84 public boolean matchesCriteria(String vendor, NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
DHPRecommendationPlugin.java20 import android.net.nsd.NsdServiceInfo;
87 public boolean matchesCriteria(String vendor, NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPrinterHashMap.java19 import android.net.nsd.NsdServiceInfo;
30 private final ArrayMap<String, NsdServiceInfo> mPrinters = new ArrayMap<>();
39 public static String getKey(NsdServiceInfo serviceInfo) { in getKey()
50 public NsdServiceInfo addPrinter(NsdServiceInfo device) { in addPrinter()
61 public NsdServiceInfo removePrinter(NsdServiceInfo device) { in removePrinter()
DMDNSFilteredDiscovery.java20 import android.net.nsd.NsdServiceInfo;
54 boolean matchesCriteria(NsdServiceInfo nsdServiceInfo); in matchesCriteria()
165 public void onServiceFound(NsdServiceInfo serviceInfo) { in onServiceFound()
169 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onServiceFound()
175 public void onServiceResolved(NsdServiceInfo serviceInfo) { in onServiceFound()
179 NsdServiceInfo old = mPrinters.addPrinter(serviceInfo); in onServiceFound()
190 public void onServiceLost(NsdServiceInfo serviceInfo) { in onServiceLost()
191 NsdServiceInfo oldAddress = mPrinters.removePrinter(serviceInfo); in onServiceLost()
DNsdResolveQueue.java20 import android.net.nsd.NsdServiceInfo;
61 final @NonNull NsdServiceInfo serviceInfo;
65 @NonNull NsdServiceInfo serviceInfo, @NonNull NsdManager.ResolveListener listener) { in NsdResolveRequest()
79 public void resolve(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in resolve()
103 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onResolveFailed()
113 public void onServiceResolved(NsdServiceInfo serviceInfo) { in onServiceResolved()
DMDNSUtils.java20 import android.net.nsd.NsdServiceInfo;
48 public static boolean isVendorPrinter(@NonNull NsdServiceInfo serviceInfo, in isVendorPrinter()
123 public static boolean isSupportedServiceType(@NonNull NsdServiceInfo serviceInfo, in isSupportedServiceType()
DDiscoveryListenerMultiplexer.java20 import android.net.nsd.NsdServiceInfo;
155 public void onServiceFound(NsdServiceInfo serviceInfo) { in onServiceFound()
167 public void onServiceLost(NsdServiceInfo serviceInfo) { in onServiceLost()
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java253 private final SparseArray<NsdServiceInfo> mServiceMap = new SparseArray<>();
315 public void onServiceFound(NsdServiceInfo serviceInfo); in onServiceFound()
317 public void onServiceLost(NsdServiceInfo serviceInfo); in onServiceLost()
323 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onRegistrationFailed()
325 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onUnregistrationFailed()
327 public void onServiceRegistered(NsdServiceInfo serviceInfo); in onServiceRegistered()
329 public void onServiceUnregistered(NsdServiceInfo serviceInfo); in onServiceUnregistered()
335 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode); in onResolveFailed()
337 public void onServiceResolved(NsdServiceInfo serviceInfo); in onServiceResolved()
364 final NsdServiceInfo ns; in handleMessage()
[all …]
DNsdServiceInfo.java38 public final class NsdServiceInfo implements Parcelable { class
52 public NsdServiceInfo() { in NsdServiceInfo() method in NsdServiceInfo
56 public NsdServiceInfo(String sn, String rt) { in NsdServiceInfo() method in NsdServiceInfo
358 public static final @android.annotation.NonNull Creator<NsdServiceInfo> CREATOR =
359 new Creator<NsdServiceInfo>() {
360 public NsdServiceInfo createFromParcel(Parcel in) {
361 NsdServiceInfo info = new NsdServiceInfo();
387 public NsdServiceInfo[] newArray(int size) {
388 return new NsdServiceInfo[size];
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DServiceResolver.java20 import android.net.nsd.NsdServiceInfo;
81 public void onServiceFound(NsdServiceInfo nsdServiceInfo) { in start()
86 public void onServiceLost(NsdServiceInfo nsdServiceInfo) { in start()
105 private final LinkedList<NsdServiceInfo> mQueue = new LinkedList<>();
107 private NsdServiceInfo mCurrentRequest = null;
109 private void queueRequest(NsdServiceInfo serviceInfo) { in queueRequest()
117 private void removeRequest(NsdServiceInfo serviceInfo) { in removeRequest()
138 public void onResolveFailed(NsdServiceInfo nsdServiceInfo, int i) { in makeNextRequest()
146 public void onServiceResolved(NsdServiceInfo nsdServiceInfo) { in makeNextRequest()
160 private void printerFound(NsdServiceInfo nsdServiceInfo) { in printerFound()
[all …]
DMDnsUtils.java18 import android.net.nsd.NsdServiceInfo;
34 public static boolean isVendorPrinter(NsdServiceInfo networkDevice, String[] vendorValues) { in isVendorPrinter()
48 public static String getVendor(NsdServiceInfo networkDevice) { in getVendor()
60 public static boolean checkPDLSupport(NsdServiceInfo networkDevice, String[] pdlFormats) { in checkPDLSupport()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
DPrinterFilterSamsung.java19 import android.net.nsd.NsdServiceInfo;
65 public boolean matchesCriteria(NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
94 private String getSamsungModelName(@NonNull NsdServiceInfo resolvedDevice) { in getSamsungModelName()
DPrinterFilterMopria.java19 import android.net.nsd.NsdServiceInfo;
47 public boolean matchesCriteria(NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
DSamsungRecommendationPlugin.java20 import android.net.nsd.NsdServiceInfo;
46 (NsdServiceInfo nsdServiceInfo) -> in SamsungRecommendationPlugin()
/frameworks/base/services/core/java/com/android/server/
DNsdService.java27 import android.net.nsd.NsdServiceInfo;
250 NsdServiceInfo servInfo; in processMessage()
268 servInfo = (NsdServiceInfo) msg.obj; in processMessage()
320 if (registerService(id, (NsdServiceInfo) msg.obj)) { in processMessage()
350 servInfo = (NsdServiceInfo) msg.obj; in processMessage()
362 clientInfo.mResolvedService = new NsdServiceInfo(); in processMessage()
382 NsdServiceInfo servInfo; in handleNativeEvent()
410 servInfo = new NsdServiceInfo(cooked[2], cooked[3]); in handleNativeEvent()
416 servInfo = new NsdServiceInfo(cooked[2], cooked[3]); in handleNativeEvent()
427 servInfo = new NsdServiceInfo(cooked[2], null); in handleNativeEvent()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mopria/
DMopriaRecommendationPlugin.java21 import android.net.nsd.NsdServiceInfo;
43 public boolean matchesCriteria(String vendor, NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mdnsFilter/
DMDNSFilterPlugin.java20 import android.net.nsd.NsdServiceInfo;
62 public boolean matchesCriteria(NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
/frameworks/base/tests/net/java/com/android/server/
DNsdServiceTest.java31 import android.net.nsd.NsdServiceInfo;
118 NsdServiceInfo request = new NsdServiceInfo("a_name", "a_type"); in testClientRequestsAreGCedAtDisconnection()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java48 import android.net.nsd.NsdServiceInfo;
213 NsdServiceInfo serviceInfo = new NsdServiceInfo(); in run()
249 public void onServiceRegistered(NsdServiceInfo serviceInfo) { in onServiceRegistered()
254 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { in onRegistrationFailed()
261 public void onServiceUnregistered(NsdServiceInfo serviceInfo) { in onServiceUnregistered()
266 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { in onUnregistrationFailed()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17575 …method public void registerService(android.net.nsd.NsdServiceInfo, int, android.net.nsd.NsdManager…
17576 …method public void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdManager.Resol…
17592 method public abstract void onServiceFound(android.net.nsd.NsdServiceInfo);
17593 method public abstract void onServiceLost(android.net.nsd.NsdServiceInfo);
17599 method public abstract void onRegistrationFailed(android.net.nsd.NsdServiceInfo, int);
17600 method public abstract void onServiceRegistered(android.net.nsd.NsdServiceInfo);
17601 method public abstract void onServiceUnregistered(android.net.nsd.NsdServiceInfo);
17602 method public abstract void onUnregistrationFailed(android.net.nsd.NsdServiceInfo, int);
17606 method public abstract void onResolveFailed(android.net.nsd.NsdServiceInfo, int);
17607 method public abstract void onServiceResolved(android.net.nsd.NsdServiceInfo);
[all …]

12