Home
last modified time | relevance | path

Searched refs:isSubDomain (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DDomainMatcherTest.java79 assertEquals(DomainMatcher.MATCH_NONE, domainMatcher.isSubDomain("google.com")); in createMatcherWithEmptyDomains()
91 assertEquals(DomainMatcher.MATCH_NONE, domainMatcher.isSubDomain(null)); in matchNullDomain()
104 assertEquals(entry.getValue().intValue(), domainMatcher.isSubDomain(entry.getKey())); in matchTestDomains()
118 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain(PRIMARY_DOMAIN)); in matchDomainWithBothPrimaryAndSecondary()
131 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain("google.com")); in matchDomainWhenSecondaryIsSubdomainOfPrimary()
132 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain("test.google.com")); in matchDomainWhenSecondaryIsSubdomainOfPrimary()
134 domainMatcher.isSubDomain("abcd.test.google.com")); in matchDomainWhenSecondaryIsSubdomainOfPrimary()
147 assertEquals(DomainMatcher.MATCH_SECONDARY, domainMatcher.isSubDomain("google.com")); in matchDomainWhenPrimaryIsSubdomainOfSecondary()
148 assertEquals(DomainMatcher.MATCH_SECONDARY, domainMatcher.isSubDomain("test2.google.com")); in matchDomainWhenPrimaryIsSubdomainOfSecondary()
149 assertEquals(DomainMatcher.MATCH_PRIMARY, domainMatcher.isSubDomain("test.google.com")); in matchDomainWhenPrimaryIsSubdomainOfSecondary()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DDomainMatcher.java158 public int isSubDomain(String domainName) { in isSubDomain() method in DomainMatcher