Home
last modified time | relevance | path

Searched refs:SuggestionSpan (Results 1 – 18 of 18) 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;
5898 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(), in removeMisspelledSpans()
5899 SuggestionSpan.class); in removeMisspelledSpans()
5902 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0 in removeMisspelledSpans()
5903 && (flags & SuggestionSpan.FLAG_MISSPELLED) != 0) { in removeMisspelledSpans()
6492 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class); in removeSuggestionSpans()
10506 removeIntersectingNonAdjacentSpans(start, start + before, SuggestionSpan.class); in sendBeforeTextChanged()
10528 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;
1146 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { in registerSuggestionSpansForNotification()
1158 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
Dhiddenapi-greylist-max-o.txt58608 Landroid/R$styleable;->SuggestionSpan:[I
70847 Landroid/text/style/SuggestionSpan;->getSpanTypeIdInternal()I
70848 Landroid/text/style/SuggestionSpan;->hashCodeInternal([Ljava/lang/String;Ljava/lang/String;Ljava/la…
70849 Landroid/text/style/SuggestionSpan;->initStyle(Landroid/content/Context;)V
70850 Landroid/text/style/SuggestionSpan;->mAutoCorrectionUnderlineColor:I
70851 Landroid/text/style/SuggestionSpan;->mAutoCorrectionUnderlineThickness:F
70852 Landroid/text/style/SuggestionSpan;->mFlags:I
70853 Landroid/text/style/SuggestionSpan;->mHashCode:I
70854 Landroid/text/style/SuggestionSpan;->mLanguageTag:Ljava/lang/String;
70855 Landroid/text/style/SuggestionSpan;->mLocaleStringForCompatibility:Ljava/lang/String;
[all …]
Dboot-image-profile.txt15257 HSPLandroid/text/style/SuggestionSpan$1;-><init>()V
15258 HSPLandroid/text/style/SuggestionSpan;-><init>(Landroid/os/Parcel;)V
36205 Landroid/text/style/SuggestionSpan$1;
36206 Landroid/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.java286 import android.text.style.SuggestionSpan;
14824 || SuggestionSpan.ACTION_SUGGESTION_PICKED.equals(action) in checkBroadcastFromSystem()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30685 …public class SuggestionSpan extends android.text.style.CharacterStyle implements android.text.Parc…
30686 ctor public SuggestionSpan(android.content.Context, java.lang.String[], int);
30687 ctor public SuggestionSpan(java.util.Locale, java.lang.String[], int);
30688 …ctor public SuggestionSpan(android.content.Context, java.util.Locale, java.lang.String[], int, jav…
30689 ctor public SuggestionSpan(android.os.Parcel);
30699 …field public static final android.os.Parcelable.Creator<android.text.style.SuggestionSpan> CREATOR;
/frameworks/base/non-updatable-api/
Dcurrent.txt48293 …public class SuggestionSpan extends android.text.style.CharacterStyle implements android.text.Parc…
48294 ctor public SuggestionSpan(android.content.Context, String[], int);
48295 ctor public SuggestionSpan(java.util.Locale, String[], int);
48296 ctor public SuggestionSpan(android.content.Context, java.util.Locale, String[], int, Class<?>);
48297 ctor public SuggestionSpan(android.os.Parcel);
48309 …nNull public static final android.os.Parcelable.Creator<android.text.style.SuggestionSpan> CREATOR;
/frameworks/base/api/
Dcurrent.txt48437 …public class SuggestionSpan extends android.text.style.CharacterStyle implements android.text.Parc…
48438 ctor public SuggestionSpan(android.content.Context, String[], int);
48439 ctor public SuggestionSpan(java.util.Locale, String[], int);
48440 ctor public SuggestionSpan(android.content.Context, java.util.Locale, String[], int, Class<?>);
48441 ctor public SuggestionSpan(android.os.Parcel);
48453 …nNull public static final android.os.Parcelable.Creator<android.text.style.SuggestionSpan> CREATOR;