/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/suggestions/ |
SuggestionStripLayoutHelperTests.java | 22 import com.android.inputmethod.latin.SuggestedWords; 47 SuggestedWords.INPUT_STYLE_NONE); 49 SuggestedWords.INPUT_STYLE_APPLICATION_SPECIFIED); 51 SuggestedWords.INPUT_STYLE_RECORRECTION); 56 SuggestedWords.INPUT_STYLE_TYPING, 60 SuggestedWords.INPUT_STYLE_TYPING, 64 SuggestedWords.INPUT_STYLE_TYPING, 68 SuggestedWords.INPUT_STYLE_TYPING, 75 SuggestedWords.INPUT_STYLE_UPDATE_BATCH, 79 SuggestedWords.INPUT_STYLE_UPDATE_BATCH [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
MoreSuggestions.java | 31 import com.android.inputmethod.latin.SuggestedWords; 35 public final SuggestedWords mSuggestedWords; 37 MoreSuggestions(final MoreSuggestionsParam params, final SuggestedWords suggestedWords) { 39 mSuggestedWords = suggestedWords; 43 private final int[] mWidths = new int[SuggestedWords.MAX_SUGGESTIONS]; 44 private final int[] mRowNumbers = new int[SuggestedWords.MAX_SUGGESTIONS]; 45 private final int[] mColumnOrders = new int[SuggestedWords.MAX_SUGGESTIONS]; 46 private final int[] mNumColumnsInRow = new int[SuggestedWords.MAX_SUGGESTIONS]; 56 public int layout(final SuggestedWords suggestedWords, final int fromIndex [all...] |
SuggestionStripViewAccessor.java | 19 import com.android.inputmethod.latin.SuggestedWords; 29 public void showSuggestionStrip(final SuggestedWords suggestedWords);
|
SuggestionStripLayoutHelper.java | 51 import com.android.inputmethod.latin.SuggestedWords; 52 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 200 private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords, 202 if (indexInSuggestedWords >= suggestedWords.size()) { 205 final String word = suggestedWords.getLabel(indexInSuggestedWords); 208 final boolean isAutoCorrection = suggestedWords.mWillAutoCorrect 209 && indexInSuggestedWords == SuggestedWords.INDEX_OF_AUTO_CORRECTION; 210 final boolean isTypedWordValid = suggestedWords.mTypedWordValid 211 && indexInSuggestedWords == SuggestedWords.INDEX_OF_TYPED_WORD [all...] |
MoreSuggestionsView.java | 28 import com.android.inputmethod.latin.SuggestedWords; 29 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 96 final SuggestedWords suggestedWords = ((MoreSuggestions)keyboard).mSuggestedWords; 98 if (index < 0 || index >= suggestedWords.size()) { 107 ((MoreSuggestionsListener)mListener).onSuggestionSelected(suggestedWords.getInfo(index));
|
SuggestionStripView.java | 48 import com.android.inputmethod.latin.SuggestedWords; 49 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 85 private SuggestedWords mSuggestedWords = SuggestedWords.EMPTY; 162 for (int pos = 0; pos < SuggestedWords.MAX_SUGGESTIONS; pos++) { 213 public void setSuggestions(final SuggestedWords suggestedWords, final boolean isRtlLanguage) { 216 mSuggestedWords = suggestedWords; 497 // {@link SuggestionStripLayoutHelper#setupWordViewsTextAndColor(SuggestedWords,int)} and 498 // {@link SuggestionStripLayoutHelper#layoutPunctuationSuggestions(SuggestedWords,ViewGroup [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
SuggestionSpanUtils.java | 26 import com.android.inputmethod.latin.SuggestedWords; 27 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 69 final String pickedWord, final SuggestedWords suggestedWords) { 70 if (TextUtils.isEmpty(pickedWord) || suggestedWords.isEmpty() 71 || suggestedWords.isPrediction() || suggestedWords.isPunctuationSuggestions()) { 76 for (int i = 0; i < suggestedWords.size(); ++i) { 80 final SuggestedWordInfo info = suggestedWords.getInfo(i); 84 final String word = suggestedWords.getWord(i) [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
SuggestedWordsTests.java | 22 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 72 final SuggestedWords words = new SuggestedWords( 77 SuggestedWords.INPUT_STYLE_NONE); 86 final SuggestedWords wordsWithoutTyped = 134 final SuggestedWords wordsWithTypedWord = new SuggestedWords( 139 SuggestedWords.INPUT_STYLE_NONE); 145 final SuggestedWords wordsWithoutTypedWord = 150 assertNull(SuggestedWords.EMPTY.getTypedWordInfoOrNull()) [all...] |
InputLogicTests.java | 472 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); 474 suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null); 488 SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); 489 assertEquals("predictions cleared after double-space-to-period", suggestedWords.size(), 0); 494 suggestedWords = mLatinIME.getSuggestedWordsForTest(); 496 suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null) [all...] |
InputLogicTestsLanguageWithoutSpaces.java | 100 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); 102 suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null);
|
InputLogicTestsNonEnglish.java | 98 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); 100 EXPECTED_RESULT, suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
DrawingHandler.java | 23 import com.android.inputmethod.latin.SuggestedWords; 31 public void showGestureFloatingPreviewText(SuggestedWords suggestedWords); 52 callbacks.showGestureFloatingPreviewText(SuggestedWords.EMPTY);
|
GestureFloatingTextDrawingPreview.java | 29 import com.android.inputmethod.latin.SuggestedWords; 101 private SuggestedWords mSuggestedWords = SuggestedWords.EMPTY; 113 public void setSuggetedWords(final SuggestedWords suggestedWords) { 117 mSuggestedWords = suggestedWords;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
InputLogicHandler.java | 27 import com.android.inputmethod.latin.SuggestedWords; 137 getSuggestedWords(isTailBatchInput ? SuggestedWords.INPUT_STYLE_TAIL_BATCH 138 : SuggestedWords.INPUT_STYLE_UPDATE_BATCH, sequenceNumber, 141 public void onGetSuggestedWords(SuggestedWords suggestedWords) { 144 if (suggestedWords.isEmpty()) { 149 suggestedWords = mInputLogic.mSuggestedWords; 151 mLatinIME.mHandler.showGesturePreviewAndSuggestionStrip(suggestedWords, 157 mLatinIME.mHandler.showTailBatchInputResult(suggestedWords);
|
InputLogic.java | 52 import com.android.inputmethod.latin.SuggestedWords; 53 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 88 public SuggestedWords mSuggestedWords = SuggestedWords.EMPTY; 153 mSuggestedWords = SuggestedWords.EMPTY; 247 handler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_TYPING); 290 final SuggestedWords suggestedWords = mSuggestedWords; 293 if (suggestion.length() == 1 && suggestedWords.isPunctuationSuggestions()) { 324 mSuggestedWords = SuggestedWords.EMPTY [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
SuggestedWords.java | 30 public class SuggestedWords { 48 public static final SuggestedWords EMPTY = new SuggestedWords( 66 public SuggestedWords(final ArrayList<SuggestedWordInfo> suggestedWordInfoList, 76 public SuggestedWords(final ArrayList<SuggestedWordInfo> suggestedWordInfoList, 89 public SuggestedWords(final ArrayList<SuggestedWordInfo> suggestedWordInfoList, 171 return "SuggestedWords:" 193 final String typedWord, final SuggestedWords previousSuggestions) { 390 // SuggestedWords is an immutable object, as much as possible. We must not just remove 393 public SuggestedWords getSuggestedWordsExcludingTypedWordForRecorrection() [all...] |
LatinIME.java | 74 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 145 mHandler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_NONE); 239 final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; 240 latinIme.showSuggestionStrip(suggestedWords); 242 latinIme.showGesturePreviewAndSuggestionStrip((SuggestedWords) msg.obj, 261 (SuggestedWords) msg.obj, latinIme.mKeyboardSwitcher); 355 public void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords, [all...] |
Suggest.java | 22 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 67 public void onGetSuggestedWords(final SuggestedWords suggestedWords); 192 ? SuggestedWords.INPUT_STYLE_BEGINNING_OF_SENTENCE_PREDICTION 193 : SuggestedWords.INPUT_STYLE_PREDICTION; 197 callback.onGetSuggestedWords(new SuggestedWords(suggestionsList, 251 callback.onGetSuggestedWords(new SuggestedWords(suggestionsContainer,
|
PunctuationSuggestions.java | 26 * The extended {@link SuggestedWords} class to represent punctuation suggestions. 31 public final class PunctuationSuggestions extends SuggestedWords {
|
DictionaryCollection.java | 22 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/ |
suggestion_results.cpp | 93 std::vector<SuggestedWord> suggestedWords; 96 suggestedWords.push_back(copyOfSuggestedWords.top()); 100 for (auto it = suggestedWords.rbegin(); it != suggestedWords.rend(); ++it) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
AccessibilityUtils.java | 37 import com.android.inputmethod.latin.SuggestedWords; 154 * @param suggestedWords the list of suggested auto-correction words 157 public void setAutoCorrection(final SuggestedWords suggestedWords, final String typedWord) { 158 if (suggestedWords.mWillAutoCorrect) { 159 mAutoCorrectionWord = suggestedWords.getWord(SuggestedWords.INDEX_OF_AUTO_CORRECTION);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/ |
SpacingAndPunctuationsTests.java | 25 import com.android.inputmethod.latin.SuggestedWords; 427 final SuggestedWords suggestedWords = sp.mSuggestPuncList; 428 assertFalse("typedWordValid", suggestedWords.mTypedWordValid); 429 assertFalse("willAutoCorrect", suggestedWords.mWillAutoCorrect); 430 assertTrue("isPunctuationSuggestions", suggestedWords.isPunctuationSuggestions()); 431 assertFalse("isObsoleteSuggestions", suggestedWords.mIsObsoleteSuggestions); 432 assertFalse("isPrediction", suggestedWords.isPrediction()); 433 assertEquals("size", punctuationLabels.length, suggestedWords.size()); 434 for (int index = 0; index < suggestedWords.size(); index++) [all...] |
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/define/ |
ProductionFlags.java | 35 * Include all suggestions from all dictionaries in {@link SuggestedWords#mRawSuggestions}.
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
SuggestionResults.java | 19 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|