Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java94 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length + 1); in testCurveMustNotHaveArraysOfDifferentLengths()
95 nits[nits.length - 1] = nits[nits.length - 2] + 1; in testCurveMustNotHaveArraysOfDifferentLengths()
96 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurveMustNotHaveArraysOfDifferentLengths()
109 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testCurvesMustNotContainNaN()
110 nits[nits.length - 1] = Float.NaN; in testCurvesMustNotContainNaN()
111 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurvesMustNotContainNaN()
212 float[] nits = Arrays.copyOf(NITS_LEVELS, NITS_LEVELS.length); in testEquals() local
213 nits[nits.length - 1] = nits[nits.length - 1] * 2; in testEquals()
214 builder = new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testEquals()
/frameworks/base/core/java/android/hardware/display/
DBrightnessConfiguration.java79 private BrightnessConfiguration(float[] lux, float[] nits, in BrightnessConfiguration() argument
87 mNits = nits; in BrightnessConfiguration()
304 float[] nits = in.createFloatArray();
305 Builder builder = new Builder(lux, nits);
431 final float nits = loadFloatFromXml(parser, ATTR_NITS); in loadFromXml() local
433 nitsList.add(nits); in loadFromXml()
463 float[] nits = new float[n]; in loadFromXml() local
466 nits[i] = nitsList.get(i); in loadFromXml()
469 nits); in loadFromXml()
528 public Builder(float[] lux, float[] nits) { in Builder() argument
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java330 public abstract float convertToFloatScale(float nits); in convertToFloatScale() argument
682 public float convertToFloatScale(float nits) { in convertToFloatScale() argument
818 public PhysicalMappingStrategy(BrightnessConfiguration config, float[] nits, in PhysicalMappingStrategy() argument
822 Preconditions.checkArgument(nits.length != 0 && brightness.length != 0, in PhysicalMappingStrategy()
825 Preconditions.checkArgument(nits.length == brightness.length, in PhysicalMappingStrategy()
828 Preconditions.checkArrayElementsInRange(nits, 0, Float.MAX_VALUE, "nits"); in PhysicalMappingStrategy()
839 mNits = nits; in PhysicalMappingStrategy()
884 float nits = mBrightnessSpline.interpolate(lux); in getBrightness() local
888 nits = mDisplayWhiteBalanceController.calculateAdjustedBrightnessNits(nits); in getBrightness()
891 float brightness = mNitsToBrightnessSpline.interpolate(nits); in getBrightness()
[all …]
DBrightnessSetting.java133 void setBrightnessNitsForDefaultDisplay(float nits) { in setBrightnessNitsForDefaultDisplay() argument
134 mPersistentDataStore.setBrightnessNitsForDefaultDisplay(nits); in setBrightnessNitsForDefaultDisplay()
DDisplayDeviceConfig.java842 float nits = getNitsFromBacklight(backlight); in getHdrBrightnessFromSdr() local
843 if (nits == NITS_INVALID) { in getHdrBrightnessFromSdr()
847 float ratio = mSdrToHdrRatioSpline.interpolate(nits); in getHdrBrightnessFromSdr()
848 float hdrNits = nits * ratio; in getHdrBrightnessFromSdr()
860 + " nits " + nits in getHdrBrightnessFromSdr()
1711 float[] nits = new float[size]; in loadBrightnessMap() local
1717 nits[i] = point.getNits().floatValue(); in loadBrightnessMap()
1720 if (nits[i] < nits[i - 1]) { in loadBrightnessMap()
1722 + " of configuration. Nits: " + nits[i] + " < " + nits[i - 1]); in loadBrightnessMap()
1735 mRawNits = nits; in loadBrightnessMap()
[all …]
DPersistentDataStore.java325 public boolean setBrightnessNitsForDefaultDisplay(float nits) { in setBrightnessNitsForDefaultDisplay() argument
326 if (nits != mBrightnessNitsForDefaultDisplay) { in setBrightnessNitsForDefaultDisplay()
327 mBrightnessNitsForDefaultDisplay = nits; in setBrightnessNitsForDefaultDisplay()
DLocalDisplayAdapter.java875 final float nits = backlightToNits(backlight); in requestDisplayStateLocked() local
878 mBacklightAdapter.setBacklight(sdrBacklight, sdrNits, backlight, nits); in requestDisplayStateLocked()
1498 void setBacklight(float sdrBacklight, float sdrNits, float backlight, float nits) {
1505 backlight, nits);
DDisplayPowerController.java2540 float nits = convertToNits(brightnessValue);
2541 if (nits >= 0) {
2542 mBrightnessSetting.setBrightnessNitsForDefaultDisplay(nits);
2636 private float convertToFloatScale(float nits) {
2640 return mAutomaticBrightnessController.convertToFloatScale(nits);
DAutomaticBrightnessController.java1130 public float convertToFloatScale(float nits) {
1132 return mCurrentBrightnessMapper.convertToFloatScale(nits);
DDisplayManagerService.java507 float[] nits = getFloatArray(resources.obtainTypedArray( in DisplayManagerService() local
509 mMinimumBrightnessCurve = new Curve(lux, nits); in DisplayManagerService()
510 mMinimumBrightnessSpline = Spline.createSpline(lux, nits); in DisplayManagerService()
1955 float[] nits = curve.second;
1957 if (nits[i] < mMinimumBrightnessSpline.interpolate(lux[i])) {
/frameworks/native/libs/tonemap/
Dtonemap.cpp439 double OETF_ST2084(double nits) { in OETF_ST2084() argument
440 nits = nits / 10000.0; in OETF_ST2084()
447 double tmp = std::pow(nits, m1); in OETF_ST2084()
452 double OETF_HLG(double nits) { in OETF_HLG() argument
453 nits = nits / 1000.0; in OETF_HLG()
457 return nits <= 1.0 / 12.0 ? std::sqrt(3.0 * nits) : a * std::log(12.0 * nits - b) + c; in OETF_HLG()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java194 final float[] nits = { 0, PowerManager.BRIGHTNESS_ON }; in testSimpleStrategyIgnoresNewConfiguration() local
196 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testSimpleStrategyIgnoresNewConfiguration()
247 final float nits = brightnessToNits.interpolate(brightness); in testPhysicalStrategyMappingBetweenControlPoints() local
248 assertTrue("Desired brightness should be between adjacent control points: " + nits, in testPhysicalStrategyMappingBetweenControlPoints()
249 nits > DISPLAY_LEVELS_NITS[i - 1] && nits < DISPLAY_LEVELS_NITS[i]); in testPhysicalStrategyMappingBetweenControlPoints()
261 final float[] nits = { in testPhysicalStrategyUsesNewConfigurations() local
266 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testPhysicalStrategyUsesNewConfigurations()
369 final float[] nits = Arrays.copyOf(DISPLAY_RANGE_NITS, DISPLAY_LEVELS_NITS.length + 1); in testDifferentNumberOfControlPointValuesFails() local
370 nits[nits.length - 1] = nits[nits.length - 2] + 1; in testDifferentNumberOfControlPointValuesFails()
373 DISPLAY_LEVELS_RANGE_BACKLIGHT_FLOAT, LUX_LEVELS, nits); in testDifferentNumberOfControlPointValuesFails()
DPersistentDataStoreTest.java160 final float[] nits = {1f, 100f }; in testStoreAndReloadOfDisplayBrightnessConfigurations() local
161 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testStoreAndReloadOfDisplayBrightnessConfigurations()
206 final float[] nits = {1f, 100f }; in testSetBrightnessConfigurationFailsWithUnstableId() local
207 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testSetBrightnessConfigurationFailsWithUnstableId()
233 final float[] nits = {1f, 100f }; in testStoreAndReloadOfBrightnessConfigurations() local
234 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testStoreAndReloadOfBrightnessConfigurations()
263 final float[] nits = {1f, 100f }; in testNullBrightnessConfiguration() local
265 final BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits) in testNullBrightnessConfiguration()
DDisplayManagerServiceTest.java513 float[] nits = new float[minimumNits.length]; in testTooDarkBrightnessConfigurationThrowException() local
516 for (int i = 0; i < nits.length; i++) { in testTooDarkBrightnessConfigurationThrowException()
517 for (int j = 0; j < nits.length; j++) { in testTooDarkBrightnessConfigurationThrowException()
518 nits[j] = minimumNits[j]; in testTooDarkBrightnessConfigurationThrowException()
520 nits[j] -= 0.1f; in testTooDarkBrightnessConfigurationThrowException()
522 if (nits[j] < 0) { in testTooDarkBrightnessConfigurationThrowException()
523 nits[j] = 0; in testTooDarkBrightnessConfigurationThrowException()
527 new BrightnessConfiguration.Builder(lux, nits).build(); in testTooDarkBrightnessConfigurationThrowException()
547 float[] nits = minimumBrightnessCurve.getY(); in testBrightEnoughBrightnessConfigurationDoesNotThrowException() local
548 BrightnessConfiguration config = new BrightnessConfiguration.Builder(lux, nits).build(); in testBrightEnoughBrightnessConfigurationDoesNotThrowException()
/frameworks/base/services/core/java/com/android/server/display/color/
DReduceBrightColorsTintController.java122 public float getAdjustedBrightness(float nits) { in getAdjustedBrightness() argument
123 return computeComponentValue(mStrength) * nits; in getAdjustedBrightness()
DColorDisplayService.java1530 public float getReduceBrightColorsAdjustedBrightnessNits(float nits) { in getReduceBrightColorsAdjustedBrightnessNits() argument
1531 return mReduceBrightColorsTintController.getAdjustedBrightness(nits); in getReduceBrightColorsAdjustedBrightnessNits()
/frameworks/native/services/surfaceflinger/sysprop/
DSurfaceFlingerProperties.sysprop122 # 2. has high luminance capability, typically 540 nits or higher at 10% OPR
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp3775 auto withDisplayBrightnessNits(float nits) { in withDisplayBrightnessNits()
3776 getInstance()->mOutput.mState.displayBrightnessNits = nits; in withDisplayBrightnessNits()
/frameworks/proto_logging/stats/
Datoms.proto21948 // Display brightness before the brightness event, in nits.
21951 // Display brightness after the brightness event, in nits.
21973 // Max nits value when High Brightness Mode (HBM) is enabled.
22038 * screen brightness (nits).
22046 // Array of screen brightness values (in nits) corresponding to the lux
22048 repeated float nits = 2; field