/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordTests.java | 70 MdnsPacketReader reader = new MdnsPacketReader(packet); in testInet4AddressRecord() 106 MdnsPacketReader reader = new MdnsPacketReader(packet); in testTypeAAAInet6AddressRecord() 143 MdnsPacketReader reader = new MdnsPacketReader(packet); in testTypeAAAInet4AddressRecord() 183 MdnsPacketReader reader = new MdnsPacketReader(packet); in testPointerRecord() 220 MdnsPacketReader reader = new MdnsPacketReader(packet); in testServiceRecord() 257 MdnsPacketReader reader = new MdnsPacketReader(packet); in testAnyRecord() 301 MdnsPacketReader reader = new MdnsPacketReader(packet); in testNsecRecord() 340 MdnsPacketReader reader = new MdnsPacketReader(packet); in testTextRecord() 395 MdnsPacketReader reader = new MdnsPacketReader(packet); in textRecord_recordDoesNotHaveDataOfGivenLength_throwsEOFException() 414 MdnsPacketReader reader = new MdnsPacketReader(packet); in textRecord_entriesIncludeNonUtf8Bytes_returnsTheSameUtf8Bytes() [all …]
|
D | MdnsResponseTests.java | 87 public MdnsInet4AddressRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsInet4AddressRecord() 93 public MdnsInet6AddressRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsInet6AddressRecord() 123 MdnsPacketReader reader = new MdnsPacketReader(packet); in getInet4AddressRecord_returnsAddedRecord() 136 MdnsPacketReader reader = new MdnsPacketReader(packet); in getInet6AddressRecord_returnsAddedRecord() 150 MdnsPacketReader reader = new MdnsPacketReader(packet); in getPointerRecords_returnsAddedRecord() 166 MdnsPacketReader reader = new MdnsPacketReader(packet); in getServiceRecord_returnsAddedRecord() 179 MdnsPacketReader reader = new MdnsPacketReader(packet); in getTextRecord_returnsAddedRecord()
|
D | MdnsPacketReaderTests.java | 47 MdnsPacketReader packetReader = new MdnsPacketReader(datagramPacket); in testLimits() 96 MdnsPacketReader packetReader = new MdnsPacketReader( in testInfinitePtrLoop()
|
D | MdnsPacketTest.kt | 45 val reader = MdnsPacketReader(bytes, bytes.size, makeFlags()) in makeFlags() 82 val reader = MdnsPacketReader( in testParseQueryWithLabelLoop_ThrowsParseException()
|
D | MdnsServiceTypeClientTests.java | 713 new MdnsPacketReader(subtype1QueryCaptor.getValue().get(0))); in testCombinedSubtypesQueriedWithMultipleListeners() 734 new MdnsPacketReader(combinedSubtypesQueryCaptor.getValue().get(0))); in testCombinedSubtypesQueriedWithMultipleListeners() 758 new MdnsPacketReader(subtype2QueryCaptor.getValue().get(0))); in testCombinedSubtypesQueriedWithMultipleListeners() 1226 new MdnsPacketReader(srvTxtQueryCaptor.getValue().get(0))); in testProcessResponse_Resolve() 1269 new MdnsPacketReader(addressQueryCaptor.getValue().get(0))); in testProcessResponse_Resolve() 1337 new MdnsPacketReader(srvTxtQueryCaptor.getValue().get(0))); in testRenewTxtSrvInResolve() 1391 new MdnsPacketReader(renewalQueryCaptor.getValue().get(0))); in testRenewTxtSrvInResolve() 1956 new MdnsPacketReader(queryCaptor.getValue().get(0))); in testSendQueryWithKnownAnswers() 1991 new MdnsPacketReader(knownAnswersQueryCaptor.getValue().get(0))); in testSendQueryWithKnownAnswers() 2022 new MdnsPacketReader(queryCaptor.getValue().get(0))); in testSendQueryWithSubTypeWithKnownAnswers() [all …]
|
D | MdnsResponseDecoderTests.java | 580 MdnsPacketReader reader = new MdnsPacketReader(packet); in makeMdnsResponse()
|
D | MdnsReplySenderTest.kt | 189 val mdnsPacket = MdnsPacket.parse(MdnsPacketReader( in verifyReplySent()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsPacket.java | 82 public static MdnsPacket parse(@NonNull MdnsPacketReader reader) throws ParseException { in parse() 100 public static MdnsPacket parseRecordsSection(@NonNull MdnsPacketReader reader, int flags, in parseRecordsSection() 120 private static ArrayList<MdnsRecord> parseRecords(@NonNull MdnsPacketReader reader, int count, in parseRecords() 134 private static MdnsRecord parseRecord(@NonNull MdnsPacketReader reader, boolean isQuestion) in parseRecord() 238 private static void skipMdnsRecord(@NonNull MdnsPacketReader reader, boolean isQuestion) in skipMdnsRecord()
|
D | MdnsNsecRecord.java | 37 public MdnsNsecRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsNsecRecord() 41 public MdnsNsecRecord(String[] name, MdnsPacketReader reader, boolean isQuestion) in MdnsNsecRecord() 64 protected void readData(MdnsPacketReader reader) throws IOException { in readData() 69 private int[] readTypes(MdnsPacketReader reader) throws IOException { in readTypes()
|
D | MdnsPointerRecord.java | 33 public MdnsPointerRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsPointerRecord() 37 public MdnsPointerRecord(String[] name, MdnsPacketReader reader, boolean isQuestion) in MdnsPointerRecord() 61 protected void readData(MdnsPacketReader reader) throws IOException { in readData()
|
D | MdnsKeyRecord.java | 34 public MdnsKeyRecord(@NonNull String[] name, @NonNull MdnsPacketReader reader) in MdnsKeyRecord() 39 public MdnsKeyRecord(@NonNull String[] name, @NonNull MdnsPacketReader reader, in MdnsKeyRecord() 67 protected void readData(MdnsPacketReader reader) throws IOException { in readData()
|
D | MdnsTextRecord.java | 36 public MdnsTextRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsTextRecord() 40 public MdnsTextRecord(String[] name, MdnsPacketReader reader, boolean isQuestion) in MdnsTextRecord() 73 protected void readData(MdnsPacketReader reader) throws IOException { in readData()
|
D | MdnsInetAddressRecord.java | 44 public MdnsInetAddressRecord(String[] name, int type, MdnsPacketReader reader) in MdnsInetAddressRecord() 57 public MdnsInetAddressRecord(String[] name, int type, MdnsPacketReader reader, in MdnsInetAddressRecord() 93 protected void readData(MdnsPacketReader reader) throws IOException { in readData()
|
D | MdnsServiceRecord.java | 43 public MdnsServiceRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsServiceRecord() 47 public MdnsServiceRecord(String[] name, MdnsPacketReader reader, boolean isQuestion) in MdnsServiceRecord() 124 protected void readData(MdnsPacketReader reader) throws IOException { in readData()
|
D | MdnsAnyRecord.java | 28 protected MdnsAnyRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsAnyRecord() 38 protected void readData(MdnsPacketReader reader) throws IOException { in readData()
|
D | MdnsPacketReader.java | 33 public class MdnsPacketReader { class 47 public MdnsPacketReader(DatagramPacket packet) { in MdnsPacketReader() method in MdnsPacketReader 52 public MdnsPacketReader(byte[] buffer, int length, @NonNull MdnsFeatureFlags mdnsFeatureFlags) { in MdnsPacketReader() method in MdnsPacketReader
|
D | MdnsRecord.java | 76 protected MdnsRecord(String[] name, int type, MdnsPacketReader reader, boolean isQuestion) in MdnsRecord() 105 protected MdnsRecord(String[] name, int type, MdnsPacketReader reader) throws IOException { in MdnsRecord() 217 protected abstract void readData(MdnsPacketReader reader) throws IOException; in readData()
|
D | MdnsResponseDecoder.java | 89 final MdnsPacketReader reader = new MdnsPacketReader(recvbuf, length, mdnsFeatureFlags); in parseResponse()
|
D | MdnsInterfaceAdvertiser.java | 408 packet = MdnsPacket.parse(new MdnsPacketReader(recvbuf, length, mMdnsFeatureFlags)); in handlePacket()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/util/ |
D | MdnsUtilsTest.kt | 23 import com.android.server.connectivity.mdns.MdnsPacketReader in <lambda>() 186 val mdnsPacket = MdnsPacket.parse(MdnsPacketReader(packet)) in <lambda>()
|