Home
last modified time | relevance | path

Searched refs:red (Results 1 – 25 of 170) sorted by relevance

1234567

/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/
DSettingsTonalPalette.kt124 neutral100 = Color(red = 255, green = 255, blue = 255), in tonalPalette()
125 neutral99 = Color(red = 255, green = 251, blue = 254), in tonalPalette()
126 neutral95 = Color(red = 244, green = 239, blue = 244), in tonalPalette()
127 neutral90 = Color(red = 230, green = 225, blue = 229), in tonalPalette()
128 neutral80 = Color(red = 201, green = 197, blue = 202), in tonalPalette()
129 neutral70 = Color(red = 174, green = 170, blue = 174), in tonalPalette()
130 neutral60 = Color(red = 147, green = 144, blue = 148), in tonalPalette()
131 neutral50 = Color(red = 120, green = 117, blue = 121), in tonalPalette()
132 neutral40 = Color(red = 96, green = 93, blue = 98), in tonalPalette()
133 neutral30 = Color(red = 72, green = 70, blue = 73), in tonalPalette()
[all …]
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/theme/
DSettingsColorsTest.kt54 assertThat(ls.background).isEqualTo(Color(red = 244, green = 239, blue = 244)) in testStaticTheme()
55 assertThat(ls.categoryTitle).isEqualTo(Color(red = 103, green = 80, blue = 164)) in testStaticTheme()
56 assertThat(ls.surface).isEqualTo(Color(red = 255, green = 251, blue = 254)) in testStaticTheme()
57 assertThat(ls.surfaceHeader).isEqualTo(Color(red = 230, green = 225, blue = 229)) in testStaticTheme()
58 assertThat(ls.secondaryText).isEqualTo(Color(red = 73, green = 69, blue = 79)) in testStaticTheme()
59 assertThat(ls.primaryContainer).isEqualTo(Color(red = 234, green = 221, blue = 255)) in testStaticTheme()
60 assertThat(ls.onPrimaryContainer).isEqualTo(Color(red = 28, green = 27, blue = 31)) in testStaticTheme()
61 assertThat(ls.spinnerHeaderContainer).isEqualTo(Color(red = 234, green = 221, blue = 255)) in testStaticTheme()
62 assertThat(ls.onSpinnerHeaderContainer).isEqualTo(Color(red = 28, green = 27, blue = 31)) in testStaticTheme()
63 assertThat(ls.spinnerItemContainer).isEqualTo(Color(red = 232, green = 222, blue = 248)) in testStaticTheme()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColor.java500 public float red() { in red() method in Color
721 public static float red(@ColorLong long color) { in red() method in Color
841 float r = red(color); in toArgb()
882 return new Color(red(color), green(color), blue(color), alpha(color), colorSpace(color)); in valueOf()
998 public static long pack(float red, float green, float blue) { in pack() argument
999 return pack(red, green, blue, 1.0f, ColorSpace.get(ColorSpace.Named.SRGB)); in pack()
1015 public static long pack(float red, float green, float blue, float alpha) { in pack() argument
1016 return pack(red, green, blue, alpha, ColorSpace.get(ColorSpace.Named.SRGB)); in pack()
1039 public static long pack(float red, float green, float blue, float alpha, in pack() argument
1044 ((int) (red * 255.0f + 0.5f) << 16) | in pack()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
DDisplayWhiteBalanceTintControllerTest.java178 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithSurfaceControl()
179 displayPrimaries.red.X = 0.412315f; in displayWhiteBalance_setupWithSurfaceControl()
180 displayPrimaries.red.Y = 0.212600f; in displayWhiteBalance_setupWithSurfaceControl()
181 displayPrimaries.red.Z = 0.019327f; in displayWhiteBalance_setupWithSurfaceControl()
210 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithInvalidSurfaceControlData()
272 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_getAndSetMatrix_validateTransformMatrix()
273 displayPrimaries.red.X = 0.412315f; in displayWhiteBalance_getAndSetMatrix_validateTransformMatrix()
274 displayPrimaries.red.Y = 0.212600f; in displayWhiteBalance_getAndSetMatrix_validateTransformMatrix()
275 displayPrimaries.red.Z = 0.019327f; in displayWhiteBalance_getAndSetMatrix_validateTransformMatrix()
321 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_targetApplied_validateTransformMatrix()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_GetDisplayNativePrimariesTest.cpp46 primaries.red.X = startingVal++; in populateDummyDisplayNativePrimaries()
47 primaries.red.Y = startingVal++; in populateDummyDisplayNativePrimaries()
48 primaries.red.Z = startingVal++; in populateDummyDisplayNativePrimaries()
63 EXPECT_EQ(primaries.red.X, startingVal++); in checkDummyDisplayNativePrimaries()
64 EXPECT_EQ(primaries.red.Y, startingVal++); in checkDummyDisplayNativePrimaries()
65 EXPECT_EQ(primaries.red.Z, startingVal++); in checkDummyDisplayNativePrimaries()
/frameworks/base/core/java/android/hardware/camera2/params/
DTonemapCurve.java105 public TonemapCurve(float[] red, float[] green, float[] blue) { in TonemapCurve() argument
108 checkNotNull(red, "red must not be null"); in TonemapCurve()
112 checkArgumentArrayLengthDivisibleBy(red, POINT_SIZE, "red"); in TonemapCurve()
116 checkArgumentArrayLengthNoLessThan(red, MIN_CURVE_LENGTH, "red"); in TonemapCurve()
120 checkArrayElementsInRange(red, LEVEL_BLACK, LEVEL_WHITE, "red"); in TonemapCurve()
124 mRed = Arrays.copyOf(red, red.length); in TonemapCurve()
DRggbChannelVector.java58 public RggbChannelVector(final float red, final float greenEven, final float greenOdd, in RggbChannelVector() argument
60 mRed = checkArgumentFinite(red, "red"); in RggbChannelVector()
/frameworks/rs/toolkit/
DLut.cpp41 LutTask(const uint8_t* input, uint8_t* output, size_t sizeX, size_t sizeY, const uint8_t* red, in LutTask() argument
47 mRedTable{red},
69 const uint8_t* red, const uint8_t* green, const uint8_t* blue, in lut() argument
77 LutTask task(input, output, sizeX, sizeY, red, green, blue, alpha, restriction); in lut()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dpixel_format_f32.rsh7 // 1. Initially, it stores the input color (red, green, blue) and the depth
17 // the color (red, green, blue) of FocusPixel is updated and ready to be used in
21 // the color (red, green, blue) of FocusPixel is *not* changed.
27 float red;
51 float red;
Dlayered_filter_f32_helper.rsh95 result.red += weight * sharp_nbr->red;
107 result.red *= factor;
143 fuzzy.red = result.r * factor;
179 result.red += weight * sharp_nbr->red;
191 result.red *= fac;
201 p->red = 0;
221 p->red = 0;
Dlayered_filter_fast_f32.rscript105 sharp->red = in.r * g_kOneOver255;
109 sharp->red =
110 ApplyLUT_Float(sharp->red, g_camera_response.lut_remove_crf_float);
270 float4 this_value = {weight * sharp->red, weight * sharp->green,
291 float4 this_value = {weight * sharp->red, weight * sharp->green,
386 fuzzy->red += factor * result.red;
432 sharp->red += factor * (fuzzy->red - sharp->red);
436 fuzzy->red = 0;
462 fuzzy->red += sharp->red * capacity;
482 result.r = ApplyLUT_Float(fuzzy->red, g_camera_response.lut_apply_crf_float);
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DMaterial.java102 int[] red = new int[means.length - 1]; in setup() local
112 red[i] = (rgb >> 16) & 0xff; in setup()
129 mMaterialProp[i].mRed = red[i]; in setup()
243 int red = m[0].mRed; in buildMaterialProp() local
249 mColor[p + RED] = (byte) red; in buildMaterialProp()
266 int red = (int) (m[k].mRed * t1 + m[k + 1].mRed * t2); in buildMaterialProp() local
275 mColor[p + RED] = (byte) red; in buildMaterialProp()
287 int red = mp.mRed; in buildMaterialProp() local
292 mColor[p + RED] = (byte) red; in buildMaterialProp()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
DColorGrid.kt38 val red = (Color.red(color) / 255f) * colorspace.getMaxValue(0) in toMaxColor() constant
42 return Color.pack(red, green, blue, alpha, colorspace) in toMaxColor()
/frameworks/base/cmds/idmap2/
Dvalgrind.sh27 local red="\e[31m"
39 _log "${red}[ FAILED ]${reset} ${label}"
Dstatic-checks.sh27 local red="\e[31m"
39 _log "${red}[ FAILED ]${reset} ${label}"
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCamUtils.java190 public static int argbFromRgb(int red, int green, int blue) { in argbFromRgb() argument
191 return (255 << 24) | ((red & 255) << 16) | ((green & 255) << 8) | (blue & 255); in argbFromRgb()
238 final float r = linearized(Color.red(argb)); in yFromInt()
248 final float r = linearized(Color.red(argb)); in xyzFromInt()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/common/
DBaseDrawingView.kt36 fun color(red: Float, green: Float, blue: Float, alpha: Float = 1f): Long { in color()
37 return Color.pack(red, green, blue, alpha, scRGB) in color()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableRggbChannelVector.java49 float red = buffer.getFloat(); in unmarshal() local
54 return new RggbChannelVector(red, gEven, gOdd, blue); in unmarshal()
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintNativeInstanceTest.kt60 val red = LinearGradient(0f, 0f, 0f, size, Color.GREEN, Color.RED, in <lambda>() constant
62 val compose = ComposeShader(blue, red, BlendMode.SCREEN) in <lambda>()
66 test(paint, compose, blue, red) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/
DUnfoldBackgroundController.java21 import static android.graphics.Color.red;
106 (float) red(colorInt) / 255.0F, in getRGBColorFromId()
/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp416 slot->red = color >> 24; in WritePalette()
541 int red = *row++; in WritePng() local
552 (red != 0 || green != 0 || blue != 0); in WritePng()
553 red = green = blue = 0; in WritePng()
557 const uint32_t color = red << 24 | green << 16 | blue << 8 | alpha; in WritePng()
568 if (red != green || red != blue) { in WritePng()
575 max_gray_deviation = std::max(std::abs(red - green), max_gray_deviation); in WritePng()
577 max_gray_deviation = std::max(std::abs(blue - red), max_gray_deviation); in WritePng()
/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.cpp46 static inline int32_t toArgb(int32_t brightness, int32_t red, int32_t green, int32_t blue) { in toArgb() argument
47 return (brightness & 0xff) << 24 | (red & 0xff) << 16 | (green & 0xff) << 8 | (blue & 0xff); in toArgb()
125 int32_t red = 0; in setLightColor() local
130 red = ceil(getRed(color) / ratio); in setLightColor()
134 setRawLightBrightness(rawRgbIds.at(LightColor::RED), red); in setLightColor()
183 int32_t red = round(redOr.value() * ratio); in getLightColor() local
187 if (red > MAX_BRIGHTNESS || green > MAX_BRIGHTNESS || blue > MAX_BRIGHTNESS) { in getLightColor()
190 red = redOr.value(); in getLightColor()
196 return toArgb(brightness, red, green, blue); in getLightColor()
/frameworks/native/opengl/tests/testFramerate/src/com/android/testframerate/
DTestFramerateView.java76 float red = (now_us % 1000000) / 1000000.f; in onDrawFrame() local
79 GLES20.glClearColor(red, green, blue, 1.0f); in onDrawFrame()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessorTest.java83 assertThat((float) Color.red(expected)).isWithin(COLOR_TOLERANCE).of(Color.red(actual)); in assertCloseColors()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DDuotoneFilter.java112 float first[] = { Color.red(mFirstColor)/255f, in updateParameters()
115 float second[] = { Color.red(mSecondColor)/255f, in updateParameters()

1234567