Home
last modified time | relevance | path

Searched refs:suggestions (Results 1 – 8 of 8) sorted by relevance

/packages/apps/GlobalSearch/src/com/android/globalsearch/
DSuggestionResult.java75 public SuggestionResult(SuggestionSource source, List<SuggestionData> suggestions, int count, in SuggestionResult() argument
78 mSuggestions = suggestions; in SuggestionResult()
88 public SuggestionResult(SuggestionSource source, List<SuggestionData> suggestions) { in SuggestionResult() argument
89 this(source, suggestions, suggestions.size(), suggestions.size()); in SuggestionResult()
DSourceSuggestionBacker.java456 final List<SuggestionData> suggestions = suggestionResult.getSuggestions(); in addSourceResults() local
458 if (!suggestions.isEmpty()) { in addSourceResults()
459 int lastPosition = suggestions.size() - 1; in addSourceResults()
460 SuggestionData lastSuggestion = suggestions.get(lastPosition); in addSourceResults()
463 suggestions.remove(lastPosition); in addSourceResults()
471 final Iterator<SuggestionData> it = suggestions.iterator(); in addSourceResults()
DTestSuggestionSource.java198 public Builder addCannedResponse(String query, SuggestionData... suggestions) { in addCannedResponse() argument
199 final List<SuggestionData> suggestionList = Arrays.asList(suggestions); in addCannedResponse()
DSearchableSuggestionSource.java187 ArrayList<SuggestionData> suggestions = new ArrayList<SuggestionData>(count); in getSuggestions() local
188 while (cursor.moveToNext() && suggestions.size() < maxResults) { in getSuggestions()
195 suggestions.add(suggestion); in getSuggestions()
198 return new SuggestionResult(this, suggestions, count, queryLimit); in getSuggestions()
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/
DSuggest.java227 final ArrayList<CharSequence> suggestions = mSuggestions; in removeDupes() local
228 if (suggestions.size() < 2) return; in removeDupes()
231 while (i < suggestions.size()) { in removeDupes()
232 final CharSequence cur = suggestions.get(i); in removeDupes()
235 CharSequence previous = suggestions.get(j); in removeDupes()
DCandidateView.java286 public void setSuggestions(List<CharSequence> suggestions, boolean completions, in setSuggestions() argument
289 if (suggestions != null) { in setSuggestions()
290 mSuggestions = new ArrayList<CharSequence>(suggestions); in setSuggestions()
/packages/apps/GoogleSearch/src/com/android/googlesearch/
DSuggestionProvider.java168 JSONArray suggestions = results.getJSONArray(1); in query() local
170 return new SuggestionsCursor(suggestions, popularity); in query()
205 public SuggestionsCursor(JSONArray suggestions, JSONArray popularity) { in SuggestionsCursor() argument
206 mSuggestions = suggestions; in SuggestionsCursor()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactAggregatorTest.java629 private void assertSuggestions(long contactId, long... suggestions) { in assertSuggestions() argument
635 assertSuggestions(uri, suggestions); in assertSuggestions()
638 private void assertSuggestions(long contactId, String filter, long... suggestions) { in assertSuggestions() argument
642 assertSuggestions(uri, suggestions); in assertSuggestions()
645 private void assertSuggestions(Uri uri, long... suggestions) { in assertSuggestions() argument
650 assertEquals(suggestions.length, cursor.getCount()); in assertSuggestions()
652 for (int i = 0; i < suggestions.length; i++) { in assertSuggestions()
654 assertEquals(suggestions[i], cursor.getLong(0)); in assertSuggestions()