/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(), 77 if (suggestionsList.size() >= SuggestionSpan.SUGGESTIONS_MAX_SIZE) { 89 final SuggestionSpan suggestionSpan = new SuggestionSpan(context, null /* locale */ [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
SuggestionSpanPickedNotificationReceiver.java | 22 import android.text.style.SuggestionSpan; 34 if (SuggestionSpan.ACTION_SUGGESTION_PICKED.equals(intent.getAction())) { 37 SuggestionSpan.SUGGESTION_SPAN_PICKED_BEFORE); 39 SuggestionSpan.SUGGESTION_SPAN_PICKED_AFTER);
|
/frameworks/base/core/java/android/text/style/ |
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...] |
SuggestionSpan.aidl | 19 parcelable SuggestionSpan;
|
/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/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); 75 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class);
|
/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); 57 final SpanGetter spanAfter = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 81 final SpanGetter suggestionSpan = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 83 + "correction indicator", suggestionSpan.isAutoCorrectionIndicator()); 108 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class);
|
RichInputConnectionAndTextRangeTests.java | 27 import android.text.style.SuggestionSpan; 301 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 305 SuggestionSpan[] suggestions; 314 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 316 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 327 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 329 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 339 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 341 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 351 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */) [all...] |
InputTestsBase.java | 27 import android.text.style.SuggestionSpan; 98 return (mSpan instanceof SuggestionSpan) && 99 0 != (SuggestionSpan.FLAG_AUTO_CORRECTION & ((SuggestionSpan)mSpan).getFlags()); 102 return ((SuggestionSpan)mSpan).getSuggestions();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TextRange.java | 20 import android.text.style.SuggestionSpan; 53 public SuggestionSpan[] getSuggestionSpansAtWord() { 55 return new SuggestionSpan[0]; 75 final SuggestionSpan[] spans = text.getSpans(mWordAtCursorStartIndex - 1, 76 mWordAtCursorEndIndex + 1, SuggestionSpan.class); 80 final SuggestionSpan span = spans[readIndex];
|
SpannableStringUtils.java | 24 import android.text.style.SuggestionSpan; 45 Object[] spans = source.getSpans(start, end, SuggestionSpan.class);
|
/frameworks/base/docs/html/sdk/api_diff/15/changes/ |
android.text.style.SuggestionSpan.html | 10 android.text.style.SuggestionSpan 74 Class android.text.style.<A HREF="../../../../reference/android/text/style/SuggestionSpan.html" target="_top"><font size="+2"><code>SuggestionSpan</code></font></A> 87 <A NAME="android.text.style.SuggestionSpan.FLAG_AUTO_CORRECTION"></A> 88 <nobr><code>int</code> <A HREF="../../../../reference/android/text/style/SuggestionSpan.html#FLAG_AUTO_CORRECTION" target="_top"><code>FLAG_AUTO_CORRECTION</code></A></nobr>
|
pkg_android.text.style.html | 84 <A NAME="SuggestionSpan"></A> 85 <nobr><A HREF="android.text.style.SuggestionSpan.html">SuggestionSpan</A></nobr>
|
alldiffs_index_changes.html | 321 <!-- Class SuggestionSpan --> 322 <A HREF="android.text.style.SuggestionSpan.html" class="hiddenlink" target="rightframe">SuggestionSpan</A><br>
|
/frameworks/base/core/java/com/android/internal/view/ |
IInputMethodManager.aidl | 20 import android.text.style.SuggestionSpan; 70 void registerSuggestionSpansForNotification(in SuggestionSpan[] spans); 71 boolean notifySuggestionPicked(in SuggestionSpan span, String originalString, int index);
|
/frameworks/base/core/java/android/widget/ |
SpellChecker.java | 26 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); 317 mSpellCheckerSession.getSuggestions(textInfos, SuggestionSpan.SUGGESTIONS_MAX_SIZE, 363 final SuggestionSpan tempSuggestionSpan = mSuggestionSpanCache.get(key); 481 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions, 482 SuggestionSpan.FLAG_EASY_CORRECT | SuggestionSpan.FLAG_MISSPELLED) [all...] |
Editor.java | 74 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/core/java/com/android/internal/widget/ |
EditableInputConnection.java | 23 import android.text.style.SuggestionSpan; 179 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class);
|
/frameworks/base/docs/html/sdk/api_diff/14/changes/ |
pkg_android.text.style.html | 91 <A NAME="SuggestionSpan"></A> 92 <nobr><A HREF="../../../../reference/android/text/style/SuggestionSpan.html" target="_top"><code>SuggestionSpan</code></A></nobr>
|
/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)
|
/prebuilts/sdk/21/ |
framework.aidl | 143 parcelable android.text.style.SuggestionSpan;
|
/prebuilts/sdk/current/ |
framework.aidl | 147 parcelable android.text.style.SuggestionSpan;
|
/frameworks/base/services/core/java/com/android/server/ |
InputMethodManagerService.java | 89 import android.text.style.SuggestionSpan; 188 private final LruCache<SuggestionSpan, InputMethodInfo> mSecureSuggestionSpans = 189 new LruCache<SuggestionSpan, InputMethodInfo>(SECURE_SUGGESTION_SPANS_MAX_SIZE); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
InputLogic.java | 26 import android.text.style.SuggestionSpan; [all...] |