Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/display/color/
H A 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()
H A 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()
/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
H A DSystemUiController.kt30 import androidx.compose.ui.graphics.luminance
89 darkIcons: Boolean = color.luminance() > 0.5f,
111 darkIcons: Boolean = color.luminance() > 0.5f,
124 darkIcons: Boolean = color.luminance() > 0.5f,
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DPeopleHelper.java133 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor() local
137 shift += Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - luminance, 0); in findColor()
138 shift -= Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - (1.0f - luminance), 0); in findColor()
H A DMessagingLayout.java365 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor() local
369 shift += Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - luminance, 0); in findColor()
370 shift -= Math.max(COLOR_SHIFT_AMOUNT / 2.0f / 100 - (1.0f - luminance), 0); in findColor()
/aosp14/frameworks/base/services/core/java/com/android/server/display/whitebalance/
H A DDisplayWhiteBalanceController.java515 float luminance = mColorDisplayServiceInternal.getDisplayWhiteBalanceLuminance(); in calculateAdjustedBrightnessNits() local
516 if (luminance == -1) { in calculateAdjustedBrightnessNits()
519 float effectiveBrightness = requestedBrightnessNits * luminance; in calculateAdjustedBrightnessNits()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
H A DDesktopModeWindowDecorationViewHolder.kt32 Color.valueOf(taskDescription.statusBarColor).luminance() < 0.5
/aosp14/frameworks/base/config/
H A Dboot-image-profile-extra.txt21 HSPLandroid/graphics/Color;->luminance()F
H A Dboot-image-profile.txt6240 HSPLandroid/graphics/Color;->luminance()F
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DColor.java626 public float luminance() { in luminance() method in Color
1215 public static float luminance(@ColorLong long color) { in luminance() method in Color
1352 public static float luminance(@ColorInt int color) { in luminance() method in Color
/aosp14/frameworks/base/core/java/android/app/
H A DWallpaperColors.java273 final float luminance = tmpHsl[2]; in WallpaperColors() local
274 if (luminance < DARK_THEME_MEAN_LUMINANCE) { in WallpaperColors()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DCaptionWindowDecoration.java191 Color.valueOf(captionColor).luminance() < 0.5 in setCaptionColor()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
H A DBubbleBarExpandedView.java352 final boolean isRegionDark = Color.luminance(color) <= 0.5; in updateHandleColor()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardStatusBarView.java433 Color.luminance(textColor) < 0.5 ? R.color.dark_mode_icon_color_single_tone : in updateIconsAndTextColors()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
H A DSplashscreenContentDrawer.java746 final float lumA = Color.luminance(a); in isRgbSimilarInHsv()
747 final float lumB = Color.luminance(b); in isRgbSimilarInHsv()
/aosp14/frameworks/base/media/native/midi/include/
H A DDoxyfile1227 # luminance component of the colors in the HTML output. Values below 100
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt15313 method public float luminance();
15314 method public static float luminance(@ColorLong long);
15315 method public static float luminance(@ColorInt int);
/aosp14/frameworks/base/boot/
H A Dboot-image-profile.txt6237 HSPLandroid/graphics/Color;->luminance()F