Home
last modified time | relevance | path

Searched refs:span1 (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.java113 final Object span1 = new Object(); in testSplitCharSequenceWithSpan() local
119 spannableString.setSpan(span1, 0, 7, SPAN1_FLAGS); in testSplitCharSequenceWithSpan()
139 assertSpan(charSequencesFromSpanned[0], span1, 0, 0, SPAN1_FLAGS); in testSplitCharSequenceWithSpan()
150 assertSpan(charSequencesFromSpanned[1], span1, 0, 1, SPAN1_FLAGS); in testSplitCharSequenceWithSpan()
161 assertSpan(charSequencesFromSpanned[2], span1, 0, 3, SPAN1_FLAGS); in testSplitCharSequenceWithSpan()