Searched refs:checkHostname (Results 1 – 2 of 2) sorted by relevance
44 import static com.android.server.NsdService.checkHostname;1733 assertTrue(checkHostname(null)); in TestCheckHostname()1734 assertTrue(checkHostname("a")); in TestCheckHostname()1735 assertTrue(checkHostname("1")); in TestCheckHostname()1736 assertTrue(checkHostname("a-1234-bbbb-cccc000")); in TestCheckHostname()1737 assertTrue(checkHostname("A-1234-BBbb-CCCC000")); in TestCheckHostname()1738 assertTrue(checkHostname("1234-bbbb-cccc000")); in TestCheckHostname()1739 assertTrue(checkHostname("0123456789abcdef" in TestCheckHostname()1746 assertFalse(checkHostname("?")); in TestCheckHostname()1747 assertFalse(checkHostname("/")); in TestCheckHostname()[all …]
1007 if (!checkHostname(hostname)) { in processMessage()1855 public static boolean checkHostname(@Nullable String hostname) { in checkHostname() method in NsdService