Home
last modified time | relevance | path

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

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessThrottlerTest.java158 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingUnsupported()
179 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingSingleLevel()
186 assertEquals(level.brightness, throttler.getBrightnessCap(), 0f); in testThermalThrottlingSingleLevel()
194 assertEquals(level.brightness, throttler.getBrightnessCap(), 0f); in testThermalThrottlingSingleLevel()
202 assertEquals(level.brightness, throttler.getBrightnessCap(), 0f); in testThermalThrottlingSingleLevel()
210 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingSingleLevel()
237 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingMultiLevel()
244 assertEquals(levelLo.brightness, throttler.getBrightnessCap(), 0f); in testThermalThrottlingMultiLevel()
252 assertEquals(levelLo.brightness, throttler.getBrightnessCap(), 0f); in testThermalThrottlingMultiLevel()
260 assertEquals(levelHi.brightness, throttler.getBrightnessCap(), 0f); in testThermalThrottlingMultiLevel()
[all …]
DAutomaticBrightnessControllerTest.java189 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(BRIGHTNESS_MAX_FLOAT); in setupController()
757 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(throttledBrightness);
768 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(BRIGHTNESS_MAX_FLOAT);
1097 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(BRIGHTNESS_MAX_FLOAT);
1130 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(BRIGHTNESS_MAX_FLOAT);
1165 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(BRIGHTNESS_MAX_FLOAT);
1197 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(BRIGHTNESS_MAX_FLOAT);
1225 when(mBrightnessThrottler.getBrightnessCap()).thenReturn(BRIGHTNESS_MAX_FLOAT);
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessPowerClamperTest.java78 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNoThrottlingData()
86 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingNoOngoingAnimation()
98 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingNoOngoingAnimation()
107 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingNoOngoingAnimation()
114 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingWithOngoingAnimation()
126 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingWithOngoingAnimation()
135 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingWithOngoingAnimation()
143 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingRemoveBrightnessCap()
155 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingRemoveBrightnessCap()
166 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingRemoveBrightnessCap()
DBrightnessThermalClamperTest.java88 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNoThrottlingData()
133 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNotifyThrottlingAfterOnDisplayChange()
138 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNotifyThrottlingAfterOnDisplayChange()
150 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOnDisplayChangeAfterNotifyThrottling()
155 assertEquals(expectedBrightness, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOnDisplayChangeAfterNotifyThrottling()
164 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOverrideData()
170 assertEquals(0.5f, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOverrideData()
177 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOverrideData()
184 assertEquals(0.4f, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOverrideData()
214 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testDisplaySensorBasedThrottling()
[all …]
DBrightnessWearBedtimeModeClamperTest.java69 assertEquals(BRIGHTNESS_CAP, mClamper.getBrightnessCap(), BrightnessSynchronizer.EPSILON); in testBrightnessCap()
98 assertEquals(newBrightnessCap, mClamper.getBrightnessCap(), BrightnessSynchronizer.EPSILON); in testOnDisplayChanged()
DBrightnessClamperControllerTest.java169 when(mMockClamper.getBrightnessCap()).thenReturn(clampedBrightness); in testClamp_inactiveClamperNotApplied()
193 when(mMockClamper.getBrightnessCap()).thenReturn(clampedBrightness); in testClamp_activeClamperApplied_brightnessAboveMax()
217 when(mMockClamper.getBrightnessCap()).thenReturn(clampedBrightness); in testClamp_activeClamperApplied_brightnessBelowMax()
241 when(mMockClamper.getBrightnessCap()).thenReturn(clampedBrightness); in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange()
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessClamper.java48 float getBrightnessCap() { in getBrightnessCap() method in BrightnessClamper
DBrightnessClamperController.java261 .min((clamper1, clamper2) -> Float.compare(clamper1.getBrightnessCap(), in recalculateBrightnessCap()
262 clamper2.getBrightnessCap())).orElse(null); in recalculateBrightnessCap()
265 brightnessCap = minClamper.getBrightnessCap(); in recalculateBrightnessCap()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessThrottler.java165 float getBrightnessCap() { in getBrightnessCap() method in BrightnessThrottler
DAutomaticBrightnessController.java1019 mBrightnessThrottler.getBrightnessCap());
1021 mBrightnessThrottler.getBrightnessCap());