/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripLayoutHelperTests.java | 22 import com.android.inputmethod.latin.SuggestedWords; 47 SuggestedWords.INPUT_STYLE_NONE); in testShouldShowTypedWord() 49 SuggestedWords.INPUT_STYLE_APPLICATION_SPECIFIED); in testShouldShowTypedWord() 51 SuggestedWords.INPUT_STYLE_RECORRECTION); in testShouldShowTypedWord() 56 SuggestedWords.INPUT_STYLE_TYPING, in testshouldOmitTypedWordWhileTyping() 60 SuggestedWords.INPUT_STYLE_TYPING, in testshouldOmitTypedWordWhileTyping() 64 SuggestedWords.INPUT_STYLE_TYPING, in testshouldOmitTypedWordWhileTyping() 68 SuggestedWords.INPUT_STYLE_TYPING, in testshouldOmitTypedWordWhileTyping() 75 SuggestedWords.INPUT_STYLE_UPDATE_BATCH, in testshouldOmitTypedWordWhileGesturing() 79 SuggestedWords.INPUT_STYLE_UPDATE_BATCH, in testshouldOmitTypedWordWhileGesturing() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | SuggestedWordsTests.java | 22 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 133 final SuggestedWords wordsWithTypedWord = new SuggestedWords( in testGetTypedWordInfoOrNull() 139 SuggestedWords.INPUT_STYLE_NONE, in testGetTypedWordInfoOrNull() 140 SuggestedWords.NOT_A_SEQUENCE_NUMBER); in testGetTypedWordInfoOrNull() 147 final SuggestedWords wordsWithoutTypedWord = new SuggestedWords( in testGetTypedWordInfoOrNull() 153 SuggestedWords.INPUT_STYLE_NONE, in testGetTypedWordInfoOrNull() 154 SuggestedWords.NOT_A_SEQUENCE_NUMBER); in testGetTypedWordInfoOrNull() 158 assertNull(SuggestedWords.getEmptyInstance().getTypedWordInfoOrNull()); in testGetTypedWordInfoOrNull() 160 final SuggestedWords emptySuggestedWords = new SuggestedWords( in testGetTypedWordInfoOrNull() 166 SuggestedWords.INPUT_STYLE_NONE, in testGetTypedWordInfoOrNull() [all …]
|
D | InputLogicTests.java | 510 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterSpace() 526 SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsWithDoubleSpaceToPeriod() 540 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterManualPick() 552 SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterPeriod() 584 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterRecorrection() 781 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testWordThenSpaceDisplaysPredictions()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | MoreSuggestions.java | 30 import com.android.inputmethod.latin.SuggestedWords; 35 public final SuggestedWords mSuggestedWords; 37 MoreSuggestions(final MoreSuggestionsParam params, final SuggestedWords suggestedWords) { in MoreSuggestions() 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, in layout() 68 final int size = Math.min(suggestedWords.size(), SuggestedWords.MAX_SUGGESTIONS); in layout() 73 word = suggestedWords.getLabel(SuggestedWords.INDEX_OF_TYPED_WORD); in layout() [all …]
|
D | SuggestionStripLayoutHelper.java | 50 import com.android.inputmethod.latin.SuggestedWords; 51 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 199 private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords, in getStyledSuggestedWord() 208 && indexInSuggestedWords == SuggestedWords.INDEX_OF_AUTO_CORRECTION; in getStyledSuggestedWord() 210 && indexInSuggestedWords == SuggestedWords.INDEX_OF_TYPED_WORD; in getStyledSuggestedWord() 235 final SuggestedWords suggestedWords) { in getPositionInSuggestionStrip() 249 final boolean omitTypedWord = (inputStyle == SuggestedWords.INPUT_STYLE_TYPING) in shouldOmitTypedWord() 250 || (inputStyle == SuggestedWords.INPUT_STYLE_TAIL_BATCH) in shouldOmitTypedWord() 251 || (inputStyle == SuggestedWords.INPUT_STYLE_UPDATE_BATCH in shouldOmitTypedWord() 261 if (indexInSuggestedWords == SuggestedWords.INDEX_OF_TYPED_WORD) { in getPositionInSuggestionStrip() [all …]
|
D | MoreSuggestionsView.java | 28 import com.android.inputmethod.latin.SuggestedWords; 29 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 104 final SuggestedWords suggestedWords = ((MoreSuggestions)keyboard).mSuggestedWords; in onKeyInput()
|
D | SuggestionStripViewAccessor.java | 19 import com.android.inputmethod.latin.SuggestedWords; 26 public void showSuggestionStrip(final SuggestedWords suggestedWords); in showSuggestionStrip()
|
D | SuggestionStripView.java | 47 import com.android.inputmethod.latin.SuggestedWords; 48 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 83 private SuggestedWords mSuggestedWords = SuggestedWords.getEmptyInstance(); 147 for (int pos = 0; pos < SuggestedWords.MAX_SUGGESTIONS; pos++) { in SuggestionStripView() 199 public void setSuggestions(final SuggestedWords suggestedWords, final boolean isRtlLanguage) { in setSuggestions()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
D | SuggestionSpanUtilsTest.java | 27 import com.android.inputmethod.latin.SuggestedWords; 28 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 146 final SuggestedWords predictedWords = new SuggestedWords( in testGetTextWithSuggestionSpan() 153 SuggestedWords.INPUT_STYLE_PREDICTION, in testGetTextWithSuggestionSpan() 154 SuggestedWords.NOT_A_SEQUENCE_NUMBER); in testGetTextWithSuggestionSpan() 169 final SuggestedWords typedAndCollectedWords = new SuggestedWords( in testGetTextWithSuggestionSpan() 176 SuggestedWords.INPUT_STYLE_TYPING, in testGetTextWithSuggestionSpan() 177 SuggestedWords.NOT_A_SEQUENCE_NUMBER); in testGetTextWithSuggestionSpan()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
D | InputLogic.java | 45 import com.android.inputmethod.latin.SuggestedWords; 46 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 86 public SuggestedWords mSuggestedWords = SuggestedWords.getEmptyInstance(); 156 mSuggestedWords = SuggestedWords.getEmptyInstance(); in startInput() 246 handler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_TYPING); in onTextInput() 276 final SuggestedWords suggestedWords = mSuggestedWords; in onPickSuggestionManually() 313 mSuggestedWords = SuggestedWords.getEmptyInstance(); in onPickSuggestionManually() 333 handler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_NONE); in onPickSuggestionManually() 498 SuggestedWords.getEmptyInstance(), false /* dismissGestureFloatingPreviewText */); in onStartBatchInput() 573 SuggestedWords.getEmptyInstance(), true /* dismissGestureFloatingPreviewText */); in onCancelBatchInput() [all …]
|
D | InputLogicHandler.java | 25 import com.android.inputmethod.latin.SuggestedWords; 138 public void onGetSuggestedWords(final SuggestedWords suggestedWords) { in updateBatchInput() 142 getSuggestedWords(isTailBatchInput ? SuggestedWords.INPUT_STYLE_TAIL_BATCH in updateBatchInput() 143 : SuggestedWords.INPUT_STYLE_UPDATE_BATCH, sequenceNumber, callback); in updateBatchInput() 147 void showGestureSuggestionsWithPreviewVisuals(final SuggestedWords suggestedWordsForBatchInput, in showGestureSuggestionsWithPreviewVisuals() 149 final SuggestedWords suggestedWordsToShowSuggestions; in showGestureSuggestionsWithPreviewVisuals()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | SuggestedWords.java | 33 public class SuggestedWords { class 52 private static final SuggestedWords EMPTY = new SuggestedWords( 74 public SuggestedWords(@Nonnull final ArrayList<SuggestedWordInfo> suggestedWordInfoList, in SuggestedWords() method in SuggestedWords 206 public static final SuggestedWords getEmptyInstance() { in getEmptyInstance() 207 return SuggestedWords.EMPTY; in getEmptyInstance() 214 @Nonnull final SuggestedWords previousSuggestions) { in getTypedWordAndPreviousSuggestions() 442 if (SuggestedWords.INDEX_OF_TYPED_WORD >= size()) { in getTypedWordInfoOrNull() 445 final SuggestedWordInfo info = getInfo(SuggestedWords.INDEX_OF_TYPED_WORD); in getTypedWordInfoOrNull()
|
D | LatinIME.java | 75 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 231 final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; in handleMessage() 234 latinIme.showGesturePreviewAndSuggestionStrip((SuggestedWords) msg.obj, in handleMessage() 255 final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; in handleMessage() 380 public void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords, in showGesturePreviewAndSuggestionStrip() 390 public void showSuggestionStrip(final SuggestedWords suggestedWords) { in showSuggestionStrip() 396 public void showTailBatchInputResult(final SuggestedWords suggestedWords) { in showTailBatchInputResult() 1131 final ArrayList<SuggestedWords.SuggestedWordInfo> applicationSuggestedWords = in onDisplayCompletions() 1132 SuggestedWords.getFromApplicationSpecifiedCompletions( in onDisplayCompletions() 1134 final SuggestedWords suggestedWords = new SuggestedWords(applicationSuggestedWords, in onDisplayCompletions() [all …]
|
D | Suggest.java | 25 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 95 public void onGetSuggestedWords(final SuggestedWords suggestedWords); in onGetSuggestedWords() 272 ? SuggestedWords.INPUT_STYLE_BEGINNING_OF_SENTENCE_PREDICTION in getSuggestedWordsForNonBatchInput() 273 : SuggestedWords.INPUT_STYLE_PREDICTION; in getSuggestedWordsForNonBatchInput() 280 callback.onGetSuggestedWords(new SuggestedWords(suggestionsList, in getSuggestedWordsForNonBatchInput() 339 callback.onGetSuggestedWords(new SuggestedWords(suggestionsContainer, in getSuggestedWordsForBatchInput()
|
D | PunctuationSuggestions.java | 34 public final class PunctuationSuggestions extends SuggestedWords { 43 SuggestedWords.NOT_A_SEQUENCE_NUMBER); in PunctuationSuggestions()
|
D | ReadOnlyBinaryDictionary.java | 19 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureFloatingTextDrawingPreview.java | 29 import com.android.inputmethod.latin.SuggestedWords; 103 private SuggestedWords mSuggestedWords = SuggestedWords.getEmptyInstance(); 116 setSuggetedWords(SuggestedWords.getEmptyInstance()); in dismissGestureFloatingPreviewText() 119 public void setSuggetedWords(@Nonnull final SuggestedWords suggestedWords) { in setSuggetedWords()
|
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/utils/ |
D | StatsUtils.java | 23 import com.android.inputmethod.latin.SuggestedWords; 39 public static void onPickSuggestionManually(final SuggestedWords suggestedWords, in onPickSuggestionManually() 40 final SuggestedWords.SuggestedWordInfo suggestionInfo, in onPickSuggestionManually()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | AccessibilityUtils.java | 37 import com.android.inputmethod.latin.SuggestedWords; 156 public void setAutoCorrection(final SuggestedWords suggestedWords) { in setAutoCorrection() 158 mAutoCorrectionWord = suggestedWords.getWord(SuggestedWords.INDEX_OF_AUTO_CORRECTION); in setAutoCorrection() 159 final SuggestedWords.SuggestedWordInfo typedWordInfo = suggestedWords.mTypedWordInfo; in setAutoCorrection()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | SuggestionSpanUtils.java | 27 import com.android.inputmethod.latin.SuggestedWords; 28 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; 75 final String pickedWord, final SuggestedWords suggestedWords, final Locale locale) { in getTextWithSuggestionSpan()
|
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/touchinputconsumer/ |
D | GestureConsumer.java | 23 import com.android.inputmethod.latin.SuggestedWords; 65 public void onImeSuggestionsProcessed(final SuggestedWords suggestedWords, in onImeSuggestionsProcessed()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerService.java | 36 import com.android.inputmethod.latin.SuggestedWords; 182 sessionId, SuggestedWords.INPUT_STYLE_TYPING); in getSuggestionResults()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | AutoCorrectionUtils.java | 21 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
D | SuggestionResults.java | 19 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
/packages/inputmethods/LatinIME/tools/dicttool/ |
D | Android.mk | 49 latin/SuggestedWords.java \
|