/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripLayoutHelper.java | 199 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 …]
|
D | MoreSuggestions.java | 37 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 …]
|
D | MoreSuggestionsView.java | 104 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()
|
D | SuggestionStripViewAccessor.java | 26 public void showSuggestionStrip(final SuggestedWords suggestedWords); in showSuggestionStrip() argument
|
D | SuggestionStripView.java | 199 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/ |
D | LatinIME.java | 269 final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; in handleMessage() local 270 latinIme.showSuggestionStrip(suggestedWords); in handleMessage() 293 final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; in handleMessage() local 296 suggestedWords, latinIme.mKeyboardSwitcher); in handleMessage() local 297 latinIme.onTailBatchInputResultShown(suggestedWords); in handleMessage() 418 public void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords, in showGesturePreviewAndSuggestionStrip() argument 425 ARG2_UNUSED, suggestedWords).sendToTarget(); in showGesturePreviewAndSuggestionStrip() 428 public void showSuggestionStrip(final SuggestedWords suggestedWords) { in showSuggestionStrip() argument 431 ARG1_NOT_GESTURE_INPUT, ARG2_UNUSED, suggestedWords).sendToTarget(); in showSuggestionStrip() 434 public void showTailBatchInputResult(final SuggestedWords suggestedWords) { in showTailBatchInputResult() argument [all …]
|
D | Suggest.java | 95 public void onGetSuggestedWords(final SuggestedWords suggestedWords); in onGetSuggestedWords() argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | SuggestionSpanUtils.java | 75 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/ |
D | InputLogicTests.java | 510 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 …]
|
D | InputLogicTestsLanguageWithoutSpaces.java | 130 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/ |
D | InputLogic.java | 276 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 …]
|
D | InputLogicHandler.java | 138 public void onGetSuggestedWords(final SuggestedWords suggestedWords) { in updateBatchInput() 139 showGestureSuggestionsWithPreviewVisuals(suggestedWords, isTailBatchInput); in updateBatchInput()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/ |
D | SpacingAndPunctuationsTests.java | 447 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/ |
D | suggestion_results.cpp | 94 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/ |
D | AccessibilityUtils.java | 156 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/ |
D | GestureFloatingTextDrawingPreview.java | 119 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/ |
D | GestureConsumer.java | 65 public void onImeSuggestionsProcessed(final SuggestedWords suggestedWords, in onImeSuggestionsProcessed() argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | StatsUtils.java | 39 public static void onPickSuggestionManually(final SuggestedWords suggestedWords, in onPickSuggestionManually() argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MainKeyboardView.java | 539 public void showGestureFloatingPreviewText(@Nonnull final SuggestedWords suggestedWords, in showGestureFloatingPreviewText() argument 544 gestureFloatingTextDrawingPreview.setSuggetedWords(suggestedWords); in showGestureFloatingPreviewText()
|