Home
last modified time | relevance | path

Searched refs:domainMatches (Results 1 – 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java109 boolean match = HttpCookie.domainMatches("hostname", "hostname"); in test_DomainMatches()
112 match = HttpCookie.domainMatches(".com", "test.com"); in test_DomainMatches()
115 match = HttpCookie.domainMatches(".com.", "test.com"); in test_DomainMatches()
120 match = HttpCookie.domainMatches(".local", "hostname"); in test_DomainMatches()
128 match = HttpCookie.domainMatches(".c.d", "a.b.c.d"); in test_DomainMatches()
131 match = HttpCookie.domainMatches("c.d", "a.b.c.d"); in test_DomainMatches()
134 match = HttpCookie.domainMatches(".foo.com", "y.x.foo.com"); in test_DomainMatches()
137 match = HttpCookie.domainMatches(".foo.com", "x.foo.com"); in test_DomainMatches()
140 match = HttpCookie.domainMatches(".local", "hostname.local"); in test_DomainMatches()
143 match = HttpCookie.domainMatches(".ajax.com", "a.ajax.com"); in test_DomainMatches()
[all …]
/libcore/ojluni/src/main/java/java/net/
DCookiePolicy.java64 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
DInMemoryCookieStore.java331 (c.getVersion() == 1 && HttpCookie.domainMatches(domain, host))) { in getInternal1()
DHttpCookie.java660 public static boolean domainMatches(String domain, String host) { in domainMatches() method in HttpCookie
/libcore/luni/src/test/java/libcore/java/net/
DAbstractCookiesTest.java480 assertFalse(HttpCookie.domainMatches("localhost", "localhost")); in testDomainMatchesOnLocalAddresses()
481 assertFalse(HttpCookie.domainMatches("b", "b")); in testDomainMatchesOnLocalAddresses()
485 assertTrue(HttpCookie.domainMatches("127.0.0.1", "127.0.0.1")); in testDomainMatchesOnIpAddress()
486 assertFalse(HttpCookie.domainMatches("127.0.0.1", "127.0.0.0")); in testDomainMatchesOnIpAddress()
487 assertFalse(HttpCookie.domainMatches("127.0.0.1", "localhost")); in testDomainMatchesOnIpAddress()
502 assertTrue(HttpCookie.domainMatches(".android.com", "WWW.ANDROID.COM")); in testDomainMatchesCaseMapping()
503 assertFalse(HttpCookie.domainMatches("android.com", "WWW.ANDROID.COM")); in testDomainMatchesCaseMapping()
/libcore/ojluni/annotations/hiddenapi/java/net/
DHttpCookie.java147 public static boolean domainMatches(java.lang.String domain, java.lang.String host) { in domainMatches() method in HttpCookie
/libcore/api/
Dcurrent.txt5034 method public static boolean domainMatches(String, String);