/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
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/src/com/android/setupwizardlib/test/ |
GlifPatternDrawableTest.java | 21 import android.graphics.Color; 48 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 66 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 71 paint.setColor(Color.WHITE); 89 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 105 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 122 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 139 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); 155 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED);
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/view/ |
ViewPagerActivity.java | 22 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;
|
/frameworks/support/v17/leanback/api23/android/support/v17/leanback/widget/ |
ForegroundHelperApi23.java | 18 import android.graphics.Color;
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
TestUtils.java | 23 import android.graphics.Color; 111 * Checks whether all the pixels in the specified drawable are of the same specified color. 113 * In case there is a color mismatch, the behavior of this method depends on the 119 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 134 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color, 142 * Checks whether all the pixels in the specified bitmap are of the same specified color. 144 * In case there is a color mismatch, the behavior of this method depends on the 150 int bitmapWidth, int bitmapHeight, @ColorInt int color, 157 if (!areColorsTheSameWithTolerance(color, colorAtCurrPixel, 161 + formatColorToHex(color) [all...] |
/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/Dialer/src/com/android/dialer/dialpad/ |
PseudoEmergencyAnimator.java | 25 import android.graphics.Color; 62 Integer colorFrom = Color.BLUE; 63 Integer colorTo = Color.RED; 70 int color = (int) animator.getAnimatedValue(); 72 new LightingColorFilter(Color.BLACK, color);
|
/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...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/ |
Box2DDebugRenderer.java | 22 import com.badlogic.gdx.graphics.Color; 82 public final Color SHAPE_NOT_ACTIVE = new Color(0.5f, 0.5f, 0.3f, 1); 83 public final Color SHAPE_STATIC = new Color(0.5f, 0.9f, 0.5f, 1); 84 public final Color SHAPE_KINEMATIC = new Color(0.5f, 0.5f, 0.9f, 1); 85 public final Color SHAPE_NOT_AWAKE = new Color(0.6f, 0.6f, 0.6f, 1); 86 public final Color SHAPE_AWAKE = new Color(0.9f, 0.7f, 0.7f, 1) [all...] |
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/ |
HolidayBorderPanel.java | 9 import java.awt.Color; 69 /** Default color (black). Applies to SOLID and etched borders. */ 70 public final static Color DEFAULT_COLOR = Color.black; 81 private Color color; field in class:HolidayBorderPanel 96 color = DEFAULT_COLOR; 117 * Constructor. Makes SOLID border with color and thickness given. 119 * @param color The color for the border [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/ |
ContactCacheTest.java | 22 import com.badlogic.gdx.graphics.Color;
46 e.setColor(Color.RED);
51 e.setColor(Color.RED);
60 e.setColor(Color.BLUE);
65 e.setColor(Color.BLUE);
80 e.setColor(Color.RED);
85 e.setColor(Color.RED);
96 e.setColor(Color.BLUE);
101 e.setColor(Color.BLUE);
126 new Material(ColorAttribute.createDiffuse(Color.WHITE), ColorAttribute.createSpecular(Color.WHITE)), Usage.Position [all...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/ |
Box2DDebugRenderer.java | 23 import com.badlogic.gdx.graphics.Color; 92 private final Color SHAPE_NOT_ACTIVE = new Color(0.5f, 0.5f, 0.3f, 1); 93 private final Color SHAPE_STATIC = new Color(0.5f, 0.9f, 0.5f, 1); 94 private final Color SHAPE_KINEMATIC = new Color(0.5f, 0.5f, 0.9f, 1); 95 private final Color SHAPE_NOT_AWAKE = new Color(0.6f, 0.6f, 0.6f, 1); 96 private final Color SHAPE_AWAKE = new Color(0.9f, 0.7f, 0.7f, 1) [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/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
GridItemPresenter.java | 19 import android.graphics.Color; 45 mainFragment.getResources().getColor(R.color.default_background, null)); 46 view.setTextColor(Color.WHITE);
|
/cts/tests/tests/assist/testapp/src/android/voiceinteraction/testapp/ |
ScreenshotActivity.java | 25 import android.graphics.Color; 46 int backgroundColor = getIntent().getIntExtra(Utils.SCREENSHOT_COLOR_KEY, Color.WHITE);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PictureTest.java | 26 import android.graphics.Color; 83 paint.setColor(Color.GREEN); 151 paint.setColor(Color.GREEN); 155 paint.setColor(Color.RED); 158 paint.setColor(Color.BLUE); 164 assertEquals(Color.BLUE, bitmap.getPixel(0, 0)); 166 assertEquals(Color.RED, bitmap.getPixel(x, 0)); 171 assertEquals(Color.GREEN, bitmap.getPixel(x, y));
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
CanvasClientView.java | 20 import android.graphics.Color; 52 paint.setColor(Color.BLACK);
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/ |
GridItemPresenter.java | 19 import android.graphics.Color; 44 view.setBackgroundColor(mainFragment.getResources().getColor(R.color.default_background)); 45 view.setTextColor(Color.WHITE);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
AnimateDrawables.java | 23 import android.graphics.Color; 60 canvas.drawColor(Color.WHITE);
|
Pictures.java | 46 p.setColor(Color.GREEN); 64 canvas.drawColor(Color.WHITE);
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
RoundView.java | 24 import android.graphics.Color; 60 mPaint.setColor(Color.WHITE);
|
/external/clang/test/Sema/ |
enum.c | 124 enum Color { Red, Green, Blue }; // expected-note{{previous use is here}} 125 typedef struct Color NewColor; // expected-error {{use of 'Color' with tag type that does not match previous declaration}}
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
LineGraph.java | 15 import org.eclipse.swt.graphics.Color; 31 Color color; field in class:LineGraph.GraphItem 34 GraphItem(String title, String description,double value, Color color,boolean display) { 35 this(title, description, value, color); 39 GraphItem(String title, String description, double value, Color color) { 42 this.color= color; [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/effects/ |
ShadowEffect.java | 20 import java.awt.Color;
41 private Color color = Color.black;
field in class:ShadowEffect 50 public ShadowEffect (Color color, int xDistance, int yDistance, float opacity) {
51 this.color = color;
60 g.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), Math.round(opacity * 255))); [all...] |