Home
last modified time | relevance | path

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

12

/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.java138 float[] luminance = {0.231f * desaturation, 0.715f * desaturation, in computeGrayscaleTransformMatrix() local
140 matrix[0] = luminance[0] + saturation; in computeGrayscaleTransformMatrix()
141 matrix[1] = luminance[0]; in computeGrayscaleTransformMatrix()
142 matrix[2] = luminance[0]; in computeGrayscaleTransformMatrix()
143 matrix[3] = luminance[1]; in computeGrayscaleTransformMatrix()
144 matrix[4] = luminance[1] + saturation; in computeGrayscaleTransformMatrix()
145 matrix[5] = luminance[1]; in computeGrayscaleTransformMatrix()
146 matrix[6] = luminance[2]; in computeGrayscaleTransformMatrix()
147 matrix[7] = luminance[2]; in computeGrayscaleTransformMatrix()
148 matrix[8] = luminance[2] + saturation; in computeGrayscaleTransformMatrix()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
DSystemUiController.kt30 import androidx.compose.ui.graphics.luminance in <lambda>()
89 darkIcons: Boolean = color.luminance() > 0.5f, in <lambda>()
111 darkIcons: Boolean = color.luminance() > 0.5f, in <lambda>()
124 darkIcons: Boolean = color.luminance() > 0.5f, in <lambda>()
/frameworks/base/core/java/com/android/internal/widget/
DPeopleHelper.java135 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor() local
139 shift += Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - luminance, 0); in findColor()
140 shift -= Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - (1.0f - luminance), 0); in findColor()
DMessagingLayout.java402 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor() local
406 shift += Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - luminance, 0); in findColor()
407 shift -= Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - (1.0f - luminance), 0); in findColor()
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceController.java607 float luminance = mColorDisplayServiceInternal.getDisplayWhiteBalanceLuminance(); in calculateAdjustedBrightnessNits() local
608 if (luminance == -1) { in calculateAdjustedBrightnessNits()
611 float effectiveBrightness = requestedBrightnessNits * luminance; in calculateAdjustedBrightnessNits()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java455 float luminance = Color.luminance(textColor); in updateIconsAndTextColors() local
457 luminance < 0.5 in updateIconsAndTextColors()
460 @ColorInt int contrastColor = luminance < 0.5 in updateIconsAndTextColors()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/common/
DThemeUtils.kt79 return if (Color.valueOf(backgroundColor).luminance() < 0.5) { in isLight()
/frameworks/base/config/
Dboot-image-profile-extra.txt21 HSPLandroid/graphics/Color;->luminance()F
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
DAppHandleViewHolder.kt81 Color.valueOf(taskDescription.statusBarColor).luminance() < 0.5 in <lambda>()
/frameworks/base/libs/hwui/aconfig/
Dhwui_flags.aconfig31 …description: "Use luminance to determine how to make text more high contrast, instead of RGB heuri…
/frameworks/base/graphics/java/android/graphics/
DColor.java629 public float luminance() { in luminance() method in Color
1218 public static float luminance(@ColorLong long color) { in luminance() method in Color
1355 public static float luminance(@ColorInt int color) { in luminance() method in Color
/frameworks/base/core/java/android/app/
DWallpaperColors.java273 final float luminance = tmpHsl[2]; in WallpaperColors() local
274 if (luminance < DARK_THEME_MEAN_LUMINANCE) { in WallpaperColors()
/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/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DCaptionWindowDecoration.java271 Color.valueOf(captionColor).luminance() < 0.5 in setCaptionColor()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarExpandedView.java388 final boolean isRegionDark = Color.luminance(color) <= 0.5; in updateHandleColor()
/frameworks/native/services/surfaceflinger/tests/
DScreenCapture_test.cpp963 float3 luminance{0.213f, 0.715f, 0.072f}; in TEST_F() local
967 uint8_t expectedColor = luminance.r * 255; in TEST_F()
974 expectedColor = luminance.b * 255; in TEST_F()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenContentDrawer.java753 final float lumA = Color.luminance(a); in isRgbSimilarInHsv()
754 final float lumB = Color.luminance(b); in isRgbSimilarInHsv()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp7014 float3 luminance{0.213f, 0.715f, 0.072f}; in calculateColorMatrix() local
7015 luminance *= 1.0f - saturation; in calculateColorMatrix()
7016 mat4 saturationMatrix = mat4(vec4{luminance.r + saturation, luminance.r, luminance.r, 0.0f}, in calculateColorMatrix()
7017 vec4{luminance.g, luminance.g + saturation, luminance.g, 0.0f}, in calculateColorMatrix()
7018 vec4{luminance.b, luminance.b, luminance.b + saturation, 0.0f}, in calculateColorMatrix()
/frameworks/native/services/surfaceflinger/sysprop/
DSurfaceFlingerProperties.sysprop122 # 2. has high luminance capability, typically 540 nits or higher at 10% OPR
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java946 final boolean lightBar = Color.valueOf(color).luminance() > 0.5f;
/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
/frameworks/av/media/codec2/docs/
Ddoxygen.config1177 # luminance component of the colors in the HTML output. Values below 100

12