/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
DelayingSuggestionsAdapter.java | 21 import com.android.quicksearchbox.Suggestions; 28 * A {@link SuggestionsListAdapter} that doesn't expose the new suggestions 38 private Suggestions mPendingSuggestions; 52 public void setSuggestions(Suggestions suggestions) { 53 if (suggestions == null) { 58 if (shouldPublish(suggestions)) { 59 if (DBG) Log.d(TAG, "Publishing suggestions immediately: " + suggestions); 60 mDelayedAdapter.setSuggestions(suggestions); [all...] |
SuggestionsAdapter.java | 20 import com.android.quicksearchbox.Suggestions; 27 * 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); 50 * Indicates if there's any suggestions in this adapter. 55 * Gets the current suggestions. 57 Suggestions getSuggestions();
|
SuggestionsAdapterBase.java | 21 import com.android.quicksearchbox.Suggestions; 32 * Base class for suggestions adapters. The templated class A is the list adapter class. 45 private Suggestions mSuggestions; 85 public void setSuggestions(Suggestions suggestions) { 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; [all...] |
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/ |
SuggestionListBuilder.java | 17 package com.android.settings.intelligence.suggestions.model; 19 import android.service.settings.suggestions.Suggestion; 37 public void addSuggestions(SuggestionCategory category, List<Suggestion> suggestions) { 41 mSuggestions.put(category, suggestions); 50 * Filter suggestions list so they are all unique. 54 final List<Suggestion> suggestions = new ArrayList<>(); local 56 suggestions.addAll(suggestionsInCategory); 58 for (int i = suggestions.size() - 1; i >= 0; i--) { 59 final Suggestion suggestion = suggestions.get(i); 62 suggestions.remove(i) [all...] |
/frameworks/base/core/java/android/service/settings/suggestions/ |
ISuggestionService.aidl | 1 package android.service.settings.suggestions; 3 import android.service.settings.suggestions.Suggestion; 11 * Return all available suggestions.
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionsProviderImpl.java | 28 * Suggestions provider implementation. 61 public Suggestions getSuggestions(String query, Source sourceToQuery) { 63 final Suggestions suggestions = new Suggestions(query, sourceToQuery); local 68 receiver = new SuggestionCursorReceiver(suggestions); 71 suggestions.done(); 78 return suggestions; 93 private final Suggestions mSuggestions; 95 public SuggestionCursorReceiver(Suggestions suggestions) [all...] |
SearchActivity.java | 67 // or suggestions, since QSB was last started. 266 // TODO we should log both sets of suggestions in 2-pane mode 370 Suggestions suggestions = mSearchActivityView.getSuggestions(); local 371 if (suggestions == null) { 374 return suggestions.getResult(); 382 SuggestionCursor suggestions = pos.getCursor(); local 384 if (suggestions == null) { 387 int count = suggestions.getCount(); 392 suggestions.moveTo(position) 480 Suggestions suggestions = getSuggestionsProvider().getSuggestions( local [all...] |
Suggestions.java | 26 public class Suggestions { 28 private static final String TAG = "QSB.Suggestions"; 30 /** True if {@link Suggestions#close} has been called. */ 35 * The observers that want notifications of changes to the published suggestions. 48 public Suggestions(String query, Source source) { 69 * Marks the suggestions set as complete, regardless of whether all corpora have 156 Log.e(TAG, "LEAK! Finalized without being closed: Suggestions[" + getQuery() + "]"); 189 return "Suggestions@" + hashCode() + "{source=" + mSource
|
SuggestionsProvider.java | 26 * Gets suggestions for a query. 31 Suggestions getSuggestions(String query, Source source);
|
/external/libmojo/third_party/markupsafe/ |
AUTHORS | 9 Patches and Suggestions
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/ |
SuggestionList.java | 17 package com.android.settingslib.suggestions; 34 // A flatten list of all suggestions. 41 public void addSuggestions(SuggestionCategory category, List<Tile> suggestions) { 42 mSuggestions.put(category, suggestions); 50 for (List<Tile> suggestions : mSuggestions.values()) { 51 mSuggestionList.addAll(suggestions); 71 * Filter suggestions list so they are all unique. 73 private void dedupeSuggestions(List<Tile> suggestions) { 75 for (int i = suggestions.size() - 1; i >= 0; i--) { 76 final Tile suggestion = suggestions.get(i) [all...] |
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/ |
SuggestionFeatureProvider.java | 17 package com.android.settings.dashboard.suggestions; 22 import android.service.settings.suggestions.Suggestion; 27 import com.android.settingslib.suggestions.SuggestionControllerMixin; 31 /** Interface should be implemented if you have added new suggestions */ 53 * Returns the {@link SharedPreferences} that holds metadata for suggestions. 58 * Only keep top few suggestions from exclusive suggestions. 60 void filterExclusiveSuggestions(List<Tile> suggestions);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/ |
SuggestionAdapterTest.java | 16 package com.android.settings.dashboard.suggestions; 34 import android.service.settings.suggestions.Suggestion; 48 import com.android.settingslib.suggestions.SuggestionControllerMixin; 134 final List<Suggestion> suggestions = new ArrayList<>(); local 135 suggestions.add(new Suggestion.Builder("id") 142 mSuggestionAdapter.setSuggestions(suggestions); 171 final List<Suggestion> suggestions = makeSuggestions("pkg1"); local 172 setupSuggestions(mActivity, suggestions); 177 verify(mSuggestionControllerMixin).launchSuggestion(suggestions.get(0)); 178 verify(suggestions.get(0).getPendingIntent()).send() 184 final List<Suggestion> suggestions = new ArrayList<>(); local 209 final List<Suggestion> suggestions = makeSuggestions("pkg1"); local 218 final List<Suggestion> suggestions = makeSuggestions("pkg1"); local 244 final List<Suggestion> suggestions = new ArrayList<>(); local 272 final List<Suggestion> suggestions = new ArrayList<>(); local 297 final List<Suggestion> suggestions = makeSuggestions("pkg1"); local 309 final List<Suggestion> suggestions = makeSuggestions("pkg1"); local 333 final List<Suggestion> suggestions = new ArrayList<>(); local [all...] |
SuggestionFeatureProviderImplTest.java | 17 package com.android.settings.dashboard.suggestions; 34 import android.service.settings.suggestions.Suggestion; 45 import com.android.settingslib.suggestions.SuggestionControllerMixin; 151 final List<Tile> suggestions = new ArrayList<>(); local 152 suggestions.add(new Tile()); 153 suggestions.add(new Tile()); 154 suggestions.add(new Tile()); 155 suggestions.add(new Tile()); 156 suggestions.add(new Tile()); 157 suggestions.add(new Tile()) [all...] |
/frameworks/base/core/java/android/view/textservice/ |
SuggestionsInfo.java | 25 * This class contains a metadata of suggestions from the text service 31 * Flag of the attributes of the suggestions that can be obtained by 37 * Flag of the attributes of the suggestions that can be obtained by 43 * Flag of the attributes of the suggestions that can be obtained by 45 * the result suggestions include highly recommended ones. 57 * @param suggestions from the text service 59 public SuggestionsInfo(int suggestionsAttributes, String[] suggestions) { 60 this(suggestionsAttributes, suggestions, 0, 0); 66 * @param suggestions from the text service 71 int suggestionsAttributes, String[] suggestions, int cookie, int sequence) [all...] |
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/ |
SettingsSuggestionsLoader.java | 17 package com.android.car.settings.suggestions; 20 import android.service.settings.suggestions.Suggestion; 24 import com.android.settingslib.suggestions.SuggestionController; 29 * Loads suggestions for car settings. Taken from 30 * {@link com.android.settingslib.suggestions.SuggestionLoader}, only change is to extend from car 37 * ID used for loader that loads the settings suggestions. ID value is an arbitrary value.
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
SuggestionFeatureProvider.java | 17 package com.android.settings.intelligence.suggestions; 21 import android.service.settings.suggestions.Suggestion; 23 import com.android.settings.intelligence.suggestions.ranking.SuggestionEventStore; 24 import com.android.settings.intelligence.suggestions.ranking.SuggestionFeaturizer; 25 import com.android.settings.intelligence.suggestions.ranking.SuggestionRanker; 31 private static final String SHARED_PREF_FILENAME = "suggestions"; 45 * Returns a list of suggestions that UI should display, sorted based on importance. 95 * Returns a manager that knows how to rank suggestions.
|
SuggestionParser.java | 17 package com.android.settings.intelligence.suggestions; 19 import static com.android.settings.intelligence.suggestions.model.SuggestionCategoryRegistry 27 import android.service.settings.suggestions.Suggestion; 34 import com.android.settings.intelligence.suggestions.eligibility.CandidateSuggestionFilter; 35 import com.android.settings.intelligence.suggestions.model.CandidateSuggestion; 36 import com.android.settings.intelligence.suggestions.model.SuggestionCategory; 37 import com.android.settings.intelligence.suggestions.model.SuggestionListBuilder; 44 * Main parser to get suggestions from all providers. 72 // If suggestions from an exclusive category are present, parsing is stopped 73 // and only suggestions from that category are displayed. Note that subsequen 87 final List<Suggestion> suggestions = local 97 final List<Suggestion> suggestions = new ArrayList<>(); local [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
SuggestionSpanTest.java | 52 final String[] suggestions = new String[] {"suggestion1", "suggestion2"}; local 59 final SuggestionSpan span = new SuggestionSpan(context, suggestions, 63 assertArrayEquals(suggestions, span.getSuggestions()); 69 final String[] suggestions = new String[]{"suggestion1", "suggestion2"}; local 70 final SuggestionSpan span = new SuggestionSpan(Locale.forLanguageTag("en"), suggestions, 72 assertArrayEquals("Should return the correct suggestions array", 73 suggestions, span.getSuggestions()); 76 assertArrayEquals("Should (de)serialize suggestions", 77 suggestions, clonedSpan.getSuggestions()); 82 final String[] suggestions = new String[0] local 96 final String[] suggestions = new String[]{"suggestion", null}; local 228 final String[] suggestions = new String[]{"suggestion1", "suggestion2"}; local [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/ |
ShadowSuggestionController.java | 17 package com.android.settingslib.suggestions; 19 import android.service.settings.suggestions.Suggestion; 52 public static void setSuggestion(List<Suggestion> suggestions) { 53 sSuggestions = suggestions;
|
/packages/apps/QuickSearchBox/tests/naughty/res/values/ |
strings.xml | 19 <string name="app_label" translatable="false">Naughty Suggestions</string> 20 <string name="settings_description" translatable="false">Suggestions that do bad things!</string> 21 <string name="crashing_description" translatable="false">Suggestions that crash</string> 22 <string name="hanging_description" translatable="false">Suggestions that hang</string>
|
/external/autotest/client/profilers/powertop/src/ |
suggestions.c | 55 static struct suggestion *suggestions; variable in typeref:struct:suggestion 64 ptr = suggestions; 73 suggestions = NULL; 96 new->next = suggestions; 98 suggestions = new; 112 if (total_weight==0 || suggestions==NULL) { 113 /* zero suggestions */ 122 ptr = suggestions; 150 for (ptr = suggestions; ptr; ptr = ptr->next)
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerServiceTest.java | 37 final String[] suggestions = span.getSuggestions(); local 38 // For this test we consider "tgis" should yield at least 2 suggestions (at this moment 40 assertTrue(suggestions.length >= 2); 42 assertEquals("Test basic spell checking", "this", suggestions[0]); 71 final String[] suggestions = span.getSuggestions(); local 74 suggestions[0]);
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/ |
SuggestionRanker.java | 17 package com.android.settings.intelligence.suggestions.ranking; 20 import android.service.settings.suggestions.Suggestion; 33 * Copied from packages/apps/Settings/src/.../dashboard/suggestions/SuggestionRanker 72 * Filter out suggestions that are not relevant at the moment, and rank the rest. 76 public List<Suggestion> rankRelevantSuggestions(List<Suggestion> suggestions) { 78 Map<String, Map<String, Double>> features = mSuggestionFeaturizer.featurize(suggestions); 79 for (Suggestion suggestion : suggestions) { 83 rankedSuggestions.addAll(suggestions);
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
SearchActivity.java | 27 * to our SearchRecentSuggestions so that SearchView's can display suggestions. 39 SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this, local 41 suggestions.saveRecentQuery(query, null);
|