/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...] |
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...] |
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();
|
SearchActivityView.java | 44 import com.android.quicksearchbox.Suggestions; 95 mSuggestionsView = (SuggestionsView) findViewById(R.id.suggestions); 102 // suggestions? 193 public Suggestions getSuggestions() { 201 public void setSuggestions(Suggestions suggestions) { 202 suggestions.acquire(); 203 mSuggestionsAdapter.setSuggestions(suggestions); 220 * Sets the text in the query box. Does not update the suggestions. 336 * is All or Web, use the web search suggestions as completions [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
SuggestionStripViewAccessor.java | 17 package com.android.inputmethod.latin.suggestions;
|
MoreSuggestionsView.java | 17 package com.android.inputmethod.latin.suggestions; 30 import com.android.inputmethod.latin.suggestions.MoreSuggestions.MoreSuggestionKey;
|
/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/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...] |
EventLogLogger.java | 70 String suggestions = getSuggestions(suggestionCursor); local 72 EventLogTags.writeQsbClick(id, suggestions, null, numChars, 88 String suggestions = getSuggestions(suggestionCursor); local 89 EventLogTags.writeQsbExit(suggestions, numChars);
|
SearchActivity.java | 67 // or suggestions, since QSB was last started. 266 // TODO we should log both sets of suggestions in 2-pane mode 378 SuggestionCursor suggestions = pos.getCursor(); local 380 if (suggestions == null) { 383 int count = suggestions.getCount(); 388 suggestions.moveTo(position); 400 // Since the intents for suggestions specified by suggestion providers, 423 protected void launchSuggestion(SuggestionCursor suggestions, int position) { 424 suggestions.moveTo(position); 425 Intent intent = SuggestionUtils.getSuggestionIntent(suggestions, mAppSearchData) 476 Suggestions suggestions = getSuggestionsProvider().getSuggestions( local [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) {
|
/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)
|
/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);
|
/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...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
SuggestionParser.java | 57 * Allows suggestions to appear after a certain number of days, and to re-appear if dismissed. 89 List<Tile> suggestions = new ArrayList<>(); local 92 readSuggestions(mSuggestionList.get(i), suggestions); local 94 return suggestions; 114 private void readSuggestions(SuggestionCategory category, List<Tile> suggestions) { 115 int countBefore = suggestions.size(); 122 addCache, null, suggestions, true, false); 123 for (int i = countBefore; i < suggestions.size(); i++) { 124 if (!isAvailable(suggestions.get(i)) || 125 !isSupported(suggestions.get(i)) | [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
AndroidWordLevelSpellCheckerSession.java | 67 public SuggestionsParams(String[] suggestions, int flags) { 68 mSuggestions = suggestions; 87 final String query, final String[] suggestions, final int flags) { 88 if (suggestions == null || TextUtils.isEmpty(query)) { 93 new SuggestionsParams(suggestions, flags)); 168 // If the string contains a period, native returns strange suggestions (it seems 169 // to return suggestions for everything up to the period only and to ignore the 171 // TODO: investigate why native returns these suggestions and remove this code. 214 * Gets a list of suggestions for a specific string. This returns a list of possible 288 // TODO: Don't gather suggestions if the limit is <= 0 unless necessar 345 final ArrayList<String> suggestions = new ArrayList<>(); local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryCollection.java | 71 ArrayList<SuggestedWordInfo> suggestions = dictionaries.get(0).getSuggestions(composedData, 74 if (null == suggestions) suggestions = new ArrayList<>(); 80 if (null != sugg) suggestions.addAll(sugg); 82 return suggestions;
|
Suggest.java | 41 * This class loads a dictionary and provides a list of suggestions for a given sequence of 139 @Nonnull final ArrayList<SuggestedWordInfo> suggestions) { 140 if (suggestions.isEmpty()) { 143 final SuggestedWordInfo firstSuggestedWordInfo = suggestions.get(0); 150 // Retrieves suggestions for non-batch input (typing, recorrection, predictions...) 151 // and calls the callback function with the suggestions. 217 // We never auto-correct when suggestions are resumed because it would be unexpected 287 // Retrieves suggestions for the batch input 288 // and calls the callback function with the suggestions. 324 // For some reason some suggestions with MIN_VALUE are making their way here [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
RichInputConnectionAndTextRangeTests.java | 157 * Test for getting previous word (for bigram suggestions) 160 // If one of the following cases breaks, the bigram suggestions won't work. 307 SuggestionSpan[] suggestions; local 310 suggestions = r.getSuggestionSpansAtWord(); 311 assertEquals(suggestions.length, 1); 312 MoreAsserts.assertEquals(suggestions[0].getSuggestions(), SUGGESTIONS1); 322 suggestions = r.getSuggestionSpansAtWord(); 323 assertEquals(suggestions.length, 2); 324 MoreAsserts.assertEquals(suggestions[0].getSuggestions(), SUGGESTIONS1); 325 MoreAsserts.assertEquals(suggestions[1].getSuggestions(), SUGGESTIONS2) [all...] |
/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...] |
/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);
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
DashboardSummary.java | 63 private static final String SUGGESTIONS = "suggestions"; 91 context.getSharedPreferences(SUGGESTIONS, 0), R.xml.suggestion_ordering); 204 // recheck to see if any suggestions have been changed. 223 List<Tile> suggestions = mSuggestionParser.getSuggestions(); local 224 for (int i = 0; i < suggestions.size(); i++) { 225 if (mSuggestionsChecks.isSuggestionComplete(suggestions.get(i))) { 226 mAdapter.disableSuggestion(suggestions.get(i)); 227 suggestions.remove(i--); 230 return suggestions; [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestClient.java | 50 * 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); local 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;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
SuggestionSpanUtilsTest.java | 222 final String[] suggestions = new String[] {"Quality", "Speed", "Price"}; local 223 final SuggestionSpan nullLocaleSpan = new SuggestionSpan((Locale)null, suggestions, 0); 224 final SuggestionSpan emptyLocaleSpan = new SuggestionSpan(new Locale(""), suggestions, 0); 225 final SuggestionSpan enUsLocaleSpan = new SuggestionSpan(Locale.US, suggestions, 0); 226 final SuggestionSpan jaJpLocaleSpan = new SuggestionSpan(Locale.JAPAN, suggestions, 0);
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
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);
|