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 | 2855 for (final SuggestionSpan suggestionSpan : suggestionSpans) { in findEquivalentSuggestionSpan() 2856 final int start = editable.getSpanStart(suggestionSpan); in findEquivalentSuggestionSpan() 2860 final int end = editable.getSpanEnd(suggestionSpan); in findEquivalentSuggestionSpan() 2864 if (suggestionSpan.equals(suggestionSpanInfo.mSuggestionSpan)) { in findEquivalentSuggestionSpan() 2865 return suggestionSpan; in findEquivalentSuggestionSpan() 2895 final SuggestionSpan suggestionSpan = suggestionSpans[i]; in replaceWithSuggestion() local 2896 suggestionSpansStarts[i] = editable.getSpanStart(suggestionSpan); in replaceWithSuggestion() 2897 suggestionSpansEnds[i] = editable.getSpanEnd(suggestionSpan); in replaceWithSuggestion() 2898 suggestionSpansFlags[i] = editable.getSpanFlags(suggestionSpan); in replaceWithSuggestion() 2901 int suggestionSpanFlags = suggestionSpan.getFlags(); in replaceWithSuggestion() [all …]
|