Home | History | Annotate | Download | only in spellcheck

Lines Matching refs:suggestions

67         public SuggestionsParams(String[] suggestions, int flags) {
68 mSuggestions = suggestions;
87 final String query, final String[] suggestions, final int flags) {
88 if (suggestions == null || TextUtils.isEmpty(query)) {
93 new SuggestionsParams(suggestions, flags));
168 // If the string contains a period, native returns strange suggestions (it seems
169 // to return suggestions for everything up to the period only and to ignore the
171 // TODO: investigate why native returns these suggestions and remove this code.
214 * Gets a list of suggestions for a specific string. This returns a list of possible
288 // TODO: Don't gather suggestions if the limit is <= 0 unless necessary
301 Log.i(TAG, "onGetSuggestionsInternal() : Suggestions =" + builder);
345 final ArrayList<String> suggestions = new ArrayList<>();
356 suggestions.add(suggestion);
358 StringUtils.removeDupes(suggestions);
362 suggestions.subList(0, Math.min(suggestions.size(), suggestionsLimit));
367 final String bestSuggestion = suggestions.get(0);