Home
last modified time | relevance | path

Searched refs:isHostName (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketUtilsTest.java149 Assert.assertTrue(DnsRecordParser.isHostName("www.google.com")); in testIsHostName()
150 Assert.assertFalse(DnsRecordParser.isHostName("com")); in testIsHostName()
151 Assert.assertFalse(DnsRecordParser.isHostName("1.2.3.4")); in testIsHostName()
152 Assert.assertFalse(DnsRecordParser.isHostName("1234::5678")); in testIsHostName()
153 Assert.assertFalse(DnsRecordParser.isHostName(null)); in testIsHostName()
154 Assert.assertFalse(DnsRecordParser.isHostName("")); in testIsHostName()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DDomainUtils.java61 if (!DnsRecordParser.isHostName(domain)) return null; in encode()
80 if (!DnsRecordParser.isHostName(domains[i])) { in encode()
134 if (!DnsRecordParser.isHostName(domain)) continue; in decode()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsPacketUtils.java99 if (!isHostName(name)) { in domainNameToLabels()
122 public static boolean isHostName(@Nullable String hostName) { in isHostName() method in DnsPacketUtils.DnsRecordParser
DDnsPacket.java387 if (!DnsRecordParser.isHostName(name)) { in requireHostName()