HomeSort by relevance Sort by last modified time
    Searched refs:Color (Results 26 - 50 of 1386) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeCompletion/
macros.c 1 enum Color {
7 enum Color color; member in struct:Point
12 switch (p->IDENTITY(color)) {
26 // CC1: color
  /cts/tests/tests/text/src/android/text/style/cts/
BackgroundColorSpanTest.java 20 import android.graphics.Color;
29 BackgroundColorSpan b = new BackgroundColorSpan(Color.GREEN);
42 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.BLACK);
46 assertEquals(Color.BLACK, tp.bgColor);
48 backgroundColorSpan = new BackgroundColorSpan(Color.BLUE);
50 assertEquals(Color.BLUE, tp.bgColor);
61 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.CYAN);
62 assertEquals(Color.CYAN, backgroundColorSpan.getBackgroundColor());
64 backgroundColorSpan = new BackgroundColorSpan(Color.GRAY);
65 assertEquals(Color.GRAY, backgroundColorSpan.getBackgroundColor())
    [all...]
ForegroundColorSpanTest.java 20 import android.graphics.Color;
29 ForegroundColorSpan f = new ForegroundColorSpan(Color.GREEN);
42 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.BLUE);
43 assertEquals(Color.BLUE, foregroundColorSpan.getForegroundColor());
45 foregroundColorSpan = new ForegroundColorSpan(Color.BLACK);
46 assertEquals(Color.BLACK, foregroundColorSpan.getForegroundColor());
50 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.CYAN);
56 assertEquals(Color.CYAN, tp.getColor());
58 foregroundColorSpan = new ForegroundColorSpan(Color.DKGRAY);
60 assertEquals(Color.DKGRAY, tp.getColor())
    [all...]
QuoteSpanTest.java 21 import android.graphics.Color;
31 QuoteSpan q = new QuoteSpan(Color.RED);
51 QuoteSpan quoteSpan = new QuoteSpan(Color.BLACK);
52 assertEquals(Color.BLACK, quoteSpan.getColor());
54 quoteSpan = new QuoteSpan(Color.BLUE);
55 assertEquals(Color.BLUE, quoteSpan.getColor());
74 QuoteSpan quoteSpan = new QuoteSpan(Color.RED);
79 QuoteSpan quoteSpan = new QuoteSpan(Color.RED);
86 QuoteSpan quoteSpan = new QuoteSpan(Color.RED);
90 assertEquals(Color.RED, q.getColor())
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/environment/
BaseLight.java 19 import com.badlogic.gdx.graphics.Color;
22 public final Color color = new Color(0, 0, 0, 1); field in class:BaseLight
25 this.color.set(r, g, b, a);
29 public T setColor(Color color) {
30 this.color.set(color);
  /external/proguard/src/proguard/gui/splash/
VariableColor.java 26 * This interface represents a Color that varies with time.
33 * Returns the Color for the given time.
35 public Color getColor(long time);
LinearColor.java 32 private final Color fromValue;
33 private final Color toValue;
37 private Color cachedColor;
46 public LinearColor(Color fromValue, Color toValue, Timing timing)
56 public Color getColor(long time)
65 new Color((int)(fromValue.getRed() + t * (toValue.getRed() - fromValue.getRed())),
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
SuperColor.java 19 private final Color color; field in class:SuperColor
21 public SuperColor(Color name) {
22 this.color = name;
25 public Color getName() {
26 return color;
32 SuperColor color = (SuperColor) obj; local
33 return color.equals(color.color);
    [all...]
  /external/clang/test/CodeGenCXX/
scoped-enums-debug-info.cpp 4 // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Color"
7 enum class Color { gray };
9 void f(Color);
11 f(Color::gray);
scoped-enums.cpp 4 enum class Color { red, blue, green };
6 void f(Color);
8 f(Color::red);
  /external/libgdx/gdx/src/com/badlogic/gdx/maps/
MapObject.java 19 import com.badlogic.gdx.graphics.Color;
21 /** Generic Map entity with basic attributes like name, opacity, color */
27 private Color color = Color.WHITE.cpy(); field in class:MapObject
39 /** @return object's color */
40 public Color getColor () {
41 return color;
44 /** @param color new color for the object */
    [all...]
  /frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/
TestUtils.java 23 import android.graphics.Color;
36 assertEquals(Color.red(expected), Color.red(actual), 2);
37 assertEquals(Color.green(expected), Color.green(actual), 2);
38 assertEquals(Color.blue(expected), Color.blue(actual), 2);
  /external/guava/guava-tests/test/com/google/common/collect/
EnumMultisetTest.java 75 private enum Color {
84 Multiset<Color> ms = EnumMultiset.create(Color.class);
85 ms.add(Color.RED);
86 ms.add(Color.YELLOW);
87 ms.add(Color.RED);
88 assertEquals(0, ms.count(Color.BLUE));
89 assertEquals(1, ms.count(Color.YELLOW));
90 assertEquals(2, ms.count(Color.RED));
94 Multiset<Color> ms = EnumMultiset.create
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
NotificationUtils.java 19 import android.graphics.Color;
48 return Color.argb(
49 (int) interpolate(Color.alpha(startColor), Color.alpha(endColor), amount),
50 (int) interpolate(Color.red(startColor), Color.red(endColor), amount),
51 (int) interpolate(Color.green(startColor), Color.green(endColor), amount),
52 (int) interpolate(Color.blue(startColor), Color.blue(endColor), amount))
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
PSNRComparer.java 18 import android.graphics.Color;
63 MSE += (Color.red(ideal[index]) - Color.red(given[index])) *
64 (Color.red(ideal[index]) - Color.red(given[index]));
65 MSE += (Color.blue(ideal[index]) - Color.blue(given[index])) *
66 (Color.blue(ideal[index]) - Color.blue(given[index]));
67 MSE += (Color.green(ideal[index]) - Color.green(given[index]))
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ViewOverlayTest.java 19 import android.graphics.Color;
52 Color.WHITE, null);
74 final Drawable redDrawable = new ColorDrawable(Color.RED);
79 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED));
81 Color.WHITE, colorRectangles);
86 Color.WHITE, null);
90 final Drawable redDrawable = new ColorDrawable(Color.RED);
100 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED));
102 Color.WHITE, colorRectangles);
107 Color.WHITE, null)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
PorterDuffColorFilterTest.java 20 import android.graphics.Color;
35 b1.eraseColor(Color.RED);
37 b2.eraseColor(Color.BLUE);
40 target.eraseColor(Color.TRANSPARENT);
43 int filterColor = Color.argb(0x80, 0, 0xFF, 0);
49 assertEquals(Color.RED, target.getPixel(width / 4, height / 4));
51 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE);
52 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE);
56 target.eraseColor(Color.BLACK);
62 assertEquals(Color.RED, target.getPixel(width / 4, height / 4))
    [all...]
ColorMatrixColorFilterTest.java 21 import android.graphics.Color;
47 paint.setColor(Color.BLUE);
50 assertColor(Color.CYAN, bitmap.getPixel(0, 0));
51 paint.setColor(Color.GREEN);
53 assertColor(Color.GREEN, bitmap.getPixel(0, 0));
54 paint.setColor(Color.RED);
56 assertColor(Color.RED, bitmap.getPixel(0, 0));
57 // color components are clipped, not scaled
58 paint.setColor(Color.MAGENTA);
60 assertColor(Color.WHITE, bitmap.getPixel(0, 0))
    [all...]
  /external/snakeyaml/src/test/java/examples/collections/
TypeSafeMap2Test.java 34 Map<Developer2, Color> data = new LinkedHashMap<Developer2, Color>();
35 data.put(new Developer2("Andy", "tester"), Color.BLACK);
36 data.put(new Developer2("Lisa", "owner"), Color.RED);
38 Map<Color, Developer2> developers = new LinkedHashMap<Color, Developer2>();
39 developers.put(Color.WHITE, new Developer2("Fred", "creator"));
40 developers.put(Color.BLACK, new Developer2("John", "committer"));
51 Map<Developer2, Color> data = new LinkedHashMap<Developer2, Color>();
    [all...]
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/laf/
UnifiedContentBorder.java 23 private static final Color BORDER_TOP_COLOR1 = new Color(0x575757);
24 private static final Color BORDER_BOTTOM_COLOR1 = new Color(0x404040);
25 private static final Color BORDER_BOTTOM_COLOR2 = new Color(0xd8d8d8);
  /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
BitmapVerifier.java 19 import android.graphics.Color;
25 protected static final int PASS_COLOR = Color.WHITE;
26 protected static final int FAIL_COLOR = Color.RED;
  /cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/
PassFailVisualizer.java 18 import android.graphics.Color;
34 output[y] = Color.WHITE;
36 output[y] = Color.RED;
  /external/mesa3d/src/mesa/drivers/dri/intel/
intel_pixel.c 69 if (ctx->Color.BlendEnabled &&
70 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE ||
71 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO ||
72 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD ||
73 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE ||
74 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO ||
75 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) {
85 if (!(ctx->Color.ColorMask[0][0] &&
86 ctx->Color.ColorMask[0][1] &&
87 ctx->Color.ColorMask[0][2] &
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
ColorResourceLoader.java 3 import android.graphics.Color;
10 private ResourceReferenceResolver<Integer> colorResolver = new ResourceReferenceResolver<Integer>("color");
14 androidColors.put("black", Color.BLACK);
15 androidColors.put("darkgray", Color.DKGRAY);
16 androidColors.put("gray", Color.GRAY);
17 androidColors.put("lightgray", Color.LTGRAY);
18 androidColors.put("white", Color.WHITE);
19 androidColors.put("red", Color.RED);
20 androidColors.put("green", Color.GREEN);
21 androidColors.put("blue", Color.BLUE)
49 long color = Long.parseLong(rawValue.substring(1), 16); local
    [all...]
  /external/clang/test/PCH/
enum.h 3 enum Color {

Completed in 580 milliseconds

12 3 4 5 6 7 8 91011>>