/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/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/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]); 71 final String[] suggestions = span.getSuggestions(); 74 suggestions[0]);
|
/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/spellcheck/ |
H A D | AndroidWordLevelSpellCheckerSession.java | 67 public SuggestionsParams(String[] suggestions, int flags) { argument 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 i 86 putSuggestionsToCache( final String query, final String[] suggestions, final int flags) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | 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;
|
H A D | 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 wit 138 getWhitelistedWordInfoOrNull( @onnull final ArrayList<SuggestedWordInfo> suggestions) argument 348 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 | 119 * @param useFullEditDistance whether to use the full edit distance in suggestions 138 * @param useFullEditDistance whether to use the full edit distance in suggestions 321 final ArrayList<SuggestedWordInfo> suggestions = new ArrayList<>(); 330 suggestions.add(new SuggestedWordInfo( 340 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. 307 SuggestionSpan[] suggestions; 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[ [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/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
H A D | SuggestionSpanUtilsTest.java | 222 final String[] suggestions = new String[] {"Quality", "Speed", "Price"}; 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/ |
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/apps/Settings/src/com/android/settings/dashboard/ |
H A D | DashboardSummary.java | 64 private static final String SUGGESTIONS = "suggestions"; 220 // recheck to see if any suggestions have been changed. 240 List<Tile> suggestions = mSuggestionParser.getSuggestions(); 241 for (int i = 0; i < suggestions.size(); i++) { 242 Tile suggestion = suggestions.get(i); 245 suggestions.remove(i--); 255 return suggestions;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
H A D | GeneralPrefsFragment.java | 169 final SuggestionsProvider suggestions = 171 suggestions.clearHistory(); 172 suggestions.cleanup();
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | StringUtils.java | 179 public static void removeDupes(@Nonnull final ArrayList<String> suggestions) { argument 180 if (suggestions.size() < 2) { 184 // Don't cache suggestions.size(), since we may be removing items 185 while (i < suggestions.size()) { 186 final String cur = suggestions.get(i); 189 final String previous = suggestions.get(j); 191 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
H A D | InputLogic.java | 55 import com.android.inputmethod.latin.suggestions.SuggestionStripViewAccessor; 116 * @param dictionaryFacilitator facilitator for getting suggestions and updating user history 193 // suggestionsSpan will be added. This will allow resuming on the same suggestions 332 // That's going to be predictions (or punctuation suggestions), so INPUT_STYLE_NONE. 388 // Another option would be to send suggestions each time we set the composing 391 // Also, we're posting a resume suggestions message, and this will update the 392 // suggestions strip in a few milliseconds, so if we cleared the suggestion strip here 394 // it here, which means we'll keep outdated suggestions for a split second but the 551 * onUpdateBatchInput method twice without having recomputed suggestions yet, or having 552 * received new suggestions generate [all...] |