Home
last modified time | relevance | path

Searched refs:getBrightness (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java128 simple.getBrightness(LUX_LEVELS[i]), 0.01f /*tolerance*/); in testSimpleStrategyMappingAtControlPoints()
139 final float backlight = simple.getBrightness(lux) * PowerManager.BRIGHTNESS_ON; in testSimpleStrategyMappingBetweenControlPoints()
158 assertNotEquals(1.0f, strategy.getBrightness(1f), 0.01 /*tolerance*/); in testSimpleStrategyIgnoresNewConfiguration()
171 strategy.getBrightness(LUX_LEVELS[N - 1]), 0.01 /*tolerance*/); in testSimpleStrategyIgnoresNullConfiguration()
183 physical.getBrightness(LUX_LEVELS[i]), 0.01f /*tolerance*/); in testPhysicalStrategyMappingAtControlPoints()
197 final float backlight = physical.getBrightness(lux) * PowerManager.BRIGHTNESS_ON; in testPhysicalStrategyMappingBetweenControlPoints()
219 assertEquals(1.0f, strategy.getBrightness(1f), 0.01 /*tolerance*/); in testPhysicalStrategyUsesNewConfigurations()
226 strategy.getBrightness(LUX_LEVELS[N - 1]), 0.01f /*tolerance*/); in testPhysicalStrategyUsesNewConfigurations()
320 initialBrightnessLevels[i] = strategy.getBrightness(LUX_LEVELS[i]); in assertStrategyAdaptsToUserDataPoints()
329 assertEquals(strategy.getBrightness(LUX_LEVELS[idx]), 1.0, 0.01 /*tolerance*/); in assertStrategyAdaptsToUserDataPoints()
[all …]
DAutomaticBrightnessControllerTest.java119 when(mBrightnessMappingStrategy.getBrightness(eq(lux1), eq(null), anyInt())) in testNoHysteresisAtMinBrightness()
139 when(mBrightnessMappingStrategy.getBrightness(anyFloat(), eq(null), anyInt())) in testNoHysteresisAtMinBrightness()
165 when(mBrightnessMappingStrategy.getBrightness(eq(lux1), eq(null), anyInt())) in testNoHysteresisAtMaxBrightness()
185 when(mBrightnessMappingStrategy.getBrightness(anyFloat(), eq(null), anyInt())) in testNoHysteresisAtMaxBrightness()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java203 public abstract float getBrightness(float lux, String packageName, in getBrightness() method in BrightnessMappingStrategy
216 public float getBrightness(float lux) { in getBrightness() method in BrightnessMappingStrategy
217 return getBrightness(lux, null /* packageName */, ApplicationInfo.CATEGORY_UNDEFINED); in getBrightness()
492 public float getBrightness(float lux, String packageName, in getBrightness() method in BrightnessMappingStrategy.SimpleMappingStrategy
679 public float getBrightness(float lux, String packageName, in getBrightness() method in BrightnessMappingStrategy.PhysicalMappingStrategy
DAutomaticBrightnessController.java746 float value = mBrightnessMapper.getBrightness(mAmbientLux, mForegroundAppPackageName, in updateAutoBrightness()
/frameworks/base/services/
Dart-profile6553 HSPLcom/android/server/display/BrightnessMappingStrategy$PhysicalMappingStrategy;->getBrightness(FL…