/cts/tests/tests/widget/src/android/widget/cts/ |
ImageButtonTest.java | 20 import android.graphics.Color; 82 true, Color.RED, 1, false); 88 true, Color.GREEN, 1, false); 94 true, Color.YELLOW, 1, false);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
SelectionDAGPrinter.cpp | 103 return "color=red,style=bold"; 105 return "color=blue,style=dashed"; 139 "color=blue,style=dashed"); 182 /// setGraphAttrs - Set graph attributes for a node. (eg. "color=red".) 194 /// getGraphAttrs - Get graph attributes for a node. (eg. "color=red".) 212 /// setGraphColor - Convenience for setting node color attribute. 214 void SelectionDAG::setGraphColor(const SDNode *N, const char *Color) { 216 NodeGraphAttrs[N] = std::string("color=") + Color; 226 bool SelectionDAG::setSubgraphColorHelper(SDNode *N, const char *Color, DenseSet<SDNode *> &visited [all...] |
/external/proguard/src/proguard/gui/splash/ |
SplashPanel.java | 214 new ConstantColor(Color.white), 215 new ConstantColor(Color.lightGray), 220 new ColorSprite(new ConstantColor(Color.gray), 227 panel.setBackground(Color.white);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/ |
ColorResourceLoaderTest.java | 3 import android.graphics.Color; 32 assertThat(colorResourceLoader.getValue(R.color.black), equalTo(0x000000)); 33 assertThat(colorResourceLoader.getValue(R.color.white), equalTo(0xffffff)); 38 assertThat(colorResourceLoader.getValue(R.color.clear), equalTo(0x000001)); 43 assertThat(colorResourceLoader.getValue(R.color.foreground), equalTo(0xf5f5f5)); 48 assertThat(colorResourceLoader.getValue(R.color.background), equalTo(0xf5f5f5)); 53 assertThat(colorResourceLoader.getValue(R.color.color_with_alpha), equalTo(0x802C76AD)); 58 assertThat(colorResourceLoader.getValue(android.R.color.black), equalTo(Color.BLACK)); 63 assertThat(colorResourceLoader.getValue(android.R.color.background_dark), equalTo(0xFF000000)) [all...] |
/external/swiftshader/src/Renderer/ |
VertexProcessor.hpp | 212 virtual void setGlobalAmbient(const Color<float> &globalAmbient); 215 virtual void setLightDiffuse(unsigned int light, const Color<float> &lightDiffuse); 216 virtual void setLightSpecular(unsigned int light, const Color<float> &lightSpecular); 217 virtual void setLightAmbient(unsigned int light, const Color<float> &lightAmbient); 233 virtual void setMaterialEmission(const Color<float> &emission); 234 virtual void setMaterialAmbient(const Color<float> &materialAmbient); 235 virtual void setMaterialDiffuse(const Color<float> &diffuseColor); 236 virtual void setMaterialSpecular(const Color<float> &specularColor); 257 virtual void setBorderColor(unsigned int sampler, const Color<float> &borderColor);
|
Surface.hpp | 18 #include "Color.hpp" 226 void write(int x, int y, int z, const Color<float> &color); 227 void write(int x, int y, const Color<float> &color); 228 void write(void *element, const Color<float> &color); 229 Color<float> read(int x, int y, int z) const; 230 Color<float> read(int x, int y) const; 231 Color<float> read(void *element) const [all...] |
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
SelectionDAGPrinter.cpp | 98 return "color=red,style=bold"; 100 return "color=blue,style=dashed"; 134 "color=blue,style=dashed"); 177 /// setGraphAttrs - Set graph attributes for a node. (eg. "color=red".) 189 /// getGraphAttrs - Get graph attributes for a node. (eg. "color=red".) 207 /// setGraphColor - Convenience for setting node color attribute. 209 void SelectionDAG::setGraphColor(const SDNode *N, const char *Color) { 211 NodeGraphAttrs[N] = std::string("color=") + Color; 221 bool SelectionDAG::setSubgraphColorHelper(SDNode *N, const char *Color, DenseSet<SDNode *> &visited [all...] |
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
VectorDrawablePerfTest.java | 22 import android.graphics.Color; 83 assertTrue("The background should be white", backgroundColor == Color.WHITE); 84 assertTrue("The object should be black", objColor == Color.BLACK); 85 assertTrue("The right bottom part should be empty", emptyColor == Color.TRANSPARENT);
|
/frameworks/base/core/java/com/android/internal/util/ |
NotificationColorUtil.java | 28 import android.graphics.Color; 83 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 121 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 160 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 180 * @return The color inverted text. 224 // Allocate a new array so we don't change the colors in the old color state 243 private int processColor(int color) { 244 return Color.argb(Color.alpha(color), 418 int color = resolvedColor; local 454 int color = resolvedColor; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
KeyguardUserSwitcherScrim.java | 21 import android.graphics.Color; 51 R.color.keyguard_user_switcher_background_gradient_color); 105 new int[] { Color.argb( 106 (int) (Color.alpha(mDarkColor) * mAlpha / 255f), 0, 0, 0), 107 Color.TRANSPARENT },
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
WorkLockActivityTest.java | 33 import android.graphics.Color; 84 final @ColorInt int orgColor = Color.rgb(250, 199, 67); 87 final @ColorInt int opaqueColor= Color.rgb(164, 198, 57); 88 final @ColorInt int transparentColor = Color.argb(0, 0, 0, 0); 93 // used as the scrim's background color. 100 // transparent, the organization color should be used instead. 107 // description and the organization color shown instead.
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
ErrorCalculator.java | 22 import android.graphics.Color; 159 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); 160 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); 161 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); 162 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor));
|
ResourceModifiers.java | 25 import android.graphics.Color; 89 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); 97 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); 100 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); 103 Color.YELLOW, Color.MAGENTA);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
GlifPatternDrawableTest.java | 24 import android.graphics.Color; 56 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 74 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 79 paint.setColor(Color.WHITE); 97 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 113 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 130 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 147 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 163 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED);
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/view/ |
ViewPagerActivity.java | 20 import android.graphics.Color; 45 mAdapter.add("Red", Color.RED); 46 mAdapter.add("Green", Color.GREEN); 47 mAdapter.add("Blue", Color.BLUE); 58 public void add(String title, int color) { 59 mEntries.add(new Pair<>(title, color));
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/ |
CardExampleActivity.java | 18 import android.graphics.Color;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
EnumTest.java | 44 enum Color { 220 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); 221 enumColorMap.put(Color.Red, 1); 222 enumColorMap.put(Color.Blue, 3); 249 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); 250 enumColorMap.put(Color.Red, 1); 251 enumColorMap.put(Color.Blue, 3);
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
RequestPinItemActivity.java | 27 import android.graphics.Color; 41 private int mRemoteViewColor = Color.TRANSPARENT; 56 public void setRemoteViewColor(int color) { 57 mRemoteViewColor = color; 71 p.setColor(Color.RED); 94 if (mRemoteViewColor != Color.TRANSPARENT) {
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
MultimapsTest.java | 454 private enum Color {BLUE, RED, YELLOW, GREEN} 501 Map<Color, Collection<Integer>> map = Maps.newEnumMap(Color.class); 502 Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory); 504 multimap.put(Color.BLUE, -1); 509 multimap.put(Color.RED, 1); 510 multimap.put(Color.BLUE, 2); 512 multimap.put(Color.GREEN, -1); 518 Maps.immutableEntry(Color.RED, 1), 519 Maps.immutableEntry(Color.BLUE, 2)) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Color_ColorLongTest.java | 18 import android.graphics.Color; 26 import static android.graphics.Color.alpha; 27 import static android.graphics.Color.blue; 28 import static android.graphics.Color.colorSpace; 29 import static android.graphics.Color.convert; 30 import static android.graphics.Color.green; 31 import static android.graphics.Color.luminance; 32 import static android.graphics.Color.pack; 33 import static android.graphics.Color.red; 34 import static android.graphics.Color.toArgb 252 long color = pack(0.8912f, 0.4962f, 0.1164f, 1.0f, ColorSpace.get(Named.ADOBE_RGB)); local 293 long color = pack(0.5f, 0.0f, 1.0f, 0.25f, p3); local 365 long color = convert(0xffff8000, ColorSpace.get(Named.ADOBE_RGB)); local 375 long color = convert(pack(1.0f, 0.5f, 0.0f, 1.0f, ColorSpace.get(Named.DISPLAY_P3)), local 387 long color = convert(pack(1.0f, 0.5f, 0.0f, 1.0f, p3), connector); local 402 long color = convert(1.0f, 0.5f, 0.0f, 1.0f, local [all...] |
PictureTest.java | 25 import android.graphics.Color; 92 paint.setColor(Color.GREEN); 161 paint.setColor(Color.GREEN); 165 paint.setColor(Color.RED); 168 paint.setColor(Color.BLUE); 174 assertEquals(Color.BLUE, bitmap.getPixel(0, 0)); 176 assertEquals(Color.RED, bitmap.getPixel(x, 0)); 181 assertEquals(Color.GREEN, bitmap.getPixel(x, y));
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/ |
HolidayBorderPanel.java | 11 import java.awt.Color; 71 /** Default color (black). Applies to SOLID and etched borders. */ 72 public final static Color DEFAULT_COLOR = Color.black; 83 private Color color; field in class:HolidayBorderPanel 98 color = DEFAULT_COLOR; 119 * Constructor. Makes SOLID border with color and thickness given. 121 * @param color The color for the border [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Color.java | 39 * <p>The <code>Color</code> class provides methods for creating, converting and 42 * <li>Color ints, the most common representation</li> 43 * <li>Color longs</li> 44 * <li><code>Color</code> instances</li> 48 * <h3>Color ints</h3> 49 * <p>Color ints are the most common representation of colors on Android and 52 * <p>A color int always defines a color in the {@link ColorSpace.Named#SRGB sRGB} 53 * color space using 4 components packed in a single 32 bit integer value:</p> 55 * <table summary="Color int definition" 453 float[] color = new float[] { local 476 float[] color = new float[] { local 1386 long color = Long.parseLong(colorString.substring(1), 16); local 1395 Integer color = sColorNameMap.get(colorString.toLowerCase(Locale.ROOT)); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
GCWrapper.java | 29 import org.eclipse.swt.graphics.Color; 60 * Implementation of IColor wrapping an SWT color. 63 private final Color mColor; 65 public ColorWrapper(Color color) { 66 mColor = color; 69 public Color getColor() { 81 private final Map<DrawingStyle, Color> mStyleStrokeMap = new EnumMap<DrawingStyle, Color>( 88 private final Map<DrawingStyle, Color> mStyleFillMap = new EnumMap<DrawingStyle, Color> 433 Color color = getStrokeColor(style, stroke); local 438 Color color = getFillColor(style, fill); local 505 Color color = map.get(style); local [all...] |
/cts/tests/tests/assist/testapp/src/android/assist/testapp/ |
ScreenshotActivity.java | 21 import android.graphics.Color; 40 int backgroundColor = getIntent().getIntExtra(Utils.SCREENSHOT_COLOR_KEY, Color.WHITE);
|