/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
ShortcutPromoter.java | 34 public void doPickPromoted(Suggestions suggestions, int maxPromoted, 36 promoteShortcuts(suggestions.getShortcuts(), maxPromoted, promoted);
|
SuggestionsProviderImpl.java | 31 * Suggestions provider implementation. 108 public Suggestions getSuggestions(String query, List<Corpus> corporaToQuery) { 111 final Suggestions suggestions = new Suggestions(query, corporaToQuery); local 116 return suggestions; 131 mBatchingExecutor, suggestions, initialBatchSize, 135 suggestions.done(); 143 return suggestions; 169 private final Suggestions mSuggestions [all...] |
ListSuggestionCursor.java | 29 * A SuggestionCursor that is backed by a list of Suggestions. 48 public ListSuggestionCursor(String userQuery, Suggestion...suggestions) { 49 this(userQuery, suggestions.length); 50 for (Suggestion suggestion : suggestions) {
|
EventLogLogger.java | 72 String suggestions = getSuggestions(suggestionCursor); local 75 EventLogTags.writeQsbClick(id, suggestions, corpora, numChars, 90 String suggestions = getSuggestions(suggestionCursor); local 91 EventLogTags.writeQsbExit(suggestions, numChars);
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
MockShortcutRepository.java | 39 public void removeFromHistory(SuggestionCursor suggestions, int position) { 73 public void reportClick(SuggestionCursor suggestions, int position) {
|
WebPromoterTest.java | 51 private Suggestions mSuggestions; 70 mSuggestions = new Suggestions(mQuery, 79 // Test sanity check: shouldn't expect any non-web suggestions 87 // Test sanity check: shouldn't expect any non-web suggestions 95 // Test sanity check: shouldn't expect any non-web suggestions 100 private ListSuggestionCursor promote(Suggestions suggestions, int maxShortcuts, 104 promoter.pickPromoted(suggestions, maxSuggestions, promoted); 108 private SuggestionCursor cursor(Suggestion... suggestions) { 109 return new ListSuggestionCursor(mQuery, suggestions); [all...] |
SourceShortcutRefresherTest.java | 126 SuggestionCursor suggestions = getSuggestions(mQuery, 1, true); local 127 return SuggestionCursorUtil.slice(suggestions, 0, 1);
|
SuggestionCursorUtil.java | 34 public static void assertNoSuggestions(SuggestionCursor suggestions) { 35 assertNoSuggestions("", suggestions); 38 public static void assertNoSuggestions(String message, SuggestionCursor suggestions) { 39 assertNotNull(suggestions); 40 assertEquals(message, 0, suggestions.getCount()); 218 assertTrue(message + ", no suggestions", observed.getCount() > 0);
|
/external/chromium/chrome/browser/ |
autocomplete_history_manager.cc | 25 // Limit on the number of suggestions to appear in the pop-up menu under an 190 std::vector<string16> suggestions = autofill_result->GetValue(); local 191 SendSuggestions(&suggestions); 217 const std::vector<string16>* suggestions) { 218 if (suggestions) { 220 for (size_t i = 0; i < suggestions->size(); ++i) { 224 if (autofill_values_[j] == (*suggestions)[i]) { 231 autofill_values_.push_back((*suggestions)[i]);
|
autocomplete_history_manager.h | 58 void SendSuggestions(const std::vector<string16>* suggestions);
|
/external/chromium/chrome/browser/extensions/ |
extension_omnibox_api.cc | 111 ExtensionOmniboxSuggestions suggestions; local 113 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &suggestions.request_id)); 116 suggestions.suggestions.resize(suggestions_value->GetSize()); 118 ExtensionOmniboxSuggestion& suggestion = suggestions.suggestions[i]; 142 Details<ExtensionOmniboxSuggestions>(&suggestions));
|
extension_omnibox_api.h | 77 std::vector<ExtensionOmniboxSuggestion> suggestions; member in struct:ExtensionOmniboxSuggestions
|
/frameworks/base/core/java/android/text/style/ |
SuggestionSpan.java | 41 * the original text by one of the suggestions. 53 * Sets this flag if the suggestions should be easily accessible with few interactions. 54 * This flag should be set for every suggestions that the user is likely to use. 59 * Sets this flag if the suggestions apply to a misspelled word/text. This type of suggestion is 103 * @param suggestions Suggestions for the string under the span 106 public SuggestionSpan(Context context, String[] suggestions, int flags) { 107 this(context, null, suggestions, flags, null); 111 * @param locale Locale of the suggestions 112 * @param suggestions Suggestions for the string under the spa [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
SuggestionsAdapter.java | 21 import com.android.quicksearchbox.Suggestions; 28 * Interface for suggestions adapters. 36 * Sets the maximum number of promoted suggestions to be provided by this adapter. 46 * Sets the listener to be notified of clicks on suggestions. 56 * Sets the current suggestions. 58 void setSuggestions(Suggestions suggestions); 61 * Indicates if there's any suggestions in this adapter. 66 * Gets the current suggestions. 68 Suggestions getSuggestions() [all...] |
SearchActivityView.java | 28 import com.android.quicksearchbox.Suggestions; 101 mSuggestionsView = (SuggestionsView) findViewById(R.id.suggestions); 108 // suggestions? 206 Suggestions suggestions = getSuggestions(); local 207 if (corpus == null || suggestions == null || !suggestions.expectsCorpus(corpus)) { 272 public Suggestions getSuggestions() { 280 public void setSuggestions(Suggestions suggestions) { [all...] |
SearchActivityViewTwoPane.java | 22 import com.android.quicksearchbox.Suggestions; 211 // Don't hide keyboard when interacting with suggestions list 216 // Never hiding suggestions view in two-pane UI 221 // Never hiding suggestions view in two-pane UI 253 public void setSuggestions(Suggestions suggestions) { 254 super.setSuggestions(suggestions); 255 suggestions.acquire(); 256 mResultsAdapter.setSuggestions(suggestions);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
SearchQueryResults.java | 97 // Record the query string in the recent queries suggestions provider. 98 SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this, local 100 suggestions.saveRecentQuery(queryString, null);
|
SearchInvoke.java | 223 * Any application that implements search suggestions based on previous actions (such as 226 * searches to be replayed by other users of the device (via suggestions). 229 * android.provider.SearchRecentSuggestions. If you have developed a custom suggestions 236 SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this, local 238 suggestions.clearHistory();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
MoreSuggestionsView.java | 17 package com.android.inputmethod.latin.suggestions; 27 import com.android.inputmethod.latin.suggestions.MoreSuggestions.MoreSuggestionsListener;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
AndroidWordLevelSpellCheckerSession.java | 59 public SuggestionsParams(String[] suggestions, int flags) { 60 mSuggestions = suggestions; 86 String query, String prevWord, String[] suggestions, int flags) { 87 if (suggestions == null || TextUtils.isEmpty(query)) { 91 generateKey(query, prevWord), new SuggestionsParams(suggestions, flags)); 236 * Gets a list of suggestions for a specific string. This returns a list of possible 280 // TODO: Don't gather suggestions if the limit is <= 0 unless necessary 302 final ArrayList<SuggestedWordInfo> suggestions = local 306 for (final SuggestedWordInfo suggestion : suggestions) {
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestClient.java | 51 * Use network-based Google Suggests to provide search suggestions. 95 * suggestions ordered by best match. 123 * 2 which contain the suggestions and their popularity. 126 JSONArray suggestions = results.getJSONArray(1); local 128 if (DBG) Log.d(LOG_TAG, "Got " + suggestions.length() + " results"); 129 return new GoogleSuggestCursor(this, query, suggestions, popularity); 164 /* Contains the actual suggestions */ 173 JSONArray suggestions, JSONArray popularity) { 175 mSuggestions = suggestions;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ExpandableDictionary.java | 32 * be searched for suggestions and valid words. 263 final ArrayList<SuggestedWordInfo> suggestions = local 265 return suggestions; 268 final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList(); 269 runBigramReverseLookUp(prevWord, suggestions); 270 return suggestions; 286 final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList(); local 305 getWordsRec(mRoots, codes, mWordBuilder, 0, false, 1, 0, -1, suggestions); 307 getWordsRec(mRoots, codes, mWordBuilder, 0, false, 1, 0, i, suggestions); 309 return suggestions; [all...] |
StringUtils.java | 73 public static void removeDupes(final ArrayList<String> suggestions) { 74 if (suggestions.size() < 2) return; 76 // Don't cache suggestions.size(), since we may be removing items 77 while (i < suggestions.size()) { 78 final String cur = suggestions.get(i); 81 final String previous = suggestions.get(j); 83 suggestions.remove(i);
|
/packages/apps/Browser/src/com/android/browser/search/ |
OpenSearchSearchEngine.java | 45 * Provides search suggestions, if any, for a given web search provider. 123 * suggestions ordered by best match. 145 * should be JSON arrays. The second element/array contains the suggestions and the 150 JSONArray suggestions = results.getJSONArray(1); local 160 return new SuggestionsCursor(suggestions, descriptions); 218 public SuggestionsCursor(JSONArray suggestions, JSONArray descriptions) { 219 mSuggestions = suggestions;
|
/external/chromium/chrome/browser/autocomplete/ |
keyword_provider.cc | 62 // Extension suggestions always come from the original profile, since that's 64 // suggestions are meant for us. 140 // stale extension suggestions that may be incoming. 234 // suggestions from last time. We need to readjust the relevance to 479 const ExtensionOmniboxSuggestions& suggestions = local 481 if (suggestions.request_id != current_input_id_) 490 // TODO(mpcomplete): consider clamping the number of suggestions to 492 for (size_t i = 0; i < suggestions.suggestions.size(); ++i) { 494 suggestions.suggestions[i] [all...] |