/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | ColorStateListTest.java | 44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); 52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); 60 int defaultColor = mResources.getColor(R.color.color1);
|
/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...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | SweepGradient.java | 77 * @param color1 The color to use at the end of the sweep 79 public SweepGradient(float cx, float cy, @ColorInt int color0, @ColorInt int color1) { argument 84 mColor1 = color1; 117 int color0, int color1); 116 nativeCreate2(long matrix, float x, float y, int color0, int color1) argument
|
H A D | LinearGradient.java | 84 * @param color1 The color at the end of the gradient line. 88 @ColorInt int color0, @ColorInt int color1, 96 mColor1 = color1; 132 int color0, int color1, int tileMode); 87 LinearGradient(float x0, float y0, float x1, float y1, @ColorInt int color0, @ColorInt int color1, @NonNull TileMode tile) argument 131 nativeCreate2(long matrix, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument
|
H A D | RadialGradient.java | 132 int color0, int color1, int tileMode); 131 nativeCreate2(long matrix, float x, float y, float radius, int color0, int color1, int tileMode) argument
|
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/widget/ |
H A D | BaseSwipeRefreshLayoutActivity.java | 94 mSwipeRefreshWidget.setColorSchemeResources(R.color.color1, R.color.color2, R.color.color3,
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/widget/ |
H A D | BaseSwipeRefreshLayoutActivity.java | 94 mSwipeRefreshWidget.setColorSchemeResources(R.color.color1, R.color.color2, R.color.color3,
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Shader.cpp | 130 jfloat x0, jfloat y0, jfloat x1, jfloat y1, jint color0, jint color1, jint tileMode) { 139 colors[1] = color1; 192 jint color0, jint color1, jint tileMode) { 199 colors[1] = color1; 247 int color0, int color1) { 251 colors[1] = color1; 129 LinearGradient_create2(JNIEnv* env, jobject o, jlong matrixPtr, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jint color0, jint color1, jint tileMode) argument 191 RadialGradient_create2(JNIEnv* env, jobject, jlong matrixPtr, jfloat x, jfloat y, jfloat radius, jint color0, jint color1, jint tileMode) argument 246 SweepGradient_create2(JNIEnv* env, jobject, jlong matrixPtr, jfloat x, jfloat y, int color0, int color1) 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/layoutlib/bridge/src/android/graphics/ |
H A D | LinearGradient_Delegate.java | 73 int color0, int color1, int tileMode) { 74 return nativeCreate1(thisGradient, matrix, x0, y0, x1, y1, new int[] { color0, color1}, 71 nativeCreate2(LinearGradient thisGradient, long matrix, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument
|
H A D | RadialGradient_Delegate.java | 71 int color0, int color1, int tileMode) { 72 return nativeCreate1(matrix, x, y, radius, new int[] { color0, color1 }, 70 nativeCreate2(long matrix, float x, float y, float radius, int color0, int color1, int tileMode) argument
|
H A D | SweepGradient_Delegate.java | 67 /*package*/ static long nativeCreate2(long matrix, float x, float y, int color0, int color1) { argument 68 return nativeCreate1(matrix, x, y, new int[] { color0, color1 },
|
/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 577 * <p>A blend ratio of 0.0 will result in {@code color1}, 0.5 will give an even blend, 580 * @param color1 the first ARGB color 582 * @param ratio the blend ratio of {@code color1} to {@code color2} 585 public static int blendARGB(@ColorInt int color1, @ColorInt int color2, argument 588 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; 589 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; 590 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; 591 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio;
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
H A D | ColorUtils.java | 601 * <p>A blend ratio of 0.0 will result in {@code color1}, 0.5 will give an even blend, 604 * @param color1 the first ARGB color 606 * @param ratio the blend ratio of {@code color1} to {@code color2} 609 public static int blendARGB(@ColorInt int color1, @ColorInt int color2, argument 612 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; 613 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; 614 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; 615 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | MultiProducerActivity.java | 282 public ColorPulse(int color1, int color2, Rect rect) { argument 283 mColorStart = color1;
|
/frameworks/rs/script_api/ |
H A D | rs_math.spec | 1714 40% color1 and 60% color2, use <code>mix(color1, color2, 0.6f)</code>.
|