/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/ |
D | SuggestionsPreferenceController.java | 24 import android.service.settings.suggestions.Suggestion; 58 LoaderManager.LoaderCallbacks<List<Suggestion>>, SuggestionPreference.Callback { 69 private List<Suggestion> mSuggestionsList = new ArrayList<>(); 137 public Loader<List<Suggestion>> onCreateLoader(int id, @Nullable Bundle args) { in onCreateLoader() 147 public void onLoadFinished(@NonNull Loader<List<Suggestion>> loader, in onLoadFinished() 148 List<Suggestion> suggestions) { in onLoadFinished() 159 private void updateSuggestionPreferences(List<Suggestion> suggestions) { in updateSuggestionPreferences() 161 for (Suggestion oldSuggestion : mSuggestionsList) { in updateSuggestionPreferences() 163 for (Suggestion suggestion : suggestions) { in updateSuggestionPreferences() 176 for (Suggestion suggestion : suggestions) { in updateSuggestionPreferences() [all …]
|
D | SuggestionPreference.java | 20 import android.service.settings.suggestions.Suggestion; 49 private Suggestion mSuggestion; 51 public SuggestionPreference(Context context, Suggestion suggestion, Callback callback) { in SuggestionPreference() 62 public Suggestion getSuggestion() { in getSuggestion() 74 public void updateSuggestion(Suggestion suggestion) { in updateSuggestion()
|
D | SettingsSuggestionsLoader.java | 20 import android.service.settings.suggestions.Suggestion; 33 public class SettingsSuggestionsLoader extends AsyncLoader<List<Suggestion>> { 49 public List<Suggestion> loadInBackground() { in loadInBackground() 50 final List<Suggestion> data = mSuggestionController.getSuggestions(); in loadInBackground()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SuggestionCursorUtil.java | 81 for (Suggestion expectedSuggestion : iterable(expected)) { in assertSameSuggestionsNoOrder() 84 for (Suggestion observedSuggestion : iterable(observed)) { in assertSameSuggestionsNoOrder() 89 public static void assertContainsSuggestion(Suggestion expected, SuggestionCursor observed) { in assertContainsSuggestion() 90 for (Suggestion observedSuggestion : iterable(observed)) { in assertContainsSuggestion() 98 public static Iterable<Suggestion> iterable(final SuggestionCursor cursor) { in iterable() 99 return new Iterable<Suggestion>() { in iterable() 101 public Iterator<Suggestion> iterator() { in iterable() 107 public static UnmodifiableIterator<Suggestion> iterator(final SuggestionCursor cursor) { 108 return new UnmodifiableIterator<Suggestion>() { 116 public Suggestion next() { [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/ |
D | SuggestionRanker.java | 20 import android.service.settings.suggestions.Suggestion; 55 private final Map<Suggestion, Double> mRelevanceMetrics; 57 Comparator<Suggestion> suggestionComparator = new Comparator<Suggestion>() { 59 public int compare(Suggestion suggestion1, Suggestion suggestion2) { 76 public List<Suggestion> rankRelevantSuggestions(List<Suggestion> suggestions) { in rankRelevantSuggestions() 79 for (Suggestion suggestion : suggestions) { in rankRelevantSuggestions() 82 final List<Suggestion> rankedSuggestions = new ArrayList<>(); in rankRelevantSuggestions() 89 final List<Suggestion> relevantSuggestions = new ArrayList<>(); in rankRelevantSuggestions()
|
D | SuggestionFeaturizer.java | 20 import android.service.settings.suggestions.Suggestion; 63 public Map<String, Map<String, Double>> featurize(List<Suggestion> suggestions) { in featurize() 67 for (Suggestion suggestion : suggestions) { in featurize()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/ |
D | SuggestionListBuilder.java | 19 import android.service.settings.suggestions.Suggestion; 30 private Map<SuggestionCategory, List<Suggestion>> mSuggestions; 37 public void addSuggestions(SuggestionCategory category, List<Suggestion> suggestions) { in addSuggestions() 44 public List<Suggestion> build() { in build() 52 private List<Suggestion> dedupeSuggestions() { in dedupeSuggestions() 54 final List<Suggestion> suggestions = new ArrayList<>(); in dedupeSuggestions() 55 for (List<Suggestion> suggestionsInCategory : mSuggestions.values()) { in dedupeSuggestions() 59 final Suggestion suggestion = suggestions.get(i); in dedupeSuggestions()
|
D | CandidateSuggestion.java | 29 import android.service.settings.suggestions.Suggestion; 129 public Suggestion toSuggestion() { in toSuggestion() 133 final Suggestion.Builder builder = new Suggestion.Builder(mId); in toSuggestion() 166 private void updateBuilder(Suggestion.Builder builder) { in updateBuilder() 218 ? Suggestion.FLAG_HAS_BUTTON : 0; in updateBuilder()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | ListSuggestionCursor.java | 48 public ListSuggestionCursor(String userQuery, Suggestion...suggestions) { in ListSuggestionCursor() 50 for (Suggestion suggestion : suggestions) { in ListSuggestionCursor() 65 public boolean add(Suggestion suggestion) { in add() 96 public void replaceRow(Suggestion suggestion) { in replaceRow() 105 protected Suggestion current() { in current() 164 private final Suggestion mSuggestion; 166 public Entry(Suggestion s) { in Entry() 169 public Suggestion get() { in get()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/ |
D | SuggestionsPreferenceControllerTest.java | 27 import android.service.settings.suggestions.Suggestion; 56 private static final Suggestion SUGGESTION_1 = new Suggestion.Builder("1").build(); 57 private static final Suggestion SUGGESTION_2 = new Suggestion.Builder("2").build(); 62 private Loader<List<Suggestion>> mLoader; 204 Suggestion suggestion = new Suggestion.Builder("1").setPendingIntent(pendingIntent).build(); in launchSuggestion_sendsPendingIntent() 216 Suggestion suggestion = new Suggestion.Builder("1").setPendingIntent(pendingIntent).build(); in launchSuggestion_callsSuggestionControllerLaunch()
|
D | SuggestionPreferenceTest.java | 31 import android.service.settings.suggestions.Suggestion; 55 private Suggestion mSuggestion; 64 mSuggestion = new Suggestion.Builder(SUGGESTION_ID).build(); in setUp() 83 Suggestion updatedSuggestion = new Suggestion.Builder(SUGGESTION_ID).setIcon(icon).setTitle( in updateSuggestion_updatesPreference() 96 Suggestion updatedSuggestion = new Suggestion.Builder(SUGGESTION_ID + "wrong id").build(); in updateSuggestion_idMismatch_throwsIllegalArgumentException()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
D | SuggestionParser.java | 27 import android.service.settings.suggestions.Suggestion; 56 private final Map<String, Suggestion> mAddCache; 67 public List<Suggestion> getSuggestions() { in getSuggestions() 78 final List<Suggestion> exclusiveSuggestions = in getSuggestions() 87 final List<Suggestion> suggestions = in getSuggestions() 96 List<Suggestion> readSuggestions(SuggestionCategory category, boolean ignoreDismissRule) { in readSuggestions() 97 final List<Suggestion> suggestions = new ArrayList<>(); in readSuggestions() 121 Suggestion suggestion = mAddCache.get(id); in readSuggestions()
|
D | SuggestionService.java | 19 import android.service.settings.suggestions.Suggestion; 32 public List<Suggestion> onGetSuggestions() { in onGetSuggestions() 34 final List<Suggestion> list = FeatureFactory.get(this) in onGetSuggestions() 39 for (Suggestion suggestion : list) { in onGetSuggestions() 50 public void onSuggestionDismissed(Suggestion suggestion) { in onSuggestionDismissed() 64 public void onSuggestionLaunched(Suggestion suggestion) { in onSuggestionLaunched()
|
D | SuggestionFeatureProvider.java | 21 import android.service.settings.suggestions.Suggestion; 47 public List<Suggestion> getSuggestions(Context context) { in getSuggestions() 49 final List<Suggestion> list = parser.getSuggestions(); in getSuggestions() 51 final List<Suggestion> rankedSuggestions = getRanker(context).rankRelevantSuggestions(list); in getSuggestions() 54 for (Suggestion suggestion : rankedSuggestions) { in getSuggestions()
|
/packages/apps/Dialer/java/com/android/dialer/preferredsim/suggestion/ |
D | SuggestionProvider.java | 51 class Suggestion { class 56 public Suggestion( in Suggestion() method in SuggestionProvider.Suggestion 68 Optional<Suggestion> getSuggestion(@NonNull Context context, @NonNull String number); in getSuggestion() 85 Context context, PhoneAccountHandle phoneAccountHandle, @Nullable Suggestion suggestion) { in getHint()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/ |
D | MainFragmentTest.java | 33 import android.service.settings.suggestions.Suggestion; 321 Suggestion suggestion = new Suggestion.Builder("xyz").setSummary("abc").build(); in testUpdateSuggestionList_hasTheSameSuggestion() 322 List<Suggestion> suggestions = Arrays.asList(suggestion); in testUpdateSuggestionList_hasTheSameSuggestion() 336 Suggestion suggestion = new Suggestion.Builder("xyz").setSummary("abc").build(); in testUpdateSuggestionList_hasNewSuggestion() 337 List<Suggestion> suggestions = Arrays.asList(suggestion); in testUpdateSuggestionList_hasNewSuggestion()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SuggestionViewFactory.java | 19 import com.android.quicksearchbox.Suggestion; 45 String getViewType(Suggestion suggestion); in getViewType() 61 boolean canCreateView(Suggestion suggestion); in canCreateView()
|
D | SuggestionViewInflater.java | 19 import com.android.quicksearchbox.Suggestion; 75 public String getViewType(Suggestion suggestion) { in getViewType() 79 public boolean canCreateView(Suggestion suggestion) { in canCreateView()
|
D | DefaultSuggestionViewFactory.java | 22 import com.android.quicksearchbox.Suggestion; 75 public String getViewType(Suggestion suggestion) { in getViewType() 85 public boolean canCreateView(Suggestion suggestion) { in canCreateView()
|
D | WebSearchSuggestionView.java | 21 import com.android.quicksearchbox.Suggestion; 58 public void bindAsSuggestion(Suggestion suggestion, String userQuery) { in bindAsSuggestion() 97 public boolean canCreateView(Suggestion suggestion) { in canCreateView()
|
D | BaseSuggestionView.java | 20 import com.android.quicksearchbox.Suggestion; 64 public void bindAsSuggestion(Suggestion suggestion, String userQuery) { in bindAsSuggestion() 74 protected boolean isFromHistory(Suggestion suggestion) { in isFromHistory()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | AggregationSuggestionEngine.java | 60 public static final class Suggestion { class in AggregationSuggestionEngine 72 return MoreObjects.toStringHelper(Suggestion.class) in toString() 378 public List<Suggestion> getSuggestions() { in getSuggestions() 379 final ArrayList<Suggestion> list = Lists.newArrayList(); in getSuggestions() 382 Suggestion suggestion = null; in getSuggestions() 388 suggestion = new Suggestion(); in getSuggestions()
|
D | AggregationSuggestionView.java | 31 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 47 private Suggestion mSuggestion; 61 public void bindSuggestion(Suggestion suggestion) { in bindSuggestion()
|
/packages/apps/Dialer/java/com/android/dialer/preferredsim/ |
D | PreferredAccountWorker.java | 21 import com.android.dialer.preferredsim.suggestion.SuggestionProvider.Suggestion; 55 public abstract Optional<Suggestion> getSuggestion(); in getSuggestion() 78 public abstract Builder setSuggestion(Suggestion suggestion); in setSuggestion()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/suggestions/ |
D | SuggestionPreference.java | 21 import android.service.settings.suggestions.Suggestion; 42 private final Suggestion mSuggestion; 47 public SuggestionPreference(Suggestion suggestion, Context context, in SuggestionPreference()
|