Home
last modified time | relevance | path

Searched refs:mSuggestionController (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardControllerTest.java49 private SuggestionController mSuggestionController; field in LegacySuggestionContextualCardControllerTest
68 assertThat(controller.mSuggestionController).isNotNull(); in init_configOn_shouldCreateSuggestionController()
77 assertThat(controller.mSuggestionController).isNull(); in init_configOff_shouldNotCreateSuggestionController()
82 mController.mSuggestionController = mSuggestionController; in goThroughLifecycle_hasSuggestionController_shouldStartStopController()
84 verify(mSuggestionController).start(); in goThroughLifecycle_hasSuggestionController_shouldStartStopController()
87 verify(mSuggestionController).stop(); in goThroughLifecycle_hasSuggestionController_shouldStartStopController()
92 when(mSuggestionController.getSuggestions()).thenReturn(null); in onServiceConnected_shouldLoadSuggestion()
93 mController.mSuggestionController = mSuggestionController; in onServiceConnected_shouldLoadSuggestion()
98 verify(mSuggestionController).getSuggestions(); in onServiceConnected_shouldLoadSuggestion()
103 mController.mSuggestionController = mSuggestionController; in onDismiss_shouldCallSuggestionControllerDismiss()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardController.java53 SuggestionController mSuggestionController; field in LegacySuggestionContextualCardController
69 mSuggestionController = new SuggestionController( in LegacySuggestionContextualCardController()
95 mSuggestionController in onDismissed()
108 if (mSuggestionController == null) { in onStart()
111 mSuggestionController.start(); in onStart()
116 if (mSuggestionController == null) { in onStop()
119 mSuggestionController.stop(); in onStop()
134 if (mSuggestionController == null || mCardUpdateListener == null) { in loadSuggestions()
137 final List<Suggestion> suggestions = mSuggestionController.getSuggestions(); in loadSuggestions()
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceController.java68 private final SuggestionController mSuggestionController; field in SuggestionsPreferenceController
75 mSuggestionController = new SuggestionController(context, in SuggestionsPreferenceController()
111 mSuggestionController.start(); in onStartInternal()
118 mSuggestionController.stop(); in onStopInternal()
140 return new SettingsSuggestionsLoader(getContext(), mSuggestionController); in onCreateLoader()
203 mSuggestionController.launchSuggestion(suggestion); in launchSuggestion()
216 mSuggestionController.dismissSuggestions(suggestion); in dismissSuggestion()
DSettingsSuggestionsLoader.java43 private final SuggestionController mSuggestionController; field in SettingsSuggestionsLoader
47 mSuggestionController = controller; in SettingsSuggestionsLoader()
52 final List<Suggestion> data = mSuggestionController.getSuggestions(); in loadInBackground()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceControllerTest.java64 private SuggestionController mSuggestionController; field in SuggestionsPreferenceControllerTest
82 "mSuggestionController", mSuggestionController); in setUp()
115 verify(mSuggestionController).start(); in onStart_startsSuggestionController()
122 verify(mSuggestionController).stop(); in onStop_stopsSuggestionController()
222 verify(mSuggestionController).launchSuggestion(suggestion); in launchSuggestion_callsSuggestionControllerLaunch()
255 verify(mSuggestionController).dismissSuggestions(pref.getSuggestion()); in dismissSuggestion_callsSuggestionControllerDismiss()