Home
last modified time | relevance | path

Searched refs:luminance (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/color/
DGlobalSaturationTintController.java58 float[] luminance = {0.231f * desaturation, 0.715f * desaturation, in setMatrix() local
60 mMatrixGlobalSaturation[0] = luminance[0] + saturation; in setMatrix()
61 mMatrixGlobalSaturation[1] = luminance[0]; in setMatrix()
62 mMatrixGlobalSaturation[2] = luminance[0]; in setMatrix()
63 mMatrixGlobalSaturation[4] = luminance[1]; in setMatrix()
64 mMatrixGlobalSaturation[5] = luminance[1] + saturation; in setMatrix()
65 mMatrixGlobalSaturation[6] = luminance[1]; in setMatrix()
66 mMatrixGlobalSaturation[8] = luminance[2]; in setMatrix()
67 mMatrixGlobalSaturation[9] = luminance[2]; in setMatrix()
68 mMatrixGlobalSaturation[10] = luminance[2] + saturation; in setMatrix()
DAppSaturationController.java136 float[] luminance = {0.231f * desaturation, 0.715f * desaturation, in computeGrayscaleTransformMatrix() local
138 matrix[0] = luminance[0] + saturation; in computeGrayscaleTransformMatrix()
139 matrix[1] = luminance[0]; in computeGrayscaleTransformMatrix()
140 matrix[2] = luminance[0]; in computeGrayscaleTransformMatrix()
141 matrix[3] = luminance[1]; in computeGrayscaleTransformMatrix()
142 matrix[4] = luminance[1] + saturation; in computeGrayscaleTransformMatrix()
143 matrix[5] = luminance[1]; in computeGrayscaleTransformMatrix()
144 matrix[6] = luminance[2]; in computeGrayscaleTransformMatrix()
145 matrix[7] = luminance[2]; in computeGrayscaleTransformMatrix()
146 matrix[8] = luminance[2] + saturation; in computeGrayscaleTransformMatrix()
/frameworks/base/packages/SystemUI/res/raw/
Dimage_wallpaper_fragment_shader.glsl6 // The 85th percenile for the luminance histogram of the image (a value between 0 and 1).
18 * Calculates the relative luminance of the pixel.
26 // Getting the luminance for this pixel
30 * while the reveal > per85, it shows the luminance image (B&W image)
42 * - from reveal=1 to reveal=per85 => lower=per85, diffuse=luminance
47 * - from reveal=per85 to reveal=0 => lower=reveal, 'diffuse' changes from luminance to color
/frameworks/av/cmds/stagefright/filters/
Dnightvision.rscript24 // calculates luminance of pixel, then biases color balance toward green
/frameworks/base/core/java/android/app/
DWallpaperColors.java391 final float luminance = tmpHsl[2]; in calculateDarkHints() local
403 totalLuminance += luminance; in calculateDarkHints()
/frameworks/base/graphics/java/android/graphics/
DColor.java627 public float luminance() { in luminance() method in Color
1216 public static float luminance(@ColorLong long color) { in luminance() method in Color
1353 public static float luminance(@ColorInt int color) { in luminance() method in Color
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLayout.java334 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor() local
338 shift += Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - luminance, 0); in findColor()
339 shift -= Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - (1.0f - luminance), 0); in findColor()
/frameworks/rs/
DrsFont.cpp796 const float luminance = (r * 2.0f + g * 5.0f + b) / 8.0f; in setFontColor() local
797 if (luminance <= mBlackThreshold) { in setFontColor()
799 } else if (luminance >= mWhiteThreshold) { in setFontColor()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp5149 float3 luminance{0.213f, 0.715f, 0.072f}; in updateColorMatrixLocked() local
5150 luminance *= 1.0f - mGlobalSaturationFactor; in updateColorMatrixLocked()
5152 vec4{luminance.r + mGlobalSaturationFactor, luminance.r, luminance.r, 0.0f}, in updateColorMatrixLocked()
5153 vec4{luminance.g, luminance.g + mGlobalSaturationFactor, luminance.g, 0.0f}, in updateColorMatrixLocked()
5154 vec4{luminance.b, luminance.b, luminance.b + mGlobalSaturationFactor, 0.0f}, in updateColorMatrixLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java470 Color.luminance(textColor) < 0.5 ? R.color.dark_mode_icon_color_single_tone : in updateIconsAndTextColors()
/frameworks/native/services/surfaceflinger/sysprop/
DSurfaceFlingerProperties.sysprop102 # 2. has high luminance capability, typically 540 nits or higher at 10% OPR
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DRecentsView.java201 boolean usingDarkText = Color.luminance(textColor) < 0.5f; in reevaluateStyles()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java2181 if (Color.luminance(value.data) < 0.5) { in setDecorCaptionShade()
/frameworks/wilhelm/doc/
DDoxyfile829 # the luminance component of the colors in the HTML output. Values below
/frameworks/native/docs/
DDoxyfile998 # the luminance component of the colors in the HTML output. Values below
/frameworks/av/media/libaaudio/
DDoxyfile1112 # luminance component of the colors in the HTML output. Values below 100
DDoxyfile.orig1103 # luminance component of the colors in the HTML output. Values below 100
/frameworks/av/media/codec2/docs/
Ddoxygen.config1177 # luminance component of the colors in the HTML output. Values below 100
/frameworks/base/media/native/midi/include/
DDoxyfile.orig1227 # luminance component of the colors in the HTML output. Values below 100
DDoxyfile1227 # luminance component of the colors in the HTML output. Values below 100
/frameworks/base/non-updatable-api/
Dcurrent.txt13951 method public float luminance();
13952 method public static float luminance(@ColorLong long);
13953 method public static float luminance(@ColorInt int);
/frameworks/base/api/
Dcurrent.txt13951 method public float luminance();
13952 method public static float luminance(@ColorLong long);
13953 method public static float luminance(@ColorInt int);
/frameworks/base/config/
Dboot-image-profile.txt41573 HSPLandroid/graphics/Color;->luminance(I)F