Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java476 float prevBrightness = brightness[idx]; in smoothCurve() local
482 prevBrightness * permissibleRatio(currLux, prevLux), in smoothCurve()
483 prevBrightness + MIN_PERMISSABLE_INCREASE); in smoothCurve()
485 currBrightness, prevBrightness, maxBrightness); in smoothCurve()
490 prevBrightness = newBrightness; in smoothCurve()
495 prevBrightness = brightness[idx]; in smoothCurve()
499 float minBrightness = prevBrightness * permissibleRatio(currLux, prevLux); in smoothCurve()
501 currBrightness, minBrightness, prevBrightness); in smoothCurve()
506 prevBrightness = newBrightness; in smoothCurve()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java477 float prevBrightness = strategy.getBrightness(LUX_LEVELS[idx]); in assertStrategyAdaptsToUserDataPoints() local
481 prevBrightness >= brightness); in assertStrategyAdaptsToUserDataPoints()
482 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints()
498 prevBrightness = 0f; in assertStrategyAdaptsToUserDataPoints()
502 prevBrightness <= brightness); in assertStrategyAdaptsToUserDataPoints()
503 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints()