/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessThrottlerTest.java | 158 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 …]
|
D | AutomaticBrightnessControllerTest.java | 189 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/ |
D | BrightnessPowerClamperTest.java | 78 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()
|
D | BrightnessThermalClamperTest.java | 88 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 …]
|
D | BrightnessWearBedtimeModeClamperTest.java | 69 assertEquals(BRIGHTNESS_CAP, mClamper.getBrightnessCap(), BrightnessSynchronizer.EPSILON); in testBrightnessCap() 98 assertEquals(newBrightnessCap, mClamper.getBrightnessCap(), BrightnessSynchronizer.EPSILON); in testOnDisplayChanged()
|
D | BrightnessClamperControllerTest.java | 169 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/ |
D | BrightnessClamper.java | 48 float getBrightnessCap() { in getBrightnessCap() method in BrightnessClamper
|
D | BrightnessClamperController.java | 261 .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/ |
D | BrightnessThrottler.java | 165 float getBrightnessCap() { in getBrightnessCap() method in BrightnessThrottler
|
D | AutomaticBrightnessController.java | 1019 mBrightnessThrottler.getBrightnessCap()); 1021 mBrightnessThrottler.getBrightnessCap());
|