/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/ |
H A D | SuggestionList.java | 17 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 D | SuggestionCategory.java | 17 package com.android.settingslib.suggestions;
|
H A D | SuggestionLoader.java | 17 package com.android.settingslib.suggestions; 20 import android.service.settings.suggestions.Suggestion;
|
H A D | SuggestionController.java | 17 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 D | SuggestionControllerMixin.java | 17 package com.android.settingslib.suggestions; 25 import android.service.settings.suggestions.Suggestion;
|
H A D | SuggestionParser.java | 16 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...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/ |
H A D | ShadowSuggestionController.java | 17 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 D | SuggestionControllerMixinTest.java | 17 package com.android.settingslib.suggestions; 63 "com.android.settings.intelligence.suggestions.SuggestionService");
|
H A D | SuggestionParserTest.java | 17 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);
|
/frameworks/base/core/java/android/service/settings/suggestions/ |
H A D | SuggestionService.java | 17 package android.service.settings.suggestions; 69 * Return all available suggestions.
|
H A D | Suggestion.java | 17 package android.service.settings.suggestions;
|
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
H A D | MockSuggestionService.java | 17 package android.service.settings.suggestions;
|
H A D | SuggestionServiceTest.java | 17 package android.service.settings.suggestions;
|
H A D | SuggestionTest.java | 17 package android.service.settings.suggestions;
|
/frameworks/base/core/java/android/view/textservice/ |
H A D | 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) { 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/java/android/text/style/ |
H A D | 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) { 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...] |