Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/util/
DDnsUtils.java66 public int compare(SortableAddress span1, SortableAddress span2) { in compare() argument
68 if (span1.hasSrcAddr != span2.hasSrcAddr) { in compare()
69 return span2.hasSrcAddr - span1.hasSrcAddr; in compare()
73 if (span1.scopeMatch != span2.scopeMatch) { in compare()
74 return span2.scopeMatch - span1.scopeMatch; in compare()
81 if (span1.labelMatch != span2.labelMatch) { in compare()
82 return span2.labelMatch - span1.labelMatch; in compare()
86 if (span1.precedence != span2.precedence) { in compare()
87 return span2.precedence - span1.precedence; in compare()
93 if (span1.scope != span2.scope) { in compare()
[all …]
/frameworks/base/core/java/android/widget/
DEditor.java3581 public int compare(SuggestionSpan span1, SuggestionSpan span2) { in compare() argument
3583 final int flag2 = span2.getFlags(); in compare()
3596 return mSpansLengths.get(span1).intValue() - mSpansLengths.get(span2).intValue(); in compare()