/external/mesa3d/src/mesa/swrast/ |
s_masking.c | 40 * Apply the color mask to a span of rgba values. 60 const GLuint srcMask = *((GLuint *) ctx->Color.ColorMask[buf]); 72 const GLushort rMask = ctx->Color.ColorMask[buf][RCOMP] ? 0xffff : 0x0; 73 const GLushort gMask = ctx->Color.ColorMask[buf][GCOMP] ? 0xffff : 0x0; 74 const GLushort bMask = ctx->Color.ColorMask[buf][BCOMP] ? 0xffff : 0x0; 75 const GLushort aMask = ctx->Color.ColorMask[buf][ACOMP] ? 0xffff : 0x0; 88 const GLuint rMask = ctx->Color.ColorMask[buf][RCOMP] ? ~0x0 : 0x0; 89 const GLuint gMask = ctx->Color.ColorMask[buf][GCOMP] ? ~0x0 : 0x0; 90 const GLuint bMask = ctx->Color.ColorMask[buf][BCOMP] ? ~0x0 : 0x0; 91 const GLuint aMask = ctx->Color.ColorMask[buf][ACOMP] ? ~0x0 : 0x0 [all...] |
s_blend.c | 78 ASSERT(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); 79 ASSERT(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); 80 ASSERT(ctx->Color.Blend[0].SrcRGB == GL_ZERO); 81 ASSERT(ctx->Color.Blend[0].DstRGB == GL_ONE); 104 ASSERT(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); 105 ASSERT(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); 106 ASSERT(ctx->Color.Blend[0].SrcRGB == GL_ONE); 107 ASSERT(ctx->Color.Blend[0].DstRGB == GL_ZERO); 128 ASSERT(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); 129 ASSERT(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD) [all...] |
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtils.java | 23 import android.graphics.Color; 33 * Checks whether all the pixels in the specified drawable are of the same specified color. 35 * In case there is a color mismatch, the behavior of this method depends on the 41 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 44 callSetBounds, color, null, allowedComponentVariance, throwExceptionIfFails); 48 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 71 final int expectedAlpha = Color.alpha(color); 72 final int expectedRed = Color.red(color); [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PaintFlagsDrawFilterTest.java | 25 import android.graphics.Color; 61 p.setColor(Color.RED); 68 c.drawColor(Color.BLACK); 75 combinedBitmap.eraseColor(Color.BLACK); 83 assertEquals(Color.RED, pixelWithoutFilter); 84 assertEquals(Color.BLACK, pixelWithFilter); 85 combinedBitmap.setPixel(i, j, Color.RED); 98 if (pixel == Color.RED) { 120 int colors[] = new int [] { Color.WHITE, Color.BLACK } 171 int color = bitmap.getPixel(i, j); local 187 int color = bitmap.getPixel(i, j); local [all...] |
EmbossMaskFilterTest.java | 25 import android.graphics.Color; 55 paint.setColor(Color.GRAY); 62 bitmap.eraseColor(Color.BLACK); 91 long color = 0; local 95 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel); 98 return color;
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
LightBarTests.java | 22 import android.graphics.Color; 71 requestLightBars(Color.RED /* background */); 75 Stats s = evaluateLightBarBitmap(bitmap, Color.RED /* background */); 98 requestLightBars(Color.RED /* background */); 102 Stats s = evaluateLightBarBitmap(bitmap, Color.RED /* background */); 130 "Are the bar icons color-free?"); 215 // Due to anti-aliasing, there will be deviations from the ideal icon color, but it 254 int bgAlpha = Color.alpha(background); 255 int bgRed = Color.red(background); 256 int bgGreen = Color.green(background) [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
BitmapTests.java | 24 import android.graphics.Color; 58 setColor(Color.BLUE); 66 public void setColor(int color) { 67 mColor = color; 68 mBitmap.setPixel(0, 0, color); 122 child.setColor(Color.RED); 128 child.setColor(Color.BLUE); 143 .runWithAnimationVerifier(new ColorCountVerifier(Color.RED, 0)); 148 * visible: we keep changing a bitmap's color between red and blue in sync with the 158 Arrays.fill(red, Color.RED) [all...] |
PathClippingTests.java | 22 import android.graphics.Color; 55 paint.setColor(Color.BLUE); 70 canvas.drawColor(Color.BLUE); 87 canvas.drawColor(Color.BLUE); 118 Color.WHITE, 119 Color.BLUE, 120 Color.WHITE, 121 Color.WHITE, 146 Color.BLUE, 147 Color.BLUE [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ColorPickerDialog.java | 29 void colorChanged(int color); 41 ColorPickerView(Context c, OnColorChangedListener l, int color) { 56 mCenterPaint.setColor(color); 131 int a = ave(Color.alpha(c0), Color.alpha(c1), p); 132 int r = ave(Color.red(c0), Color.red(c1), p); 133 int g = ave(Color.green(c0), Color.green(c1), p); 134 int b = ave(Color.blue(c0), Color.blue(c1), p) [all...] |
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
ColorWheel.java | 34 void colorChanged(int color); 148 int a = ave(Color.alpha(c0), Color.alpha(c1), p); 149 int r = ave(Color.red(c0), Color.red(c1), p); 150 int g = ave(Color.green(c0), Color.green(c1), p); 151 int b = ave(Color.blue(c0), Color.blue(c1), p); 153 return Color.argb(a, r, g, b) [all...] |
/external/ImageMagick/Magick++/lib/ |
Montage.cpp | 40 void Magick::Montage::backgroundColor(const Magick::Color &backgroundColor_) 45 Magick::Color Magick::Montage::backgroundColor(void) const 60 void Magick::Montage::fillColor(const Color &fill_) 65 Magick::Color Magick::Montage::fillColor(void) const 130 void Magick::Montage::strokeColor(const Color &stroke_) 135 Magick::Color Magick::Montage::strokeColor(void) const 170 void Magick::Montage::transparentColor(const Magick::Color &transparentColor_) 175 Magick::Color Magick::Montage::transparentColor(void) const 185 montageInfo_.alpha_color=Color(); 189 montageInfo_.border_color=Color(); [all...] |
/frameworks/support/compat/tests/java/android/support/v4/graphics/drawable/ |
IconCompatTest.java | 27 import android.graphics.Color; 54 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, 0)); 55 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, size - 1)); 56 assertEquals(Color.TRANSPARENT, bitmap.getPixel(size - 1, 0)); 57 assertEquals(Color.TRANSPARENT, bitmap.getPixel(size - 1, size - 1)); 63 source.eraseColor(Color.RED); 65 verifyClippedCircle(result, Color.RED, 100); 71 bitmap.eraseColor(Color.RED); 82 bitmap.eraseColor(Color.RED); 92 bitmap.eraseColor(Color.GREEN) [all...] |
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/ |
GlifLayoutTest.java | 31 import android.graphics.Color; 103 layout.setPrimaryColor(ColorStateList.valueOf(Color.RED)); 104 assertEquals("Primary color should be red", 105 ColorStateList.valueOf(Color.RED), layout.getPrimaryColor()); 110 ColorStateList.valueOf(Color.RED), progressBar.getIndeterminateTintList()); 112 ColorStateList.valueOf(Color.RED), progressBar.getProgressBackgroundTintList()); 121 layout.setPrimaryColor(ColorStateList.valueOf(Color.RED)); 122 assertEquals("Primary color should be red", 123 ColorStateList.valueOf(Color.RED), layout.getPrimaryColor()); 128 ColorStateList.valueOf(Color.RED), progressBar.getIndeterminateTintList()) [all...] |
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/ |
XYLegendWidgetTest.java | 45 @UsingMocksAndStubs({Log.class,View.class,Handler.class,Paint.class,Color.class, Rect.class, 80 Color.RED, Color.GREEN, Color.BLUE, (PointLabelFormatter)null)); 92 plot.addSeries(s1, new BarFormatter(Color.RED, Color.GREEN));
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
TimeLineGraphItem.java | 15 import org.eclipse.swt.graphics.Color; 25 Color color; field in class:TimeLineGraphItem 33 TimeLineGraphItem(String title, String description,double value,Color color,boolean display, long timestamp, boolean isSpecial,boolean isBaseline) { 34 this(title, description, value, color,display, timestamp,isSpecial); 38 TimeLineGraphItem(String title, String description,double value,Color color,boolean display, long timestamp, boolean isSpecial) { 39 this(title, description, value, color,display, timestamp); 43 TimeLineGraphItem(String title, String description,double value,Color color,boolean display, long timestamp) [all...] |
/external/mesa3d/src/mesa/drivers/common/ |
driverfuncs.c | 223 ctx->Driver.AlphaFunc(ctx, ctx->Color.AlphaFunc, ctx->Color.AlphaRef); 225 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor); 228 ctx->Color.Blend[0].EquationRGB, 229 ctx->Color.Blend[0].EquationA); 232 ctx->Color.Blend[0].SrcRGB, 233 ctx->Color.Blend[0].DstRGB, 234 ctx->Color.Blend[0].SrcA, 235 ctx->Color.Blend[0].DstA); 241 ctx->Color.ColorMask[i][RCOMP] [all...] |
/frameworks/base/core/java/android/view/ |
RoundScrollbarRenderer.java | 20 import android.graphics.Color; 107 private static int applyAlpha(int color, float alpha) { 108 int alphaByte = (int) (Color.alpha(color) * alpha); 109 return Color.argb(alphaByte, Color.red(color), Color.green(color), Color.blue(color)) [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
RvBoxAdapter.java | 19 import android.graphics.Color; 87 case 0: return Color.LTGRAY; 88 case 1: return Color.RED; 89 case 2: return Color.DKGRAY; 90 case 3: return Color.BLUE; 92 return Color.TRANSPARENT;
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
ColoredHeaderMixinTest.java | 27 import android.graphics.Color; 66 mixin.setColor(ColorStateList.valueOf(Color.MAGENTA)); 68 assertEquals(ColorStateList.valueOf(Color.MAGENTA), mHeaderTextView.getTextColors()); 74 mHeaderTextView.setTextColor(ColorStateList.valueOf(Color.GREEN)); 76 assertEquals(ColorStateList.valueOf(Color.GREEN), mixin.getColor()); 89 assertEquals(ColorStateList.valueOf(Color.RED), mHeaderTextView.getTextColors());
|
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/ |
ExtractedColors.java | 20 import android.graphics.Color; 33 public static final int DEFAULT_LIGHT = Color.WHITE; 34 public static final int DEFAULT_DARK = Color.BLACK; 37 // These color profile indices should NOT be changed, since they are used when saving and 62 public void setColorAtIndex(int index, int color) { 64 mColors[index] = color; 66 Log.e(TAG, "Attempted to set a color at an invalid index " + index); 75 for (int color : mColors) { 76 colorsStringBuilder.append(color).append(COLOR_SEPARATOR); 116 * The hotseat's color is defined as follows [all...] |
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/ |
FactoryModuleBuilderTest.java | 53 private enum Color { BLUE, GREEN, RED, GRAY, BLACK } 96 final Mustang providedMustang = new Mustang(Color.BLUE); 105 Mustang created = factory.create(Color.GREEN); 107 assertEquals(Color.BLUE, providedMustang.color); 108 assertEquals(Color.GREEN, created.color); 158 final Mustang providedMustang = new Mustang(Color.BLUE); 168 Mustang created = (Mustang)factory.create(Color.GREEN); 170 assertEquals(Color.BLUE, providedMustang.color) 369 private final Color color; field in class:FactoryModuleBuilderTest.Mustang 377 private final Color color; field in class:FactoryModuleBuilderTest.Beetle [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
ColorDrawableTest.java | 28 import android.graphics.Color; 140 final ColorDrawable d = new ColorDrawable(Color.WHITE); 141 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); 143 d.setColorFilter(Color.BLACK, Mode.SRC_OVER); 144 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); 146 d.setColorFilter(new PorterDuffColorFilter(Color.BLACK, Mode.SRC_OVER)); 147 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); 152 final ColorDrawable d = new ColorDrawable(Color.WHITE); 153 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); 155 d.setTint(Color.BLACK) [all...] |
/frameworks/base/core/java/com/android/internal/graphics/ |
ColorUtils.java | 23 import android.graphics.Color; 28 * A set of color-related utility methods, building upon those available in {@code Color}. 49 int bgAlpha = Color.alpha(background); 50 int fgAlpha = Color.alpha(foreground); 53 int r = compositeComponent(Color.red(foreground), fgAlpha, 54 Color.red(background), bgAlpha, a); 55 int g = compositeComponent(Color.green(foreground), fgAlpha, 56 Color.green(background), bgAlpha, a); 57 int b = compositeComponent(Color.blue(foreground), fgAlpha [all...] |
/frameworks/support/core-utils/java/android/support/v4/graphics/ |
ColorUtils.java | 19 import android.graphics.Color; 27 * A set of color-related utility methods, building upon those available in {@code Color}. 48 int bgAlpha = Color.alpha(background); 49 int fgAlpha = Color.alpha(foreground); 52 int r = compositeComponent(Color.red(foreground), fgAlpha, 53 Color.red(background), bgAlpha, a); 54 int g = compositeComponent(Color.green(foreground), fgAlpha, 55 Color.green(background), bgAlpha, a); 56 int b = compositeComponent(Color.blue(foreground), fgAlpha [all...] |
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ |
SplashscreenTests.java | 19 import java.awt.Color; 34 assertAllColor(image, mAmWmState.getWmState().getStableBounds(), Color.RED.getRGB()); 42 final int color = img.getRGB(x, y); 43 assertEquals("Colors must match at x=" + x + " y=" + y, expectedColor, color);
|