/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessThrottlerTest.java | 122 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 …]
|
D | NormalBrightnessModeControllerTest.java | 56 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()
|
D | BrightnessSynchronizerTest.java | 68 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()
|
D | DisplayDeviceConfigTest.java | 131 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()
|
D | DisplayPowerControllerTest.java | 1280 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/ |
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() 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()
|
D | BrightnessThermalClamperTest.java | 88 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()
|
D | HdrClamperTest.java | 149 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/ |
D | HdrClamper.java | 53 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()
|
D | BrightnessClamper.java | 32 protected float mBrightnessCap = PowerManager.BRIGHTNESS_MAX;
|
D | BrightnessPowerClamper.java | 196 float targetBrightnessCap = PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap() 206 (powerQuota / mCurrentAvgPowerConsumed) * PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap()
|
D | BrightnessClamperController.java | 83 private float mBrightnessCap = PowerManager.BRIGHTNESS_MAX; 255 float brightnessCap = PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap()
|
D | BrightnessThermalClamper.java | 178 float brightnessCap = PowerManager.BRIGHTNESS_MAX; in recalculateBrightnessCap()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | BoostBrightnessStrategy.java | 45 PowerManager.BRIGHTNESS_MAX, in updateBrightness() 46 PowerManager.BRIGHTNESS_MAX, getName()); in updateBrightness()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/ |
D | BrightnessUtils.java | 33 && brightness <= PowerManager.BRIGHTNESS_MAX; in isValidBrightnessValue() 41 PowerManager.BRIGHTNESS_MAX); in clampAbsoluteBrightness()
|
D | BrightnessEvent.java | 136 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/ |
D | BoostBrightnessStrategyTest.java | 56 .setBrightness(PowerManager.BRIGHTNESS_MAX) in testUpdateBrightnessWhenBoostBrightnessIsRequested() 58 .setSdrBrightness(PowerManager.BRIGHTNESS_MAX) in testUpdateBrightnessWhenBoostBrightnessIsRequested()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessThrottler.java | 91 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()
|
D | NormalBrightnessModeController.java | 38 private float mMaxBrightness = PowerManager.BRIGHTNESS_MAX; 74 float foundMaxBrightness = PowerManager.BRIGHTNESS_MAX; in recalculateMaxBrightness()
|
D | DisplayDeviceConfig.java | 1799 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 …]
|
D | DisplayPowerState.java | 109 mScreenBrightness = (displayState != Display.STATE_OFF) ? PowerManager.BRIGHTNESS_MAX in DisplayPowerState()
|
D | DisplayPowerController.java | 1111 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/ |
D | DeviceConfigParsingUtils.java | 148 if (value < PowerManager.BRIGHTNESS_MIN || value > PowerManager.BRIGHTNESS_MAX) { in parseBrightness()
|
/frameworks/base/core/java/com/android/internal/display/ |
D | BrightnessSynchronizer.java | 155 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/ |
D | BridgePowerManager.java | 184 return PowerManager.BRIGHTNESS_MAX; in getBrightnessConstraint()
|