Home
last modified time | relevance | path

Searched refs:suggestedWords (Results 1 – 19 of 19) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java199 private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords, in getStyledSuggestedWord() argument
201 if (indexInSuggestedWords >= suggestedWords.size()) { in getStyledSuggestedWord()
204 final String word = suggestedWords.getLabel(indexInSuggestedWords); in getStyledSuggestedWord()
207 final boolean isAutoCorrection = suggestedWords.mWillAutoCorrect in getStyledSuggestedWord()
209 final boolean isTypedWordValid = suggestedWords.mTypedWordValid in getStyledSuggestedWord()
235 final SuggestedWords suggestedWords) { in getPositionInSuggestionStrip() argument
237 final boolean shouldOmitTypedWord = shouldOmitTypedWord(suggestedWords.mInputStyle, in getPositionInSuggestionStrip()
240 return getPositionInSuggestionStrip(indexInSuggestedWords, suggestedWords.mWillAutoCorrect, in getPositionInSuggestionStrip()
303 private int getSuggestionTextColor(final SuggestedWords suggestedWords, in getSuggestionTextColor() argument
306 final boolean isTypedWord = suggestedWords.getInfo(indexInSuggestedWords).isKindOf( in getSuggestionTextColor()
[all …]
DMoreSuggestions.java37 MoreSuggestions(final MoreSuggestionsParam params, final SuggestedWords suggestedWords) { in MoreSuggestions() argument
39 mSuggestedWords = suggestedWords; in MoreSuggestions()
56 public int layout(final SuggestedWords suggestedWords, final int fromIndex, in layout() argument
68 final int size = Math.min(suggestedWords.size(), SuggestedWords.MAX_SUGGESTIONS); in layout()
71 if (isIndexSubjectToAutoCorrection(suggestedWords, index)) { in layout()
73 word = suggestedWords.getLabel(SuggestedWords.INDEX_OF_TYPED_WORD); in layout()
75 word = suggestedWords.getLabel(index); in layout()
174 static boolean isIndexSubjectToAutoCorrection(final SuggestedWords suggestedWords, in isIndexSubjectToAutoCorrection() argument
176 return suggestedWords.mWillAutoCorrect && index == SuggestedWords.INDEX_OF_AUTO_CORRECTION; in isIndexSubjectToAutoCorrection()
190 public Builder layout(final SuggestedWords suggestedWords, final int fromIndex, in layout() argument
[all …]
DMoreSuggestionsView.java104 final SuggestedWords suggestedWords = ((MoreSuggestions)keyboard).mSuggestedWords; in onKeyInput() local
106 if (index < 0 || index >= suggestedWords.size()) { in onKeyInput()
115 ((MoreSuggestionsListener)mListener).onSuggestionSelected(suggestedWords.getInfo(index)); in onKeyInput()
DSuggestionStripViewAccessor.java26 public void showSuggestionStrip(final SuggestedWords suggestedWords); in showSuggestionStrip() argument
DSuggestionStripView.java199 public void setSuggestions(final SuggestedWords suggestedWords, final boolean isRtlLanguage) { in setSuggestions() argument
202 mSuggestedWords = suggestedWords; in setSuggestions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DLatinIME.java263 final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; in handleMessage() local
264 latinIme.showSuggestionStrip(suggestedWords); in handleMessage()
287 final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; in handleMessage() local
290 suggestedWords, latinIme.mKeyboardSwitcher); in handleMessage() local
291 latinIme.onTailBatchInputResultShown(suggestedWords); in handleMessage()
412 public void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords, in showGesturePreviewAndSuggestionStrip() argument
419 ARG2_UNUSED, suggestedWords).sendToTarget(); in showGesturePreviewAndSuggestionStrip()
422 public void showSuggestionStrip(final SuggestedWords suggestedWords) { in showSuggestionStrip() argument
425 ARG1_NOT_GESTURE_INPUT, ARG2_UNUSED, suggestedWords).sendToTarget(); in showSuggestionStrip()
428 public void showTailBatchInputResult(final SuggestedWords suggestedWords) { in showTailBatchInputResult() argument
[all …]
DSuggest.java95 public void onGetSuggestedWords(final SuggestedWords suggestedWords); in onGetSuggestedWords() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DSuggestionSpanUtils.java75 final String pickedWord, final SuggestedWords suggestedWords, final Locale locale) { in getTextWithSuggestionSpan() argument
76 if (TextUtils.isEmpty(pickedWord) || suggestedWords.isEmpty() in getTextWithSuggestionSpan()
77 || suggestedWords.isPrediction() || suggestedWords.isPunctuationSuggestions()) { in getTextWithSuggestionSpan()
82 for (int i = 0; i < suggestedWords.size(); ++i) { in getTextWithSuggestionSpan()
86 final SuggestedWordInfo info = suggestedWords.getInfo(i); in getTextWithSuggestionSpan()
90 final String word = suggestedWords.getWord(i); in getTextWithSuggestionSpan()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java510 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterSpace() local
512 suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null); in testPredictionsAfterSpace()
526 SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsWithDoubleSpaceToPeriod() local
527 suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsWithDoubleSpaceToPeriod()
540 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterManualPick() local
542 suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null); in testPredictionsAfterManualPick()
552 SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterPeriod() local
584 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictionsAfterRecorrection() local
586 suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null); in testPredictionsAfterRecorrection()
781 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testWordThenSpaceDisplaysPredictions() local
[all …]
DInputLogicTestsLanguageWithoutSpaces.java130 final SuggestedWords suggestedWords = mLatinIME.getSuggestedWordsForTest(); in testPredictions() local
132 suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null); in testPredictions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java276 final SuggestedWords suggestedWords = mSuggestedWords; in onPickSuggestionManually() local
279 if (suggestion.length() == 1 && suggestedWords.isPunctuationSuggestions()) { in onPickSuggestionManually()
578 public void setSuggestedWords(final SuggestedWords suggestedWords) { in setSuggestedWords() argument
579 if (!suggestedWords.isEmpty()) { in setSuggestedWords()
581 if (suggestedWords.mWillAutoCorrect) { in setSuggestedWords()
582 suggestedWordInfo = suggestedWords.getInfo(SuggestedWords.INDEX_OF_AUTO_CORRECTION); in setSuggestedWords()
586 suggestedWordInfo = suggestedWords.mTypedWordInfo; in setSuggestedWords()
590 mSuggestedWords = suggestedWords; in setSuggestedWords()
591 final boolean newAutoCorrectionIndicator = suggestedWords.mWillAutoCorrect; in setSuggestedWords()
1473 public void onGetSuggestedWords(final SuggestedWords suggestedWords) { in performUpdateSuggestionStripSync()
[all …]
DInputLogicHandler.java138 public void onGetSuggestedWords(final SuggestedWords suggestedWords) { in updateBatchInput()
139 showGestureSuggestionsWithPreviewVisuals(suggestedWords, isTailBatchInput); in updateBatchInput()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuationsTests.java447 final SuggestedWords suggestedWords = sp.mSuggestPuncList; in testingStandardPunctuationSuggestions() local
448 assertFalse("typedWordValid", suggestedWords.mTypedWordValid); in testingStandardPunctuationSuggestions()
449 assertFalse("willAutoCorrect", suggestedWords.mWillAutoCorrect); in testingStandardPunctuationSuggestions()
450 assertTrue("isPunctuationSuggestions", suggestedWords.isPunctuationSuggestions()); in testingStandardPunctuationSuggestions()
451 assertFalse("isObsoleteSuggestions", suggestedWords.mIsObsoleteSuggestions); in testingStandardPunctuationSuggestions()
452 assertFalse("isPrediction", suggestedWords.isPrediction()); in testingStandardPunctuationSuggestions()
453 assertEquals("size", punctuationLabels.length, suggestedWords.size()); in testingStandardPunctuationSuggestions()
454 for (int index = 0; index < suggestedWords.size(); index++) { in testingStandardPunctuationSuggestions()
456 punctuationLabels[index], suggestedWords.getLabel(index)); in testingStandardPunctuationSuggestions()
458 punctuationWords[index], suggestedWords.getWord(index)); in testingStandardPunctuationSuggestions()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestion_results.cpp94 std::vector<SuggestedWord> suggestedWords; in dumpSuggestions() local
97 suggestedWords.push_back(copyOfSuggestedWords.top()); in dumpSuggestions()
101 for (auto it = suggestedWords.rbegin(); it != suggestedWords.rend(); ++it) { in dumpSuggestions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DAccessibilityUtils.java156 public void setAutoCorrection(final SuggestedWords suggestedWords) { in setAutoCorrection() argument
157 if (suggestedWords.mWillAutoCorrect) { 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/keyboard/internal/
DGestureFloatingTextDrawingPreview.java119 public void setSuggetedWords(@Nonnull final SuggestedWords suggestedWords) { in setSuggetedWords() argument
123 mSuggestedWords = suggestedWords; in setSuggetedWords()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/touchinputconsumer/
DGestureConsumer.java65 public void onImeSuggestionsProcessed(final SuggestedWords suggestedWords, in onImeSuggestionsProcessed() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DStatsUtils.java39 public static void onPickSuggestionManually(final SuggestedWords suggestedWords, in onPickSuggestionManually() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java539 public void showGestureFloatingPreviewText(@Nonnull final SuggestedWords suggestedWords, in showGestureFloatingPreviewText() argument
544 gestureFloatingTextDrawingPreview.setSuggetedWords(suggestedWords); in showGestureFloatingPreviewText()