Home
last modified time | relevance | path

Searched refs:textStrings (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsServiceInfo.java85 final List<String> textStrings; field in MdnsServiceInfo
110 @Nullable List<String> textStrings, in MdnsServiceInfo() argument
121 textStrings, in MdnsServiceInfo()
141 @Nullable List<String> textStrings, in MdnsServiceInfo() argument
156 this.textStrings = new ArrayList<>(); in MdnsServiceInfo()
157 if (textStrings != null) { in MdnsServiceInfo()
158 this.textStrings.addAll(textStrings); in MdnsServiceInfo()
165 (this.textEntries != null) ? this.textEntries : parseTextStrings(this.textStrings); in MdnsServiceInfo()
181 private static List<TextEntry> parseTextStrings(List<String> textStrings) { in parseTextStrings() argument
182 List<TextEntry> list = new ArrayList(textStrings.size()); in parseTextStrings()
[all …]
DMdnsServiceTypeClient.java334 List<String> textStrings = null; in buildMdnsServiceInfoFromResponse() local
337 textStrings = response.getTextRecord().getStrings(); in buildMdnsServiceInfoFromResponse()
350 textStrings, in buildMdnsServiceInfoFromResponse()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseDecoderTests.java262 List<String> textStrings = textRecord.getStrings(); in testDecodeMultipleAnswerPacket() local
263 assertEquals(7, textStrings.size()); in testDecodeMultipleAnswerPacket()
264 assertEquals("id=970bf547b753fc63c2d2a36bb896aba8", textStrings.get(0)); in testDecodeMultipleAnswerPacket()
265 assertEquals("ve=02", textStrings.get(1)); in testDecodeMultipleAnswerPacket()
266 assertEquals("md=Chromecast", textStrings.get(2)); in testDecodeMultipleAnswerPacket()
267 assertEquals("ic=/setup/icon.png", textStrings.get(3)); in testDecodeMultipleAnswerPacket()
268 assertEquals("fn=Johnny's Chromecast", textStrings.get(4)); in testDecodeMultipleAnswerPacket()
269 assertEquals("ca=5", textStrings.get(5)); in testDecodeMultipleAnswerPacket()
270 assertEquals("st=0", textStrings.get(6)); in testDecodeMultipleAnswerPacket()