/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsServiceInfoTest.java | 31 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 76 List.of(MdnsServiceInfo.TextEntry.fromString("vn=Google Inc."), in constructor_createWithOnlyTextEntries_correctAttributes() 77 MdnsServiceInfo.TextEntry.fromString("mn=Google Nest Hub Max")), in constructor_createWithOnlyTextEntries_correctAttributes() 97 MdnsServiceInfo.TextEntry.fromString("vn=Google Inc."), in constructor_createWithBothTextStringsAndTextEntries_acceptsOnlyTextEntries() 98 MdnsServiceInfo.TextEntry.fromString("mn=Google Nest Hub Max")), in constructor_createWithBothTextStringsAndTextEntries_acceptsOnlyTextEntries() 117 List.of(MdnsServiceInfo.TextEntry.fromString("vn=Google Inc."), in constructor_createWithDuplicateKeys_acceptsTheFirstOne() 118 MdnsServiceInfo.TextEntry.fromString("mn=Google Nest Hub Max"), in constructor_createWithDuplicateKeys_acceptsTheFirstOne() 119 MdnsServiceInfo.TextEntry.fromString("mn=Google WiFi Router")), in constructor_createWithDuplicateKeys_acceptsTheFirstOne() 233 MdnsServiceInfo.TextEntry.fromString("vn=Google Inc."), in parcelable_canBeParceledAndUnparceled() 234 MdnsServiceInfo.TextEntry.fromString("mn=Google Nest Hub Max"), in parcelable_canBeParceledAndUnparceled() [all …]
|
D | MdnsRecordTests.java | 34 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 361 List<TextEntry> entries = record.getEntries(); in testTextRecord() 365 assertEquals(new TextEntry("a", "hello there"), entries.get(0)); in testTextRecord() 366 assertEquals(new TextEntry("b", "1234567890"), entries.get(1)); in testTextRecord() 367 assertEquals(new TextEntry("xyz", "!@#$"), entries.get(2)); in testTextRecord() 421 List<TextEntry> entries = record.getEntries(); in textRecord_entriesIncludeNonUtf8Bytes_returnsTheSameUtf8Bytes() 424 assertEquals(new TextEntry("a", "hello there"), entries.get(0)); in textRecord_entriesIncludeNonUtf8Bytes_returnsTheSameUtf8Bytes() 425 assertEquals(new TextEntry("b", "1234567890"), entries.get(1)); in textRecord_entriesIncludeNonUtf8Bytes_returnsTheSameUtf8Bytes() 426 assertEquals(new TextEntry("xyz", HexDump.hexStringToByteArray("FFEFDFCF")), in textRecord_entriesIncludeNonUtf8Bytes_returnsTheSameUtf8Bytes()
|
D | MdnsResponseDecoderTests.java | 505 new MdnsServiceInfo.TextEntry("a", "hello there"), in testDecodeWithChangeOnText() 506 new MdnsServiceInfo.TextEntry("b", "1234567890"), in testDecodeWithChangeOnText() 507 new MdnsServiceInfo.TextEntry("xyz", "!@#$")), in testDecodeWithChangeOnText()
|
D | MdnsProberTest.kt | 160 listOf(MdnsServiceInfo.TextEntry("testKey", "testValue"))))) in <lambda>()
|
D | MdnsRecordRepositoryTest.kt | 36 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry in <lambda>() 1298 listOf(TextEntry.fromString("somedifferent=entry"))), in testGetConflictingServices() 1329 listOf(TextEntry.fromString("somedifferent=entry"))), in testGetConflictingServicesCaseInsensitive()
|
D | MdnsServiceTypeClientTests.java | 63 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 2271 final List<TextEntry> textEntries = new ArrayList<>(); in createResponse() 2273 textEntries.add(new TextEntry(kv.getKey(), kv.getValue().getBytes(UTF_8))); in createResponse()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsServiceInfo.java | 64 source.createTypedArrayList(TextEntry.CREATOR), 87 final List<TextEntry> textEntries; 111 @Nullable List<TextEntry> textEntries, in MdnsServiceInfo() 142 @Nullable List<TextEntry> textEntries, in MdnsServiceInfo() 164 List<TextEntry> entries = in MdnsServiceInfo() 168 for (TextEntry entry : entries) { in MdnsServiceInfo() 181 private static List<TextEntry> parseTextStrings(List<String> textStrings) { in parseTextStrings() 182 List<TextEntry> list = new ArrayList(textStrings.size()); in parseTextStrings() 184 TextEntry entry = TextEntry.fromString(textString); in parseTextStrings() 357 public static final class TextEntry implements Parcelable { class in MdnsServiceInfo [all …]
|
D | MdnsTextRecord.java | 23 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 34 private List<TextEntry> entries; 52 List<TextEntry> entries) { in MdnsTextRecord() 61 for (TextEntry entry : entries) { in getStrings() 68 public List<TextEntry> getEntries() { in getEntries() 76 TextEntry entry = reader.readTextEntry(); in readData() 86 for (TextEntry entry : entries) { in writeData() 97 for (TextEntry entry : entries) { in toString()
|
D | MdnsPacketReader.java | 23 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 221 public TextEntry readTextEntry() throws EOFException { in readTextEntry() 227 return TextEntry.fromBytes(bytes); in readTextEntry()
|
D | MdnsPacketWriter.java | 19 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 160 public void writeTextEntry(TextEntry textEntry) throws IOException { in writeTextEntry()
|
D | MdnsRecordRepository.java | 550 private static List<MdnsServiceInfo.TextEntry> attrsToTextEntries(Map<String, byte[]> attrs) { in attrsToTextEntries() 551 final List<MdnsServiceInfo.TextEntry> out = new ArrayList<>(attrs.size()); in attrsToTextEntries() 553 out.add(new MdnsServiceInfo.TextEntry(attr.getKey(), attr.getValue())); in attrsToTextEntries()
|
D | MdnsServiceTypeClient.java | 335 List<MdnsServiceInfo.TextEntry> textEntries = null; in buildMdnsServiceInfoFromResponse()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 1337 List.of(MdnsServiceInfo.TextEntry.fromBytes(new byte[]{ in testResolutionWithMdnsDiscoveryManager()
|