/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;
|
H A D | MoreSuggestions.java | 17 package com.android.inputmethod.latin.suggestions;
|
H A D | SuggestionStripLayoutHelper.java | 17 package com.android.inputmethod.latin.suggestions; 152 // Assuming there are at least three suggestions. Also, note that the suggestions are 339 * Layout suggestions to the suggestions strip. And returns the start index of more 340 * suggestions. 342 * @param suggestedWords suggestions to be shown in the suggestions strip. 343 * @param stripView the suggestions strip view. 345 * @return the start index of more suggestions [all...] |
H A D | SuggestionStripView.java | 17 package com.android.inputmethod.latin.suggestions; 53 import com.android.inputmethod.latin.suggestions.MoreSuggestionsView.MoreSuggestionsListener; 126 * Construct a {@link SuggestionStripView} for showing suggestions to be picked by the user. 400 // Ignore any touch event while more suggestions panel hasn't been shown. 483 // This may be overriden by showing suggestions later, if applicable.
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
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 | 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 | 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/suggestions/ |
H A D | SuggestionStripLayoutHelperTests.java | 17 package com.android.inputmethod.latin.suggestions;
|
/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 | 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...] |
/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/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/ |
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...] |
/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/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/apps/Settings/src/com/android/settings/dashboard/ |
H A D | DashboardAdapter.java | 113 List<Tile> suggestions) { 114 mSuggestions = suggestions; 202 // TODO: Counting namespaces for handling of suggestions/conds appearing/disappearing. 429 // Since Settings provides several suggestions, fill in the class instead of the 112 setCategoriesAndSuggestions(List<DashboardCategory> categories, List<Tile> suggestions) argument
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
H A D | ContactAggregator2Test.java | 1546 assertEquals("content://com.android.contacts/contacts/12/suggestions?limit=7", 1556 assertEquals("content://com.android.contacts/contacts/0/suggestions?" 1871 private void assertSuggestions(long contactId, long... suggestions) { argument 1875 assertSuggestions(uri, suggestions); 1878 private void assertSuggestions(long contactId, String filter, long... suggestions) { argument 1882 assertSuggestions(uri, suggestions); 1885 private void assertSuggestions(Uri uri, long... suggestions) { argument 1891 assertEquals(suggestions.length, cursor.getCount()); 1893 for (int i = 0; i < suggestions.length; i++) { 1895 assertEquals(suggestions[ [all...] |
H A D | ContactAggregatorTest.java | 1537 assertEquals("content://com.android.contacts/contacts/12/suggestions?limit=7", 1547 assertEquals("content://com.android.contacts/contacts/0/suggestions?" 1748 private void assertSuggestions(long contactId, long... suggestions) { argument 1752 assertSuggestions(uri, suggestions); 1755 private void assertSuggestions(long contactId, String filter, long... suggestions) { argument 1759 assertSuggestions(uri, suggestions); 1762 private void assertSuggestions(Uri uri, long... suggestions) { argument 1768 assertEquals(suggestions.length, cursor.getCount()); 1770 for (int i = 0; i < suggestions.length; i++) { 1772 assertEquals(suggestions[ [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | ContactEditorBaseFragment.java | 278 * Adapter for aggregation suggestions displayed in a PopupWindow when 288 AggregationSuggestionView.Listener listener, List<Suggestion> suggestions) { 292 mSuggestions = suggestions; 1537 * Triggers an asynchronous search for aggregation suggestions. 1616 * anchor for aggregation suggestions. 1622 * suggestions. 1677 * Performs aggregation with the contact selected by the user from suggestions or A-Z list. 287 AggregationSuggestionAdapter(Activity activity, boolean setNewContact, AggregationSuggestionView.Listener listener, List<Suggestion> suggestions) argument
|