/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 128 ArgumentCaptor<SensorEventListener> listenerCaptor = in testNoHysteresisAtMinBrightness() local 130 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(lightSensor), in testNoHysteresisAtMinBrightness() 132 SensorEventListener listener = listenerCaptor.getValue(); in testNoHysteresisAtMinBrightness() 175 ArgumentCaptor<SensorEventListener> listenerCaptor = in testNoHysteresisAtMaxBrightness() local 177 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(lightSensor), in testNoHysteresisAtMaxBrightness() 179 SensorEventListener listener = listenerCaptor.getValue(); in testNoHysteresisAtMaxBrightness() 222 ArgumentCaptor<SensorEventListener> listenerCaptor = in testUserAddUserDataPoint() local 224 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(lightSensor), in testUserAddUserDataPoint() 226 SensorEventListener listener = listenerCaptor.getValue(); in testUserAddUserDataPoint()
|
D | DisplayModeDirectorTest.java | 745 ArgumentCaptor<SensorEventListener> listenerCaptor = 749 listenerCaptor.capture(), 753 SensorEventListener listener = listenerCaptor.getValue(); 793 ArgumentCaptor<SensorEventListener> listenerCaptor = 797 listenerCaptor.capture(), 801 SensorEventListener listener = listenerCaptor.getValue(); 841 ArgumentCaptor<SensorEventListener> listenerCaptor = 845 listenerCaptor.capture(), 853 .unregisterListener(listenerCaptor.capture()); 859 listenerCaptor.capture(),
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WorkLockActivityControllerTest.java | 79 final ArgumentCaptor<TaskStackChangeListener> listenerCaptor = in setUp() local 84 verify(mTaskStackChangeListeners).registerTaskStackListener(listenerCaptor.capture()); in setUp() 85 mTaskStackListener = listenerCaptor.getValue(); in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsCallTest.java | 71 ArgumentCaptor<ImsCallSession.Listener> listenerCaptor = in testCallSessionProgressingAppliedMediaCaps() local 73 verify(mockSession).setListener(listenerCaptor.capture()); in testCallSessionProgressingAppliedMediaCaps() 74 ImsCallSession.Listener listener = listenerCaptor.getValue(); in testCallSessionProgressingAppliedMediaCaps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/systemsounds/ |
D | HomeSoundEffectControllerTest.java | 410 final ArgumentCaptor<TaskStackChangeListener> listenerCaptor = in startController() local 412 verify(mTaskStackChangeListeners).registerTaskStackListener(listenerCaptor.capture()); in startController() 413 mTaskStackChangeListener = listenerCaptor.getValue(); in startController()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
D | MediaSessionBasedFilterTest.kt | 166 val listenerCaptor = ArgumentCaptor.forClass( in eq() constant 169 listenerCaptor.capture(), any()) in eq() 170 sessionListener = listenerCaptor.value in eq()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 318 final ArgumentCaptor<SensorEventListener> listenerCaptor = ArgumentCaptor.forClass( in verifyOrientationListenerRegistration() local 321 listenerCaptor.capture(), in verifyOrientationListenerRegistration() 326 mOrientationSensorListener = listenerCaptor.getValue(); in verifyOrientationListenerRegistration()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 1915 ArgumentCaptor<TriggerEventListener> listenerCaptor = in testStationaryDetection_QuickDozeOn_OneShot() local 1928 .requestTriggerSensor(listenerCaptor.capture(), eq(mMotionSensor)); in testStationaryDetection_QuickDozeOn_OneShot() 1929 final TriggerEventListener listener = listenerCaptor.getValue(); in testStationaryDetection_QuickDozeOn_OneShot() 1959 ArgumentCaptor<SensorEventListener> listenerCaptor = in testStationaryDetection_QuickDozeOn_MultiShot() local 1972 .registerListener(listenerCaptor.capture(), eq(mMotionSensor), in testStationaryDetection_QuickDozeOn_MultiShot() 1974 final SensorEventListener listener = listenerCaptor.getValue(); in testStationaryDetection_QuickDozeOn_MultiShot()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | VibratorManagerServiceTest.java | 694 ArgumentCaptor<VibratorManagerService.OnSyncedVibrationCompleteListener> listenerCaptor = 697 verify(mNativeWrapperMock).init(listenerCaptor.capture()); 702 listenerCaptor.getValue().onComplete(answer.getArgument(0)); 715 assertTrue(waitUntil(s -> !listenerCaptor.getAllValues().isEmpty(), service,
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | TimeControllerTest.java | 648 ArgumentCaptor<AlarmManager.OnAlarmListener> listenerCaptor = in testDelayAlarmSchedulingCoalescedIntervals() local 658 listenerCaptor.capture(), any(), any()); in testDelayAlarmSchedulingCoalescedIntervals() 659 final AlarmManager.OnAlarmListener delayListener = listenerCaptor.getValue(); in testDelayAlarmSchedulingCoalescedIntervals()
|