Home
last modified time | relevance | path

Searched refs:nits (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java86 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
87 nits[nits.length - 1] = nits[nits.length - 2] + 1; in testCurveMustNotHaveArraysOfDifferentLengths()
88 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurveMustNotHaveArraysOfDifferentLengths()
101 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testCurvesMustNotContainNaN()
102 nits[nits.length - 1] = Float.NaN; in testCurvesMustNotContainNaN()
103 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurvesMustNotContainNaN()
139 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testEquals() local
140 nits[nits.length - 1] = nits[nits.length - 1] * 2; in testEquals()
141 builder = new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testEquals()
/frameworks/base/core/java/android/hardware/display/
DBrightnessConfiguration.java64 private BrightnessConfiguration(float[] lux, float[] nits, in BrightnessConfiguration() argument
68 mNits = nits; in BrightnessConfiguration()
205 float[] nits = in.createFloatArray();
206 Builder builder = new Builder(lux, nits);
305 final float nits = loadFloatFromXml(parser, ATTR_NITS); in loadFromXml() local
307 nitsList.add(nits); in loadFromXml()
334 float[] nits = new float[n]; in loadFromXml() local
337 nits[i] = nitsList.get(i); in loadFromXml()
340 nits); in loadFromXml()
388 public Builder(float[] lux, float[] nits) { in Builder() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java153 final float[] nits = { 0, PowerManager.BRIGHTNESS_ON }; in testSimpleStrategyIgnoresNewConfiguration() local
155 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testSimpleStrategyIgnoresNewConfiguration()
198 final float nits = backlightToBrightness.interpolate(backlight); in testPhysicalStrategyMappingBetweenControlPoints() local
200 nits > DISPLAY_LEVELS_NITS[i - 1] && nits < DISPLAY_LEVELS_NITS[i]); in testPhysicalStrategyMappingBetweenControlPoints()
211 final float[] nits = { in testPhysicalStrategyUsesNewConfigurations() local
216 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testPhysicalStrategyUsesNewConfigurations()
281 final float[] nits = Arrays.copyOf(DISPLAY_RANGE_NITS, DISPLAY_LEVELS_NITS.length+1); in testDifferentNumberOfControlPointValuesFails() local
282 nits[nits.length - 1] = nits[nits.length - 2] + 1; in testDifferentNumberOfControlPointValuesFails()
283 res = createResources(LUX_LEVELS, nits, DISPLAY_RANGE_NITS, BACKLIGHT_RANGE); in testDifferentNumberOfControlPointValuesFails()
DDisplayManagerServiceTest.java326 float[] nits = new float[minimumNits.length]; in testTooDarkBrightnessConfigurationThrowException() local
329 for (int i = 0; i < nits.length; i++) { in testTooDarkBrightnessConfigurationThrowException()
330 for (int j = 0; j < nits.length; j++) { in testTooDarkBrightnessConfigurationThrowException()
331 nits[j] = minimumNits[j]; in testTooDarkBrightnessConfigurationThrowException()
333 nits[j] -= 0.1f; in testTooDarkBrightnessConfigurationThrowException()
335 if (nits[j] < 0) { in testTooDarkBrightnessConfigurationThrowException()
336 nits[j] = 0; in testTooDarkBrightnessConfigurationThrowException()
340 new BrightnessConfiguration.Builder(lux, nits).build(); in testTooDarkBrightnessConfigurationThrowException()
360 float[] nits = minimumBrightnessCurve.getY(); in testBrightEnoughBrightnessConfigurationDoesNotThrowException() local
361 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits).build(); in testBrightEnoughBrightnessConfigurationDoesNotThrowException()
DPersistentDataStoreTest.java149 final float[] nits = {1f, 100f }; in testStoreAndReloadOfBrightnessConfigurations() local
150 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testStoreAndReloadOfBrightnessConfigurations()
175 final float[] nits = {1f, 100f }; in testNullBrightnessConfiguration() local
176 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testNullBrightnessConfiguration()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java628 public PhysicalMappingStrategy(BrightnessConfiguration config, float[] nits, in PhysicalMappingStrategy() argument
630 Preconditions.checkArgument(nits.length != 0 && backlight.length != 0, in PhysicalMappingStrategy()
632 Preconditions.checkArgument(nits.length == backlight.length, in PhysicalMappingStrategy()
635 Preconditions.checkArrayElementsInRange(nits, 0, Float.MAX_VALUE, "nits"); in PhysicalMappingStrategy()
645 final int N = nits.length; in PhysicalMappingStrategy()
651 mNitsToBacklightSpline = Spline.createSpline(nits, normalizedBacklight); in PhysicalMappingStrategy()
652 mBacklightToNitsSpline = Spline.createSpline(normalizedBacklight, nits); in PhysicalMappingStrategy()
681 float nits = mBrightnessSpline.interpolate(lux); in getBrightness() local
682 float backlight = mNitsToBacklightSpline.interpolate(nits); in getBrightness()
796 float[] nits = new float[backlight.length]; in computeSpline() local
[all …]
DDisplayManagerService.java326 float[] nits = getFloatArray(resources.obtainTypedArray( in DisplayManagerService() local
328 mMinimumBrightnessCurve = new Curve(lux, nits); in DisplayManagerService()
329 mMinimumBrightnessSpline = Spline.createSpline(lux, nits); in DisplayManagerService()
1132 float[] nits = curve.second; in isBrightnessConfigurationTooDark() local
1134 if (nits[i] < mMinimumBrightnessSpline.interpolate(lux[i])) { in isBrightnessConfigurationTooDark()
/frameworks/native/services/surfaceflinger/sysprop/
DSurfaceFlingerProperties.sysprop102 # 2. has high luminance capability, typically 540 nits or higher at 10% OPR