/frameworks/base/tests/net/java/android/net/nsd/ |
D | NsdServiceInfoTest.java | 58 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()
|
D | NsdManagerTest.java | 88 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/ |
D | ServiceResolveQueue.java | 20 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()
|
D | ServiceListener.java | 22 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()
|
D | MDnsUtils.java | 19 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()
|
D | ServiceRecommendationPlugin.java | 21 import android.net.nsd.NsdServiceInfo; 84 public boolean matchesCriteria(String vendor, NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
|
D | HPRecommendationPlugin.java | 20 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/ |
D | PrinterHashMap.java | 19 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()
|
D | MDNSFilteredDiscovery.java | 20 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()
|
D | NsdResolveQueue.java | 20 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()
|
D | MDNSUtils.java | 20 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()
|
D | DiscoveryListenerMultiplexer.java | 20 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/ |
D | NsdManager.java | 253 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 …]
|
D | NsdServiceInfo.java | 38 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/ |
D | ServiceResolver.java | 20 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 …]
|
D | MDnsUtils.java | 18 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/ |
D | PrinterFilterSamsung.java | 19 import android.net.nsd.NsdServiceInfo; 65 public boolean matchesCriteria(NsdServiceInfo nsdServiceInfo) { in matchesCriteria() 94 private String getSamsungModelName(@NonNull NsdServiceInfo resolvedDevice) { in getSamsungModelName()
|
D | PrinterFilterMopria.java | 19 import android.net.nsd.NsdServiceInfo; 47 public boolean matchesCriteria(NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
|
D | SamsungRecommendationPlugin.java | 20 import android.net.nsd.NsdServiceInfo; 46 (NsdServiceInfo nsdServiceInfo) -> in SamsungRecommendationPlugin()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NsdService.java | 27 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/ |
D | MopriaRecommendationPlugin.java | 21 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/ |
D | MDNSFilterPlugin.java | 20 import android.net.nsd.NsdServiceInfo; 62 public boolean matchesCriteria(NsdServiceInfo nsdServiceInfo) { in matchesCriteria()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | NsdServiceTest.java | 31 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/ |
D | AdbDebuggingManager.java | 48 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/ |
D | android-22.txt | 17575 …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 …]
|