HomeSort by relevance Sort by last modified time
    Searched full:suggestions (Results 1 - 25 of 1573) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/Settings/src/com/android/settings/dashboard/suggestions/
SuggestionFeatureProvider.java 17 package com.android.settings.dashboard.suggestions;
25 import com.android.settingslib.suggestions.SuggestionParser;
29 /** Interface should be implemented if you have added new suggestions */
46 * Returns the {@link SharedPreferences} that holds metadata for suggestions.
51 * Ranks the list of suggestions in place.
53 * @param suggestions List of suggestion Tiles
56 void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds);
59 * Only keep top few suggestions from exclusive suggestions.
61 void filterExclusiveSuggestions(List<Tile> suggestions);
    [all...]
SuggestionFeatureProviderImpl.java 17 package com.android.settings.dashboard.suggestions;
47 import com.android.settingslib.suggestions.SuggestionParser;
57 private static final String SHARED_PREF_FILENAME = "suggestions";
115 public void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds) {
116 mSuggestionRanker.rankSuggestions(suggestions, suggestionIds);
120 public void filterExclusiveSuggestions(List<Tile> suggestions) {
121 if (suggestions == null) {
124 for (int i = suggestions.size() - 1; i >= EXCLUSIVE_SUGGESTION_MAX_COUNT; i--) {
126 suggestions.remove(i);
159 // Since Settings provides several suggestions, fill in the class instead of th
    [all...]
  /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);
EventLogTags.logtags 32 # the list of suggestions shown.
40 71002 qsb_click (id|2),(suggestions|3),(queried_sources|3),(num_chars|1),(click_type|1)
55 # @param suggestions The suggestions shown when the user left QSB. See qsb_click above.
57 71005 qsb_exit (suggestions|3),(num_chars|1)
QueryTask.java 28 * A task that gets suggestions from a corpus.
44 * @param queryLimit The number of suggestions to ask each provider for.
45 * @param provider The provider to ask for suggestions.
48 * @param consumer Consumer to notify when the suggestions have been returned.
67 if (DBG) Log.d(TAG, "Suggestions from " + mProvider + " = " + cursor);
  /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;
35 // A flatten list of all suggestions.
42 public void addSuggestions(SuggestionCategory category, List<Tile> suggestions) {
43 mSuggestions.put(category, suggestions);
51 for (List<Tile> suggestions : mSuggestions.values()) {
52 mSuggestionList.addAll(suggestions);
81 * Filter suggestions list so they are all unique.
83 private void dedupeSuggestions(List<Tile> suggestions) {
85 for (int i = suggestions.size() - 1; i >= 0; i--) {
86 final Tile suggestion = suggestions.get(i)
    [all...]
SuggestionParser.java 16 package com.android.settingslib.suggestions;
81 * Allows suggestions to appear after a certain number of days, and to re-appear if dismissed.
97 // Default dismiss control for smart suggestions.
137 // If suggestions from an exclusive category are present, parsing is stopped
138 // and only suggestions from that category are displayed. Note that subsequent
153 final List<Tile> suggestions = new ArrayList<>(); local
154 readSuggestions(category, suggestions, isSmartSuggestionEnabled);
155 suggestionList.addSuggestions(category, suggestions);
175 List<Tile> suggestions, int countBefore, boolean isSmartSuggestionEnabled) {
176 for (int i = countBefore; i < suggestions.size(); i++)
    [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...]
  /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...]
  /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/Settings/src/com/android/settings/dashboard/
DashboardAdapter.java 48 import com.android.settings.dashboard.suggestions.SuggestionAdapter;
49 import com.android.settings.dashboard.suggestions.SuggestionDismissController;
50 import com.android.settings.dashboard.suggestions.SuggestionFeatureProvider;
51 import com.android.settings.dashboard.suggestions.SuggestionLogHelper;
56 import com.android.settingslib.suggestions.SuggestionParser;
115 List<Tile> suggestions = null; local
131 suggestions = savedInstanceState.getParcelableArrayList(STATE_SUGGESTION_LIST);
143 .setSuggestions(suggestions)
154 List<Tile> suggestions) {
155 tintIcons(category, suggestions);
204 final List<Tile> suggestions = mDashboardData.getSuggestions(); local
336 final List<Tile> suggestions = mDashboardData.getSuggestions(); local
442 final List<Tile> suggestions = mDashboardData.getSuggestions(); local
504 final List<Tile> suggestions = mDashboardData.getSuggestions(); local
    [all...]
DashboardSummary.java 39 import com.android.settings.dashboard.suggestions.SuggestionDismissController;
40 import com.android.settings.dashboard.suggestions.SuggestionFeatureProvider;
41 import com.android.settings.dashboard.suggestions.SuggestionsChecks;
49 import com.android.settingslib.suggestions.SuggestionList;
50 import com.android.settingslib.suggestions.SuggestionParser;
220 // Set categories on their own if loading suggestions takes too long.
231 // rebuildUI() because there might be some changes to suggestions and categories.
276 final List<Tile> suggestions = sl.getSuggestions(); local
279 List<String> suggestionIds = new ArrayList<>(suggestions.size());
280 for (Tile suggestion : suggestions) {
    [all...]
  /frameworks/support/samples/Support7Demos/src/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);
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
GoogleSource.java 23 * Special source interface for Google suggestions.
30 * Called by QSB to get web suggestions for a query.
35 * Called by external apps to get web suggestions for a query.
  /frameworks/ex/common/java/com/android/common/
Search.java 45 * Column name for suggestions cursor. <i>Optional.</i> This column may be
58 * Gets a cursor with search suggestions.
60 * @param searchable Information about how to get the suggestions.
62 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
69 * Gets a cursor with search suggestions.
71 * @param searchable Information about how to get the suggestions.
75 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
  /frameworks/base/core/java/android/text/style/
SuggestionSpan.java 43 * the original text by one of the suggestions.
55 * Sets this flag if the suggestions should be easily accessible with few interactions.
56 * This flag should be set for every suggestions that the user is likely to use.
61 * Sets this flag if the suggestions apply to a misspelled word/text. This type of suggestion is
113 * @param suggestions Suggestions for the string under the span
116 public SuggestionSpan(Context context, String[] suggestions, int flags) {
117 this(context, null, suggestions, flags, null);
121 * @param locale Locale of the suggestions
122 * @param suggestions Suggestions for the string under the spa
    [all...]

Completed in 857 milliseconds

1 2 3 4 5 6 7 8 91011>>