/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsConstants.java | 27 public final class MdnsConstants { class 51 private MdnsConstants() { in MdnsConstants() method in MdnsConstants 55 synchronized (MdnsConstants.class) { in getMdnsIPv4Address() 68 synchronized (MdnsConstants.class) { in getMdnsIPv6Address()
|
D | MdnsPointerRecord.java | 44 MdnsConstants.QCLASS_INTERNET | (isUnicast ? MdnsConstants.QCLASS_UNICAST : 0), in MdnsPointerRecord() 50 super(name, TYPE_PTR, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsPointerRecord() 72 MdnsConstants.SUBTYPE_LABEL); in hasSubtype()
|
D | MdnsSocket.java | 42 new InetSocketAddress(MdnsConstants.getMdnsIPv4Address(), MdnsConstants.MDNS_PORT); 44 new InetSocketAddress(MdnsConstants.getMdnsIPv6Address(), MdnsConstants.MDNS_PORT);
|
D | EnqueueMdnsQueryCallable.java | 142 labels[0] = MdnsConstants.SUBTYPE_PREFIX + subtype; in call() 143 labels[1] = MdnsConstants.SUBTYPE_LABEL; in call() 213 MdnsConstants.FLAGS_QUERY, in call() 218 sendPacketToIpv4AndIpv6(requestSender, MdnsConstants.MDNS_PORT, queryPacket); in call() 261 new InetSocketAddress(MdnsConstants.getMdnsIPv4Address(), port), mdnsPacket); in sendPacketToIpv4AndIpv6() 267 new InetSocketAddress(MdnsConstants.getMdnsIPv6Address(), port), mdnsPacket); in sendPacketToIpv4AndIpv6()
|
D | MdnsKeyRecord.java | 46 MdnsConstants.QCLASS_INTERNET | (isUnicast ? MdnsConstants.QCLASS_UNICAST : 0), in MdnsKeyRecord() 52 super(name, TYPE_KEY, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsKeyRecord()
|
D | MdnsTextRecord.java | 47 MdnsConstants.QCLASS_INTERNET | (isUnicast ? MdnsConstants.QCLASS_UNICAST : 0), in MdnsTextRecord() 53 super(name, TYPE_TXT, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsTextRecord()
|
D | MdnsInetAddressRecord.java | 65 MdnsConstants.QCLASS_INTERNET | (isUnicast ? MdnsConstants.QCLASS_UNICAST : 0), in MdnsInetAddressRecord() 72 MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, ttlMillis); in MdnsInetAddressRecord()
|
D | MdnsServiceRecord.java | 54 MdnsConstants.QCLASS_INTERNET | (isUnicast ? MdnsConstants.QCLASS_UNICAST : 0), in MdnsServiceRecord() 61 super(name, TYPE_SRV, MdnsConstants.QCLASS_INTERNET, receiptTimeMillis, cacheFlush, in MdnsServiceRecord()
|
D | MdnsPacketRepeater.java | 19 import static com.android.server.connectivity.mdns.MdnsConstants.IPV4_SOCKET_ADDR; 20 import static com.android.server.connectivity.mdns.MdnsConstants.IPV6_SOCKET_ADDR;
|
D | MdnsReplySender.java | 19 import static com.android.server.connectivity.mdns.MdnsConstants.IPV4_SOCKET_ADDR; 20 import static com.android.server.connectivity.mdns.MdnsConstants.IPV6_SOCKET_ADDR;
|
D | MdnsResponseDecoder.java | 95 if ((flags & MdnsConstants.FLAGS_RESPONSE_MASK) != MdnsConstants.FLAGS_RESPONSE) { in parseResponse()
|
D | MdnsRecordRepository.java | 19 import static com.android.server.connectivity.mdns.MdnsConstants.IPV4_SOCKET_ADDR; 20 import static com.android.server.connectivity.mdns.MdnsConstants.IPV6_SOCKET_ADDR; 21 import static com.android.server.connectivity.mdns.MdnsConstants.NO_PACKET; 638 || (packet.flags & MdnsConstants.FLAGS_RESPONSE) != 0) { in isTruncatedKnownAnswerPacket() 736 if ((packet.flags & MdnsConstants.FLAG_TRUNCATED) != 0) { in getReply()
|
D | MdnsProber.java | 104 MdnsConstants.FLAGS_QUERY, in makePacket()
|
D | MdnsPacketWriter.java | 155 byte[] utf8 = value.getBytes(MdnsConstants.getUtf8Charset()); in writeString()
|
D | MdnsPacketReader.java | 215 String val = new String(buf, pos, len, MdnsConstants.getUtf8Charset()); in readString()
|
D | MdnsRecord.java | 187 return (cls & MdnsConstants.QCLASS_UNICAST) != 0; in isUnicastReplyRequested()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordRepositoryTest.kt | 198 assertEquals(MdnsConstants.FLAGS_QUERY, packet.flags) in makeFlags() 1165 assertEquals(MdnsConstants.getMdnsIPv4Address(), replyIpv4.destination.address) in testGetReply_queryWithIpv4Address_replyWithIpv4Address() 1166 assertEquals(MdnsConstants.MDNS_PORT, replyIpv4.destination.port) in testGetReply_queryWithIpv4Address_replyWithIpv4Address() 1179 assertEquals(MdnsConstants.getMdnsIPv6Address(), replyIpv6.destination.address) in testGetReply_queryWithIpv6Address_replyWithIpv6Address() 1180 assertEquals(MdnsConstants.MDNS_PORT, replyIpv6.destination.port) in testGetReply_queryWithIpv6Address_replyWithIpv6Address() 1195 assertEquals(MdnsConstants.getMdnsIPv4Address(), replyIpv4.destination.address) in testGetReply_ipv4AndIpv6Queries_ipv4AndIpv6Replies() 1196 assertEquals(MdnsConstants.MDNS_PORT, replyIpv4.destination.port) in testGetReply_ipv4AndIpv6Queries_ipv4AndIpv6Replies() 1198 assertEquals(MdnsConstants.getMdnsIPv6Address(), replyIpv6.destination.address) in testGetReply_ipv4AndIpv6Queries_ipv4AndIpv6Replies() 1199 assertEquals(MdnsConstants.MDNS_PORT, replyIpv6.destination.port) in testGetReply_ipv4AndIpv6Queries_ipv4AndIpv6Replies() 1214 assertEquals(MdnsConstants.getMdnsIPv4Address(), firstReplyIpv4.destination.address) in testGetReply_twoIpv4QueriesInOneSecond_theSecondReplyIsThrottled() [all …]
|
D | MdnsRecordTests.java | 19 import static com.android.server.connectivity.mdns.MdnsConstants.QCLASS_INTERNET; 57 new InetSocketAddress(MdnsConstants.getMdnsIPv4Address(), MdnsConstants.MDNS_PORT); 59 new InetSocketAddress(MdnsConstants.getMdnsIPv6Address(), MdnsConstants.MDNS_PORT); 105 new InetSocketAddress(MdnsConstants.getMdnsIPv6Address(), MdnsConstants.MDNS_PORT)); in testTypeAAAInet6AddressRecord() 142 new InetSocketAddress(MdnsConstants.getMdnsIPv4Address(), MdnsConstants.MDNS_PORT)); in testTypeAAAInet4AddressRecord()
|
D | MdnsInterfaceAdvertiserTest.kt | 314 val src = InetSocketAddress(parseNumericAddress("2001:db8::456"), MdnsConstants.MDNS_PORT) in testReplyToQuery() 341 val src = InetSocketAddress(parseNumericAddress("2001:db8::456"), MdnsConstants.MDNS_PORT) in testReplyToQuery_TruncatedBitSet() 350 (pkg.flags and MdnsConstants.FLAG_TRUNCATED) != 0}, in testReplyToQuery_TruncatedBitSet() 354 (pkg.flags and MdnsConstants.FLAG_TRUNCATED) != 0}, in testReplyToQuery_TruncatedBitSet() 358 (pkg.flags and MdnsConstants.FLAG_TRUNCATED) == 0}, in testReplyToQuery_TruncatedBitSet() 375 assertTrue((it.flags and MdnsConstants.FLAG_TRUNCATED) != 0) in testReplyToQuery_TruncatedBitSet() 403 assertTrue((it.flags and MdnsConstants.FLAG_TRUNCATED) != 0) in testReplyToQuery_TruncatedBitSet() 431 assertTrue((it.flags and MdnsConstants.FLAG_TRUNCATED) == 0) in testReplyToQuery_TruncatedBitSet() 457 val src = InetSocketAddress(parseNumericAddress("2001:db8::456"), MdnsConstants.MDNS_PORT) in testConflict()
|
D | MdnsSocketClientTests.java | 105 if (port == MdnsConstants.MDNS_PORT) { in setup() 540 if (port == MdnsConstants.MDNS_PORT) { in startDiscovery_andPropagateInterfaceIndex_includesInterfaceIndex() 563 if (port == MdnsConstants.MDNS_PORT) { in startDiscovery_andDoNotPropagateInterfaceIndex_doesNotIncludeInterfaceIndex() 583 10 + i /* length */, MdnsConstants.IPV4_SOCKET_ADDR)); in testSendPacketWithMultipleDatagramPacket() 599 new InetSocketAddress(MdnsConstants.getMdnsIPv4Address(), 5353 /* port */)); in getTestDatagramPacket()
|
D | MdnsSocketTests.java | 73 InetAddress.getByName("224.0.0.251"), MdnsConstants.MDNS_PORT); in setUp() 75 InetAddress.getByName("FF02::FB"), MdnsConstants.MDNS_PORT); in setUp()
|
D | MdnsReplySenderTest.kt | 26 import com.android.server.connectivity.mdns.MdnsConstants.IPV4_SOCKET_ADDR 27 import com.android.server.connectivity.mdns.MdnsConstants.IPV6_SOCKET_ADDR
|
D | MdnsServiceTypeClientTests.java | 108 MdnsConstants.getMdnsIPv4Address(), MdnsConstants.MDNS_PORT); 110 MdnsConstants.getMdnsIPv6Address(), MdnsConstants.MDNS_PORT); 161 MdnsConstants.getMdnsIPv4Address(), MdnsConstants.MDNS_PORT); in setUp() 163 MdnsConstants.getMdnsIPv6Address(), MdnsConstants.MDNS_PORT); in setUp() 2203 type.add(MdnsConstants.SUBTYPE_LABEL); in createResponse()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/util/ |
D | MdnsUtilsTest.kt | 20 import com.android.server.connectivity.mdns.MdnsConstants in <lambda>() 21 import com.android.server.connectivity.mdns.MdnsConstants.FLAG_TRUNCATED in <lambda>() 157 MdnsConstants.FLAGS_QUERY, in <lambda>() 168 MdnsConstants.IPV4_SOCKET_ADDR in <lambda>()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/util/ |
D | MdnsUtils.java | 19 import static com.android.server.connectivity.mdns.MdnsConstants.FLAG_TRUNCATED; 30 import com.android.server.connectivity.mdns.MdnsConstants; 139 && MdnsUtils.equalsIgnoreDnsCase(b[1], MdnsConstants.SUBTYPE_LABEL) in typeEqualsOrIsSubtype() 350 fullSubtype[1] = MdnsConstants.SUBTYPE_LABEL; in constructFullSubtype()
|