Searched refs:Color (Results 1 - 25 of 73) sorted by relevance

123

/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DHsvColorComparator.java19 import android.graphics.Color;
31 Color.colorToHSV(lhs, hsv);
37 Color.colorToHSV(rhs, hsv2);
H A DColorStateDrawable.java19 import android.graphics.Color;
63 Color.colorToHSV(color, hsv);
65 return Color.HSVToColor(hsv);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDuotoneFilter.java30 import android.graphics.Color;
115 float first[] = { Color.red(mFirstColor)/255f,
116 Color.green(mFirstColor)/255f,
117 Color.blue(mFirstColor)/255f };
118 float second[] = { Color.red(mSecondColor)/255f,
119 Color.green(mSecondColor)/255f,
120 Color.blue(mSecondColor)/255f };
H A DTintFilter.java30 import android.graphics.Color;
126 float tint_color[] = {Color.red(mTint) / 255f,
127 Color.green(mTint) / 255f,
128 Color.blue(mTint) / 255f };
/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java22 import android.graphics.Color;
349 Color.WHITE, Color.BLACK, EDGE_TYPE_NONE, Color.BLACK, null);
351 Color.BLACK, Color.WHITE, EDGE_TYPE_NONE, Color.BLACK, null);
353 Color.YELLOW, Color.BLACK, EDGE_TYPE_NONE, Color
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DStrictModeFlash.java21 import android.graphics.Color;
78 c.drawColor(Color.RED);
81 c.drawColor(Color.RED);
84 c.drawColor(Color.RED);
87 c.drawColor(Color.RED);
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DResourceModifiers.java25 import android.graphics.Color;
80 Color.RED, Color.GREEN, Shader.TileMode.CLAMP);
88 Color.BLUE, Color.RED, Shader.TileMode.CLAMP);
91 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR);
H A DErrorCalculator.java25 import android.graphics.Color;
162 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor));
163 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor));
164 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor));
165 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor));
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DShadersActivity.java25 import android.graphics.Color;
85 Color.RED, Color.GREEN, Shader.TileMode.CLAMP);
93 Color.BLUE, Color.MAGENTA, Shader.TileMode.CLAMP);
96 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR);
H A DPathOffsetActivity.java22 import android.graphics.Color;
57 mPaint.setColor(Color.RED);
H A DColoredRectsActivity.java23 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);
H A DViewLayerInvalidationActivity.java20 import android.graphics.Color;
31 int currentColor = Color.WHITE;
83 currentColor = (currentColor == Color.WHITE) ? Color.RED : Color.WHITE;
H A DFramebufferBlendActivity.java25 import android.graphics.Color;
58 Color.BLACK, Color.WHITE, Shader.TileMode.CLAMP);
H A DViewPropertyAlphaActivity.java24 import android.graphics.Color;
82 text.setSpan(new BackgroundColorSpan(Color.RED), 0, 3,
84 text.setSpan(new ForegroundColorSpan(Color.BLUE), 4, 9,
124 mPaint.setColor(Color.RED);
H A DPathOpsActivity.java22 import android.graphics.Color;
50 mPaint.setColor(Color.RED);
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java207 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);
227 int cc = Color.argb(a0, rr, gg, bb);
H A DBitmapFactoryTest.java34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565);
/frameworks/base/core/tests/coretests/src/android/view/
H A DViewAttachView.java21 import android.graphics.Color;
78 canvas.drawColor(Color.BLUE);
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestViewDrawText.java22 import android.graphics.Color;
47 mColor = a.getColor(R.styleable.DrawTextTestView_color, Color.YELLOW);
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DSurfaceAndTextureViews.java21 import android.graphics.Color;
104 static final int SMALL_COLOR = Color.BLUE;
105 static final int LARGE_COLOR = Color.YELLOW;
120 static final int SMALL_COLOR = Color.GREEN;
121 static final int LARGE_COLOR = Color.GRAY;
153 static final int SMALL_COLOR = Color.RED;
154 static final int LARGE_COLOR = Color.CYAN;
H A DHitRectBug.java23 import android.graphics.Color;
52 mPaint.setColor(Color.RED);
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageView.java24 import android.graphics.Color;
328 Color.RED,
329 Color.BLUE,
330 Color.YELLOW,
331 Color.GREEN,
332 Color.CYAN,
333 Color.MAGENTA,
334 Color.WHITE,
369 mPaint.setColor(Color.BLACK);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardCircleFramedDrawable.java21 import android.graphics.Color;
84 mPaint.setColor(Color.BLACK);
128 mPaint.setColor(Color.argb((int) (0.33f * 255),
129 Color.red(mHighlightColor),
130 Color.green(mHighlightColor),
131 Color.blue(mHighlightColor)));
/frameworks/base/core/java/android/text/style/
H A DSuggestionSpan.java22 import android.graphics.Color;
163 mMisspelledUnderlineColor = Color.BLACK;
164 mEasyCorrectUnderlineColor = Color.BLACK;
165 mAutoCorrectionUnderlineColor = Color.BLACK;
175 com.android.internal.R.styleable.SuggestionSpan_textUnderlineColor, Color.BLACK);
183 com.android.internal.R.styleable.SuggestionSpan_textUnderlineColor, Color.BLACK);
191 com.android.internal.R.styleable.SuggestionSpan_textUnderlineColor, Color.BLACK);
/frameworks/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java28 import android.graphics.Color;
85 mTextPaint.setColor(Color.WHITE);
151 mPainter.setColor(Color.BLACK);
162 mPainter.setColor(Color.RED);
166 mPainter.setColor(Color.BLACK);

Completed in 9711 milliseconds

123