Home
last modified time | relevance | path

Searched refs:color1 (Results 1 – 9 of 9) 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.java56 public SweepGradient(float cx, float cy, int color0, int color1) { in SweepGradient() argument
57 native_instance = nativeCreate2(cx, cy, color0, color1); in SweepGradient()
58 native_shader = nativePostCreate2(native_instance, cx, cy, color0, color1); in SweepGradient()
62 private static native int nativeCreate2(float x, float y, int color0, int color1); in nativeCreate2() argument
67 int color0, int color1); in nativePostCreate2() argument
DRadialGradient.java56 int color0, int color1, TileMode tile) { in RadialGradient() argument
60 native_instance = nativeCreate2(x, y, radius, color0, color1, tile.nativeInt); in RadialGradient()
61 native_shader = nativePostCreate2(native_instance, x, y, radius, color0, color1, in RadialGradient()
68 int color0, int color1, int tileMode); in nativeCreate2() argument
73 int color0, int color1, int tileMode); in nativePostCreate2() argument
DLinearGradient.java53 public LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, in LinearGradient() argument
55 native_instance = nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt); in LinearGradient()
56 native_shader = nativePostCreate2(native_instance, x0, y0, x1, y1, color0, color1, in LinearGradient()
63 int color0, int color1, int tileMode); in nativeCreate2() argument
67 int color0, int color1, int tileMode); in nativePostCreate2() argument
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList()
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState()
60 int defaultColor = mResources.getColor(R.color.color1); in testGetColor()
/frameworks/base/core/jni/android/graphics/
DShader.cpp216 float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) { in LinearGradient_postCreate2() argument
228 storedColors[1] = static_cast<uint32_t>(color1); in LinearGradient_postCreate2()
242 int color0, int color1, int tileMode) in LinearGradient_create2() argument
250 colors[1] = color1; in LinearGradient_create2()
292 int color0, int color1, int tileMode) { in RadialGradient_create2() argument
298 colors[1] = color1; in RadialGradient_create2()
345 float x, float y, float radius, int color0, int color1, int tileMode) { in RadialGradient_postCreate2() argument
353 storedColors[1] = static_cast<uint32_t>(color1); in RadialGradient_postCreate2()
395 int color0, int color1) { in SweepGradient_create2() argument
398 colors[1] = color1; in SweepGradient_create2()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DRadialGradient_Delegate.java66 int color0, int color1, int tileMode) { in nativeCreate2() argument
67 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, in nativeCreate2()
80 int color0, int color1, int tileMode) { in nativePostCreate2() argument
DSweepGradient_Delegate.java61 /*package*/ static int nativeCreate2(float x, float y, int color0, int color1) { in nativeCreate2() argument
62 return nativeCreate1(x, y, new int[] { color0, color1 }, null /*positions*/); in nativeCreate2()
74 int color0, int color1) { in nativePostCreate2() argument
DLinearGradient_Delegate.java68 int color0, int color1, int tileMode) { in nativeCreate2() argument
70 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/, in nativeCreate2()
85 int color0, int color1, int tileMode) { in nativePostCreate2() argument