Home
last modified time | relevance | path

Searched refs:BRIGHTNESS_MAX (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessThrottlerTest.java122 PowerManager.BRIGHTNESS_MAX + EPSILON)); in testThermalBrightnessThrottlingData()
158 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingUnsupported()
179 assertEquals(PowerManager.BRIGHTNESS_MAX, 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()
292 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingMultiLevel()
317 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingWithDisplaySensor()
324 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingWithDisplaySensor()
331 assertEquals(PowerManager.BRIGHTNESS_MAX, throttler.getBrightnessCap(), 0f); in testThermalThrottlingWithDisplaySensor()
358 testThermalThrottling(throttler, listener, PowerManager.BRIGHTNESS_MAX, 0.4f); in testUpdateThermalThrottlingData()
[all …]
DNormalBrightnessModeControllerTest.java56 PowerManager.BRIGHTNESS_MAX}, in brightnessData()
58 PowerManager.BRIGHTNESS_MAX}, in brightnessData()
60 PowerManager.BRIGHTNESS_MAX}, in brightnessData()
75 ), PowerManager.BRIGHTNESS_MAX}, in brightnessData()
101 ), PowerManager.BRIGHTNESS_MAX}, in brightnessData()
DBrightnessSynchronizerTest.java68 private static final float BRIGHTNESS_MAX = 0.6f; field in BrightnessSynchronizerTest
92 PowerManager.BRIGHTNESS_MIN, BRIGHTNESS_MAX, in setUp()
93 BrightnessInfo.HIGH_BRIGHTNESS_MODE_OFF, BRIGHTNESS_MAX, in setUp()
DDisplayDeviceConfigTest.java131 assertEquals(PowerManager.BRIGHTNESS_MAX, in testDefaultValues()
133 assertEquals(PowerManager.BRIGHTNESS_MAX, in testDefaultValues()
135 assertEquals(PowerManager.BRIGHTNESS_MAX, in testDefaultValues()
137 assertEquals(PowerManager.BRIGHTNESS_MAX, in testDefaultValues()
139 assertEquals(PowerManager.BRIGHTNESS_MAX, in testDefaultValues()
141 assertEquals(PowerManager.BRIGHTNESS_MAX, in testDefaultValues()
DDisplayPowerControllerTest.java1280 mHolder.dpc.setBrightness(PowerManager.BRIGHTNESS_MAX); in testSetBrightness_BrightnessShouldBeClamped()
1399 when(mHolder.hbmController.getHdrBrightnessValue()).thenReturn(PowerManager.BRIGHTNESS_MAX); in testRampRateForHdrContent_HdrClamperOn()
1400 when(mHolder.hdrClamper.clamp(PowerManager.BRIGHTNESS_MAX)).thenReturn(clampedBrightness); in testRampRateForHdrContent_HdrClamperOn()
1422 .setMaxBrightness(PowerManager.BRIGHTNESS_MAX) in testRampRateForClampersControllerApplied()
1446 .setMaxBrightness(PowerManager.BRIGHTNESS_MAX) in testRampRateForClampersControllerNotApplied_ifDoze()
1876 .thenReturn(PowerManager.BRIGHTNESS_MAX); in testDozeManualBrightness()
1911 .thenReturn(PowerManager.BRIGHTNESS_MAX); in testDozeManualBrightness_AbcIsNull()
1945 .thenReturn(PowerManager.BRIGHTNESS_MAX); in testDefaultDozeBrightness()
1969 .thenReturn(PowerManager.BRIGHTNESS_MAX); in testDefaultDozeBrightness_ShouldNotBeUsedIfAutoBrightnessAllowedInDoze()
2096 when(hbmController.getCurrentBrightnessMax()).thenReturn(PowerManager.BRIGHTNESS_MAX); in createDisplayPowerController()
[all …]
/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()
94 expectedBrightness = expectedBrightness * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingNoOngoingAnimation()
105 expectedBrightness = 0.5f * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingNoOngoingAnimation()
114 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingWithOngoingAnimation()
122 expectedBrightness = expectedBrightness * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingWithOngoingAnimation()
133 expectedBrightness = 0.5f * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingWithOngoingAnimation()
143 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testPowerThrottlingRemoveBrightnessCap()
151 expectedBrightness = expectedBrightness * PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingRemoveBrightnessCap()
160 expectedBrightness = PowerManager.BRIGHTNESS_MAX; in testPowerThrottlingRemoveBrightnessCap()
DBrightnessThermalClamperTest.java88 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNoThrottlingData()
96 {List.of(), Temperature.THROTTLING_LIGHT, false, PowerManager.BRIGHTNESS_MAX}, in testThrottlingData()
101 Temperature.THROTTLING_LIGHT, false, PowerManager.BRIGHTNESS_MAX}, in testThrottlingData()
133 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testNotifyThrottlingAfterOnDisplayChange()
150 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOnDisplayChangeAfterNotifyThrottling()
164 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOverrideData()
177 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testOverrideData()
214 assertEquals(PowerManager.BRIGHTNESS_MAX, mClamper.getBrightnessCap(), FLOAT_TOLERANCE); in testDisplaySensorBasedThrottling()
DHdrClamperTest.java149 assertEquals(PowerManager.BRIGHTNESS_MAX, mHdrClamper.getMaxBrightness(), FLOAT_TOLERANCE); in testClamper_AmbientLuxChangesAboveLimit()
160 assertEquals(PowerManager.BRIGHTNESS_MAX, mHdrClamper.getMaxBrightness(), FLOAT_TOLERANCE); in testClamper_AmbientLuxChangesBelowLimit_MaxDecrease()
175 assertEquals(PowerManager.BRIGHTNESS_MAX, mHdrClamper.getMaxBrightness(), FLOAT_TOLERANCE); in testClamper_AmbientLuxChangesBelowLimit_ThenFastAboveLimit()
193 assertEquals(PowerManager.BRIGHTNESS_MAX, mHdrClamper.getMaxBrightness(), FLOAT_TOLERANCE); in testClamper_AmbientLuxChangesBelowLimit_ThenSlowlyAboveLimit()
203 assertEquals(PowerManager.BRIGHTNESS_MAX, mHdrClamper.getMaxBrightness(), FLOAT_TOLERANCE); in testClamper_HdrOff_ThenAmbientLuxChangesBelowLimit()
216 assertEquals(PowerManager.BRIGHTNESS_MAX, mHdrClamper.getMaxBrightness(), FLOAT_TOLERANCE); in testClamper_HdrOff_ThenAmbientLuxChangesBelowLimit_ThenHdrOn()
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DHdrClamper.java53 private float mMaxBrightness = PowerManager.BRIGHTNESS_MAX;
54 private float mDesiredMaxBrightness = PowerManager.BRIGHTNESS_MAX;
183 if (mMaxBrightness == PowerManager.BRIGHTNESS_MAX in reset()
184 && mDesiredMaxBrightness == PowerManager.BRIGHTNESS_MAX && mTransitionRate == -1f in reset()
189 mMaxBrightness = PowerManager.BRIGHTNESS_MAX; in reset()
190 mDesiredMaxBrightness = PowerManager.BRIGHTNESS_MAX; in reset()
233 float foundMaxBrightness = PowerManager.BRIGHTNESS_MAX; in findBrightnessLimit()
DBrightnessClamper.java32 protected float mBrightnessCap = PowerManager.BRIGHTNESS_MAX;
DBrightnessPowerClamper.java196 float targetBrightnessCap = PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap()
206 (powerQuota / mCurrentAvgPowerConsumed) * PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap()
DBrightnessClamperController.java83 private float mBrightnessCap = PowerManager.BRIGHTNESS_MAX;
255 float brightnessCap = PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap()
DBrightnessThermalClamper.java178 float brightnessCap = PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DBoostBrightnessStrategy.java45 PowerManager.BRIGHTNESS_MAX, in updateBrightness()
46 PowerManager.BRIGHTNESS_MAX, getName()); in updateBrightness()
/frameworks/base/services/core/java/com/android/server/display/brightness/
DBrightnessUtils.java33 && brightness <= PowerManager.BRIGHTNESS_MAX; in isValidBrightnessValue()
41 PowerManager.BRIGHTNESS_MAX); in clampAbsoluteBrightness()
DBrightnessEvent.java136 mHbmMax = PowerManager.BRIGHTNESS_MAX; in reset()
138 mThermalMax = PowerManager.BRIGHTNESS_MAX; in reset()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DBoostBrightnessStrategyTest.java56 .setBrightness(PowerManager.BRIGHTNESS_MAX) in testUpdateBrightnessWhenBoostBrightnessIsRequested()
58 .setSdrBrightness(PowerManager.BRIGHTNESS_MAX) in testUpdateBrightnessWhenBoostBrightnessIsRequested()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessThrottler.java91 private float mBrightnessCap = PowerManager.BRIGHTNESS_MAX;
181 mBrightnessCap = PowerManager.BRIGHTNESS_MAX; in stop()
209 if (brightness > PowerManager.BRIGHTNESS_MAX) { in verifyAndConstrainBrightnessCap()
211 + "brightness " + PowerManager.BRIGHTNESS_MAX); in verifyAndConstrainBrightnessCap()
212 brightness = PowerManager.BRIGHTNESS_MAX; in verifyAndConstrainBrightnessCap()
230 float brightnessCap = PowerManager.BRIGHTNESS_MAX; in updateThermalThrottling()
DNormalBrightnessModeController.java38 private float mMaxBrightness = PowerManager.BRIGHTNESS_MAX;
74 float foundMaxBrightness = PowerManager.BRIGHTNESS_MAX; in recalculateMaxBrightness()
DDisplayDeviceConfig.java1799 mBacklightMaximum = PowerManager.BRIGHTNESS_MAX; in initFromDefaultValues()
1801 mBrightnessRampFastDecrease = PowerManager.BRIGHTNESS_MAX; in initFromDefaultValues()
1802 mBrightnessRampFastIncrease = PowerManager.BRIGHTNESS_MAX; in initFromDefaultValues()
1803 mBrightnessRampSlowDecrease = PowerManager.BRIGHTNESS_MAX; in initFromDefaultValues()
1804 mBrightnessRampSlowIncrease = PowerManager.BRIGHTNESS_MAX; in initFromDefaultValues()
1805 mBrightnessRampSlowDecreaseIdle = PowerManager.BRIGHTNESS_MAX; in initFromDefaultValues()
1806 mBrightnessRampSlowIncreaseIdle = PowerManager.BRIGHTNESS_MAX; in initFromDefaultValues()
2505 PowerManager.BRIGHTNESS_MIN, PowerManager.BRIGHTNESS_MAX, mBacklight[i]); in createBacklightConversionSplines()
2576 : PowerManager.BRIGHTNESS_MAX; in loadLuxThrottling()
3211 if (level.brightness > PowerManager.BRIGHTNESS_MAX) { in create()
[all …]
DDisplayPowerState.java109 mScreenBrightness = (displayState != Display.STATE_OFF) ? PowerManager.BRIGHTNESS_MAX in DisplayPowerState()
DDisplayPowerController.java1111 PowerManager.BRIGHTNESS_MAX, mDozeScaleFactor, lightSensorRate, in setUpAutoBrightness()
1969 float stateMax = state != null ? state.getMaxBrightness() : PowerManager.BRIGHTNESS_MAX; in saveBrightnessInfo()
1970 float stateMin = state != null ? state.getMinBrightness() : PowerManager.BRIGHTNESS_MAX; in saveBrightnessInfo()
2018 PowerManager.BRIGHTNESS_MAX, hbmData, (sdrBrightness, maxDesiredHdrSdrRatio) -> in createHbmControllerLocked()
2798 float hbmTransitionPoint = PowerManager.BRIGHTNESS_MAX; in reportStats()
2899 event.getThermalMax() == PowerManager.BRIGHTNESS_MAX in logBrightnessEvent()
/frameworks/base/services/core/java/com/android/server/display/utils/
DDeviceConfigParsingUtils.java148 if (value < PowerManager.BRIGHTNESS_MIN || value > PowerManager.BRIGHTNESS_MAX) { in parseBrightness()
/frameworks/base/core/java/com/android/internal/display/
DBrightnessSynchronizer.java155 final float maxFloat = PowerManager.BRIGHTNESS_MAX; in brightnessIntToFloat()
182 final float maxFloat = PowerManager.BRIGHTNESS_MAX; in brightnessFloatToIntRange()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java184 return PowerManager.BRIGHTNESS_MAX; in getBrightnessConstraint()

12