Home
last modified time | relevance | path

Searched refs:SuggestionSpan (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java51 import android.text.style.SuggestionSpan;
78 private void setSuggestionSpan(SuggestionSpan span, int start, int end) { in setSuggestionSpan()
96 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testOnTextContextMenuItem()
97 new String[]{"DEF", "Def"}, SuggestionSpan.FLAG_AUTO_CORRECTION); in testOnTextContextMenuItem()
114 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testSelectionActionMode()
115 new String[]{"DEF", "Def"}, SuggestionSpan.FLAG_AUTO_CORRECTION); in testSelectionActionMode()
136 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testInsertionActionMode()
137 new String[]{"DEF", "Def"}, SuggestionSpan.FLAG_AUTO_CORRECTION); in testInsertionActionMode()
165 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testSuggestionItems()
166 new String[]{"DEF", "Def"}, SuggestionSpan.FLAG_AUTO_CORRECTION); in testSuggestionItems()
[all …]
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java50 public class SuggestionSpan extends CharacterStyle implements ParcelableSpan { class
144 public SuggestionSpan(Context context, String[] suggestions, int flags) { in SuggestionSpan() method in SuggestionSpan
153 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { in SuggestionSpan() method in SuggestionSpan
168 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, in SuggestionSpan() method in SuggestionSpan
203 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
211 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
219 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
226 public SuggestionSpan(Parcel src) { in SuggestionSpan() method in SuggestionSpan
330 if (o instanceof SuggestionSpan) { in equals()
331 return ((SuggestionSpan)o).hashCode() == mHashCode; in equals()
[all …]
DSuggestionSpan.aidl19 parcelable SuggestionSpan;
/frameworks/base/core/java/android/widget/
DSpellChecker.java26 import android.text.style.SuggestionSpan;
102 private final LruCache<Long, SuggestionSpan> mSuggestionSpanCache =
103 new LruCache<Long, SuggestionSpan>(SUGGESTION_SPAN_CACHE_SIZE);
319 textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE); in spellCheck()
321 mSpellCheckerSession.getSuggestions(textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE, in spellCheck()
367 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); in onGetSuggestionsInternal()
485 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions, in createMisspelledSuggestionSpan()
486 SuggestionSpan.FLAG_EASY_CORRECT | SuggestionSpan.FLAG_MISSPELLED); in createMisspelledSuggestionSpan()
491 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); in createMisspelledSuggestionSpan()
588 SuggestionSpan[] suggestionSpans = editable.getSpans(start - 1, end + 1, in parse()
[all …]
DEditor.java78 import android.text.style.SuggestionSpan;
1362 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, in downgradeEasyCorrectionSpans()
1363 spannable.length(), SuggestionSpan.class); in downgradeEasyCorrectionSpans()
1366 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0 in downgradeEasyCorrectionSpans()
1367 && (flags & SuggestionSpan.FLAG_MISSPELLED) == 0) { in downgradeEasyCorrectionSpans()
1368 flags &= ~SuggestionSpan.FLAG_EASY_CORRECT; in downgradeEasyCorrectionSpans()
2289 final SuggestionSpan[] suggestionSpans = spannable.getSpans(selectionStart, selectionEnd, in shouldOfferToShowSuggestions()
2290 SuggestionSpan.class); in shouldOfferToShowSuggestions()
2346 SuggestionSpan[] suggestionSpans = spannable.getSpans(mTextView.getSelectionStart(), in isCursorInsideEasyCorrectionSpan()
2347 mTextView.getSelectionEnd(), SuggestionSpan.class); in isCursorInsideEasyCorrectionSpan()
[all …]
DTextView.java128 import android.text.style.SuggestionSpan;
5893 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(), in removeMisspelledSpans()
5894 SuggestionSpan.class); in removeMisspelledSpans()
5897 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0 in removeMisspelledSpans()
5898 && (flags & SuggestionSpan.FLAG_MISSPELLED) != 0) { in removeMisspelledSpans()
6487 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class); in removeSuggestionSpans()
10491 removeIntersectingNonAdjacentSpans(start, start + before, SuggestionSpan.class); in sendBeforeTextChanged()
10513 final SuggestionSpan[] spans = text.getSpans(pos, pos, SuggestionSpan.class); in removeAdjacentSuggestionSpans()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewPropertyAlphaActivity.java32 import android.text.style.SuggestionSpan;
86 text.setSpan(new SuggestionSpan(this, new String[]{"longer"}, 3), 11, 16, in onCreate()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodManager.java54 import android.text.style.SuggestionSpan;
1145 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { in registerSuggestionSpansForNotification()
1157 public void notifySuggestionPicked(SuggestionSpan span, String originalString, int index) { in notifySuggestionPicked()
/frameworks/base/core/java/android/text/
DTextUtils.java60 import android.text.style.SuggestionSpan;
898 readSpan(p, sp, new SuggestionSpan(p));
/frameworks/base/config/
Ddirty-image-objects200 android.text.style.SuggestionSpan
Dpreloaded-classes3553 android.text.style.SuggestionSpan$1
3554 android.text.style.SuggestionSpan
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodManagerService.java93 import android.text.style.SuggestionSpan;
322 private final LruCache<SuggestionSpan, InputMethodInfo> mSecureSuggestionSpans =
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java280 import android.text.style.SuggestionSpan;
14732 || SuggestionSpan.ACTION_SUGGESTION_PICKED.equals(action) in checkBroadcastFromSystem()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...