Home
last modified time | relevance | path

Searched refs:mockDeviceConfig (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DBrightnessObserverTest.kt60 private val mockDeviceConfig = mock<DisplayDeviceConfig>() constant in com.android.server.display.mode.BrightnessObserverTest
76 whenever(mockDeviceConfig.isVrrSupportEnabled).thenReturn(testCase.vrrSupported) in testLowLightBlockingZoneVotes()
77 whenever(mockDeviceConfig.refreshRateData).thenReturn(testCase.refreshRateData) in testLowLightBlockingZoneVotes()
78 whenever(mockDeviceConfig.defaultLowBlockingZoneRefreshRate).thenReturn(-1) in testLowLightBlockingZoneVotes()
80 displayModeDirector.defaultDisplayDeviceUpdated(mockDeviceConfig) in testLowLightBlockingZoneVotes()
86 brightnessObserver.updateBlockingZoneThresholds(mockDeviceConfig, false) in testLowLightBlockingZoneVotes()
104 whenever(mockDeviceConfig.highDisplayBrightnessThresholds).thenReturn(floatArrayOf()) in setUpLowBrightnessZone()
105 whenever(mockDeviceConfig.highAmbientBrightnessThresholds).thenReturn(floatArrayOf()) in setUpLowBrightnessZone()
106 whenever(mockDeviceConfig.lowDisplayBrightnessThresholds).thenReturn(floatArrayOf(0.1f)) in setUpLowBrightnessZone()
107 whenever(mockDeviceConfig.lowAmbientBrightnessThresholds).thenReturn(floatArrayOf(10f)) in setUpLowBrightnessZone()
DSettingsObserverTest.kt94 private val mockDeviceConfig = mock<DisplayDeviceConfig>() constant in com.android.server.display.mode.SettingsObserverTest
116 whenever(mockDeviceConfig.refreshRateData).thenReturn(testCase.refreshRateData) in test low power mode()
117 ddcByDisplay.put(Display.DEFAULT_DISPLAY, mockDeviceConfig) in test low power mode()