Searched defs:suggestions (Results 1 - 25 of 39) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
H A DWallpaperManagerWrapper.java17 package com.android.settings.dashboard.suggestions;
H A DSuggestionFeatureProvider.java17 package com.android.settings.dashboard.suggestions;
26 /** Interface should be implemented if you have added new suggestions */
41 * Ranks the list of suggestions in place.
43 * @param suggestions List of suggestion Tiles
46 void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds); argument
H A DSuggestionFeatureProviderImpl.java17 package com.android.settings.dashboard.suggestions;
60 public void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds) { argument
61 mSuggestionRanker.rankSuggestions(suggestions, suggestionIds);
91 // Since Settings provides several suggestions, fill in the class instead of the
H A DSuggestionRanker.java16 package com.android.settings.dashboard.suggestions;
62 public void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds) { argument
66 relevanceMetrics.put(suggestions.get(i),
69 Collections.sort(suggestions, suggestionComparator);
H A DSuggestionsChecks.java17 package com.android.settings.dashboard.suggestions;
H A DEventStore.java16 package com.android.settings.dashboard.suggestions;
H A DSuggestionDismissController.java17 package com.android.settings.dashboard.suggestions;
H A DSuggestionFeaturizer.java16 package com.android.settings.dashboard.suggestions;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
H A DSuggestionStripViewAccessor.java17 package com.android.inputmethod.latin.suggestions;
H A DMoreSuggestionsView.java17 package com.android.inputmethod.latin.suggestions;
30 import com.android.inputmethod.latin.suggestions.MoreSuggestions.MoreSuggestionKey;
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
H A DEventStoreTest.java17 package com.android.settings.dashboard.suggestions;
H A DSuggestionFeaturizerTest.java17 package com.android.settings.dashboard.suggestions;
H A DSuggestionRankerTest.java17 package com.android.settings.dashboard.suggestions;
H A DSuggestionDismissControllerTest.java17 package com.android.settings.dashboard.suggestions;
H A DSuggestionFeatureProviderImplTest.java17 package com.android.settings.dashboard.suggestions;
H A DSuggestionsChecksTest.java17 package com.android.settings.dashboard.suggestions;
/packages/apps/Settings/tests/robotests/src/com/android/settings/suggestions/
H A DSettingsSuggestionsTest.java17 package com.android.settings.suggestions;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DSuggestionsAdapter.java27 * Interface for suggestions adapters.
35 * Sets the listener to be notified of clicks on suggestions.
45 * Sets the current suggestions.
47 void setSuggestions(Suggestions suggestions); argument
50 * Indicates if there's any suggestions in this adapter.
55 * Gets the current suggestions.
H A DDelayingSuggestionsAdapter.java28 * A {@link SuggestionsListAdapter} that doesn't expose the new suggestions
52 public void setSuggestions(Suggestions suggestions) { argument
53 if (suggestions == null) {
58 if (shouldPublish(suggestions)) {
59 if (DBG) Log.d(TAG, "Publishing suggestions immediately: " + suggestions);
60 mDelayedAdapter.setSuggestions(suggestions);
61 // Clear any old pending suggestions.
64 if (DBG) Log.d(TAG, "Delaying suggestions publishing: " + suggestions);
72 shouldPublish(Suggestions suggestions) argument
81 setPendingSuggestions(Suggestions suggestions) argument
[all...]
H A DSuggestionsAdapterBase.java32 * Base class for suggestions adapters. The templated class A is the list adapter class.
85 public void setSuggestions(Suggestions suggestions) { argument
86 if (mSuggestions == suggestions) {
90 if (suggestions != null) {
91 suggestions.release();
98 // TODO: delay the change if there are no suggestions for the currently visible tab.
103 mSuggestions = suggestions;
151 protected View getView(SuggestionCursor suggestions, int position, long suggestionId, argument
153 suggestions.moveTo(position);
154 View v = mViewFactory.getView(suggestions, suggestion
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/suggestions/
H A DSuggestionStripLayoutHelperTests.java17 package com.android.inputmethod.latin.suggestions;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionsProviderImpl.java63 final Suggestions suggestions = new Suggestions(query, sourceToQuery);
68 receiver = new SuggestionCursorReceiver(suggestions);
71 suggestions.done();
78 return suggestions;
95 public SuggestionCursorReceiver(Suggestions suggestions) { argument
96 mSuggestions = suggestions;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DGoogleSuggestClient.java50 * Use network-based Google Suggests to provide search suggestions.
94 * suggestions ordered by best match.
122 * 2 which contain the suggestions and their popularity.
125 JSONArray suggestions = results.getJSONArray(1);
127 if (DBG) Log.d(LOG_TAG, "Got " + suggestions.length() + " results");
128 return new GoogleSuggestCursor(this, query, suggestions, popularity);
163 /* Contains the actual suggestions */
172 JSONArray suggestions, JSONArray popularity) {
174 mSuggestions = suggestions;
171 GoogleSuggestCursor(Source source, String userQuery, JSONArray suggestions, JSONArray popularity) argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DSuggestionCursorUtil.java34 public static void assertNoSuggestions(SuggestionCursor suggestions) { argument
35 assertNoSuggestions("", suggestions);
38 public static void assertNoSuggestions(String message, SuggestionCursor suggestions) { argument
39 assertNotNull(suggestions);
40 assertEquals(message, 0, suggestions.getCount());
218 assertTrue(message + ", no suggestions", observed.getCount() > 0);
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
H A DDashboardAdapterTest.java317 final List<Tile> suggestions = new ArrayList<>();
322 suggestions.add(suggestion);
324 return suggestions;
327 private void setUpSuggestions(List<Tile> suggestions) { argument
328 mDashboardAdapter.setCategoriesAndSuggestions(new ArrayList<>(), suggestions);

Completed in 248 milliseconds

12