Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/util/
DDnsUtils.java58 private static final Comparator<SortableAddress> sRfc6724Comparator = new Rfc6724Comparator();
63 public static class Rfc6724Comparator implements Comparator<SortableAddress> {
66 public int compare(SortableAddress span1, SortableAddress span2) { in compare()
110 public static class SortableAddress { class in DnsUtils
120 public SortableAddress(@NonNull InetAddress addr, @Nullable InetAddress srcAddr) { in SortableAddress() method in DnsUtils.SortableAddress
144 final ArrayList<SortableAddress> sortableAnswerList = new ArrayList<>(); in rfc6724Sort()
146 sortableAnswerList.add(new SortableAddress(addr, findSrcAddress(network, addr))); in rfc6724Sort()
152 for (SortableAddress ans : sortableAnswerList) { in rfc6724Sort()
/frameworks/base/tests/net/java/android/net/util/
DDnsUtilsTest.java47 private DnsUtils.SortableAddress makeSortableAddress(@NonNull String addr) { in makeSortableAddress()
51 private DnsUtils.SortableAddress makeSortableAddress(@NonNull String addr, in makeSortableAddress()
53 return new DnsUtils.SortableAddress(stringToAddress(addr), in makeSortableAddress()
59 final List<DnsUtils.SortableAddress> test = Arrays.asList( in testRfc6724Comparator()
105 DnsUtils.SortableAddress test = makeSortableAddress("216.58.200.36"); in testV4SortableAddress()
130 DnsUtils.SortableAddress test = makeSortableAddress("2404:6800:4008:801::2004"); in testV6SortableAddress()