/frameworks/base/services/core/java/com/android/server/display/color/ |
D | GlobalSaturationTintController.java | 58 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()
|
D | AppSaturationController.java | 138 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/ |
D | SystemUiController.kt | 30 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/ |
D | PeopleHelper.java | 135 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()
|
D | MessagingLayout.java | 402 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/ |
D | DisplayWhiteBalanceController.java | 607 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/ |
D | KeyguardStatusBarView.java | 455 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/ |
D | ThemeUtils.kt | 79 return if (Color.valueOf(backgroundColor).luminance() < 0.5) { in isLight()
|
/frameworks/base/config/ |
D | boot-image-profile-extra.txt | 21 HSPLandroid/graphics/Color;->luminance()F
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/ |
D | AppHandleViewHolder.kt | 81 Color.valueOf(taskDescription.statusBarColor).luminance() < 0.5 in <lambda>()
|
/frameworks/base/libs/hwui/aconfig/ |
D | hwui_flags.aconfig | 31 …description: "Use luminance to determine how to make text more high contrast, instead of RGB heuri…
|
/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 629 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/ |
D | WallpaperColors.java | 273 final float luminance = tmpHsl[2]; in WallpaperColors() local 274 if (luminance < DARK_THEME_MEAN_LUMINANCE) { in WallpaperColors()
|
/frameworks/rs/ |
D | rsFont.cpp | 796 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/ |
D | CaptionWindowDecoration.java | 271 Color.valueOf(captionColor).luminance() < 0.5 in setCaptionColor()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleBarExpandedView.java | 388 final boolean isRegionDark = Color.luminance(color) <= 0.5; in updateHandleColor()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | ScreenCapture_test.cpp | 963 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/ |
D | SplashscreenContentDrawer.java | 753 final float lumA = Color.luminance(a); in isRgbSimilarInHsv() 754 final float lumB = Color.luminance(b); in isRgbSimilarInHsv()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.cpp | 7014 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/ |
D | SurfaceFlingerProperties.sysprop | 122 # 2. has high luminance capability, typically 540 nits or higher at 10% OPR
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorView.java | 946 final boolean lightBar = Color.valueOf(color).luminance() > 0.5f;
|
/frameworks/wilhelm/doc/ |
D | Doxyfile | 829 # the luminance component of the colors in the HTML output. Values below
|
/frameworks/native/docs/ |
D | Doxyfile | 998 # the luminance component of the colors in the HTML output. Values below
|
/frameworks/av/media/libaaudio/ |
D | Doxyfile | 1112 # luminance component of the colors in the HTML output. Values below 100
|
/frameworks/av/media/codec2/docs/ |
D | doxygen.config | 1177 # luminance component of the colors in the HTML output. Values below 100
|