Lines Matching refs:suggestion

121      * @param suggestionStripViewAccessor an object to access the suggestion strip view.
277 * A suggestion was picked from the suggestion strip.
279 * @param suggestionInfo the suggestion info.
291 final String suggestion = suggestionInfo.mWord;
292 // If this is a punctuation picked from the suggestion strip, pass it to onCodeInput
293 if (suggestion.length() == 1 && suggestedWords.isPunctuationSuggestions()) {
308 if (SpaceState.PHANTOM == mSpaceState && suggestion.length() > 0
312 final int firstChar = Character.codePointAt(suggestion, 0);
321 // however need to reset the suggestion strip right away, because we know we can't take
334 commitChosenWord(settingsValues, suggestion, LastComposedWord.COMMIT_TYPE_MANUAL_PICK,
344 mSuggestionStripViewAccessor.showAddToDictionaryHint(suggestion);
346 // If we're not showing the "Touch again to save", then update the suggestion strip.
394 // suggestion span for recorrection to work correctly. Unfortunately, that
403 // suggestions strip in a few milliseconds, so if we cleared the suggestion strip here
404 // we'd have the suggestion strip noticeably janky. To avoid that, we don't clear
424 // We moved the cursor. If we are touching a word, we need to resume suggestion.
548 * results of the suggestion process that is held in mSuggestedWords.
549 * However, the suggestion process is asynchronous, and sometimes we may enter the
986 // space. For example, if I type "Good dat", pick "day" from the suggestion strip
1089 // We should backspace one char and restart suggestion if at the end of a word.
1339 final String suggestion, final PrevWordsInfo prevWordsInfo) {
1345 if (TextUtils.isEmpty(suggestion)) return;
1350 mDictionaryFacilitator.addToUserHistory(suggestion, wasAutoCapitalized,
1356 // Check if we have a suggestion engine attached.
1404 * suggestions in the suggestion list.
1482 // We want the previous word for suggestion. If we have chars in the word
1496 // If there weren't any suggestion spans on this word, suggestions#size() will be 1
1515 // either. Rather than displaying an empty suggestion strip, we'll
1524 // We found suggestion spans in the word. We'll create the SuggestedWords out of
1526 // color of the word in the suggestion strip changes according to this parameter,
1586 // If this is a suggestion span, we check that the locale is the right one, and
1595 for (final String suggestion : suggestionSpan.getSuggestions()) {
1596 if (!suggestion.equals(committedWordString)) {
1597 suggestions.add(suggestion);
1601 // If this is not a suggestion span, we just add it as is.
1606 // Add the suggestion list to the list of suggestions.
1640 // Don't restart suggestion yet. We'll restart if the user deletes the separator.
1724 * for the suggestion process.
1810 * This will clear the composing word, reset the last composed word, clear the suggestion
1815 * @param clearSuggestionStrip whether this method should clear the suggestion strip.
1832 * Compare #resetEntireInputState, which also clears the suggestion strip and resets the
1972 // Commit except the last word for phrase gesture if the top suggestion is eligible for auto
2027 * to each of them; when it's confident enough in one suggestion, it replaces the typed string
2028 * by this suggestion at commit time. When it's not confident enough, or when it has no