Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java48 public class SuggestionSpan extends CharacterStyle implements ParcelableSpan { class
106 public SuggestionSpan(Context context, String[] suggestions, int flags) { in SuggestionSpan() method in SuggestionSpan
115 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { in SuggestionSpan() method in SuggestionSpan
128 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, in SuggestionSpan() method in SuggestionSpan
171 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
179 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
187 null, com.android.internal.R.styleable.SuggestionSpan, defStyleAttr, 0); in initStyle()
194 public SuggestionSpan(Parcel src) { in SuggestionSpan() method in SuggestionSpan
282 if (o instanceof SuggestionSpan) { in equals()
283 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);
315 textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE); in spellCheck()
317 mSpellCheckerSession.getSuggestions(textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE, in spellCheck()
363 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); in onGetSuggestionsInternal()
481 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions, in createMisspelledSuggestionSpan()
482 SuggestionSpan.FLAG_EASY_CORRECT | SuggestionSpan.FLAG_MISSPELLED); in createMisspelledSuggestionSpan()
487 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); in createMisspelledSuggestionSpan()
584 SuggestionSpan[] suggestionSpans = editable.getSpans(start - 1, end + 1, in parse()
[all …]
DEditor.java73 import android.text.style.SuggestionSpan;
1141 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, in downgradeEasyCorrectionSpans()
1142 spannable.length(), SuggestionSpan.class); in downgradeEasyCorrectionSpans()
1145 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0 in downgradeEasyCorrectionSpans()
1146 && (flags & SuggestionSpan.FLAG_MISSPELLED) == 0) { in downgradeEasyCorrectionSpans()
1147 flags &= ~SuggestionSpan.FLAG_EASY_CORRECT; in downgradeEasyCorrectionSpans()
1851 final SuggestionSpan[] suggestionSpans = spannable.getSpans(selectionStart, selectionEnd, in shouldOfferToShowSuggestions()
1852 SuggestionSpan.class); in shouldOfferToShowSuggestions()
1908 SuggestionSpan[] suggestionSpans = spannable.getSpans(mTextView.getSelectionStart(), in isCursorInsideEasyCorrectionSpan()
1909 mTextView.getSelectionEnd(), SuggestionSpan.class); in isCursorInsideEasyCorrectionSpan()
[all …]
DTextView.java101 import android.text.style.SuggestionSpan;
4044 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(), in removeMisspelledSpans()
4045 SuggestionSpan.class); in removeMisspelledSpans()
4048 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0 in removeMisspelledSpans()
4049 && (flags & SuggestionSpan.FLAG_MISSPELLED) != 0) { in removeMisspelledSpans()
4493 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class); in removeSuggestionSpans()
7947 removeIntersectingNonAdjacentSpans(start, start + before, SuggestionSpan.class); in sendBeforeTextChanged()
7969 final SuggestionSpan[] spans = text.getSpans(pos, pos, SuggestionSpan.class); in removeAdjacentSuggestionSpans()
/frameworks/base/core/java/com/android/internal/view/
DIInputMethodManager.aidl20 import android.text.style.SuggestionSpan;
71 void registerSuggestionSpansForNotification(in SuggestionSpan[] spans); in registerSuggestionSpansForNotification()
72 boolean notifySuggestionPicked(in SuggestionSpan span, String originalString, int index); in notifySuggestionPicked()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeIInputMethodManager.java27 import android.text.style.SuggestionSpan;
104 public boolean notifySuggestionPicked(SuggestionSpan arg0, String arg1, int arg2) in notifySuggestionPicked()
111 public void registerSuggestionSpansForNotification(SuggestionSpan[] arg0) in registerSuggestionSpansForNotification()
/frameworks/base/core/java/com/android/internal/widget/
DEditableInputConnection.java23 import android.text.style.SuggestionSpan;
179 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class); in commitText()
/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/services/core/java/com/android/server/
DInputMethodManagerService.java94 import android.text.style.SuggestionSpan;
202 private final LruCache<SuggestionSpan, InputMethodInfo> mSecureSuggestionSpans =
203 new LruCache<SuggestionSpan, InputMethodInfo>(SECURE_SUGGESTION_SPANS_MAX_SIZE);
1814 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { in registerSuggestionSpansForNotification()
1821 SuggestionSpan ss = spans[i]; in registerSuggestionSpansForNotification()
1830 public boolean notifySuggestionPicked(SuggestionSpan span, String originalString, int index) { in notifySuggestionPicked()
1845 intent.setAction(SuggestionSpan.ACTION_SUGGESTION_PICKED); in notifySuggestionPicked()
1846 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_BEFORE, originalString); in notifySuggestionPicked()
1847 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_AFTER, suggestions[index]); in notifySuggestionPicked()
1848 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_HASHCODE, span.hashCode()); in notifySuggestionPicked()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodManager.java40 import android.text.style.SuggestionSpan;
710 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { in registerSuggestionSpansForNotification()
719 public void notifySuggestionPicked(SuggestionSpan span, String originalString, int index) { in notifySuggestionPicked()
/frameworks/base/core/java/android/text/
DTextUtils.java44 import android.text.style.SuggestionSpan;
783 readSpan(p, sp, new SuggestionSpan(p));
/frameworks/base/docs/html/about/versions/
Dandroid-4.0.3.jd154 <li>A new {@link android.text.style.SuggestionSpan#FLAG_AUTO_CORRECTION} style
/frameworks/base/
DAndroid.mk606 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
Dpreloaded-classes112 [Landroid.text.style.SuggestionSpan;
1687 android.text.style.SuggestionSpan
/frameworks/base/docs/html/
Dsitemap.txt3049 http://developer.android.com/reference/android/text/style/SuggestionSpan.html
5643 http://developer.android.com/sdk/api_diff/15/changes/android.text.style.SuggestionSpan.html
/frameworks/base/api/
Dcurrent.txt33175 …public class SuggestionSpan extends android.text.style.CharacterStyle implements android.text.Parc…
33176 ctor public SuggestionSpan(android.content.Context, java.lang.String[], int);
33177 ctor public SuggestionSpan(java.util.Locale, java.lang.String[], int);
33178 …ctor public SuggestionSpan(android.content.Context, java.util.Locale, java.lang.String[], int, jav…
33179 ctor public SuggestionSpan(android.os.Parcel);
33189 …field public static final android.os.Parcelable.Creator<android.text.style.SuggestionSpan> CREATOR;
Dsystem-current.txt35467 …public class SuggestionSpan extends android.text.style.CharacterStyle implements android.text.Parc…
35468 ctor public SuggestionSpan(android.content.Context, java.lang.String[], int);
35469 ctor public SuggestionSpan(java.util.Locale, java.lang.String[], int);
35470 …ctor public SuggestionSpan(android.content.Context, java.util.Locale, java.lang.String[], int, jav…
35471 ctor public SuggestionSpan(android.os.Parcel);
35481 …field public static final android.os.Parcelable.Creator<android.text.style.SuggestionSpan> CREATOR;