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.java332 float prevBrightness = brightness[idx]; in smoothCurve() local
337 float maxBrightness = prevBrightness * permissibleRatio(currLux, prevLux); in smoothCurve()
339 currBrightness, prevBrightness, maxBrightness); in smoothCurve()
344 prevBrightness = newBrightness; in smoothCurve()
349 prevBrightness = brightness[idx]; in smoothCurve()
353 float minBrightness = prevBrightness * permissibleRatio(currLux, prevLux); in smoothCurve()
355 currBrightness, minBrightness, prevBrightness); in smoothCurve()
360 prevBrightness = newBrightness; in smoothCurve()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java334 float prevBrightness = strategy.getBrightness(LUX_LEVELS[idx]); in assertStrategyAdaptsToUserDataPoints() local
338 prevBrightness >= brightness); in assertStrategyAdaptsToUserDataPoints()
339 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints()
355 prevBrightness = 0f; in assertStrategyAdaptsToUserDataPoints()
359 prevBrightness <= brightness); in assertStrategyAdaptsToUserDataPoints()
360 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints()