Home
last modified time | relevance | path

Searched refs:green (Results 1 – 25 of 132) sorted by relevance

123456

/frameworks/base/graphics/java/android/graphics/
DColor.java518 public float green() { in green() method in Color
742 public static float green(@ColorLong long color) { in green() method in Color
843 float g = green(color); in toArgb()
883 return new Color(red(color), green(color), blue(color), alpha(color), colorSpace(color)); in valueOf()
999 public static long pack(float red, float green, float blue) { in pack() argument
1000 return pack(red, green, blue, 1.0f, ColorSpace.get(ColorSpace.Named.SRGB)); in pack()
1016 public static long pack(float red, float green, float blue, float alpha) { in pack() argument
1017 return pack(red, green, blue, alpha, ColorSpace.get(ColorSpace.Named.SRGB)); in pack()
1040 public static long pack(float red, float green, float blue, float alpha, in pack() argument
1046 ((int) (green * 255.0f + 0.5f) << 8) | in pack()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DTonemapCurve.java104 public TonemapCurve(float[] red, float[] green, float[] blue) { in TonemapCurve() argument
108 checkNotNull(green, "green must not be null"); in TonemapCurve()
112 checkArgumentArrayLengthDivisibleBy(green, POINT_SIZE, "green"); in TonemapCurve()
116 checkArgumentArrayLengthNoLessThan(green, MIN_CURVE_LENGTH, "green"); in TonemapCurve()
120 checkArrayElementsInRange(green, LEVEL_BLACK, LEVEL_WHITE, "green"); in TonemapCurve()
124 mGreen = Arrays.copyOf(green, green.length); in TonemapCurve()
/frameworks/base/cmds/idmap2/
Dstatic-checks.sh28 local green="\e[32m"
31 _log "${green}[ RUN ]${reset} ${label}"
34 _log "${green}[ OK ]${reset} ${label}"
/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.
28 float green;
52 float green;
Dlayered_filter_f32_helper.rsh96 result.green += weight * sharp_nbr->green;
108 result.green *= factor;
144 fuzzy.green = result.g * factor;
180 result.green += weight * sharp_nbr->green;
192 result.green *= fac;
202 p->green = 0;
222 p->green = 0;
Dlayered_filter_fast_f32.rscript106 sharp->green = in.g * g_kOneOver255;
111 sharp->green =
112 ApplyLUT_Float(sharp->green, 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,
387 fuzzy->green += factor * result.green;
433 sharp->green += factor * (fuzzy->green - sharp->green);
437 fuzzy->green = 0;
463 fuzzy->green += sharp->green * capacity;
484 ApplyLUT_Float(fuzzy->green, g_camera_response.lut_apply_crf_float);
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/color/
DDisplayWhiteBalanceTintControllerTest.java103 displayPrimaries.green = new CieXyz(); in displayWhiteBalance_setupWithSurfaceControl()
104 displayPrimaries.green.X = 0.357600f; in displayWhiteBalance_setupWithSurfaceControl()
105 displayPrimaries.green.Y = 0.715200f; in displayWhiteBalance_setupWithSurfaceControl()
106 displayPrimaries.green.Z = 0.119200f; in displayWhiteBalance_setupWithSurfaceControl()
132 displayPrimaries.green = new CieXyz(); in displayWhiteBalance_setupWithInvalidSurfaceControlData()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DMaterial.java103 int[] green = new int[means.length - 1]; in setup() local
113 green[i] = (rgb >> 8) & 0xff; in setup()
130 mMaterialProp[i].mGreen = green[i]; in setup()
244 int green = m[0].mGreen; in buildMaterialProp() local
250 mColor[p + GREEN] = (byte) green; in buildMaterialProp()
267 int green = (int) (m[k].mGreen * t1 + m[k + 1].mGreen * t2); in buildMaterialProp() local
276 mColor[p + GREEN] = (byte) green; in buildMaterialProp()
288 int green = mp.mGreen; in buildMaterialProp() local
293 mColor[p + GREEN] = (byte) green; in buildMaterialProp()
/frameworks/native/opengl/tests/finish/
Dfinish.cpp164 uint16_t green = 0x7E0; in main() local
167 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 1, 1, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, &green); in main()
212 uint16_t green = 0x7E0; in main() local
215 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 1, 1, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, &green); in main()
/frameworks/native/opengl/libagl/
Ddxt.cpp53 #define green(x) (((x) >> 5) & 0x3f) macro
236 int g0 = green(color0); in decodeDXT1()
240 int g1 = green(color1); in decodeDXT1()
366 int g0 = green(color0); in decodeDXT3()
370 int g1 = green(color1); in decodeDXT3()
523 int g0 = green(color0); in decodeDXT5()
527 int g1 = green(color1); in decodeDXT5()
/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp415 slot->green = color >> 16; in WritePalette()
538 int green = *row++; in WritePng() local
548 (red != 0 || green != 0 || blue != 0); in WritePng()
549 red = green = blue = 0; in WritePng()
553 const uint32_t color = red << 24 | green << 16 | blue << 8 | alpha; in WritePng()
564 if (red != green || red != blue) { in WritePng()
571 max_gray_deviation = std::max(std::abs(red - green), max_gray_deviation); in WritePng()
572 max_gray_deviation = std::max(std::abs(green - blue), max_gray_deviation); in WritePng()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java37 float bgG = Color.green(bg) / 255f; in computeContrastBetweenColors()
45 float fgG = Color.green(fg) / 255f; in computeContrastBetweenColors()
/frameworks/native/opengl/libs/GLES_CM/
Dgl_api.in4 void API_ENTRY(glClearColor)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) {
5 CALL_GL_API(glClearColor, red, green, blue, alpha);
13 void API_ENTRY(glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) {
14 CALL_GL_API(glColor4f, red, green, blue, alpha);
139 void API_ENTRY(glClearColorx)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) {
140 CALL_GL_API(glClearColorx, red, green, blue, alpha);
154 void API_ENTRY(glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) {
155 CALL_GL_API(glColor4ub, red, green, blue, alpha);
157 void API_ENTRY(glColor4x)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) {
158 CALL_GL_API(glColor4x, red, green, blue, alpha);
[all …]
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java55 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
56 Color.green(background), bgAlpha, a); in compositeColors()
265 RGBToHSL(Color.red(color), Color.green(color), Color.blue(color), outHsl); in colorToHSL()
354 RGBToLAB(Color.red(color), Color.green(color), Color.blue(color), outLab); in colorToLAB()
397 RGBToXYZ(Color.red(color), Color.green(color), Color.blue(color), outXyz); in colorToXYZ()
590 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB()
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES10.spec7 void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
8 void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha )
13 void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )
14 void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha )
15 void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )
/frameworks/native/opengl/tests/testFramerate/src/com/android/testframerate/
DTestFramerateView.java77 float green = (now_us % 2000000) / 2000000.f; in onDrawFrame() local
79 GLES20.glClearColor(red, green, blue, 1.0f); in onDrawFrame()
/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayWhiteBalanceTintController.java245 if (primaries == null || primaries.red == null || primaries.green == null in getDisplayColorSpaceFromSurfaceControl()
253 primaries.green.X, primaries.green.Y, primaries.green.Z, in getDisplayColorSpaceFromSurfaceControl()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DDuotoneFilter.java113 Color.green(mFirstColor)/255f, in updateParameters()
116 Color.green(mSecondColor)/255f, in updateParameters()
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.h350 void SetClearColor(float red, float green, float blue, float alpha);
428 float green; member
432 RGBAColor() : red(0), green(0), blue(0), alpha(1) { in RGBAColor()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/
DUtilities.java172 (int) (overlayAlpha * Color.green(baseColor) + in getColorWithOverlay()
173 (1f - overlayAlpha) * Color.green(overlayColor)), in getColorWithOverlay()
314 float bgG = Color.green(bg) / 255f; in computeContrastBetweenColors()
322 float fgG = Color.green(fg) / 255f; in computeContrastBetweenColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationUtils.java58 (int) interpolate(Color.green(startColor), Color.green(endColor), amount), in interpolateColors()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java291 float green, in glClearColor() argument
298 int green, in glClearColorx() argument
321 float green, in glColor4f() argument
328 int green, in glColor4x() argument
335 boolean green, in glColorMask() argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathDestructionActivity.java79 int green = r.nextInt(255); in getRandomColor() local
81 return 0xff000000 | red << 16 | green << 8 | blue; in getRandomColor()
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.07 void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
8 void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha )
13 void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )
14 void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha )
15 void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )
/frameworks/base/opengl/java/android/opengl/
DGLES10.java317 float green, in glClearColor() argument
326 int green, in glClearColorx() argument
359 float green, in glColor4f() argument
368 int green, in glColor4x() argument
377 boolean green, in glColorMask() argument

123456