Searched refs:SuggestionSpan (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/core/java/android/text/style/
H A DSuggestionSpan.aidl19 parcelable SuggestionSpan;
H A DSuggestionSpan.java46 public class SuggestionSpan extends CharacterStyle implements ParcelableSpan { class in inherits:CharacterStyle,ParcelableSpan
76 * the current IME to the other IME which is specified in SuggestionSpan.
77 * An IME needs to set the span by specifying the target IME and Subtype of SuggestionSpan.
101 public SuggestionSpan(Context context, String[] suggestions, int flags) { method in class:SuggestionSpan
110 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { method in class:SuggestionSpan
118 * {@link SuggestionSpan#SUGGESTIONS_MAX_SIZE} will be considered. Null values not permitted.
123 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, method in class:SuggestionSpan
133 Log.e("SuggestionSpan", "No locale or context specified in SuggestionSpan constructor");
160 null, com.android.internal.R.styleable.SuggestionSpan, defStyl
183 public SuggestionSpan(Parcel src) { method in class:SuggestionSpan
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DIInputMethodManager.aidl20 import android.text.style.SuggestionSpan;
66 void registerSuggestionSpansForNotification(in SuggestionSpan[] spans);
67 boolean notifySuggestionPicked(in SuggestionSpan span, String originalString, int index);
/frameworks/base/core/java/android/widget/
H A DSpellChecker.java27 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);
318 mSpellCheckerSession.getSuggestions(textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE,
364 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key);
482 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions,
483 SuggestionSpan.FLAG_EASY_CORRECT | SuggestionSpan
[all...]
H A DEditor.java62 import android.text.style.SuggestionSpan;
952 SuggestionSpan[] suggestionSpans = spannable.getSpans(0,
953 spannable.length(), SuggestionSpan.class);
956 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0
957 && (flags & SuggestionSpan.FLAG_MISSPELLED) == 0) {
958 flags &= ~SuggestionSpan.FLAG_EASY_CORRECT;
1541 * @return <code>true</code> if the cursor/current selection overlaps a {@link SuggestionSpan}.
1547 SuggestionSpan[] suggestionSpans = ((Spannable) text).getSpans(
1548 mTextView.getSelectionStart(), mTextView.getSelectionEnd(), SuggestionSpan.class);
1553 * @return <code>true</code> if the cursor is inside an {@link SuggestionSpan} wit
[all...]
H A DTextView.java87 import android.text.style.SuggestionSpan;
3406 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(),
3407 SuggestionSpan.class);
3410 if ((flags & SuggestionSpan.FLAG_EASY_CORRECT) != 0
3411 && (flags & SuggestionSpan.FLAG_MISSPELLED) != 0) {
3845 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class);
7202 removeIntersectingSpans(start, start + before, SuggestionSpan.class);
8088 * {@link SuggestionSpan}s to the text.
/frameworks/base/core/java/com/android/internal/widget/
H A DEditableInputConnection.java23 import android.text.style.SuggestionSpan;
178 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeIInputMethodManager.java27 import android.text.style.SuggestionSpan;
104 public boolean notifySuggestionPicked(SuggestionSpan arg0, String arg1, int arg2)
111 public void registerSuggestionSpansForNotification(SuggestionSpan[] arg0)
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DViewPropertyAlphaActivity.java32 import android.text.style.SuggestionSpan;
86 text.setSpan(new SuggestionSpan(this, new String[]{"longer"}, 3), 11, 16,
/frameworks/base/services/java/com/android/server/
H A DInputMethodManagerService.java82 import android.text.style.SuggestionSpan;
185 private final LruCache<SuggestionSpan, InputMethodInfo> mSecureSuggestionSpans =
186 new LruCache<SuggestionSpan, InputMethodInfo>(SECURE_SUGGESTION_SPANS_MAX_SIZE);
1540 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) {
1547 SuggestionSpan ss = spans[i];
1557 public boolean notifySuggestionPicked(SuggestionSpan span, String originalString, int index) {
1572 intent.setAction(SuggestionSpan.ACTION_SUGGESTION_PICKED);
1573 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_BEFORE, originalString);
1574 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_AFTER, suggestions[index]);
1575 intent.putExtra(SuggestionSpan
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodManager.java39 import android.text.style.SuggestionSpan;
655 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) {
664 public void notifySuggestionPicked(SuggestionSpan span, String originalString, int index) {
/frameworks/base/core/java/android/text/
H A DTextUtils.java41 import android.text.style.SuggestionSpan;
748 readSpan(p, sp, new SuggestionSpan(p));

Completed in 300 milliseconds