Searched refs:getSchemePrefix (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/net/url/ |
D | UrlUtilsTest.java | 57 assertEquals("http", UrlUtils.getSchemePrefix("http:")); in testGetProtocolPrefix() 58 assertEquals("http", UrlUtils.getSchemePrefix("HTTP:")); in testGetProtocolPrefix() 59 assertEquals("http", UrlUtils.getSchemePrefix("http:x")); in testGetProtocolPrefix() 60 assertEquals("a", UrlUtils.getSchemePrefix("a:")); in testGetProtocolPrefix() 61 assertEquals("z", UrlUtils.getSchemePrefix("z:")); in testGetProtocolPrefix() 62 assertEquals("a", UrlUtils.getSchemePrefix("A:")); in testGetProtocolPrefix() 63 assertEquals("z", UrlUtils.getSchemePrefix("Z:")); in testGetProtocolPrefix() 64 assertEquals("h0", UrlUtils.getSchemePrefix("h0:")); in testGetProtocolPrefix() 65 assertEquals("h5", UrlUtils.getSchemePrefix("h5:")); in testGetProtocolPrefix() 66 assertEquals("h9", UrlUtils.getSchemePrefix("h9:")); in testGetProtocolPrefix() [all …]
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | UrlUtils.java | 101 public static String getSchemePrefix(String spec) { in getSchemePrefix() method in UrlUtils
|
/libcore/luni/src/main/java/java/net/ |
D | URL.java | 159 protocol = UrlUtils.getSchemePrefix(spec); in URL()
|