Searched refs:colorTemperature (Results 1 – 2 of 2) sorted by relevance
261 int colorTemperature = Secure.getIntForUser(mContext.getContentResolver(), in getColorTemperature() local263 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() argument289 Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE, colorTemperature, mUserId); in setColorTemperature()[all …]
337 public void onColorTemperatureChanged(int colorTemperature) { in onColorTemperatureChanged() argument338 setMatrix(colorTemperature, mMatrixNight); in onColorTemperatureChanged()407 private void setMatrix(int colorTemperature, float[] outTemp) { in setMatrix() argument415 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()