/frameworks/base/graphics/java/android/graphics/ |
H A D | LinearGradient.java | 77 @param color1 The color at the end of the gradient line. 80 public LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, argument 88 mColor1 = color1; 90 init(nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt)); 118 int color0, int color1, int tileMode); 117 nativeCreate2(float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument
|
H A D | SweepGradient.java | 74 * @param color1 The color to use at the end of the sweep 76 public SweepGradient(float cx, float cy, int color0, int color1) { argument 81 mColor1 = color1; 82 init(nativeCreate2(cx, cy, color0, color1)); 108 private static native long nativeCreate2(float x, float y, int color0, int color1); argument
|
H A D | RadialGradient.java | 123 int color0, int color1, int tileMode); 122 nativeCreate2(float x, float y, float radius, int color0, int color1, int tileMode) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | RadialGradient_Delegate.java | 68 int color0, int color1, int tileMode) { 69 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, 67 nativeCreate2(float x, float y, float radius, int color0, int color1, int tileMode) argument
|
H A D | SweepGradient_Delegate.java | 61 /*package*/ static long nativeCreate2(float x, float y, int color0, int color1) { argument 62 return nativeCreate1(x, y, new int[] { color0, color1 }, null /*positions*/);
|
H A D | LinearGradient_Delegate.java | 70 int color0, int color1, int tileMode) { 72 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/, 68 nativeCreate2(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument
|
/frameworks/native/cmds/flatland/ |
H A D | Renderers.cpp | 69 mColor1UniformLoc = glGetUniformLocation(mGradPgm, "color1"); 97 const float* color1 = genColor(); local 114 glUniform4fv(mColor1UniformLoc, 1, color1);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | MultiProducerActivity.java | 283 public ColorPulse(int color1, int color2, Rect rect) { argument 284 mColorStart = color1;
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CollapsingTextHelper.java | 640 * Blend {@code color1} and {@code color2} using the given ratio. 642 * @param ratio of which to blend. 0.0 will return {@code color1}, 0.5 will give an even blend, 645 private static int blendColors(int color1, int color2, float ratio) { argument 647 float a = (Color.alpha(color1) * inverseRatio) + (Color.alpha(color2) * ratio); 648 float r = (Color.red(color1) * inverseRatio) + (Color.red(color2) * ratio); 649 float g = (Color.green(color1) * inverseRatio) + (Color.green(color2) * ratio); 650 float b = (Color.blue(color1) * inverseRatio) + (Color.blue(color2) * ratio);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SwipeProgressBar.java | 83 * @param color1 Integer representation of a color. 88 void setColorScheme(int color1, int color2, int color3, int color4) { argument 89 mColor1 = color1;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Shader.cpp | 136 jint color0, jint color1, jint tileMode) 144 colors[1] = color1; 180 jint color0, jint color1, jint tileMode) { 186 colors[1] = color1; 217 int color0, int color1) { 220 colors[1] = color1; 134 LinearGradient_create2(JNIEnv* env, jobject o, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jint color0, jint color1, jint tileMode) argument 179 RadialGradient_create2(JNIEnv* env, jobject, jfloat x, jfloat y, jfloat radius, jint color0, jint color1, jint tileMode) argument 216 SweepGradient_create2(JNIEnv* env, jobject, jfloat x, jfloat y, int color0, int color1) argument
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 533 * <p>A blend ratio of 0.0 will result in {@code color1}, 0.5 will give an even blend, 536 * @param color1 the first ARGB color 538 * @param ratio the blend ratio of {@code color1} to {@code color2} 541 public static int blendARGB(@ColorInt int color1, @ColorInt int color2, argument 544 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; 545 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; 546 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; 547 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio;
|
/frameworks/native/opengl/libagl/ |
H A D | dxt.cpp | 130 * contains a transparent pixel (color0 < color1, code == 3). This 159 uint16_t color1 = colors >> 16; local 161 if (color0 < color1) { 225 uint16_t color1 = colors >> 16; local 230 if (color0 != prev_color0 || color1 != prev_color1) { 233 prev_color1 = color1; 239 int r1 = red(color1); 240 int g1 = green(color1); 241 int b1 = blue(color1); 248 c[1] = color1; 350 uint16_t color1 = colors >> 16; local 507 uint16_t color1 = colors >> 16; local [all...] |