Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java57 float[] luxLevels = getLuxLevels(resources.getIntArray( in create() local
73 && isValidMapping(luxLevels, brightnessLevelsNits)) { in create()
84 luxLevels, brightnessLevelsNits); in create()
87 } else if (isValidMapping(luxLevels, brightnessLevelsBacklight)) { in create()
88 return new SimpleMappingStrategy(luxLevels, brightnessLevelsBacklight, in create()
286 float[] luxLevels, float[] brightnessLevels, float lux, float brightness) { in insertControlPoint() argument
287 final int idx = findInsertionPoint(luxLevels, lux); in insertControlPoint()
290 if (idx == luxLevels.length) { in insertControlPoint()
291 newLuxLevels = Arrays.copyOf(luxLevels, luxLevels.length + 1); in insertControlPoint()
295 } else if (luxLevels[idx] == lux) { in insertControlPoint()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java378 private Resources createResources(int[] luxLevels, int[] brightnessLevelsBacklight) { in createResources() argument
379 return createResources(luxLevels, brightnessLevelsBacklight, in createResources()
384 private Resources createResources(int[] luxLevels, float[] brightnessLevelsNits, in createResources() argument
386 return createResources(luxLevels, EMPTY_INT_ARRAY /*brightnessLevelsBacklight*/, in createResources()
390 private Resources createResources(int[] luxLevels, int[] brightnessLevelsBacklight, in createResources() argument
395 int[] luxLevelsResource = Arrays.copyOfRange(luxLevels, 1, luxLevels.length); in createResources()