/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
H A D | DelayingSuggestionsAdapter.java | 28 * 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 D | SuggestionsAdapterBase.java | 32 * 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...] |
H A D | SuggestionsAdapter.java | 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); argument 50 * Indicates if there's any suggestions in this adapter. 55 * Gets the current suggestions.
|
H A D | SearchActivityView.java | 95 mSuggestionsView = (SuggestionsView) findViewById(R.id.suggestions); 102 // suggestions? 201 public void setSuggestions(Suggestions suggestions) { argument 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. 342 Suggestions suggestions = mSuggestionsAdapter.getSuggestions(); 343 if (suggestions == null) return; 344 CompletionInfo[] completions = webSuggestionsToCompletions(suggestions); 349 webSuggestionsToCompletions(Suggestions suggestions) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/ |
H A D | AndroidSpellCheckerServiceTest.java | 37 final String[] suggestions = span.getSuggestions(); 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]); 57 final String[] suggestions = span.getSuggestions(); 58 // For this test we consider "годп" should yield at least 2 suggestions (at this moment 60 assertTrue(suggestions.length >= 2); 63 assertEquals("", "года", suggestions[0]); 77 final String[] suggestions = span.getSuggestions(); 80 suggestions[ [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | SuggestionStripViewAccessor.java | 17 package com.android.inputmethod.latin.suggestions;
|
H A D | MoreSuggestionsView.java | 17 package com.android.inputmethod.latin.suggestions; 30 import com.android.inputmethod.latin.suggestions.MoreSuggestions.MoreSuggestionKey;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SuggestionsProviderImpl.java | 63 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;
|
H A D | EventLogLogger.java | 70 String suggestions = getSuggestions(suggestionCursor); 72 EventLogTags.writeQsbClick(id, suggestions, null, numChars, 88 String suggestions = getSuggestions(suggestionCursor); 89 EventLogTags.writeQsbExit(suggestions, numChars);
|
H A D | 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(); 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) { argument 424 suggestions.moveTo(position); 425 Intent intent = SuggestionUtils.getSuggestionIntent(suggestions, mAppSearchDat 458 gotSuggestions(Suggestions suggestions) argument 485 showSuggestions(Suggestions suggestions) argument [all...] |
H A D | ListSuggestionCursor.java | 48 public ListSuggestionCursor(String userQuery, Suggestion...suggestions) { 49 this(userQuery, suggestions.length); 50 for (Suggestion suggestion : suggestions) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | DictionaryCollection.java | 67 ArrayList<SuggestedWordInfo> suggestions = dictionaries.get(0).getSuggestions(composer, 70 if (null == suggestions) suggestions = new ArrayList<>(); 76 if (null != sugg) suggestions.addAll(sugg); 78 return suggestions;
|
H A D | Suggest.java | 34 * This class loads a dictionary and provides a list of suggestions for a given sequence of 108 private static String getWhitelistedWordOrNull(final ArrayList<SuggestedWordInfo> suggestions) { argument 109 if (suggestions.isEmpty()) { 112 final SuggestedWordInfo firstSuggestedWordInfo = suggestions.get(0); 119 // Retrieves suggestions for non-batch input (typing, recorrection, predictions...) 120 // and calls the callback function with the suggestions. 207 // Retrieves suggestions for the batch input 208 // and calls the callback function with the suggestions. 239 // For some reason some suggestions with MIN_VALUE are making their way here. 260 final String typedWord, final ArrayList<SuggestedWordInfo> suggestions) { 259 getSuggestionsInfoListWithDebugInfo( final String typedWord, final ArrayList<SuggestedWordInfo> suggestions) argument [all...] |
H A D | InputView.java | 28 import com.android.inputmethod.latin.suggestions.MoreSuggestionsView; 29 import com.android.inputmethod.latin.suggestions.SuggestionStripView;
|
H A D | BinaryDictionary.java | 113 * @param useFullEditDistance whether to use the full edit distance in suggestions 133 * @param useFullEditDistance whether to use the full edit distance in suggestions 309 final ArrayList<SuggestedWordInfo> suggestions = new ArrayList<>(); 318 suggestions.add(new SuggestedWordInfo( 325 return suggestions;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | 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. 305 SuggestionSpan[] suggestions; 308 suggestions = r.getSuggestionSpansAtWord(); 309 assertEquals(suggestions.length, 1); 310 MoreAsserts.assertEquals(suggestions[0].getSuggestions(), SUGGESTIONS1); 320 suggestions = r.getSuggestionSpansAtWord(); 321 assertEquals(suggestions.length, 2); 322 MoreAsserts.assertEquals(suggestions[0].getSuggestions(), SUGGESTIONS1); 323 MoreAsserts.assertEquals(suggestions[ [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
H A D | AndroidWordLevelSpellCheckerSession.java | 64 public SuggestionsParams(String[] suggestions, int flags) { argument 65 mSuggestions = suggestions; 91 final String[] suggestions, final int flags) { 92 if (suggestions == null || TextUtils.isEmpty(query)) { 96 generateKey(query, prevWordsInfo), new SuggestionsParams(suggestions, flags)); 170 // If the string contains a period, native returns strange suggestions (it seems 171 // to return suggestions for everything up to the period only and to ignore the 173 // TODO: investigate why native returns these suggestions and remove this code. 216 * Gets a list of suggestions for a specific string. This returns a list of possible 284 // TODO: Don't gather suggestions i 89 putSuggestionsToCache( final String query, final PrevWordsInfo prevWordsInfo, final String[] suggestions, final int flags) argument [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
H A D | 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); 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/Browser/src/com/android/browser/search/ |
H A D | 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); 160 return new SuggestionsCursor(suggestions, descriptions); 218 public SuggestionsCursor(JSONArray suggestions, JSONArray descriptions) { argument 219 mSuggestions = suggestions;
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | SuggestionCursorUtil.java | 34 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | StringUtils.java | 113 public static void removeDupes(final ArrayList<String> suggestions) { argument 114 if (suggestions.size() < 2) return; 116 // Don't cache suggestions.size(), since we may be removing items 117 while (i < suggestions.size()) { 118 final String cur = suggestions.get(i); 121 final String previous = suggestions.get(j); 123 suggestions.remove(i);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/suggestions/ |
H A D | SuggestionStripLayoutHelperTests.java | 17 package com.android.inputmethod.latin.suggestions;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
H A D | GeneralPrefsFragment.java | 173 final SearchRecentSuggestions suggestions = 176 suggestions.clearHistory();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
H A D | InputLogic.java | 60 import com.android.inputmethod.latin.suggestions.SuggestionStripViewAccessor; 122 * @param dictionaryFacilitator facilitator for getting suggestions and updating user history 194 // suggestionsSpan will be added. This will allow resuming on the same suggestions 347 // That's going to be predictions (or punctuation suggestions), so INPUT_STYLE_NONE. 399 // Another option would be to send suggestions each time we set the composing 402 // Also, we're posting a resume suggestions message, and this will update the 403 // suggestions strip in a few milliseconds, so if we cleared the suggestion strip here 405 // it here, which means we'll keep outdated suggestions for a split second but the 550 * onUpdateBatchInput method twice without having recomputed suggestions yet, or having 551 * received new suggestions generate [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | GeneralPreferences.java | 409 SearchRecentSuggestions suggestions = new SearchRecentSuggestions(getActivity(), 412 suggestions.clearHistory();
|