Home
last modified time | relevance | path

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

/packages/modules/Connectivity/framework/src/android/net/util/
DDnsUtils.java64 public int compare(SortableAddress span1, SortableAddress span2) { in compare() argument
66 if (span1.hasSrcAddr != span2.hasSrcAddr) { in compare()
67 return span2.hasSrcAddr - span1.hasSrcAddr; in compare()
71 if (span1.scopeMatch != span2.scopeMatch) { in compare()
72 return span2.scopeMatch - span1.scopeMatch; in compare()
79 if (span1.labelMatch != span2.labelMatch) { in compare()
80 return span2.labelMatch - span1.labelMatch; in compare()
84 if (span1.precedence != span2.precedence) { in compare()
85 return span2.precedence - span1.precedence; in compare()
91 if (span1.scope != span2.scope) { in compare()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSpannableStringUtilsTests.java114 final Object span2 = new Object(); in testSplitCharSequenceWithSpan() local
120 spannableString.setSpan(span2, 0, 5, SPAN2_FLAGS); in testSplitCharSequenceWithSpan()
140 assertSpan(charSequencesFromSpanned[0], span2, 0, 0, SPAN2_FLAGS); in testSplitCharSequenceWithSpan()
151 assertSpan(charSequencesFromSpanned[1], span2, 0, 1, SPAN2_FLAGS); in testSplitCharSequenceWithSpan()
162 assertSpan(charSequencesFromSpanned[2], span2, 0, 2, SPAN2_FLAGS); in testSplitCharSequenceWithSpan()