Home
last modified time | relevance | path

Searched refs:captor (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsCallInfoTrackerTest.java67 ArgumentCaptor<List<ImsCallInfo>> captor = ArgumentCaptor.forClass(List.class); in testDialingNormalCall() local
72 verify(mImsPhone, times(1)).updateImsCallStatus(captor.capture(), any()); in testDialingNormalCall()
74 List<ImsCallInfo> imsCallInfos = captor.getValue(); in testDialingNormalCall()
92 ArgumentCaptor<List<ImsCallInfo>> captor = ArgumentCaptor.forClass(List.class); in testDialingEmergencyCall() local
97 verify(mImsPhone, times(1)).updateImsCallStatus(captor.capture(), any()); in testDialingEmergencyCall()
99 List<ImsCallInfo> imsCallInfos = captor.getValue(); in testDialingEmergencyCall()
117 ArgumentCaptor<List<ImsCallInfo>> captor = ArgumentCaptor.forClass(List.class); in testIncomingCall() local
122 verify(mImsPhone, times(1)).updateImsCallStatus(captor.capture(), any()); in testIncomingCall()
124 List<ImsCallInfo> imsCallInfos = captor.getValue(); in testIncomingCall()
143 verify(mImsPhone, times(2)).updateImsCallStatus(captor.capture(), any()); in testIncomingCall()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextManagerTest.java214 ArgumentCaptor<CarrierTextManager.CarrierTextCallbackInfo> captor = in testAirplaneMode() local
219 verify(mCarrierTextCallback).updateCarrierInfo(captor.capture()); in testAirplaneMode()
220 assertEquals(AIRPLANE_MODE_TEXT, captor.getValue().carrierText); in testAirplaneMode()
280 ArgumentCaptor<CarrierTextManager.CarrierTextCallbackInfo> captor = in testCardIOError() local
285 verify(mCarrierTextCallback).updateCarrierInfo(captor.capture()); in testCardIOError()
286 assertEquals("TEST_CARRIER" + SEPARATOR + INVALID_CARD_TEXT, captor.getValue().carrierText); in testCardIOError()
288 assertEquals(1, captor.getValue().listOfCarriers.length); in testCardIOError()
289 assertEquals(TEST_CARRIER, captor.getValue().listOfCarriers[0]); in testCardIOError()
297 verify(mCarrierTextCallback).updateCarrierInfo(captor.capture()); in testCardIOError()
298 assertEquals("TEST_CARRIER", captor.getValue().carrierText); in testCardIOError()
[all …]
DClockEventControllerTest.kt183 val captor = argumentCaptor<ConfigurationController.ConfigurationListener>() in themeChanged_verifyClockPaletteUpdated() constant
184 verify(configurationController).addCallback(capture(captor)) in themeChanged_verifyClockPaletteUpdated()
185 captor.value.onThemeChanged() in themeChanged_verifyClockPaletteUpdated()
193 val captor = argumentCaptor<ConfigurationController.ConfigurationListener>() in fontChanged_verifyFontSizeUpdated() constant
194 verify(configurationController).addCallback(capture(captor)) in fontChanged_verifyFontSizeUpdated()
195 captor.value.onDensityOrFontScaleChanged() in fontChanged_verifyFontSizeUpdated()
257 val captor = argumentCaptor<BroadcastReceiver>() in localeCallback_verifyClockNotified() constant
259 .registerReceiver(capture(captor), any(), eq(null), eq(null), anyInt(), eq(null)) in localeCallback_verifyClockNotified()
260 captor.value.onReceive(context, mock()) in localeCallback_verifyClockNotified()
269 val captor = argumentCaptor<KeyguardUpdateMonitorCallback>() in keyguardCallback_visibilityChanged_clockDozeCalled() constant
[all …]
DKeyguardStatusViewControllerTest.java157 ArgumentCaptor<View.OnLayoutChangeListener> captor = in onInit_addsOnLayoutChangeListenerToClockSwitch() local
159 verify(mKeyguardClockSwitch).addOnLayoutChangeListener(captor.capture()); in onInit_addsOnLayoutChangeListenerToClockSwitch()
169 ArgumentCaptor<View.OnLayoutChangeListener> captor = in clockSwitchHeightChanged_animatesMediaHostContainer() local
171 verify(mKeyguardClockSwitch).addOnLayoutChangeListener(captor.capture()); in clockSwitchHeightChanged_animatesMediaHostContainer()
180 View.OnLayoutChangeListener listener = captor.getValue(); in clockSwitchHeightChanged_animatesMediaHostContainer()
206 ArgumentCaptor<View.OnLayoutChangeListener> captor = in clockSwitchHeightNotChanged_doesNotAnimateMediaOutputContainer() local
208 verify(mKeyguardClockSwitch).addOnLayoutChangeListener(captor.capture()); in clockSwitchHeightNotChanged_doesNotAnimateMediaOutputContainer()
217 View.OnLayoutChangeListener listener = captor.getValue(); in clockSwitchHeightNotChanged_doesNotAnimateMediaOutputContainer()
253 ArgumentCaptor<View.OnLayoutChangeListener> captor = in statusAreaHeightChange_animatesHeightOutputChange() local
255 verify(mKeyguardStatusAreaView).addOnLayoutChangeListener(captor.capture()); in statusAreaHeightChange_animatesHeightOutputChange()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthRippleControllerTest.kt177 val captor = ArgumentCaptor.forClass(KeyguardUpdateMonitorCallback::class.java) in testFingerprintTrigger_KeyguardNotShowing_NoRipple() constant
178 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testFingerprintTrigger_KeyguardNotShowing_NoRipple()
179 captor.value.onBiometricAuthenticated( in testFingerprintTrigger_KeyguardNotShowing_NoRipple()
199 val captor = ArgumentCaptor.forClass(KeyguardUpdateMonitorCallback::class.java) in testFingerprintTrigger_biometricUnlockNotAllowed_NoRipple() constant
200 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testFingerprintTrigger_biometricUnlockNotAllowed_NoRipple()
201 captor.value.onBiometricAuthenticated( in testFingerprintTrigger_biometricUnlockNotAllowed_NoRipple()
215 val captor = ArgumentCaptor.forClass(KeyguardUpdateMonitorCallback::class.java) in testNullFaceSensorLocationDoesNothing() constant
216 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testNullFaceSensorLocationDoesNothing()
218 captor.value.onBiometricAuthenticated( in testNullFaceSensorLocationDoesNothing()
230 val captor = ArgumentCaptor.forClass(KeyguardUpdateMonitorCallback::class.java) in testNullFingerprintSensorLocationDoesNothing() constant
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataCombineLatestTest.java113 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in emitEventAfterDeviceFirst() local
114 verify(mListener).onMediaDataLoaded(eq(KEY), any(), captor.capture(), anyBoolean(), in emitEventAfterDeviceFirst()
116 assertThat(captor.getValue().getDevice()).isNotNull(); in emitEventAfterDeviceFirst()
127 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in emitEventAfterMediaFirst() local
128 verify(mListener).onMediaDataLoaded(eq(KEY), any(), captor.capture(), anyBoolean(), in emitEventAfterMediaFirst()
130 assertThat(captor.getValue().getDevice()).isNotNull(); in emitEventAfterMediaFirst()
144 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in migrateKeyMediaFirst() local
145 verify(mListener).onMediaDataLoaded(eq(KEY), eq(OLD_KEY), captor.capture(), anyBoolean(), in migrateKeyMediaFirst()
147 assertThat(captor.getValue().getDevice()).isNotNull(); in migrateKeyMediaFirst()
160 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in migrateKeyDeviceFirst() local
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DSatelliteStatsTest.java109 ArgumentCaptor<SatelliteController> captor = in onSatelliteControllerMetrics_withAtoms() local
111 verify(mPersistAtomsStorage).addSatelliteControllerStats(captor.capture()); in onSatelliteControllerMetrics_withAtoms()
112 SatelliteController stats = captor.getValue(); in onSatelliteControllerMetrics_withAtoms()
188 ArgumentCaptor<SatelliteSession> captor = in onSatelliteSessionMetrics_withAtoms() local
190 verify(mPersistAtomsStorage).addSatelliteSessionStats(captor.capture()); in onSatelliteSessionMetrics_withAtoms()
191 SatelliteSession stats = captor.getValue(); in onSatelliteSessionMetrics_withAtoms()
223 ArgumentCaptor<SatelliteIncomingDatagram> captor = in onSatelliteIncomingDatagramMetrics_withAtoms() local
225 verify(mPersistAtomsStorage).addSatelliteIncomingDatagramStats(captor.capture()); in onSatelliteIncomingDatagramMetrics_withAtoms()
226 SatelliteIncomingDatagram stats = captor.getValue(); in onSatelliteIncomingDatagramMetrics_withAtoms()
247 ArgumentCaptor<SatelliteOutgoingDatagram> captor = in onSatelliteOutgoingDatagramMetrics_withAtoms() local
[all …]
DRcsStatsTest.java248 ArgumentCaptor<ImsRegistrationFeatureTagStats> captor = in onImsRegistrationFeatureTagStats_withAtoms() local
251 .addImsRegistrationFeatureTagStats(captor.capture()); in onImsRegistrationFeatureTagStats_withAtoms()
252 List<ImsRegistrationFeatureTagStats> captorValues = captor.getAllValues(); in onImsRegistrationFeatureTagStats_withAtoms()
278 ArgumentCaptor<RcsClientProvisioningStats> captor = in onRcsClientProvisioningStats_withAtoms() local
280 verify(mPersistAtomsStorage).addRcsClientProvisioningStats(captor.capture()); in onRcsClientProvisioningStats_withAtoms()
281 RcsClientProvisioningStats stats = captor.getValue(); in onRcsClientProvisioningStats_withAtoms()
315 ArgumentCaptor<RcsAcsProvisioningStats> captor = in onRcsAcsProvisioningStats_withAtoms() local
317 verify(mPersistAtomsStorage).addRcsAcsProvisioningStats(captor.capture()); in onRcsAcsProvisioningStats_withAtoms()
318 RcsAcsProvisioningStats stats = captor.getValue(); in onRcsAcsProvisioningStats_withAtoms()
356 ArgumentCaptor<RcsAcsProvisioningStats> captor = in onRcsAcsProvisioningStats_withAtomsInvalidSubId() local
[all …]
DDataNetworkValidationStatsTest.java99 ArgumentCaptor<PersistAtomsProto.DataNetworkValidation> captor = in testOnUpdateNetworkValidationStateWithSuccessStatus() local
102 captor.capture()); in testOnUpdateNetworkValidationStateWithSuccessStatus()
103 PersistAtomsProto.DataNetworkValidation proto = captor.getValue(); in testOnUpdateNetworkValidationStateWithSuccessStatus()
134 ArgumentCaptor<PersistAtomsProto.DataNetworkValidation> captor = in testOnUpdateNetworkValidationStateWithFailureStatus() local
137 captor.capture()); in testOnUpdateNetworkValidationStateWithFailureStatus()
138 PersistAtomsProto.DataNetworkValidation proto = captor.getValue(); in testOnUpdateNetworkValidationStateWithFailureStatus()
198 ArgumentCaptor<PersistAtomsProto.DataNetworkValidation> captor = in testOnUpdateNetworkValidationStateWithUnsupportedStatus() local
201 captor.capture()); in testOnUpdateNetworkValidationStateWithUnsupportedStatus()
202 PersistAtomsProto.DataNetworkValidation proto = captor.getValue(); in testOnUpdateNetworkValidationStateWithUnsupportedStatus()
233 ArgumentCaptor<PersistAtomsProto.DataNetworkValidation> captor = in testOnDataNetworkDisconnected() local
[all …]
DServiceStateStatsTest.java156 ArgumentCaptor<CellularServiceState> captor = in conclude_inService() local
159 .addCellularServiceStateAndCellularDataServiceSwitch(captor.capture(), eq(null)); in conclude_inService()
160 CellularServiceState state = captor.getValue(); in conclude_inService()
192 ArgumentCaptor<CellularServiceState> captor = in conclude_outOfService() local
195 .addCellularServiceStateAndCellularDataServiceSwitch(captor.capture(), eq(null)); in conclude_outOfService()
196 CellularServiceState state = captor.getValue(); in conclude_outOfService()
260 ArgumentCaptor<CellularServiceState> captor = in conclude_noSimCardEmergencyOnly() local
263 .addCellularServiceStateAndCellularDataServiceSwitch(captor.capture(), eq(null)); in conclude_noSimCardEmergencyOnly()
264 CellularServiceState state = captor.getValue(); in conclude_noSimCardEmergencyOnly()
297 ArgumentCaptor<CellularServiceState> captor = in conclude_noSimCardOutOfService() local
[all …]
DImsStatsTest.java185 ArgumentCaptor<ImsRegistrationStats> captor = in conclude_registered() local
187 verify(mPersistAtomsStorage).addImsRegistrationStats(captor.capture()); in conclude_registered()
188 ImsRegistrationStats stats = captor.getValue(); in conclude_registered()
233 ArgumentCaptor<ImsRegistrationStats> captor = in conclude_registeredPartialFeatures() local
235 verify(mPersistAtomsStorage).addImsRegistrationStats(captor.capture()); in conclude_registeredPartialFeatures()
236 ImsRegistrationStats stats = captor.getValue(); in conclude_registeredPartialFeatures()
280 ArgumentCaptor<ImsRegistrationStats> captor = in conclude_registeredVoiceOnly() local
282 verify(mPersistAtomsStorage).addImsRegistrationStats(captor.capture()); in conclude_registeredVoiceOnly()
283 ImsRegistrationStats stats = captor.getValue(); in conclude_registeredVoiceOnly()
315 ArgumentCaptor<ImsRegistrationStats> captor = in conclude_registeredVoiceOnly_crossSimCalling() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DShadeHeaderControllerTest.kt412 val captor = ArgumentCaptor.forClass(View.OnLayoutChangeListener::class.java) in <lambda>() constant
413 verify(clock, times(2)).addOnLayoutChangeListener(capture(captor)) in <lambda>()
415 captor.value.onLayoutChange(clock, 0, 1, 2, 3, 4, 5, 6, 7) in <lambda>()
425 val captor = ArgumentCaptor.forClass(View.OnLayoutChangeListener::class.java) in <lambda>() constant
426 verify(clock, times(2)).addOnLayoutChangeListener(capture(captor)) in <lambda>()
428 captor.value.onLayoutChange(clock, 0, 1, 2, 3, 4, 5, 6, 7) in <lambda>()
541 val captor = ArgumentCaptor.forClass(ChipVisibilityListener::class.java) in <lambda>() constant
542 verify(privacyIconsController).chipVisibilityListener = capture(captor) in <lambda>()
544 captor.value.onChipVisibilityRefreshed(true) in <lambda>()
565 val captor = ArgumentCaptor.forClass(ChipVisibilityListener::class.java) in <lambda>() constant
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneConfigurationManagerTest.java177 ArgumentCaptor<Message> captor = ArgumentCaptor.forClass(Message.class); in testConfigureAndGetMaxActiveVoiceSubscriptions() local
178 verify(mMockRadioConfig).getPhoneCapability(captor.capture()); in testConfigureAndGetMaxActiveVoiceSubscriptions()
179 Message msg = captor.getValue(); in testConfigureAndGetMaxActiveVoiceSubscriptions()
195 ArgumentCaptor<Message> captor = ArgumentCaptor.forClass(Message.class); in testUpdateSimultaneousCallingSupport() local
196 verify(mMockRadioConfig).updateSimultaneousCallingSupport(captor.capture()); in testUpdateSimultaneousCallingSupport()
197 Message msg = captor.getValue(); in testUpdateSimultaneousCallingSupport()
216 ArgumentCaptor<Message> captor = ArgumentCaptor.forClass(Message.class); in testUpdateSimultaneousCallingSupport_invalidResponse_shouldFail() local
217 verify(mMockRadioConfig).updateSimultaneousCallingSupport(captor.capture()); in testUpdateSimultaneousCallingSupport_invalidResponse_shouldFail()
218 Message msg = captor.getValue(); in testUpdateSimultaneousCallingSupport_invalidResponse_shouldFail()
303 ArgumentCaptor<Message> captor = ArgumentCaptor.forClass(Message.class); in testUpdateSimultaneousCallingSupportNotifications() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DPanelConfirmationDialogFactoryTest.kt76 val captor: ArgumentCaptor<DialogInterface.OnClickListener> = argumentCaptor() in testDialogPositiveButton() constant
77 verify(mockDialog).setPositiveButton(eq(R.string.controls_dialog_ok), capture(captor)) in testDialogPositiveButton()
79 captor.value.onClick(mockDialog, DialogInterface.BUTTON_POSITIVE) in testDialogPositiveButton()
90 val captor: ArgumentCaptor<DialogInterface.OnClickListener> = argumentCaptor() in testDialogNeutralButton() constant
91 verify(mockDialog).setNeutralButton(eq(R.string.cancel), capture(captor)) in testDialogNeutralButton()
93 captor.value.onClick(mockDialog, DialogInterface.BUTTON_NEUTRAL) in testDialogNeutralButton()
104 val captor: ArgumentCaptor<DialogInterface.OnCancelListener> = argumentCaptor() in testDialogCancel() constant
105 verify(mockDialog).setOnCancelListener(capture(captor)) in testDialogCancel()
107 captor.value.onCancel(mockDialog) in testDialogCancel()
DAppAdapterTest.kt69 val captor = ArgumentCaptor in <lambda>() constant
74 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture()) in <lambda>()
76 captor.value.onServicesUpdated(serviceInfo) in <lambda>()
85 val captor = ArgumentCaptor in <lambda>() constant
91 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture()) in <lambda>()
93 captor.value.onServicesUpdated(serviceInfo) in <lambda>()
103 val captor = ArgumentCaptor in <lambda>() constant
109 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture()) in <lambda>()
111 captor.value.onServicesUpdated(serviceInfo) in <lambda>()
121 val captor = ArgumentCaptor in <lambda>() constant
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DSipTransportImplBaseTest.java117 ArgumentCaptor<IBinder.DeathRecipient> captor = in createDestroyDelegate() local
119 verify(stateBinder).linkToDeath(captor.capture(), anyInt()); in createDestroyDelegate()
120 assertNotNull(captor.getValue()); in createDestroyDelegate()
124 verify(stateBinder).unlinkToDeath(eq(captor.getValue()), anyInt()); in createDestroyDelegate()
142 ArgumentCaptor<IBinder.DeathRecipient> captor = in testPhoneProcessCrash() local
144 verify(stateBinder).linkToDeath(captor.capture(), anyInt()); in testPhoneProcessCrash()
145 assertNotNull(captor.getValue()); in testPhoneProcessCrash()
146 IBinder.DeathRecipient recipient = captor.getValue(); in testPhoneProcessCrash()
160 ArgumentCaptor<ISipDelegate> captor = ArgumentCaptor.forClass(ISipDelegate.class); in createSipDelegate() local
161 verify(stateCb).onCreated(captor.capture(), anyList()); in createSipDelegate()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepositoryImplTest.kt179 val captor = argumentCaptor<KeyguardStateController.Callback>() in <lambda>() constant
180 verify(keyguardStateController, atLeastOnce()).addCallback(captor.capture()) in <lambda>()
183 captor.value.onKeyguardShowingChanged() in <lambda>()
189 captor.value.onKeyguardShowingChanged() in <lambda>()
207 val captor = argumentCaptor<KeyguardStateController.Callback>() in <lambda>() constant
208 verify(keyguardStateController, atLeastOnce()).addCallback(captor.capture()) in <lambda>()
211 captor.value.onKeyguardShowingChanged() in <lambda>()
216 captor.value.onKeyguardShowingChanged() in <lambda>()
232 val captor = argumentCaptor<KeyguardStateController.Callback>() in <lambda>() constant
233 verify(keyguardStateController, atLeastOnce()).addCallback(captor.capture()) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/
DWiredChargingRippleControllerTest.kt82 val captor = ArgumentCaptor in testTriggerRipple_UnlockedState() constant
84 verify(batteryController).addCallback(captor.capture()) in testTriggerRipple_UnlockedState()
87 captor.value.onBatteryLevelChanged( in testTriggerRipple_UnlockedState()
113 val captor = ArgumentCaptor in testUpdateRippleColor() constant
115 verify(configurationController).addCallback(captor.capture()) in testUpdateRippleColor()
118 captor.value.onThemeChanged() in testUpdateRippleColor()
122 captor.value.onUiModeChanged() in testUpdateRippleColor()
162 val captor = ArgumentCaptor in testRipple_whenDocked_doesNotPlayRipple() constant
164 verify(batteryController).addCallback(captor.capture()) in testRipple_whenDocked_doesNotPlayRipple()
166 captor.value.onBatteryLevelChanged( in testRipple_whenDocked_doesNotPlayRipple()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DNotificationChannelsTest.java63 ArgumentCaptor<List> captor = ArgumentCaptor.forClass(List.class); in testChannelSetup() local
64 verify(mMockNotificationManager).createNotificationChannels(captor.capture()); in testChannelSetup()
65 final List<NotificationChannel> list = captor.getValue(); in testChannelSetup()
73 ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class); in testChannelCleanup() local
74 verify(mMockNotificationManager).deleteNotificationChannel(captor.capture()); in testChannelCleanup()
75 assertEquals(NotificationChannels.GENERAL, captor.getValue()); in testChannelCleanup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserTrackerImplTest.kt175 val captor = ArgumentCaptor.forClass(IntentFilter::class.java) in <lambda>() constant
178 .registerReceiverForAllUsers(eq(tracker), capture(captor), isNull(), eq(handler)) in <lambda>()
179 with(captor.value) { in <lambda>()
217 val captor = ArgumentCaptor.forClass(IUserSwitchObserver::class.java) in <lambda>() constant
218 verify(iActivityManager).registerUserSwitchObserver(capture(captor), anyString()) in <lambda>()
219 captor.value.onBeforeUserSwitching(newID) in <lambda>()
220 captor.value.onUserSwitching(newID, userSwitchingReply) in <lambda>()
344 val captor = ArgumentCaptor.forClass(IUserSwitchObserver::class.java) in <lambda>() constant
345 verify(iActivityManager).registerUserSwitchObserver(capture(captor), anyString()) in <lambda>()
346 captor.value.onBeforeUserSwitching(newID) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DHeaderPrivacyIconsControllerTest.kt171 val captor = argumentCaptor<View.OnClickListener>() in eq() constant
172 verify(privacyChip).setOnClickListener(capture(captor)) in eq()
173 captor.value.onClick(privacyChip) in eq()
184 val captor = argumentCaptor<View.OnClickListener>() in eq() constant
185 verify(privacyChip).setOnClickListener(capture(captor)) in eq()
186 captor.value.onClick(privacyChip) in eq()
205 val captor = argumentCaptor<View.OnClickListener>() in eq() constant
206 verify(privacyChip).setOnClickListener(capture(captor)) in eq()
207 captor.value.onClick(privacyChip) in eq()
226 val captor = argumentCaptor<View.OnClickListener>() in eq() constant
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java87 ArgumentCaptor<SensorEventListener> captor = in testAmbientBrightnessSensorCallback_NoCallbacks() local
89 verify(mSensorManagerMock).registerListener(captor.capture(), isA(Sensor.class), anyInt(), in testAmbientBrightnessSensorCallback_NoCallbacks()
94 SensorEventListener listener = captor.getValue(); in testAmbientBrightnessSensorCallback_NoCallbacks()
116 ArgumentCaptor<SensorEventListener> captor = in testAmbientBrightnessSensorCallback_CallbacksCalled() local
118 verify(mSensorManagerMock).registerListener(captor.capture(), eq(mLightSensor), in testAmbientBrightnessSensorCallback_CallbacksCalled()
120 SensorEventListener listener = captor.getValue(); in testAmbientBrightnessSensorCallback_CallbacksCalled()
149 ArgumentCaptor<SensorEventListener> captor = in testAmbientColorTemperatureSensorCallback_CallbacksCalled() local
151 verify(mSensorManagerMock).registerListener(captor.capture(), eq(mAmbientColorSensor), in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
153 SensorEventListener listener = captor.getValue(); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlsUiControllerImplTest.kt218 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>() in testPanelCallsTaskViewFactoryCreate() constant
220 verify(controlsListingController).addCallback(capture(captor)) in testPanelCallsTaskViewFactoryCreate()
222 captor.value.onServicesUpdated(listOf(serviceInfo)) in testPanelCallsTaskViewFactoryCreate()
238 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>() in testSingleAppHeaderIsNotClickable() constant
240 verify(controlsListingController).addCallback(capture(captor)) in testSingleAppHeaderIsNotClickable()
242 captor.value.onServicesUpdated(listOf(serviceInfo)) in testSingleAppHeaderIsNotClickable()
266 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>() in testMultipleAppHeaderIsClickable() constant
268 verify(controlsListingController).addCallback(capture(captor)) in testMultipleAppHeaderIsClickable()
270 captor.value.onServicesUpdated(listOf(serviceInfo1, serviceInfo2)) in testMultipleAppHeaderIsClickable()
291 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>() in testPanelControllerStartActivityWithCorrectArguments() constant
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java378 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testAppOpsSettingsIntent_camera() local
380 .startNotificationGutsIntent(captor.capture(), anyInt(), any()); in testAppOpsSettingsIntent_camera()
381 assertEquals(Intent.ACTION_MANAGE_APP_PERMISSIONS, captor.getValue().getAction()); in testAppOpsSettingsIntent_camera()
389 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testAppOpsSettingsIntent_mic() local
391 .startNotificationGutsIntent(captor.capture(), anyInt(), any()); in testAppOpsSettingsIntent_mic()
392 assertEquals(Intent.ACTION_MANAGE_APP_PERMISSIONS, captor.getValue().getAction()); in testAppOpsSettingsIntent_mic()
401 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testAppOpsSettingsIntent_camera_mic() local
403 .startNotificationGutsIntent(captor.capture(), anyInt(), any()); in testAppOpsSettingsIntent_camera_mic()
404 assertEquals(Intent.ACTION_MANAGE_APP_PERMISSIONS, captor.getValue().getAction()); in testAppOpsSettingsIntent_camera_mic()
412 ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class); in testAppOpsSettingsIntent_overlay() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServicesTest.java170 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in testRecalculateBindAllowance() local
171 verify(mManagers.get(i), times(1)).setBindAllowed(captor.capture()); in testRecalculateBindAllowance()
174 (boolean) captor.getValue()); in testRecalculateBindAllowance()
184 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in testSetMemoryPressure() local
185 verify(mManagers.get(i), times(2)).setBindAllowed(captor.capture()); in testSetMemoryPressure()
188 (boolean) captor.getValue()); in testSetMemoryPressure()
205 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in testCalcFew() local
206 verify(mManagers.get(i), times(1)).setBindAllowed(captor.capture()); in testCalcFew()
208 assertTrue(captor.getValue()); in testCalcFew()
220 ArgumentCaptor<CommandQueue.Callbacks> captor = in testRequestListeningStatusCommand() local
[all …]

1234567