Home
last modified time | relevance | path

Searched refs:SuggestedWords (Results 1 – 25 of 37) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelperTests.java22 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/
DSuggestedWordsTests.java22 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 …]
DInputLogicTests.java510 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/
DMoreSuggestions.java30 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 …]
DSuggestionStripLayoutHelper.java50 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 …]
DMoreSuggestionsView.java28 import com.android.inputmethod.latin.SuggestedWords;
29 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
104 final SuggestedWords suggestedWords = ((MoreSuggestions)keyboard).mSuggestedWords; in onKeyInput()
DSuggestionStripViewAccessor.java19 import com.android.inputmethod.latin.SuggestedWords;
26 public void showSuggestionStrip(final SuggestedWords suggestedWords); in showSuggestionStrip()
DSuggestionStripView.java47 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/
DSuggestionSpanUtilsTest.java27 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/
DInputLogic.java45 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 …]
DInputLogicHandler.java25 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/
DSuggestedWords.java33 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()
DLatinIME.java75 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 …]
DSuggest.java25 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()
DPunctuationSuggestions.java34 public final class PunctuationSuggestions extends SuggestedWords {
43 SuggestedWords.NOT_A_SEQUENCE_NUMBER); in PunctuationSuggestions()
DReadOnlyBinaryDictionary.java19 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingTextDrawingPreview.java29 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/
DStatsUtils.java23 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/
DAccessibilityUtils.java37 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/
DSuggestionSpanUtils.java27 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/
DGestureConsumer.java23 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/
DAndroidSpellCheckerService.java36 import com.android.inputmethod.latin.SuggestedWords;
182 sessionId, SuggestedWords.INPUT_STYLE_TYPING); in getSuggestionResults()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DAutoCorrectionUtils.java21 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
DSuggestionResults.java19 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
/packages/inputmethods/LatinIME/tools/dicttool/
DAndroid.mk49 latin/SuggestedWords.java \

12