Home
last modified time | relevance | path

Searched refs:cct (Results 1 – 6 of 6) 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.java1204 public void setMatrix(int cct) { in setMatrix() argument
1212 final float squareTemperature = cct * cct; in setMatrix()
1214 + cct * mColorTempCoefficients[1] + mColorTempCoefficients[2]; in setMatrix()
1216 + cct * mColorTempCoefficients[4] + mColorTempCoefficients[5]; in setMatrix()
1218 + cct * mColorTempCoefficients[7] + mColorTempCoefficients[8]; in setMatrix()
1357 public boolean setDisplayWhiteBalanceColorTemperature(int cct) { in setDisplayWhiteBalanceColorTemperature() argument
1359 mDisplayWhiteBalanceTintController.setMatrix(cct); in setDisplayWhiteBalanceColorTemperature()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerShellCommand.java124 float cct; in setAmbientColorTemperatureOverride() local
126 cct = Float.parseFloat(cctText); in setAmbientColorTemperatureOverride()
131 mService.setAmbientColorTemperatureOverride(cct); in setAmbientColorTemperatureOverride()
DDisplayPowerController.java1985 void setAmbientColorTemperatureOverride(float cct) { in setAmbientColorTemperatureOverride() argument
1987 mDisplayWhiteBalanceController.setAmbientColorTemperatureOverride(cct); in setAmbientColorTemperatureOverride()
DDisplayManagerService.java2279 void setAmbientColorTemperatureOverride(float cct) { in setAmbientColorTemperatureOverride() argument
2282 mDisplayPowerController.setAmbientColorTemperatureOverride(cct); in setAmbientColorTemperatureOverride()
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java1829 public static float[] cctToXyz(@IntRange(from = 1) int cct) { in cctToXyz()
1830 if (cct < 1) { in cctToXyz()
1834 final float icct = 1e3f / cct; in cctToXyz()
1836 final float x = cct <= 4000.0f ? in cctToXyz()
1841 final float y = cct <= 2222.0f ? in cctToXyz()
1843 cct <= 4000.0f ? in cctToXyz()
1868 public static float[] cctToIlluminantdXyz(@IntRange(from = 1) int cct) { in cctToIlluminantdXyz()
1869 if (cct < 1) { in cctToIlluminantdXyz()
1873 final float icct = 1.0f / cct; in cctToIlluminantdXyz()
1875 final float x = cct <= 7000.0f ? in cctToIlluminantdXyz()