Home
last modified time | relevance | path

Searched refs:span1 (Results 1 – 3 of 3) sorted by relevance

/aosp12/packages/modules/Connectivity/framework/src/android/net/util/
H A DDnsUtils.java66 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()
92 return span1.scope - span2.scope; in compare()
[all …]
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A 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()
/aosp12/frameworks/base/core/java/android/widget/
H A DEditor.java3667 public int compare(SuggestionSpan span1, SuggestionSpan span2) { in compare() argument
3668 final int flag1 = span1.getFlags(); in compare()
3680 return mSpansLengths.get(span1).intValue() - mSpansLengths.get(span2).intValue(); in compare()