Searched refs:suggestions (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/service/settings/suggestions/
H A DSuggestion.aidl18 package android.service.settings.suggestions;
H A DSuggestionService.java17 package android.service.settings.suggestions;
69 * Return all available suggestions.
H A DSuggestion.java17 package android.service.settings.suggestions;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
H A DSuggestionCategory.java17 package com.android.settingslib.suggestions;
H A DSuggestionList.java17 package com.android.settingslib.suggestions;
34 // A flatten list of all suggestions.
41 public void addSuggestions(SuggestionCategory category, List<Tile> suggestions) { argument
42 mSuggestions.put(category, suggestions);
50 for (List<Tile> suggestions : mSuggestions.values()) {
51 mSuggestionList.addAll(suggestions);
71 * Filter suggestions list so they are all unique.
73 private void dedupeSuggestions(List<Tile> suggestions) { argument
75 for (int i = suggestions.size() - 1; i >= 0; i--) {
76 final Tile suggestion = suggestions
[all...]
H A DSuggestionLoader.java17 package com.android.settingslib.suggestions;
20 import android.service.settings.suggestions.Suggestion;
H A DSuggestionParser.java16 package com.android.settingslib.suggestions;
81 * Allows suggestions to appear after a certain number of days, and to re-appear if dismissed.
97 // Default dismiss control for smart suggestions.
137 // If suggestions from an exclusive category are present, parsing is stopped
138 // and only suggestions from that category are displayed. Note that subsequent
153 final List<Tile> suggestions = new ArrayList<>();
154 readSuggestions(category, suggestions, isSmartSuggestionEnabled);
155 suggestionList.addSuggestions(category, suggestions);
175 List<Tile> suggestions, int countBefore, boolean isSmartSuggestionEnabled) {
176 for (int i = countBefore; i < suggestions
174 filterSuggestions( List<Tile> suggestions, int countBefore, boolean isSmartSuggestionEnabled) argument
189 readSuggestions( SuggestionCategory category, List<Tile> suggestions, boolean isSmartSuggestionEnabled) argument
[all...]
H A DSuggestionController.java17 package com.android.settingslib.suggestions;
25 import android.service.settings.suggestions.ISuggestionService;
26 import android.service.settings.suggestions.Suggestion;
97 * Get setting suggestions.
H A DSuggestionControllerMixin.java17 package com.android.settingslib.suggestions;
25 import android.service.settings.suggestions.Suggestion;
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/
H A DShadowSuggestionController.java17 package com.android.settingslib.suggestions;
19 import android.service.settings.suggestions.Suggestion;
52 public static void setSuggestion(List<Suggestion> suggestions) { argument
53 sSuggestions = suggestions;
H A DSuggestionParserTest.java17 package com.android.settingslib.suggestions;
135 final List<Tile> suggestions = sl.getSuggestions();
136 assertThat(suggestions).hasSize(2);
138 assertThat(suggestions.get(0).intent.getComponent().getPackageName()).isEqualTo("pkg");
139 assertThat(suggestions.get(1).intent.getComponent().getPackageName()).isEqualTo("pkg2");
157 final List<Tile> suggestions = sl.getSuggestions();
159 assertThat(suggestions).hasSize(3);
166 final List<Tile> suggestions = sl.getSuggestions();
168 assertThat(suggestions).hasSize(1);
H A DSuggestionControllerMixinTest.java17 package com.android.settingslib.suggestions;
63 "com.android.settings.intelligence.suggestions.SuggestionService");
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
H A DSearchActivity.java27 * to our SearchRecentSuggestions so that SearchView's can display suggestions.
39 SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this,
41 suggestions.saveRecentQuery(query, null);
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
H A DSearchActivity.java27 * to our SearchRecentSuggestions so that SearchView's can display suggestions.
39 SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this,
41 suggestions.saveRecentQuery(query, null);
/frameworks/base/core/java/android/view/textservice/
H A DSuggestionsInfo.java25 * 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) { argument
60 this(suggestionsAttributes, suggestions, 0, 0);
66 * @param suggestions from the text service
71 int suggestionsAttributes, String[] suggestions, in
70 SuggestionsInfo( int suggestionsAttributes, String[] suggestions, int cookie, int sequence) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
H A DMockSuggestionService.java17 package android.service.settings.suggestions;
H A DSuggestionServiceTest.java17 package android.service.settings.suggestions;
H A DSuggestionTest.java17 package android.service.settings.suggestions;
/frameworks/base/core/java/android/text/style/
H A DSuggestionSpan.java43 * 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) { argument
117 this(context, null, suggestions, flags, null);
121 * @param locale Locale of the suggestions
122 * @param suggestions Suggestions for the string under the span
125 public SuggestionSpan(Locale locale, String[] suggestions, in argument
138 SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, Class<?> notificationTargetClass) argument
329 hashCodeInternal(String[] suggestions, @NonNull String languageTag, @NonNull String localeStringForCompatibility, String notificationTargetClassName) argument
[all...]
/frameworks/support/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/
H A DSliceBrowser.java250 ArrayList<String> suggestions = new ArrayList();
256 suggestions.add(uriString);
259 Collections.sort(suggestions, (o1, o2) ->
261 for (int i = 0; i < suggestions.size(); i++) {
262 c.addRow(new Object[]{i, suggestions.get(i)});
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/
H A DSliceBrowser.java250 ArrayList<String> suggestions = new ArrayList();
256 suggestions.add(uriString);
259 Collections.sort(suggestions, (o1, o2) ->
261 for (int i = 0; i < suggestions.size(); i++) {
262 c.addRow(new Object[]{i, suggestions.get(i)});
/frameworks/support/app-toolkit/buildSrc/src/main/kotlin/androidx/build/license/
H A DCheckExternalDependencyLicensesTask.kt64 val suggestions = missingLicenses.joinToString("\n") {
72 $suggestions
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/license/
H A DCheckExternalDependencyLicensesTask.kt64 val suggestions = missingLicenses.joinToString("\n") {
72 $suggestions
/frameworks/base/core/java/android/widget/
H A DSpellChecker.java472 String[] suggestions;
474 suggestions = new String[suggestionsCount];
476 suggestions[i] = suggestionsInfo.getSuggestionAt(i);
479 suggestions = ArrayUtils.emptyArray(String.class);
482 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions,
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
H A DTileUtilsTest.java56 import com.android.settingslib.suggestions.SuggestionParser;

Completed in 331 milliseconds

12