Home
last modified time | relevance | path

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

/packages/modules/Connectivity/framework/src/android/net/util/
DDnsUtils.java71 if (span1.scopeMatch != span2.scopeMatch) { in compare()
72 return span2.scopeMatch - span1.scopeMatch; in compare()
112 public final int scopeMatch; field in DnsUtils.SortableAddress
125 scopeMatch = ((srcAddr != null) && (scope == findScope(srcAddr))) ? 1 : 0; in SortableAddress()
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DDnsUtilsTest.java114 assertEquals(test.scopeMatch, 0); in testV4SortableAddress()
125 assertEquals(test.scopeMatch, 1); in testV4SortableAddress()
147 assertEquals(test.scopeMatch, 1); in testV6SortableAddress()
157 assertEquals(test.scopeMatch, 0); in testV6SortableAddress()
167 assertEquals(test.scopeMatch, 1); in testV6SortableAddress()