Home
last modified time | relevance | path

Searched refs:span1 (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.java3435 public int compare(SuggestionSpan span1, SuggestionSpan span2) { in compare() argument
3436 final int flag1 = span1.getFlags(); in compare()
3450 return mSpansLengths.get(span1).intValue() - mSpansLengths.get(span2).intValue(); in compare()