Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java50 import android.text.style.SuggestionSpan;
73 private void setSuggestionSpan(SuggestionSpan span, int start, int end) { in setSuggestionSpan()
91 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testOnTextContextMenuItem()
92 new String[]{"DEF", "Def"}, SuggestionSpan.FLAG_AUTO_CORRECTION); in testOnTextContextMenuItem()
109 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testSelectionActionMode()
110 new String[]{"DEF", "Def"}, SuggestionSpan.FLAG_AUTO_CORRECTION); in testSelectionActionMode()
131 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testInsertionActionMode()
132 new String[]{"DEF", "Def"}, SuggestionSpan.FLAG_AUTO_CORRECTION); in testInsertionActionMode()
160 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(), in testSuggestionItems()
161 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
116 public SuggestionSpan(Context context, String[] suggestions, int flags) { in SuggestionSpan() method in SuggestionSpan
125 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { in SuggestionSpan() method in SuggestionSpan
138 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, in SuggestionSpan() method in SuggestionSpan
186 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
194 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
202 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
209 public SuggestionSpan(Parcel src) { in SuggestionSpan() method in SuggestionSpan
318 if (o instanceof SuggestionSpan) { in equals()
319 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;
101 private final LruCache<Long, SuggestionSpan> mSuggestionSpanCache =
102 new LruCache<Long, SuggestionSpan>(SUGGESTION_SPAN_CACHE_SIZE);
316 textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE); in spellCheck()
318 mSpellCheckerSession.getSuggestions(textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE, in spellCheck()
364 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); in onGetSuggestionsInternal()
482 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions, in createMisspelledSuggestionSpan()
483 SuggestionSpan.FLAG_EASY_CORRECT | SuggestionSpan.FLAG_MISSPELLED); in createMisspelledSuggestionSpan()
488 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); in createMisspelledSuggestionSpan()
585 SuggestionSpan[] suggestionSpans = editable.getSpans(start - 1, end + 1, in parse()
[all …]
DEditor.java71 import android.text.style.SuggestionSpan;
1234 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, in downgradeEasyCorrectionSpans()
1235 spannable.length(), SuggestionSpan.class); in downgradeEasyCorrectionSpans()
1238 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0 in downgradeEasyCorrectionSpans()
1239 && (flags & SuggestionSpan.FLAG_MISSPELLED) == 0) { in downgradeEasyCorrectionSpans()
1240 flags &= ~SuggestionSpan.FLAG_EASY_CORRECT; in downgradeEasyCorrectionSpans()
2128 final SuggestionSpan[] suggestionSpans = spannable.getSpans(selectionStart, selectionEnd, in shouldOfferToShowSuggestions()
2129 SuggestionSpan.class); in shouldOfferToShowSuggestions()
2185 SuggestionSpan[] suggestionSpans = spannable.getSpans(mTextView.getSelectionStart(), in isCursorInsideEasyCorrectionSpan()
2186 mTextView.getSelectionEnd(), SuggestionSpan.class); in isCursorInsideEasyCorrectionSpan()
[all …]
DTextView.java113 import android.text.style.SuggestionSpan;
5057 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(),
5058 SuggestionSpan.class);
5061 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0
5062 && (flags & SuggestionSpan.FLAG_MISSPELLED) != 0) {
5594 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class);
9315 removeIntersectingNonAdjacentSpans(start, start + before, SuggestionSpan.class); in sendBeforeTextChanged()
9337 final SuggestionSpan[] spans = text.getSpans(pos, pos, SuggestionSpan.class); in removeAdjacentSuggestionSpans()
/frameworks/base/core/java/com/android/internal/view/
DIInputMethodManager.aidl21 import android.text.style.SuggestionSpan;
75 void registerSuggestionSpansForNotification(in SuggestionSpan[] spans); in registerSuggestionSpansForNotification()
76 boolean notifySuggestionPicked(in SuggestionSpan span, String originalString, int index); in notifySuggestionPicked()
/frameworks/base/core/java/com/android/internal/widget/
DEditableInputConnection.java23 import android.text.style.SuggestionSpan;
178 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class); in commitText()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeIInputMethodManager.java29 import android.text.style.SuggestionSpan;
106 public boolean notifySuggestionPicked(SuggestionSpan arg0, String arg1, int arg2) in notifySuggestionPicked()
113 public void registerSuggestionSpansForNotification(SuggestionSpan[] arg0) in registerSuggestionSpansForNotification()
/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.java38 import android.text.style.SuggestionSpan;
752 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { in registerSuggestionSpansForNotification()
761 public void notifySuggestionPicked(SuggestionSpan span, String originalString, int index) { in notifySuggestionPicked()
/frameworks/base/core/java/android/text/
DTextUtils.java53 import android.text.style.SuggestionSpan;
804 readSpan(p, sp, new SuggestionSpan(p));
/frameworks/base/
DAndroid.mk785 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
Dpreloaded-classes165 [Landroid.text.style.SuggestionSpan;
2238 android.text.style.SuggestionSpan
Dcompiled-classes-phone4089 android.text.style.SuggestionSpan
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java341 import android.text.style.SuggestionSpan;
18912 || SuggestionSpan.ACTION_SUGGESTION_PICKED.equals(action)
/frameworks/base/services/
Dprofile-classes2525 Landroid/text/style/SuggestionSpan;
/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/api/
Dcurrent.txt42171 …public class SuggestionSpan extends android.text.style.CharacterStyle implements android.text.Parc…
42172 ctor public SuggestionSpan(android.content.Context, java.lang.String[], int);
42173 ctor public SuggestionSpan(java.util.Locale, java.lang.String[], int);
42174 …ctor public SuggestionSpan(android.content.Context, java.util.Locale, java.lang.String[], int, jav…
42175 ctor public SuggestionSpan(android.os.Parcel);
42186 …field public static final android.os.Parcelable.Creator<android.text.style.SuggestionSpan> CREATOR;
Dsystem-current.txt45708 …public class SuggestionSpan extends android.text.style.CharacterStyle implements android.text.Parc…
45709 ctor public SuggestionSpan(android.content.Context, java.lang.String[], int);
45710 ctor public SuggestionSpan(java.util.Locale, java.lang.String[], int);
45711 …ctor public SuggestionSpan(android.content.Context, java.util.Locale, java.lang.String[], int, jav…
45712 ctor public SuggestionSpan(android.os.Parcel);
45723 …field public static final android.os.Parcelable.Creator<android.text.style.SuggestionSpan> CREATOR;