Home
last modified time | relevance | path

Searched refs:argumentCaptor (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVisibilityPreferenceControllerTest.java204 ArgumentCaptor<CharSequence[]> argumentCaptor = in testUpdateState_noLockScreenNotificationsGlobally() local
206 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGlobally()
207 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGlobally()
209 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGlobally()
229 ArgumentCaptor<CharSequence[]> argumentCaptor = in testUpdateState_noLockScreenNotificationsGloballyInProfile() local
231 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGloballyInProfile()
232 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGloballyInProfile()
234 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGloballyInProfile()
252 ArgumentCaptor<CharSequence[]> argumentCaptor = in testUpdateState_noPrivateLockScreenNotificationsGlobally() local
254 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noPrivateLockScreenNotificationsGlobally()
[all …]
DDeletedChannelsPreferenceControllerTest.java122 ArgumentCaptor<CharSequence> argumentCaptor = ArgumentCaptor.forClass(CharSequence.class); in updateState() local
123 verify(pref, times(1)).setTitle(argumentCaptor.capture()); in updateState()
124 assertTrue(argumentCaptor.getValue().toString().contains("1")); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DUserProfileControllerTest.java79 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in controllerAddsPrimaryProfilePreference() local
80 verify(mScreen).addPreference(argumentCaptor.capture()); in controllerAddsPrimaryProfilePreference()
81 final Preference preference = argumentCaptor.getValue(); in controllerAddsPrimaryProfilePreference()
90 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in tappingProfilePreferenceSendsToStorageProfileFragment() local
91 verify(mScreen).addPreference(argumentCaptor.capture()); in tappingProfilePreferenceSendsToStorageProfileFragment()
92 final Preference preference = argumentCaptor.getValue(); in tappingProfilePreferenceSendsToStorageProfileFragment()
117 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in acceptingResultUpdatesPreferenceSize() local
118 verify(mScreen).addPreference(argumentCaptor.capture()); in acceptingResultUpdatesPreferenceSize()
119 final Preference preference = argumentCaptor.getValue(); in acceptingResultUpdatesPreferenceSize()
133 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in iconCallbackChangesPreferenceIcon() local
[all …]
DSecondaryUserControllerTest.java88 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in controllerAddsSecondaryUser() local
89 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerAddsSecondaryUser()
90 final Preference preference = argumentCaptor.getValue(); in controllerAddsSecondaryUser()
99 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in controllerUpdatesSummaryOfNewPreference() local
101 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesSummaryOfNewPreference()
103 final Preference preference = argumentCaptor.getValue(); in controllerUpdatesSummaryOfNewPreference()
173 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in controllerUpdatesPreferenceOnAcceptingResult() local
174 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesPreferenceOnAcceptingResult()
175 final Preference preference = argumentCaptor.getValue(); in controllerUpdatesPreferenceOnAcceptingResult()
211 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in iconCallbackChangesPreferenceIcon() local
[all …]
DStorageItemPreferenceControllerTest.java121 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in testClickPhotos() local
122 verify(mActivity).startActivityForResultAsUser(argumentCaptor.capture(), anyInt(), in testClickPhotos()
125 final Intent intent = argumentCaptor.getValue(); in testClickPhotos()
139 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in testClickAudio() local
140 verify(mFragment.getActivity()).startActivityForResultAsUser(argumentCaptor.capture(), in testClickAudio()
142 final Intent intent = argumentCaptor.getValue(); in testClickAudio()
166 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in testClickApps() local
167 verify(mFragment.getActivity()).startActivityForResultAsUser(argumentCaptor.capture(), in testClickApps()
170 final Intent intent = argumentCaptor.getValue(); in testClickApps()
185 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in testClickAppsForWork() local
[all …]
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DSmartActionsHelperTest.java212 ArgumentCaptor<TextClassifierEvent> argumentCaptor = in testSuggest_nonMessageStyleMessageNotification() local
214 verify(mTextClassifier).onTextClassifierEvent(argumentCaptor.capture()); in testSuggest_nonMessageStyleMessageNotification()
215 TextClassifierEvent textClassifierEvent = argumentCaptor.getValue(); in testSuggest_nonMessageStyleMessageNotification()
270 ArgumentCaptor<TextClassifierEvent> argumentCaptor = in testSuggest_messageStyle() local
272 verify(mTextClassifier).onTextClassifierEvent(argumentCaptor.capture()); in testSuggest_messageStyle()
273 TextClassifierEvent textClassifierEvent = argumentCaptor.getValue(); in testSuggest_messageStyle()
329 ArgumentCaptor<TextClassifierEvent> argumentCaptor = in testOnSuggestedReplySent() local
331 verify(mTextClassifier, times(2)).onTextClassifierEvent(argumentCaptor.capture()); in testOnSuggestedReplySent()
332 List<TextClassifierEvent> events = argumentCaptor.getAllValues(); in testOnSuggestedReplySent()
375 ArgumentCaptor<TextClassifierEvent> argumentCaptor = in testOnNotificationDirectReply() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DPhotosViewHolderControllerTest.java93 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in clickingShouldIntentIntoFilesApp() local
94 verify(mFragment).startActivity(argumentCaptor.capture()); in clickingShouldIntentIntoFilesApp()
95 Intent intent = argumentCaptor.getValue(); in clickingShouldIntentIntoFilesApp()
DMusicViewHolderControllerTest.java94 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in clickingShouldIntentIntoFilesApp() local
95 verify(mFragment).startActivity(argumentCaptor.capture()); in clickingShouldIntentIntoFilesApp()
96 Intent intent = argumentCaptor.getValue(); in clickingShouldIntentIntoFilesApp()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConferenceControllerTest.java156 ArgumentCaptor<TelephonyConference> argumentCaptor = ArgumentCaptor. in testMergeMultiPartyCalls() local
158 verify(mMockTelephonyConnectionServiceProxy).addConference(argumentCaptor.capture()); in testMergeMultiPartyCalls()
161 argumentCaptor.getValue().addTelephonyConferenceListener(mMockListener); in testMergeMultiPartyCalls()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageFileCategoryPreferenceControllerTest.java123 ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity() local
124 verify(mContext).startActivityAsUser(argumentCaptor.capture(), nullable(UserHandle.class)); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
125 Intent intent = argumentCaptor.getValue(); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()