/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();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
SuggestionStripViewAccessor.java | 17 package com.android.inputmethod.latin.suggestions;
|
/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);
|
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/ |
SuggestionFeatureProvider.java | 17 package com.android.settings.dashboard.suggestions; 26 /** Interface should be implemented if you have added new suggestions */ 41 * Ranks the list of suggestions in place. 43 * @param suggestions List of suggestion Tiles 46 void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds);
|
WallpaperManagerWrapper.java | 17 package com.android.settings.dashboard.suggestions;
|
SuggestionRanker.java | 16 package com.android.settings.dashboard.suggestions; 62 public void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds) { 66 relevanceMetrics.put(suggestions.get(i), 69 Collections.sort(suggestions, suggestionComparator);
|
SuggestionFeatureProviderImpl.java | 17 package com.android.settings.dashboard.suggestions; 60 public void rankSuggestions(final List<Tile> suggestions, List<String> suggestionIds) { 61 mSuggestionRanker.rankSuggestions(suggestions, suggestionIds); 91 // Since Settings provides several suggestions, fill in the class instead of the
|
/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...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
SuggestionSpanTest.java | 48 final String[] suggestions = new String[] {"suggestion1", "suggestion2"}; local 55 final SuggestionSpan span = new SuggestionSpan(context, suggestions, 59 assertArrayEquals(suggestions, span.getSuggestions()); 65 final String[] suggestions = new String[]{"suggestion1", "suggestion2"}; local 66 final SuggestionSpan span = new SuggestionSpan(Locale.forLanguageTag("en"), suggestions, 68 assertArrayEquals("Should return the correct suggestions array", 69 suggestions, span.getSuggestions()); 72 assertArrayEquals("Should (de)serialize suggestions", 73 suggestions, clonedSpan.getSuggestions()); 78 final String[] suggestions = new String[0] local 92 final String[] suggestions = new String[]{"suggestion", null}; local [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
SuggestionParser.java | 78 * Allows suggestions to appear after a certain number of days, and to re-appear if dismissed. 97 // Default dismiss control for smart suggestions. 134 List<Tile> suggestions = new ArrayList<>(); local 137 readSuggestions(mSuggestionList.get(i), suggestions, isSmartSuggestionEnabled); local 139 return suggestions; 165 List<Tile> suggestions, int countBefore, boolean isSmartSuggestionEnabled) { 166 for (int i = countBefore; i < suggestions.size(); i++) { 167 if (!isAvailable(suggestions.get(i)) || 168 !isSupported(suggestions.get(i)) || 169 !satisifesRequiredUserType(suggestions.get(i)) | [all...] |
/packages/apps/Settings/src/com/android/settings/dashboard/ |
DashboardSummary.java | 38 import com.android.settings.dashboard.suggestions.SuggestionDismissController; 39 import com.android.settings.dashboard.suggestions.SuggestionFeatureProvider; 40 import com.android.settings.dashboard.suggestions.SuggestionsChecks; 59 private static final String SUGGESTIONS = "suggestions"; 97 activity.getSharedPreferences(SUGGESTIONS, 0), R.xml.suggestion_ordering); 212 // Set categories on their own if loading suggestions takes too long. 222 // rebuildUI() because there might be some changes to suggestions and categories. 245 List<Tile> suggestions = mSuggestionParser.getSuggestions(isSmartSuggestionEnabled); local 247 List<String> suggestionIds = new ArrayList<>(suggestions.size()) [all...] |
DashboardAdapter.java | 42 import com.android.settings.dashboard.suggestions.SuggestionDismissController; 43 import com.android.settings.dashboard.suggestions.SuggestionFeatureProvider; 103 List<Tile> suggestions = null; local 117 suggestions = savedInstanceState.getParcelableArrayList(STATE_SUGGESTION_LIST); 129 .setSuggestions(suggestions) 140 List<Tile> suggestions) { 161 .setSuggestions(suggestions) 168 shownSuggestions = suggestions.subList(0, 169 Math.min(suggestions.size(), DashboardData.DEFAULT_SUGGESTION_COUNT)); 172 shownSuggestions = suggestions; 342 final List<Tile> suggestions = mDashboardData.getSuggestions(); local 423 final List<Tile> suggestions = mDashboardData.getSuggestions(); local [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;
|
/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);
|