/cts/tests/tests/graphics/src/android/graphics/cts/ |
BlurMaskFilterTest.java | 25 import android.graphics.Color; 50 paint.setColor(Color.RED); 52 b.eraseColor(Color.TRANSPARENT); 58 // check that color didn't bleed (much) beyond radius 59 checkQuadrants(Color.TRANSPARENT, b, x, y, 5); 61 // check that color didn't wash out (much) in the center 62 checkQuadrants(Color.RED, b, x, y, 5); 64 // check blur zone, color should remain, alpha varies 65 checkQuadrants(Color.RED, b, x, y, 255); 71 private void checkQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) [all...] |
ComposeShaderTest.java | 25 import android.graphics.Color; 52 Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP); 54 Color.GREEN, Color.RED, Shader.TileMode.CLAMP); 70 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); 71 assertEquals(y, Color.red(pixel), TOLERANCE); 72 assertEquals(green, Color.green(pixel), TOLERANCE); 73 assertEquals(x, Color.blue(pixel), TOLERANCE); 89 greenBitmap.eraseColor(Color.GREEN) [all...] |
AvoidXfermodeTest.java | 27 import android.graphics.Color; 55 greenPaint.setColor(Color.GREEN); 59 redAvoidingGreenPaint.setColor(Color.RED); 64 blueTargetingGreenPaint.setColor(Color.BLUE); 68 b.eraseColor(Color.BLACK); 77 assertEquals(Color.GREEN, b.getPixel(BASE_SIZE / 2, BASE_SIZE / 2)); 78 assertEquals(Color.RED, b.getPixel(BASE_SIZE + BASE_SIZE / 2, BASE_SIZE / 2)); 79 assertEquals(Color.BLUE, b.getPixel(BASE_SIZE / 2, BASE_SIZE + BASE_SIZE / 2)); 80 assertEquals(Color.BLACK, b.getPixel(BASE_SIZE + BASE_SIZE / 2, BASE_SIZE + BASE_SIZE / 2));
|
DiscretePathEffectTest.java | 25 import android.graphics.Color; 55 paint.setColor(Color.GREEN); 65 bitmap.eraseColor(Color.TRANSPARENT); 72 paint.setColor(Color.RED); 79 paint.setColor(Color.BLUE); 90 if (Color.green(pixel) > 0) { 94 assertEquals(0xFF, Color.blue(pixel)); 95 if (Color.red(pixel) > 0) {
|
/libcore/luni/src/test/java/tests/api/java/util/ |
EnumMapTest.java | 44 enum Color { 116 EnumMap enumColorMap = new EnumMap<Color, Double>(Color.class); 118 Color.Green, 2)); 120 enumColorMap.get(Color.Green)); 124 enumEmptyMap.put(Color.Red, 2); 136 enumSizeMap.put(Color.Red, 2); 148 enumSizeMap.put(Color.Red, 2); 175 enumColorMap = new EnumMap<Color, Double>(Color.class) [all...] |
/external/webkit/WebCore/platform/android/ |
RenderThemeAndroid.h | 61 virtual Color platformActiveSelectionBackgroundColor() const; 62 virtual Color platformInactiveSelectionBackgroundColor() const; 63 virtual Color platformActiveSelectionForegroundColor() const; 64 virtual Color platformInactiveSelectionForegroundColor() const; 65 virtual Color platformTextSearchHighlightColor() const; 67 virtual Color platformActiveListBoxSelectionBackgroundColor() const; 68 virtual Color platformInactiveListBoxSelectionBackgroundColor() const; 69 virtual Color platformActiveListBoxSelectionForegroundColor() const; 70 virtual Color platformInactiveListBoxSelectionForegroundColor() const;
|
/external/webkit/WebCore/platform/graphics/ |
Color.cpp | 27 #include "Color.h" 42 const RGBA32 Color::black; 43 const RGBA32 Color::white; 44 const RGBA32 Color::darkGray; 45 const RGBA32 Color::gray; 46 const RGBA32 Color::lightGray; 47 const RGBA32 Color::transparent; 74 RGBA32 colorWithOverrideAlpha(RGBA32 color, float overrideAlpha) 76 RGBA32 rgbOnly = color & 0x00FFFFFF; 96 // Explanation of this algorithm can be found in the CSS3 Color Modul [all...] |
Pen.cpp | 31 Pen::Pen(const Color &color, unsigned width, PenStyle style) : m_style(style), m_width(width), m_color(color) 35 const Color &Pen::color() const function in class:WebCore::Pen 50 void Pen::setColor(const Color &color) 52 m_color = color;
|
/cts/tests/tests/text/src/android/text/style/cts/ |
ClickableSpanTest.java | 24 import android.graphics.Color; 45 tp.linkColor = Color.RED; 50 assertEquals(Color.RED, tp.getColor()); 53 tp.linkColor = Color.BLUE; 55 assertEquals(Color.BLUE, tp.getColor());
|
QuoteSpanTest.java | 26 import android.graphics.Color; 58 QuoteSpan q = new QuoteSpan(Color.RED); 89 QuoteSpan quoteSpan = new QuoteSpan(Color.BLACK); 90 assertEquals(Color.BLACK, quoteSpan.getColor()); 92 quoteSpan = new QuoteSpan(Color.BLUE); 93 assertEquals(Color.BLUE, quoteSpan.getColor()); 131 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); 143 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); 155 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); 159 assertEquals(Color.RED, q.getColor()) [all...] |
TextAppearanceSpanTest.java | 26 import android.graphics.Color; 65 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; 104 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; 119 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; 146 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; 169 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK } [all...] |
/external/webkit/WebCore/svg/ |
SVGColor.h | 26 #include "Color.h" 35 static PassRefPtr<SVGColor> create(const String& color) 37 return adoptRef(new SVGColor(color)); 39 static PassRefPtr<SVGColor> create(const Color& color) 41 return adoptRef(new SVGColor(color)); 62 static Color colorFromRGBColorString(const String&); 72 const Color& color() const; 76 SVGColor(const String& color); [all...] |
SVGAnimateElement.h | 27 #include "Color.h" 55 Color m_fromColor; 56 Color m_toColor; 57 Color m_animatedColor;
|
SVGPaint.h | 54 static PassRefPtr<SVGPaint> create(const Color& color) 56 return adoptRef(new SVGPaint(color)); 62 static PassRefPtr<SVGPaint> create(const String& uri, const Color& color) 64 return adoptRef(new SVGPaint(uri, color)); 86 SVGPaint(const Color& c); 87 SVGPaint(const String& uri, const Color& c);
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
ViewHierarchyScene.java | 19 import java.awt.Color; 76 box.setBorder(BorderFactory.createLineBorder(2, Color.BLACK)); 147 new Color(168, 204, 241), 149 new Color(44, 61, 146)); 152 new Color(81, 141, 236), 154 new Color(36, 96, 192)); 157 new Color(167, 210, 250), 159 new Color(99, 147, 206)); 162 Color.WHITE, 164 new Color(64, 110, 161)) [all...] |
/external/junit/src/junit/swingui/ |
StatusLine.java | 3 import java.awt.Color; 30 setForeground(Color.black); 36 setForeground(Color.red);
|
/sdk/draw9patch/src/com/android/draw9patch/ui/ |
GradientPanel.java | 23 import java.awt.Color; 41 g2.setPaint(new GradientPaint(0.0f, getHeight() * 0.22f, new Color(DARK_BLUE), 42 0.0f, getHeight() * 0.9f, Color.BLACK));
|
/external/junit/src/junit/awtui/ |
ProgressBar.java | 4 import java.awt.Color; 20 private Color getStatusColor() { 22 return Color.red; 23 return Color.green; 35 g.setColor(Color.darkGray); 38 g.setColor(Color.white);
|
/external/webkit/WebCore/platform/gtk/ |
DragDataGtk.cpp | 55 Color DragData::asColor() const 57 return Color();
|
RenderThemeGtk.h | 69 // The platform selection color. 70 virtual Color platformActiveSelectionBackgroundColor() const; 71 virtual Color platformInactiveSelectionBackgroundColor() const; 72 virtual Color platformActiveSelectionForegroundColor() const; 73 virtual Color platformInactiveSelectionForegroundColor() const; 75 // List Box selection color 76 virtual Color activeListBoxSelectionBackgroundColor() const; 77 virtual Color activeListBoxSelectionForegroundColor() const; 78 virtual Color inactiveListBoxSelectionBackgroundColor() const; 79 virtual Color inactiveListBoxSelectionForegroundColor() const [all...] |
/external/webkit/WebCore/platform/wince/ |
DragDataWince.cpp | 84 Color DragData::asColor() const 86 return Color();
|
/external/webkit/WebCore/platform/wx/ |
DragDataWx.cpp | 64 Color DragData::asColor() const 66 return Color();
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PathEffects.java | 68 mColors = new int[] { Color.BLACK, Color.RED, Color.BLUE, 69 Color.GREEN, Color.MAGENTA, Color.BLACK 74 canvas.drawColor(Color.WHITE);
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/ |
SyncCommon.java | 23 import java.awt.Color; 44 protected static final Color AUTH_COLORS[] = {Color.MAGENTA, Color.GREEN, Color.BLUE, 45 Color.ORANGE, Color.RED};
|
/cts/tools/test-progress-new/src/testprogress2/ |
TestMethodInformation.java | 38 private Color color = Color.RED; field in class:TestMethodInformation 44 public enum Color { 90 // calculate color of test method 93 color = Color.GREEN; 128 public Color getColor() { 129 return color;
|