Home
last modified time | relevance | path

Searched refs:color1 (Results 1 – 11 of 11) sorted by relevance

/frameworks/native/opengl/libagl/
Ddxt.cpp159 uint16_t color1 = colors >> 16; in DXT1HasAlpha() local
161 if (color0 < color1) { in DXT1HasAlpha()
225 uint16_t color1 = colors >> 16; in decodeDXT1() local
230 if (color0 != prev_color0 || color1 != prev_color1) { in decodeDXT1()
233 prev_color1 = color1; in decodeDXT1()
239 int r1 = red(color1); in decodeDXT1()
240 int g1 = green(color1); in decodeDXT1()
241 int b1 = blue(color1); in decodeDXT1()
248 c[1] = color1; in decodeDXT1()
258 if (color0 > color1) { in decodeDXT1()
[all …]
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java114 public SweepGradient(float cx, float cy, @ColorInt int color0, @ColorInt int color1) { in SweepGradient() argument
115 this(cx, cy, Color.pack(color0), Color.pack(color1)); in SweepGradient()
129 public SweepGradient(float cx, float cy, @ColorLong long color0, @ColorLong long color1) { in SweepGradient() argument
130 this(cx, cy, new long[] {color0, color1}, null); in SweepGradient()
DLinearGradient.java129 @ColorInt int color0, @ColorInt int color1, in LinearGradient() argument
131 this(x0, y0, x1, y1, Color.pack(color0), Color.pack(color1), tile); in LinearGradient()
149 @ColorLong long color0, @ColorLong long color1, in LinearGradient() argument
151 this(x0, y0, x1, y1, new long[] {color0, color1}, null, tile); in LinearGradient()
/frameworks/base/core/tests/coretests/src/android/graphics/
DColorStateListTest.java45 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList()
53 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState()
61 int defaultColor = mResources.getColor(R.color.color1); in testGetColor()
/frameworks/native/cmds/flatland/
DRenderers.cpp97 const float* color1 = genColor(); in drawGradient() local
114 glUniform4fv(mColor1UniformLoc, 1, color1); in drawGradient()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java585 public static int blendARGB(@ColorInt int color1, @ColorInt int color2, in blendARGB() argument
588 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB()
589 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB()
590 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB()
591 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesDrawableTest.java45 Drawable drawable = resources.getDrawable(R.color.color1); in testLoadColorAsDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DInvocationLightsView.java178 public void setColors(@ColorInt int color1, @ColorInt int color2, in setColors() argument
182 mAssistInvocationLights.get(0).setColor(color1); in setColors()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMultiProducerActivity.java282 public ColorPulse(int color1, int color2, Rect rect) { in ColorPulse() argument
283 mColorStart = color1; in ColorPulse()
/frameworks/rs/script_api/
Drs_math.spec1714 40% color1 and 60% color2, use <code>mix(color1, color2, 0.6f)</code>.
/frameworks/rs/script_api/include/
Drs_math.rsh3552 * 40% color1 and 60% color2, use mix(color1, color2, 0.6f).