/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
GpsTestActivity.java | 23 import android.graphics.Color; 120 log("All GPS tests complete", Color.GREEN); 140 private void log(String s, int color) { 146 spanText.setSpan(new ForegroundColorSpan(color), start, end, 0); 151 log(s, Color.RED); 157 log("OK!\n", Color.GREEN); 160 log("(Sleep 2 second) \n", Color.GREEN);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
GradientDrawableTest.java | 27 import android.graphics.Color; 49 int[] color = new int[] {1, 2, 3}; local 52 new GradientDrawable(GradientDrawable.Orientation.BL_TR, color); 62 gradientDrawable.setColor(Color.TRANSPARENT); 63 assertEquals("Color.TRANSPARENT is TRANSLUCENT", 70 gradientDrawable.setColors(new int[] { Color.RED, Color.TRANSPARENT }); 74 gradientDrawable.setColors(new int[] { Color.RED, Color.BLUE }); 78 gradientDrawable.setColor(Color.RED) 291 int color; local 323 ColorStateList color; local [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
SurfaceViewTests.java | 20 import android.graphics.Color; 43 new CanvasCallback((canvas, width, height) -> canvas.drawColor(Color.GREEN)); 45 new CanvasCallback((canvas, width, height) -> canvas.drawColor(Color.WHITE)); 47 new CanvasCallback((canvas, width, height) -> canvas.drawColor(Color.RED)); 105 .runWithAnimationVerifier(new ColorVerifier(Color.WHITE, 0 /* zero tolerance */));
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
DemoUtility.java | 9 import java.awt.Color; 32 public static final Color bgColor = Color.lightGray; 33 public static final Color choiceColor = Color.white;
|
/external/llvm/lib/Target/WebAssembly/ |
WebAssemblyRegColoring.cpp | 138 size_t Color = i; 150 Color = C; 155 unsigned New = SortedIntervals[Color]->reg; 158 UsedColors.set(Color); 159 Assignments[Color].push_back(LI);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
ColoredRectsActivity.java | 23 import android.graphics.Color; 39 final RectsView gpuView = new RectsView(this, 0, Color.GREEN); 41 final RectsView swView = new RectsView(this, 400, Color.RED); 44 final RectsView hwBothView = new RectsView(this, 850, Color.GREEN); 49 final RectsView swBothView = new RectsView(this, 854, Color.RED); 65 public RectsView(Context c, float offset, int color) { 68 mColor = color;
|
ViewLayerInvalidationActivity.java | 20 import android.graphics.Color; 31 int currentColor = Color.WHITE; 83 currentColor = (currentColor == Color.WHITE) ? Color.RED : Color.WHITE;
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
DrawableLayoutDirectionHelperTest.java | 21 import android.graphics.Color; 39 final Drawable drawable = new ColorDrawable(Color.RED); 56 final Drawable drawable = new ColorDrawable(Color.RED); 73 final Drawable drawable = new ColorDrawable(Color.RED); 95 final Drawable drawable = new ColorDrawable(Color.RED);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageRedEye.java | 21 import android.graphics.Color; 99 paint.setColor(Color.RED); 102 paint.setColor(Color.RED); 117 paint.setColor(Color.BLUE); 123 paint.setColor(Color.GREEN);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
MarqueeGesture.java | 20 import org.eclipse.swt.graphics.Color; 97 /** Rectangle border color. */ 98 private Color mStroke; 100 /** Rectangle fill color. */ 101 private Color mFill; 134 mStroke = new Color(device, 255, 255, 255); 135 mFill = new Color(device, 128, 128, 128);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ImageUtilsTest.java | 23 import java.awt.Color; 38 g.setColor(new Color(0, true)); 49 g.setColor(new Color(0, true)); 60 g.setColor(new Color(0, false)); 73 g.setColor(new Color(0, true)); 75 g.setColor(new Color(0xFF00FF00, true)); 90 g.setColor(new Color(0, true)); 92 g.setColor(new Color(0xFF00FF00, true)); 107 g.setColor(new Color(0, true)); 109 g.setColor(new Color(0xFF00FF00, true)) [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
FingerPrintGraph.java | 23 import org.eclipse.swt.graphics.Color; 63 static final Color BLACK= DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_BLACK); 64 static final Color BLUE= DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_BLUE); 65 static final Color GREEN= DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_GREEN); 66 static final Color RED = DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_RED); 67 static final Color GRAY = DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_GRAY); 68 static final Color DARK_GRAY = DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_DARK_GRAY); 69 static final Color YELLOW = DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_YELLOW); 70 static final Color WHITE = DEFAULT_DISPLAY.getSystemColor(SWT.COLOR_WHITE); 195 Color blueref = (Color) this.resources.get("blueref") [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/effects/ |
EffectUtil.java | 20 import java.awt.Color;
60 g.setColor(java.awt.Color.white);
64 /** Returns a value that represents a color. */
65 static public Value colorValue (String name, Color currentValue) {
68 Color newColor = JColorChooser.showDialog(null, "Choose a color", EffectUtil.fromString(value));
156 /** Convers a color to a string. */
157 static public String toString (Color color) {
158 if (color == null) throw new IllegalArgumentException("color cannot be null."); [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
List.java | 19 import com.badlogic.gdx.graphics.Color;
134 Color fontColorSelected = style.fontColorSelected;
135 Color fontColorUnselected = style.fontColorUnselected;
137 Color color = getColor();
local 138 batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
274 public Color fontColorSelected = new Color(1, 1, 1, 1); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
NotificationHeaderViewWrapper.java | 23 import android.graphics.Color; 173 // We don't update the color for children views / their icon is invisible anyway. 236 int color = interpolateColor(mColor, mIconDarkColor, intensity); local 237 mIconColorFilter.setColor(color); 244 // DrawableContainer ignores the color filter if it's already set, so clear it first to 271 int aSource = Color.alpha(source); 272 int rSource = Color.red(source); 273 int gSource = Color.green(source); 274 int bSource = Color.blue(source); 275 int aTarget = Color.alpha(target) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
SearchOrbView.java | 24 import android.graphics.Color; 39 * The background color and icon can be customized. 64 * Constructs a color set using the given color for the search orb. 67 * @param color The main search orb color. 69 public Colors(@ColorInt int color) { 70 this(color, color); 74 * Constructs a color set using the given colors for the search orb 101 public int color; field in class:SearchOrbView.Colors 194 int color = a.getColor(R.styleable.lbSearchOrbView_searchOrbColor, defColor); local [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
ScreenViewer.java | 12 import java.awt.Color; 247 private final Color lineColor = new Color(1.0f, 1.0f, 1.0f, 0.3f); 363 private Color color; field in class:ScreenViewer.LoupeStatus 380 label.setForeground(Color.WHITE); 386 label.setForeground(Color.WHITE); 390 label.setForeground(Color.WHITE); 396 label.setForeground(Color.WHITE); 400 label.setForeground(Color.WHITE) [all...] |
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
AnalogWatchFaceService.java | 26 import android.graphics.Color; 149 mBackgroundPaint.setColor(Color.BLACK); 153 mWatchHandColor = Color.WHITE; 154 mWatchHandHighlightColor = Color.RED; 155 mWatchHandShadowColor = Color.BLACK; 196 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); 197 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); 198 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); 246 mHourPaint.setColor(Color.WHITE); 247 mMinutePaint.setColor(Color.WHITE) [all...] |
SweepWatchFaceService.java | 26 import android.graphics.Color; 121 mBackgroundPaint.setColor(Color.BLACK); 125 mWatchHandColor = Color.WHITE; 126 mWatchHandHighlightColor = Color.RED; 127 mWatchHandShadowColor = Color.BLACK; 168 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); 169 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); 170 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); 211 mHourPaint.setColor(Color.WHITE); 212 mMinutePaint.setColor(Color.WHITE) [all...] |
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
AnalogWatchFaceService.java | 26 import android.graphics.Color; 149 mBackgroundPaint.setColor(Color.BLACK); 153 mWatchHandColor = Color.WHITE; 154 mWatchHandHighlightColor = Color.RED; 155 mWatchHandShadowColor = Color.BLACK; 196 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); 197 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); 198 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); 246 mHourPaint.setColor(Color.WHITE); 247 mMinutePaint.setColor(Color.WHITE) [all...] |
SweepWatchFaceService.java | 26 import android.graphics.Color; 121 mBackgroundPaint.setColor(Color.BLACK); 125 mWatchHandColor = Color.WHITE; 126 mWatchHandHighlightColor = Color.RED; 127 mWatchHandShadowColor = Color.BLACK; 168 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); 169 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); 170 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); 211 mHourPaint.setColor(Color.WHITE); 212 mMinutePaint.setColor(Color.WHITE) [all...] |
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
AnalogWatchFaceService.java | 26 import android.graphics.Color; 149 mBackgroundPaint.setColor(Color.BLACK); 153 mWatchHandColor = Color.WHITE; 154 mWatchHandHighlightColor = Color.RED; 155 mWatchHandShadowColor = Color.BLACK; 196 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); 197 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); 198 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); 246 mHourPaint.setColor(Color.WHITE); 247 mMinutePaint.setColor(Color.WHITE) [all...] |
SweepWatchFaceService.java | 26 import android.graphics.Color; 121 mBackgroundPaint.setColor(Color.BLACK); 125 mWatchHandColor = Color.WHITE; 126 mWatchHandHighlightColor = Color.RED; 127 mWatchHandShadowColor = Color.BLACK; 168 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); 169 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); 170 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); 211 mHourPaint.setColor(Color.WHITE); 212 mMinutePaint.setColor(Color.WHITE) [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/ |
Chart.java | 20 import java.awt.Color;
195 // setBackground(Color.red);
227 g.setColor(Color.white);
229 g.setColor(Color.black);
246 g.setColor(Color.lightGray);
248 g.setColor(Color.black);
269 g.setColor(Color.lightGray);
271 g.setColor(Color.black);
281 g.setColor(Color.white);
283 g.setColor(Color.lightGray); [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
TextureViewCtsActivity.java | 24 import android.graphics.Color; 76 preview.setBackgroundColor(Color.WHITE); 82 content.setBackgroundColor(Color.BLACK); 136 public void drawColor(int color) throws Throwable { 138 glClearColor(Color.red(color) / 255.0f, 139 Color.green(color) / 255.0f, 140 Color.blue(color) / 255.0f [all...] |