Home
last modified time | relevance | path

Searched refs:MdnsPacketReader (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsRecordTests.java70 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 …]
DMdnsResponseTests.java87 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()
DMdnsPacketReaderTests.java47 MdnsPacketReader packetReader = new MdnsPacketReader(datagramPacket); in testLimits()
96 MdnsPacketReader packetReader = new MdnsPacketReader( in testInfinitePtrLoop()
DMdnsPacketTest.kt45 val reader = MdnsPacketReader(bytes, bytes.size, makeFlags()) in makeFlags()
82 val reader = MdnsPacketReader( in testParseQueryWithLabelLoop_ThrowsParseException()
DMdnsServiceTypeClientTests.java713 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 …]
DMdnsResponseDecoderTests.java580 MdnsPacketReader reader = new MdnsPacketReader(packet); in makeMdnsResponse()
DMdnsReplySenderTest.kt189 val mdnsPacket = MdnsPacket.parse(MdnsPacketReader( in verifyReplySent()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsPacket.java82 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()
DMdnsNsecRecord.java37 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()
DMdnsPointerRecord.java33 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()
DMdnsKeyRecord.java34 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()
DMdnsTextRecord.java36 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()
DMdnsInetAddressRecord.java44 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()
DMdnsServiceRecord.java43 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()
DMdnsAnyRecord.java28 protected MdnsAnyRecord(String[] name, MdnsPacketReader reader) throws IOException { in MdnsAnyRecord()
38 protected void readData(MdnsPacketReader reader) throws IOException { in readData()
DMdnsPacketReader.java33 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
DMdnsRecord.java76 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()
DMdnsResponseDecoder.java89 final MdnsPacketReader reader = new MdnsPacketReader(recvbuf, length, mdnsFeatureFlags); in parseResponse()
DMdnsInterfaceAdvertiser.java408 packet = MdnsPacket.parse(new MdnsPacketReader(recvbuf, length, mMdnsFeatureFlags)); in handlePacket()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/util/
DMdnsUtilsTest.kt23 import com.android.server.connectivity.mdns.MdnsPacketReader in <lambda>()
186 val mdnsPacket = MdnsPacket.parse(MdnsPacketReader(packet)) in <lambda>()