Home
last modified time | relevance | path

Searched refs:listenerCaptor (Results 1 – 25 of 29) sorted by relevance

12

/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DAutomaticBrightnessControllerTest.java162 ArgumentCaptor<SensorEventListener> listenerCaptor = in testNoHysteresisAtMinBrightness() local
206 ArgumentCaptor<SensorEventListener> listenerCaptor = in testNoHysteresisAtMaxBrightness() local
250 ArgumentCaptor<SensorEventListener> listenerCaptor = in testUserAddUserDataPoint() local
273 ArgumentCaptor<SensorEventListener> listenerCaptor = in testRecalculateSplines() local
307 ArgumentCaptor<SensorEventListener> listenerCaptor = in testShortTermModelTimesOut() local
348 ArgumentCaptor<SensorEventListener> listenerCaptor = in testShortTermModelDoesntTimeOut() local
389 ArgumentCaptor<SensorEventListener> listenerCaptor = in testShortTermModelIsRestoredWhenSwitchingWithinTimeout() local
434 ArgumentCaptor<SensorEventListener> listenerCaptor = in testShortTermModelNotRestoredAfterTimeout() local
480 ArgumentCaptor<SensorEventListener> listenerCaptor = in testSwitchBetweenModesNoUserInteractions() local
516 ArgumentCaptor<SensorEventListener> listenerCaptor = in testSwitchToIdleMappingStrategy() local
[all …]
H A DScreenOffBrightnessSensorControllerTest.java92 ArgumentCaptor<SensorEventListener> listenerCaptor = in testBrightness() local
94 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(mLightSensor), in testBrightness()
96 SensorEventListener listener = listenerCaptor.getValue(); in testBrightness()
142 ArgumentCaptor<SensorEventListener> listenerCaptor = in testSensorValueValidTime() local
144 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(mLightSensor), in testSensorValueValidTime()
146 SensorEventListener listener = listenerCaptor.getValue(); in testSensorValueValidTime()
H A DDisplayPowerControllerTest.java317 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_BothDpcsSupportNits() local
319 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_BothDpcsSupportNits()
370 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits() local
372 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits()
402 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_LeadDpcDoesNotSupportNits() local
404 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_LeadDpcDoesNotSupportNits()
432 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_NeitherDpcSupportsNits() local
434 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_NeitherDpcSupportsNits()
539 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower() local
631 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowersRemoval_RemoveAllFollowers() local
[all …]
H A DDisplayPowerController2Test.java315 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_BothDpcsSupportNits() local
317 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_BothDpcsSupportNits()
365 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits() local
367 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_FollowerDoesNotSupportNits()
397 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_LeadDpcDoesNotSupportNits() local
399 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_LeadDpcDoesNotSupportNits()
427 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowers_NeitherDpcSupportsNits() local
429 verify(mHolder.brightnessSetting).registerListener(listenerCaptor.capture()); in testDisplayBrightnessFollowers_NeitherDpcSupportsNits()
534 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowersRemoval_RemoveSingleFollower() local
626 ArgumentCaptor<BrightnessSetting.BrightnessSettingListener> listenerCaptor = in testDisplayBrightnessFollowersRemoval_RemoveAllFollowers() local
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
H A DSmartSpaceComplicationTest.java126 final ArgumentCaptor<BcSmartspaceDataPlugin.SmartspaceTargetListener> listenerCaptor = in testOverlayActive_addsTargetListener() local
128 verify(mSmartspaceController).addListener(listenerCaptor.capture()); in testOverlayActive_addsTargetListener()
143 final ArgumentCaptor<BcSmartspaceDataPlugin.SmartspaceTargetListener> listenerCaptor = in testOverlayActive_targetsNonEmpty_addsComplication() local
145 verify(mSmartspaceController).addListener(listenerCaptor.capture()); in testOverlayActive_targetsNonEmpty_addsComplication()
165 final ArgumentCaptor<BcSmartspaceDataPlugin.SmartspaceTargetListener> listenerCaptor = in testOverlayActive_targetsEmpty_addsComplication() local
167 verify(mSmartspaceController).addListener(listenerCaptor.capture()); in testOverlayActive_targetsEmpty_addsComplication()
170 listenerCaptor.getValue().onSmartspaceTargetsUpdated(Collections.emptyList()); in testOverlayActive_targetsEmpty_addsComplication()
186 final ArgumentCaptor<BcSmartspaceDataPlugin.SmartspaceTargetListener> listenerCaptor = in testOverlayInActive_removesTargetListener_removesComplication() local
188 verify(mSmartspaceController).addListener(listenerCaptor.capture()); in testOverlayInActive_removesTargetListener_removesComplication()
190 listenerCaptor.getValue().onSmartspaceTargetsUpdated(Collections.emptyList()); in testOverlayInActive_removesTargetListener_removesComplication()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DPanelTaskViewControllerTest.kt65 @Captor private lateinit var listenerCaptor: ArgumentCaptor<TaskView.Listener>
107 verify(taskView).setListener(any(), capture(listenerCaptor))
109 listenerCaptor.value.onInitialized()
131 verify(taskView).setListener(any(), capture(listenerCaptor))
133 listenerCaptor.value.onTaskCreated(1, ComponentName("Test", "TEST"))
141 verify(taskView).setListener(any(), capture(listenerCaptor))
143 listenerCaptor.value.onBackPressedOnTaskRoot(0)
157 verify(taskView).setListener(any(), capture(listenerCaptor))
159 listenerCaptor.value.onTaskRemovalStarted(0)
H A DControlsUiControllerImplTest.kt537 val listenerCaptor = argumentCaptor<TaskView.Listener>() regex
538 verify(taskView).setListener(any(), capture(listenerCaptor))
539 listenerCaptor.value.onInitialized()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/telephony/data/repository/
H A DTelephonyRepositoryImplTest.kt61 val listenerCaptor = kotlinArgumentCaptor<TelephonyCallback.CallStateListener>() regex
62 verify(manager).addCallStateListener(listenerCaptor.capture())
63 val listener = listenerCaptor.value
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lifecycle/
H A DRepeatWhenAttachedTest.kt179 val listenerCaptor = argumentCaptor<ViewTreeObserver.OnWindowVisibilityChangeListener>() regex
180 verify(viewTreeObserver).addOnWindowVisibilityChangeListener(listenerCaptor.capture())
183 listenerCaptor.value.onWindowVisibilityChanged(View.VISIBLE)
195 val listenerCaptor = argumentCaptor<ViewTreeObserver.OnWindowFocusChangeListener>() regex
196 verify(viewTreeObserver).addOnWindowFocusChangeListener(listenerCaptor.capture())
199 listenerCaptor.value.onWindowFocusChanged(true)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
H A DWorkLockActivityControllerTest.java88 final ArgumentCaptor<TaskStackChangeListener> listenerCaptor = in setUp() local
93 verify(mTaskStackChangeListeners).registerTaskStackListener(listenerCaptor.capture()); in setUp()
94 mTaskStackListener = listenerCaptor.getValue(); in setUp()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dream/
H A DMediaDreamSentinelTest.java155 final ArgumentCaptor<MediaDataManager.Listener> listenerCaptor = in captureMediaDataListener() local
157 verify(mMediaDataManager).addListener(listenerCaptor.capture()); in captureMediaDataListener()
159 return listenerCaptor.getValue(); in captureMediaDataListener()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/sender/
H A DMediaTttSenderCoordinatorTest.kt1160 val listenerCaptor = argumentCaptor<TemporaryViewDisplayController.Listener>() regex
1161 verify(mockChipbarCoordinator).registerListener(capture(listenerCaptor))
1164 listenerCaptor.value.onInfoPermanentlyRemoved(DEFAULT_ID, "reason")
1168 verify(mockChipbarCoordinator).unregisterListener(listenerCaptor.value)
1194 val listenerCaptor = argumentCaptor<TemporaryViewDisplayController.Listener>() regex
1195 verify(mockChipbarCoordinator).registerListener(capture(listenerCaptor))
1198 listenerCaptor.value.onInfoPermanentlyRemoved("differentViewId", "reason")
1227 val listenerCaptor = argumentCaptor<TemporaryViewDisplayController.Listener>() regex
1228 verify(mockChipbarCoordinator).registerListener(capture(listenerCaptor))
1238 verify(mockChipbarCoordinator).unregisterListener(listenerCaptor.value)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DAppAdapterTest.kt144 val listenerCaptor: ArgumentCaptor<View.OnClickListener> = argumentCaptor()
145 verify(fakeView).setOnClickListener(capture(listenerCaptor))
146 listenerCaptor.value.onClick(fakeView)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/muteawait/
H A DMediaMuteAwaitConnectionManagerTest.kt226 val listenerCaptor = ArgumentCaptor.forClass( regex
229 verify(audioManager).registerMuteAwaitConnectionCallback(any(), listenerCaptor.capture())
230 return listenerCaptor.value!!
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
H A DShadeHeaderControllerTest.kt326 val listenerCaptor = argumentCaptor<Animator.AnimatorListener>() regex
329 verify(animator).setListener(capture(listenerCaptor))
331 listenerCaptor.value.onAnimationStart(mock())
332 listenerCaptor.value.onAnimationEnd(mock())
337 verify(animator).setListener(capture(listenerCaptor))
339 listenerCaptor.value.onAnimationStart(mock())
340 listenerCaptor.value.onAnimationEnd(mock())
350 val listenerCaptor = argumentCaptor<Animator.AnimatorListener>() regex
351 verify(animator).setListener(capture(listenerCaptor))
353 listenerCaptor.value.onAnimationEnd(mock())
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DMediaCoordinatorTest.java216 ArgumentCaptor<NotifCollectionListener> listenerCaptor = in finishSetupWithMediaFeatureFlagEnabled() local
220 verify(mNotifPipeline).addCollectionListener(listenerCaptor.capture()); in finishSetupWithMediaFeatureFlagEnabled()
223 mListener = listenerCaptor.getValue(); in finishSetupWithMediaFeatureFlagEnabled()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/systemsounds/
H A DHomeSoundEffectControllerTest.java410 final ArgumentCaptor<TaskStackChangeListener> listenerCaptor = in startController() local
412 verify(mTaskStackChangeListeners).registerTaskStackListener(listenerCaptor.capture()); in startController()
413 mTaskStackChangeListener = listenerCaptor.getValue(); in startController()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/restrictions/
H A DThermalStatusRestrictionTest.java95 ArgumentCaptor<PowerManager.OnThermalStatusChangedListener> listenerCaptor = in setUp() local
100 verify(powerManager).addThermalStatusListener(listenerCaptor.capture()); in setUp()
101 mStatusChangedListener = listenerCaptor.getValue(); in setUp()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/
H A DMediaSessionBasedFilterTest.kt140 val listenerCaptor = regex
143 .addOnActiveSessionsChangedListener(listenerCaptor.capture(), any())
144 sessionListener = listenerCaptor.value
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/carrier/
H A DShadeCarrierGroupControllerTest.java609 ArgumentCaptor<View.OnClickListener> listenerCaptor = in testOnClickListenerLaunchesActivityIfViewVisible() local
613 verify(mShadeCarrier1).setOnClickListener(listenerCaptor.capture()); in testOnClickListenerLaunchesActivityIfViewVisible()
616 listenerCaptor.getValue().onClick(mShadeCarrier1); in testOnClickListenerLaunchesActivityIfViewVisible()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
H A DDeviceIdleControllerTest.java2248 ArgumentCaptor<TriggerEventListener> listenerCaptor = in testStationaryDetection_QuickDozeOn_OneShot() local
2261 .requestTriggerSensor(listenerCaptor.capture(), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_OneShot()
2262 final TriggerEventListener listener = listenerCaptor.getValue(); in testStationaryDetection_QuickDozeOn_OneShot()
2293 ArgumentCaptor<SensorEventListener> listenerCaptor = in testStationaryDetection_QuickDozeOn_MultiShot() local
2306 .registerListener(listenerCaptor.capture(), eq(mMotionSensor), in testStationaryDetection_QuickDozeOn_MultiShot()
2308 final SensorEventListener listener = listenerCaptor.getValue(); in testStationaryDetection_QuickDozeOn_MultiShot()
2339 ArgumentCaptor<SensorEventListener> listenerCaptor = in testStationaryDetection_NoDoze_AfterMotion() local
2352 .registerListener(listenerCaptor.capture(), eq(mMotionSensor), in testStationaryDetection_NoDoze_AfterMotion()
2357 final SensorEventListener listener = listenerCaptor.getValue(); in testStationaryDetection_NoDoze_AfterMotion()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
H A DDisplayModeDirectorTest.java1121 ArgumentCaptor<SensorEventListener> listenerCaptor =
1125 listenerCaptor.capture(),
1197 ArgumentCaptor<SensorEventListener> listenerCaptor =
1201 listenerCaptor.capture(),
1292 ArgumentCaptor<SensorEventListener> listenerCaptor =
1296 listenerCaptor.capture(),
1361 ArgumentCaptor<SensorEventListener> listenerCaptor =
1365 listenerCaptor.capture(),
1379 listenerCaptor.capture(),
2745 ArgumentCaptor<SensorEventListener> listenerCaptor = in testSensorReloadOnDeviceSwitch() local
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DTimeControllerTest.java648 ArgumentCaptor<AlarmManager.OnAlarmListener> listenerCaptor = in testDelayAlarmSchedulingCoalescedIntervals() local
658 listenerCaptor.capture(), any(), any()); in testDelayAlarmSchedulingCoalescedIntervals()
659 final AlarmManager.OnAlarmListener delayListener = listenerCaptor.getValue(); in testDelayAlarmSchedulingCoalescedIntervals()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DBatteryControllerTests.kt219 val listenerCaptor = ArgumentCaptor.forClass(IInputDevicesChangedListener::class.java) regex
220 verify(iInputManager).registerInputDevicesChangedListener(listenerCaptor.capture())
221 devicesChangedListener = listenerCaptor.value
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayRotationTests.java350 final ArgumentCaptor<SensorEventListener> listenerCaptor = ArgumentCaptor.forClass( in verifyOrientationListenerRegistration() local
354 listenerCaptor.capture(), in verifyOrientationListenerRegistration()
359 mOrientationSensorListener = listenerCaptor.getValue(); in verifyOrientationListenerRegistration()

12