Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/app/
DNightDisplayController.java261 int colorTemperature = Secure.getIntForUser(mContext.getContentResolver(), in getColorTemperature() local
263 if (colorTemperature == -1) { in getColorTemperature()
268 colorTemperature = getDefaultColorTemperature(); in getColorTemperature()
272 if (colorTemperature < minimumTemperature) { in getColorTemperature()
273 colorTemperature = minimumTemperature; in getColorTemperature()
274 } else if (colorTemperature > maximumTemperature) { in getColorTemperature()
275 colorTemperature = maximumTemperature; in getColorTemperature()
278 return colorTemperature; in getColorTemperature()
287 public boolean setColorTemperature(int colorTemperature) { in setColorTemperature() argument
289 Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE, colorTemperature, mUserId); in setColorTemperature()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DNightDisplayService.java337 public void onColorTemperatureChanged(int colorTemperature) { in onColorTemperatureChanged() argument
338 setMatrix(colorTemperature, mMatrixNight); in onColorTemperatureChanged()
407 private void setMatrix(int colorTemperature, float[] outTemp) { in setMatrix() argument
415 final float squareTemperature = colorTemperature * colorTemperature; in setMatrix()
417 + colorTemperature * mColorTempCoefficients[3] + mColorTempCoefficients[6]; in setMatrix()
419 + colorTemperature * mColorTempCoefficients[4] + mColorTempCoefficients[7]; in setMatrix()
421 + colorTemperature * mColorTempCoefficients[5] + mColorTempCoefficients[8]; in setMatrix()