Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java64 private float[] mTmpHSL = new float[3]; field in Tonal
198 ColorUtils.colorToHSL(mainColor, mTmpHSL); in runTonalExtraction()
199 final float mainLuminosity = mTmpHSL[2]; in runTonalExtraction()
200 ColorUtils.colorToHSL(THRESHOLD_COLOR_LIGHT, mTmpHSL); in runTonalExtraction()
201 final float lightLuminosity = mTmpHSL[2]; in runTonalExtraction()
205 ColorUtils.colorToHSL(THRESHOLD_COLOR_DARK, mTmpHSL); in runTonalExtraction()
206 final float darkLuminosity = mTmpHSL[2]; in runTonalExtraction()
280 mTmpHSL[0] = fract(h[fitIndex]) * 360.0f; in getColorInt()
281 mTmpHSL[1] = s[fitIndex]; in getColorInt()
282 mTmpHSL[2] = l[fitIndex]; in getColorInt()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewHeader.java103 ColorUtils.colorToHSL(color, mTmpHSL); in setColorAndDim()
105 mTmpHSL[2] = Math.min(1f, in setColorAndDim()
106 mTmpHSL[2] + HIGHLIGHT_LIGHTNESS_INCREMENT * (1.0f - dimAlpha)); in setColorAndDim()
107 mHighlightPaint.setColor(ColorUtils.HSLToColor(mTmpHSL)); in setColorAndDim()
184 private float[] mTmpHSL = new float[3]; field in TaskViewHeader
432 ColorUtils.colorToHSL(color, mTmpHSL); in updateBackgroundColor()
433 mTmpHSL[2] = Math.min(1f, mTmpHSL[2] + OVERLAY_LIGHTNESS_INCREMENT * (1.0f - dimAlpha)); in updateBackgroundColor()
434 mOverlayBackground.setColorAndDim(ColorUtils.HSLToColor(mTmpHSL), dimAlpha); in updateBackgroundColor()