/frameworks/base/core/java/android/text/style/ |
SuggestionSpan.aidl | 19 parcelable SuggestionSpan;
|
SuggestionSpan.java | 48 public class SuggestionSpan extends CharacterStyle implements ParcelableSpan { 50 private static final String TAG = "SuggestionSpan"; 80 * the current IME to the other IME which is specified in SuggestionSpan. 81 * An IME needs to set the span by specifying the target IME and Subtype of SuggestionSpan. 106 public SuggestionSpan(Context context, String[] suggestions, int flags) { 115 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { 123 * {@link SuggestionSpan#SUGGESTIONS_MAX_SIZE} will be considered. Null values not permitted. 128 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, 138 Log.e("SuggestionSpan", "No locale or context specified in SuggestionSpan constructor") [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
SuggestionSpanPickedNotificationReceiver.java | 22 import android.text.style.SuggestionSpan; 32 if (SuggestionSpan.ACTION_SUGGESTION_PICKED.equals(intent.getAction())) { 35 SuggestionSpan.SUGGESTION_SPAN_PICKED_BEFORE); 37 SuggestionSpan.SUGGESTION_SPAN_PICKED_AFTER);
|
LatinIME.java | 47 import android.text.style.SuggestionSpan; [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
SpannableStringUtilsTests.java | 21 import android.text.style.SuggestionSpan; 36 s.setSpan(new SuggestionSpan(getContext(), 40 s.setSpan(new SuggestionSpan(getContext(), new String[] {"" + i}, 0), i, i * 2, 0); 50 Object[] spans = result.getSpans(0, result.length(), SuggestionSpan.class); 55 assertTrue("Should be a SuggestionSpan", spans[i] instanceof SuggestionSpan);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TextRange.java | 20 import android.text.style.SuggestionSpan; 52 public SuggestionSpan[] getSuggestionSpansAtWord() { 54 return new SuggestionSpan[0]; 74 final SuggestionSpan[] spans = text.getSpans(mWordAtCursorStartIndex - 1, 75 mWordAtCursorEndIndex + 1, SuggestionSpan.class); 79 final SuggestionSpan span = spans[readIndex];
|
SpannableStringUtils.java | 24 import android.text.style.SuggestionSpan; 44 Object[] spans = source.getSpans(start, end, SuggestionSpan.class);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
SuggestionSpanUtils.java | 24 import android.text.style.SuggestionSpan; 35 // Note that SuggestionSpan.FLAG_AUTO_CORRECTION has been introduced 38 SuggestionSpan.class, "FLAG_AUTO_CORRECTION"); 60 final SuggestionSpan suggestionSpan = new SuggestionSpan(context, null /* locale */, 63 spannable.setSpan(suggestionSpan, 0, text.length(), 79 if (suggestionsList.size() >= SuggestionSpan.SUGGESTIONS_MAX_SIZE) { 90 final SuggestionSpan suggestionSpan = new SuggestionSpan(context, null /* locale */ [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
BlueUnderlineTests.java | 20 import android.text.style.SuggestionSpan; 33 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 50 final SpanGetter spanBefore = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 58 final SpanGetter spanAfter = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 79 final SpanGetter suggestionSpan = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 81 EXPECTED_SUGGESTION_SPAN_START, suggestionSpan.mStart); 106 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class);
|
RichInputConnectionAndTextRangeTests.java | 29 import android.text.style.SuggestionSpan; 241 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 245 SuggestionSpan[] suggestions; 254 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 256 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 267 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 269 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 279 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 281 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 291 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */) [all...] |
InputTestsBase.java | 27 import android.text.style.SuggestionSpan; 85 return (mSpan instanceof SuggestionSpan) && 86 0 != (SuggestionSpan.FLAG_AUTO_CORRECTION & ((SuggestionSpan)mSpan).getFlags()); 89 return ((SuggestionSpan)mSpan).getSuggestions();
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerServiceTest.java | 20 import android.text.style.SuggestionSpan; 35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 55 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class);
|
/frameworks/base/core/java/com/android/internal/view/ |
IInputMethodManager.aidl | 20 import android.text.style.SuggestionSpan; 68 void registerSuggestionSpansForNotification(in SuggestionSpan[] spans); 69 boolean notifySuggestionPicked(in SuggestionSpan span, String originalString, int index);
|
/frameworks/base/core/java/com/android/internal/widget/ |
EditableInputConnection.java | 23 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/ |
BridgeIInputMethodManager.java | 27 import android.text.style.SuggestionSpan; 104 public boolean notifySuggestionPicked(SuggestionSpan arg0, String arg1, int arg2) 111 public void registerSuggestionSpansForNotification(SuggestionSpan[] arg0)
|
/frameworks/base/core/java/android/widget/ |
SpellChecker.java | 27 import android.text.style.SuggestionSpan; 101 private final LruCache<Long, SuggestionSpan> mSuggestionSpanCache = 102 new LruCache<Long, SuggestionSpan>(SUGGESTION_SPAN_CACHE_SIZE); 319 textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE); 321 mSpellCheckerSession.getSuggestions(textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE, 367 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); 485 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions, 486 SuggestionSpan.FLAG_EASY_CORRECT | SuggestionSpan.FLAG_MISSPELLED) [all...] |
Editor.java | 71 import android.text.style.SuggestionSpan; [all...] |
TextView.java | 90 import android.text.style.SuggestionSpan; [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
ViewPropertyAlphaActivity.java | 32 import android.text.style.SuggestionSpan; 86 text.setSpan(new SuggestionSpan(this, new String[]{"longer"}, 3), 11, 16,
|
/frameworks/base/services/java/com/android/server/ |
InputMethodManagerService.java | 81 import android.text.style.SuggestionSpan; 180 private final LruCache<SuggestionSpan, InputMethodInfo> mSecureSuggestionSpans = 181 new LruCache<SuggestionSpan, InputMethodInfo>(SECURE_SUGGESTION_SPANS_MAX_SIZE); [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
InputMethodManager.java | 38 import android.text.style.SuggestionSpan; 654 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { 663 public void notifySuggestionPicked(SuggestionSpan span, String originalString, int index) { [all...] |
/frameworks/base/core/java/android/text/ |
TextUtils.java | 43 import android.text.style.SuggestionSpan; 764 readSpan(p, sp, new SuggestionSpan(p)); [all...] |
/prebuilts/sdk/14/ |
android.jar | |
/prebuilts/sdk/15/ |
android.jar | |
/prebuilts/sdk/17/ |
android.jar | |