Home
last modified time | relevance | path

Searched refs:cct (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayWhiteBalanceTintController.java135 public void setMatrix(int cct) { in setMatrix() argument
142 if (cct < mTemperatureMin) { in setMatrix()
145 cct = mTemperatureMin; in setMatrix()
146 } else if (cct > mTemperatureMax) { in setMatrix()
149 cct = mTemperatureMax; in setMatrix()
153 mCurrentColorTemperature = cct; in setMatrix()
156 mCurrentColorTemperatureXYZ = ColorSpace.cctToXyz(cct); in setMatrix()
187 Slog.d(ColorDisplayService.TAG, "setDisplayWhiteBalanceTemperatureMatrix: cct = " + cct in setMatrix()
DColorDisplayService.java1208 public void setMatrix(int cct) { in setMatrix() argument
1216 final float squareTemperature = cct * cct; in setMatrix()
1218 + cct * mColorTempCoefficients[1] + mColorTempCoefficients[2]; in setMatrix()
1220 + cct * mColorTempCoefficients[4] + mColorTempCoefficients[5]; in setMatrix()
1222 + cct * mColorTempCoefficients[7] + mColorTempCoefficients[8]; in setMatrix()
1361 public boolean setDisplayWhiteBalanceColorTemperature(int cct) { in setDisplayWhiteBalanceColorTemperature() argument
1363 mDisplayWhiteBalanceTintController.setMatrix(cct); in setDisplayWhiteBalanceColorTemperature()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerShellCommand.java141 float cct; in setAmbientColorTemperatureOverride() local
143 cct = Float.parseFloat(cctText); in setAmbientColorTemperatureOverride()
148 mService.setAmbientColorTemperatureOverride(cct); in setAmbientColorTemperatureOverride()
DDisplayPowerController.java2031 void setAmbientColorTemperatureOverride(float cct) { in setAmbientColorTemperatureOverride() argument
2033 mDisplayWhiteBalanceController.setAmbientColorTemperatureOverride(cct); in setAmbientColorTemperatureOverride()
DDisplayManagerService.java1486 void setAmbientColorTemperatureOverride(float cct) { in setAmbientColorTemperatureOverride() argument
1489 mDisplayPowerController.setAmbientColorTemperatureOverride(cct); in setAmbientColorTemperatureOverride()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/color/
DDisplayWhiteBalanceTintControllerTest.java219 final int cct = 6500; in displayWhiteBalance_validateTransformMatrix() local
220 mDisplayWhiteBalanceTintController.setMatrix(cct); in displayWhiteBalance_validateTransformMatrix()
223 .isEqualTo(cct); in displayWhiteBalance_validateTransformMatrix()
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java1842 public static float[] cctToXyz(@IntRange(from = 1) int cct) { in cctToXyz()
1843 if (cct < 1) { in cctToXyz()
1847 final float icct = 1e3f / cct; in cctToXyz()
1849 final float x = cct <= 4000.0f ? in cctToXyz()
1854 final float y = cct <= 2222.0f ? in cctToXyz()
1856 cct <= 4000.0f ? in cctToXyz()
1881 public static float[] cctToIlluminantdXyz(@IntRange(from = 1) int cct) { in cctToIlluminantdXyz()
1882 if (cct < 1) { in cctToIlluminantdXyz()
1886 final float icct = 1.0f / cct; in cctToIlluminantdXyz()
1888 final float x = cct <= 7000.0f ? in cctToIlluminantdXyz()