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

<<11121314151617181920>>

  /frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/models/
Card.java 18 import android.graphics.Color;
75 return Color.parseColor(mFooterColor);
80 return Color.parseColor(mSelectedColor);
  /packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
ExtractionUtils.java 23 import android.graphics.Color;
87 return !isLegibleOnWallpaper(Color.WHITE, p.getSwatches());
91 return !isLegibleOnWallpaper(Color.BLACK, p.getSwatches());
95 * Given a color, returns true if that color is legible on
96 * the given wallpaper color swatches, else returns false.
98 private static boolean isLegibleOnWallpaper(int color, List<Palette.Swatch> wallpaperSwatches) {
102 if (isLegible(color, swatch.getRgb())) {
111 /** @return Whether the foreground color is legible on the background color. *
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
EmptyViewsOverlay.java 19 import org.eclipse.swt.graphics.Color;
32 /** Border color to paint the bounding boxes with. */
33 private Color mBorderColor;
62 mBorderColor = new Color(device, SwtDrawingStyle.EMPTY.getStrokeColor());
OutlineOverlay.java 19 import org.eclipse.swt.graphics.Color;
32 /** Outline color. Must be disposed, it's NOT a system color. */
33 private Color mOutlineColor;
63 mOutlineColor = new Color(device, SwtDrawingStyle.OUTLINE.getStrokeColor());
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapShaderTest.java 22 import android.graphics.Color;
34 private static final int BORDER_COLOR = Color.BLUE;
35 private static final int CENTER_COLOR = Color.RED;
53 b.eraseColor(Color.BLACK);
83 * matches the given color. Simply returns if the coordinates are outside
86 private void assertColor(int color, Bitmap bitmap, int x, int y) {
88 assertEquals(color, bitmap.getPixel(x, y));
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DrawableTestUtils.java 30 import android.graphics.Color;
163 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor));
164 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor));
165 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor));
166 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor));
183 * Returns the {@link Color} at the specified location in the {@link Drawable}
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
BulletSpanTest.java 21 import android.graphics.Color;
34 BulletSpan b = new BulletSpan(BulletSpan.STANDARD_GAP_WIDTH, Color.RED);
102 BulletSpan bulletSpan = new BulletSpan(BulletSpan.STANDARD_GAP_WIDTH, Color.RED);
113 BulletSpan bulletSpan = new BulletSpan(10, Color.BLACK);
123 // TODO: Test color. How?
  /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
MeanSquaredComparer.java 22 import android.graphics.Color;
96 private static float getColorSum(int color) {
97 float red = Color.red(color) / 255.0f;
98 float green = Color.green(color) / 255.0f;
99 float blue = Color.blue(color) / 255.0f;
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 21 import android.graphics.Color;
103 * Checks whether all the pixels in the specified View are of the same specified color.
105 * In case there is a color mismatch, the behavior of this method depends on the
111 @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) {
122 color, allowedComponentVariance, throwExceptionIfFails);
129 * Checks whether all the pixels in the specified drawable are of the same specified color.
131 * In case there is a color mismatch, the behavior of this method depends on the
137 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color,
152 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color,
160 * Checks whether all the pixels in the specified bitmap are of the same specified color
    [all...]
  /external/libgdx/extensions/gdx-setup/src/com/badlogic/gdx/setup/
ExternalExtensionsDialog.java 27 import java.awt.Color;
130 separator.setForeground(new Color(85, 85, 85));
131 separator.setBackground(new Color(85, 85, 85));
246 contentPane.setBackground(new Color(36, 36, 36));
248 topPanel.setBackground(new Color(36, 36, 36));
249 topPanel.setForeground(new Color(255, 255, 255));
250 table.setBackground(new Color(46, 46, 46));
251 table.setForeground(new Color(255, 255, 255));
252 bottomPanel.setBackground(new Color(36, 36, 36));
253 bottomPanel.setForeground(new Color(255, 255, 255))
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/environment/
AmbientCubemap.java 19 import com.badlogic.gdx.graphics.Color;
54 public AmbientCubemap set (final Color color) {
55 return set(color.r, color.g, color.b);
67 public Color getColor (final Color out, int side) {
93 public AmbientCubemap add (final Color color) {
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
SpriteDrawable.java 19 import com.badlogic.gdx.graphics.Color;
43 Color spriteColor = sprite.getColor();
59 Color spriteColor = sprite.getColor();
83 /** Creates a new drawable that renders the same as this drawable tinted the specified color. */
84 public SpriteDrawable tint (Color tint) {
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
BitmapFontAtlasRegionTest.java 7 import com.badlogic.gdx.graphics.Color;
45 this.fonts[0].setColor(Color.RED);
46 this.fonts[1].setColor(Color.BLUE);
47 this.fonts[2].setColor(Color.GREEN);
BitmapFontFlipTest.java 21 import com.badlogic.gdx.graphics.Color;
37 private Color red = new Color(1, 0, 0, 0);
83 cache2.setColor(Color.RED);
87 cache3.setColor(Color.BLUE);
131 font.setColor(Color.WHITE);
137 font.setColor(Color.RED);
141 font.setColor(Color.BLUE);
145 font.setColor(Color.WHITE);
IndexBufferObjectShaderTest.java 20 import com.badlogic.gdx.graphics.Color;
78 float[] vertices = new float[] {-1, -1, 0, 0, Color.toFloatBits(1f, 0f, 0f, 1f), 0, 1, 0.5f, 1.0f,
79 Color.toFloatBits(0f, 1f, 0f, 1f), 1, -1, 1, 0, Color.toFloatBits(0f, 0f, 1f, 1f)};
VertexBufferObjectShaderTest.java 20 import com.badlogic.gdx.graphics.Color;
94 float[] vertices = new float[] {-1, -1, 0, 0, Color.toFloatBits(1f, 0f, 0f, 1f), 0, 1, 0.5f, 1.0f,
95 Color.toFloatBits(0f, 1f, 0f, 1f), 1, -1, 1, 0, Color.toFloatBits(0f, 0f, 1f, 1f)};
  /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/opencv3/samples/cpp/tutorial_code/viz/
creating_widgets.cpp 45 WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color & color = viz::Color::white());
52 WTriangle::WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color & color)
89 // Set the color of the widget. This has to be called after WidgetAccessor.
90 setColor(color);
104 WTriangle tw(Point3f(0.0,0.0,0.0), Point3f(1.0,1.0,1.0), Point3f(0.0,1.0,0.0), viz::Color::red());
  /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/skia/src/animator/
SkDrawColor.h 15 DECLARE_DRAW_MEMBER_INFO(Color);
30 SkColor color; member in class:SkDrawColor
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
BitmapTest.java 187 // create a bitmap with the color array specified
204 // comparing the original (c0) with the returned color is tricky,
207 int a0 = Color.alpha(c0);
208 int a1 = Color.alpha(c1);
211 int r0 = Color.red(c0);
212 int r1 = Color.red(c1);
216 int g0 = Color.green(c0);
217 int g1 = Color.green(c1);
221 int b0 = Color.blue(c0);
222 int b1 = Color.blue(c1)
    [all...]
  /frameworks/base/libs/hwui/tests/common/scenes/
ListViewAnimation.cpp 18 #include "utils/Color.h"
56 canvas.drawColor(Color::Grey_500, SkXfermode::kSrcOver_Mode);
96 paint.setColor(bgDark ? Color::White : Color::Grey_700);
109 canvas.clear(Color::Transparent);
113 paint.setColor(filled ? Color::Yellow_500 : Color::Grey_700);
129 roundRectPaint.setColor(Color::White);
134 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500)
    [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/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));

Completed in 1867 milliseconds

<<11121314151617181920>>