Home
last modified time | relevance | path

Searched refs:serviceInstanceName (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsServiceCacheTest.kt91 assertEquals(serviceName, event.previousResponse.serviceInstanceName) in <lambda>()
163 assertEquals(SERVICE_NAME_1, response.serviceInstanceName) in <lambda>()
179 response.serviceInstanceName == SERVICE_NAME_1 in <lambda>()
182 response.serviceInstanceName == SERVICE_NAME_2 in <lambda>()
187 response.serviceInstanceName == SERVICE_NAME_2 in <lambda>()
194 response.serviceInstanceName == SERVICE_NAME_1 in <lambda>()
199 response.serviceInstanceName == SERVICE_NAME_2 in <lambda>()
295 serviceInstanceName: String, in <lambda>()
299 val serviceName = "$serviceInstanceName.$serviceType".split(".").toTypedArray() in <lambda>()
301 0 /* now */, "$serviceInstanceName.$serviceType".split(".").toTypedArray(), in <lambda>()
DMdnsServiceTypeClientTests.java1017 final String serviceInstanceName = "service-instance-1"; in processResponse_searchOptionsEnableServiceRemoval_shouldRemove() local
1027 serviceInstanceName, "192.168.1.1", 5353, SUBTYPE, in processResponse_searchOptionsEnableServiceRemoval_shouldRemove()
1048 mockListenerOne, serviceInstanceName, SERVICE_TYPE_LABELS, socketKey); in processResponse_searchOptionsEnableServiceRemoval_shouldRemove()
1054 final String serviceInstanceName = "service-instance-1"; in processResponse_searchOptionsNotEnableServiceRemoval_shouldNotRemove() local
1060 serviceInstanceName, "192.168.1.1", 5353, SUBTYPE, in processResponse_searchOptionsNotEnableServiceRemoval_shouldNotRemove()
1079 final String serviceInstanceName = "service-instance-1"; in processResponse_removeServiceAfterTtlExpiresEnabled_shouldRemove() local
1085 serviceInstanceName, "192.168.1.1", 5353, SUBTYPE, in processResponse_removeServiceAfterTtlExpiresEnabled_shouldRemove()
1097 mockListenerOne, serviceInstanceName, SERVICE_TYPE_LABELS, socketKey); in processResponse_removeServiceAfterTtlExpiresEnabled_shouldRemove()
2194 @NonNull String serviceInstanceName, in createResponse()
2205 return createResponse(serviceInstanceName, host, port, type.toArray(new String[0]), in createResponse()
[all …]
DMdnsResponseDecoderTests.java243 String serviceInstanceName = serviceRecord.getServiceInstanceName(); in testDecodeMultipleAnswerPacket() local
244 assertEquals("Johnny's Chromecast", serviceInstanceName); in testDecodeMultipleAnswerPacket()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsServiceInfo.java76 private final String serviceInstanceName; field in MdnsServiceInfo
103 String serviceInstanceName, in MdnsServiceInfo() argument
114 serviceInstanceName, in MdnsServiceInfo()
134 String serviceInstanceName, in MdnsServiceInfo() argument
146 this.serviceInstanceName = serviceInstanceName; in MdnsServiceInfo()
194 return serviceInstanceName; in getServiceInstanceName()
326 out.writeString(serviceInstanceName); in writeToParcel()
342 return "Name: " + serviceInstanceName in toString()
DMdnsServiceTypeClient.java329 String serviceInstanceName = response.getServiceInstanceName(); in buildMdnsServiceInfoFromResponse() local
330 if (serviceInstanceName == null) { in buildMdnsServiceInfoFromResponse()
343 serviceInstanceName, in buildMdnsServiceInfoFromResponse()
520 final String serviceInstanceName = response.getServiceInstanceName(); in processResponse() local
523 onGoodbyeReceived(serviceInstanceName); in processResponse()
527 } else if (findMatchedResponse(cachedList, serviceInstanceName) != null) { in processResponse()
587 final String serviceInstanceName = response.getServiceInstanceName(); in onResponseModified() local
589 serviceCache.getCachedService(serviceInstanceName, cacheKey); in onResponseModified()
594 if (serviceInstanceName != null) { in onResponseModified()
606 serviceInstanceName, newInCache, serviceBecomesComplete, in onResponseModified()
[all …]