Searched refs:suggestionSpan (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SuggestionsPopupWindowTest.java | 96 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testOnTextContextMenuItem() local 98 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testOnTextContextMenuItem() 114 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testSelectionActionMode() local 116 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testSelectionActionMode() 136 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testInsertionActionMode() local 138 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testInsertionActionMode() 165 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testSuggestionItems() local 167 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testSuggestionItems() 203 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testMisspelled() local 205 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testMisspelled() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 485 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions, in createMisspelledSuggestionSpan() local 499 mSuggestionSpanCache.put(key, suggestionSpan); in createMisspelledSuggestionSpan() 501 editable.setSpan(suggestionSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in createMisspelledSuggestionSpan()
|
D | Editor.java | 3001 for (final SuggestionSpan suggestionSpan : suggestionSpans) { in findEquivalentSuggestionSpan() 3002 final int start = editable.getSpanStart(suggestionSpan); in findEquivalentSuggestionSpan() 3006 final int end = editable.getSpanEnd(suggestionSpan); in findEquivalentSuggestionSpan() 3010 if (suggestionSpan.equals(suggestionSpanInfo.mSuggestionSpan)) { in findEquivalentSuggestionSpan() 3011 return suggestionSpan; in findEquivalentSuggestionSpan() 3041 final SuggestionSpan suggestionSpan = suggestionSpans[i]; in replaceWithSuggestion() local 3042 suggestionSpansStarts[i] = editable.getSpanStart(suggestionSpan); in replaceWithSuggestion() 3043 suggestionSpansEnds[i] = editable.getSpanEnd(suggestionSpan); in replaceWithSuggestion() 3044 suggestionSpansFlags[i] = editable.getSpanFlags(suggestionSpan); in replaceWithSuggestion() 3047 int suggestionSpanFlags = suggestionSpan.getFlags(); in replaceWithSuggestion() [all …]
|