Home
last modified time | relevance | path

Searched refs:SuggestionPreference (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceControllerTest.java166 assertThat(addedPref).isInstanceOf(SuggestionPreference.class); in onLoadFinished_groupContainsSuggestionPreference()
187 assertThat(((SuggestionPreference) mGroup.getPreference(0)).getSuggestion()).isEqualTo( in onLoadFinished_removedSuggestion_removesFromGroup()
205 SuggestionPreference preference = new SuggestionPreference(mContext, in launchSuggestion_sendsPendingIntent()
217 SuggestionPreference preference = new SuggestionPreference(mContext, in launchSuggestion_callsSuggestionControllerLaunch()
229 SuggestionPreference pref = (SuggestionPreference) mGroup.getPreference(0); in dismissSuggestion_removesSuggestion()
234 assertThat(((SuggestionPreference) mGroup.getPreference(0)).getSuggestion()).isEqualTo( in dismissSuggestion_removesSuggestion()
241 SuggestionPreference pref = (SuggestionPreference) mGroup.getPreference(0); in dismissSuggestion_lastSuggestion_hidesGroup()
251 SuggestionPreference pref = (SuggestionPreference) mGroup.getPreference(0); in dismissSuggestion_callsSuggestionControllerDismiss()
DSuggestionPreferenceTest.java54 private SuggestionPreference.Callback mCallback;
57 private SuggestionPreference mPref;
68 mPref = new SuggestionPreference(context, mSuggestion, mCallback); in setUp()
105 SuggestionPreference.SUGGESTION_PREFERENCE_KEY + SUGGESTION_ID); in getKey_includesSuggestionId()
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceController.java58 LoaderManager.LoaderCallbacks<List<Suggestion>>, SuggestionPreference.Callback {
180 SuggestionPreference newSuggPref = new SuggestionPreference(getContext(), in updateSuggestionPreferences()
184 ((SuggestionPreference) curPref).updateSuggestion(suggestion); in updateSuggestionPreferences()
197 public void launchSuggestion(SuggestionPreference preference) { in launchSuggestion()
213 public void dismissSuggestion(SuggestionPreference preference) { in dismissSuggestion()
233 return SuggestionPreference.SUGGESTION_PREFERENCE_KEY + suggestion.getId(); in getSuggestionPreferenceKey()
DSuggestionPreference.java33 public class SuggestionPreference extends CarUiPreference { class
42 void launchSuggestion(SuggestionPreference preference); in launchSuggestion()
45 void dismissSuggestion(SuggestionPreference preference); in dismissSuggestion()
51 public SuggestionPreference(Context context, Suggestion suggestion, Callback callback) { in SuggestionPreference() method in SuggestionPreference
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DSuggestionQuickSettingPrefsContainer.java22 import com.android.tv.settings.suggestions.SuggestionPreference;
110 SuggestionPreference pref = (SuggestionPreference) mSuggestionsList.getPreference(i); in updateSuggestionList()
126 SuggestionPreference.SUGGESTION_PREFERENCE_KEY + suggestion.getId()); in updateSuggestionList()
128 SuggestionPreference newSuggPref = in updateSuggestionList()
129 new SuggestionPreference(suggestion, in updateSuggestionList()
DMainFragment.java68 import com.android.tv.settings.suggestions.SuggestionPreference;
82 SuggestionControllerMixinCompat.SuggestionControllerHost, SuggestionPreference.Callback,
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/suggestions/
DSuggestionPreference.java37 public class SuggestionPreference extends Preference { class
46 public SuggestionPreference(Suggestion suggestion, Context context, in SuggestionPreference() method in SuggestionPreference
83 mCallback.onSuggestionClosed(SuggestionPreference.this); in onBindViewHolder()