Home
last modified time | relevance | path

Searched refs:Color (Results 1 – 25 of 98) sorted by relevance

1234

/frameworks/base/core/java/android/view/accessibility/
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.BLACK, null);
355 Color.YELLOW, Color.BLUE, EDGE_TYPE_NONE, Color.BLACK, null);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBarTransitions.java24 import android.graphics.Color;
206 mColor = Color.argb( in draw()
207 (int)(v * Color.alpha(targetColor) + Color.alpha(mColorStart) * (1 - v)), in draw()
208 (int)(v * Color.red(targetColor) + Color.red(mColorStart) * (1 - v)), in draw()
209 (int)(v * Color.green(targetColor) + Color.green(mColorStart) * (1 - v)), in draw()
210 (int)(v * Color.blue(targetColor) + Color.blue(mColorStart) * (1 - v))); in draw()
217 if (Color.alpha(mColor) > 0) { in draw()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DDuotoneFilter.java30 import android.graphics.Color;
115 float first[] = { Color.red(mFirstColor)/255f, in updateParameters()
116 Color.green(mFirstColor)/255f, in updateParameters()
117 Color.blue(mFirstColor)/255f }; in updateParameters()
118 float second[] = { Color.red(mSecondColor)/255f, in updateParameters()
119 Color.green(mSecondColor)/255f, in updateParameters()
120 Color.blue(mSecondColor)/255f }; in updateParameters()
DTintFilter.java30 import android.graphics.Color;
126 float tint_color[] = {Color.red(mTint) / 255f, in updateParameters()
127 Color.green(mTint) / 255f, in updateParameters()
128 Color.blue(mTint) / 255f }; in updateParameters()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java25 import android.graphics.Color;
80 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); in ResourceModifiers()
88 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); in ResourceModifiers()
91 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); in ResourceModifiers()
DErrorCalculator.java25 import android.graphics.Color;
162 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in calcError()
163 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in calcError()
164 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in calcError()
165 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in calcError()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DShadersActivity.java25 import android.graphics.Color;
85 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); in ShadersView()
93 Color.BLUE, Color.MAGENTA, Shader.TileMode.CLAMP); in ShadersView()
96 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); in ShadersView()
DColoredRectsActivity.java23 import android.graphics.Color;
39 final RectsView gpuView = new RectsView(this, 0, Color.GREEN); in onCreate()
41 final RectsView swView = new RectsView(this, 400, Color.RED); in onCreate()
44 final RectsView hwBothView = new RectsView(this, 850, Color.GREEN); in onCreate()
49 final RectsView swBothView = new RectsView(this, 854, Color.RED); in onCreate()
DViewLayerInvalidationActivity.java20 import android.graphics.Color;
31 int currentColor = Color.WHITE;
83 currentColor = (currentColor == Color.WHITE) ? Color.RED : Color.WHITE;
DMoreShadersActivity.java25 import android.graphics.Color;
84 Color.RED, 0x7f00ff00, Shader.TileMode.CLAMP); in ShadersView()
90 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); in ShadersView()
DViewPropertyAlphaActivity.java24 import android.graphics.Color;
82 text.setSpan(new BackgroundColorSpan(Color.RED), 0, 3, in onCreate()
84 text.setSpan(new ForegroundColorSpan(Color.BLUE), 4, 9, in onCreate()
124 mPaint.setColor(Color.RED); in MyView()
DFramebufferBlendActivity.java25 import android.graphics.Color;
58 Color.BLACK, Color.WHITE, Shader.TileMode.CLAMP); in BlendView()
DPathOffsetActivity.java22 import android.graphics.Color;
57 mPaint.setColor(Color.RED); in onDraw()
DPointsActivity.java23 import android.graphics.Color;
51 final RenderingView gpuView = new RenderingView(this, Color.GREEN); in onCreate()
53 final RenderingView swView = new RenderingView(this, Color.RED); in onCreate()
/frameworks/base/services/java/com/android/server/wm/
DStrictModeFlash.java21 import android.graphics.Color;
78 c.drawColor(Color.RED); in drawIfNeeded()
81 c.drawColor(Color.RED); in drawIfNeeded()
84 c.drawColor(Color.RED); in drawIfNeeded()
87 c.drawColor(Color.RED); in drawIfNeeded()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java207 int a0 = Color.alpha(c0); in testSetPixelsWithNonOpaqueAlpha()
208 int a1 = Color.alpha(c1); in testSetPixelsWithNonOpaqueAlpha()
211 int r0 = Color.red(c0); in testSetPixelsWithNonOpaqueAlpha()
212 int r1 = Color.red(c1); in testSetPixelsWithNonOpaqueAlpha()
216 int g0 = Color.green(c0); in testSetPixelsWithNonOpaqueAlpha()
217 int g1 = Color.green(c1); in testSetPixelsWithNonOpaqueAlpha()
221 int b0 = Color.blue(c0); in testSetPixelsWithNonOpaqueAlpha()
222 int b1 = Color.blue(c1); in testSetPixelsWithNonOpaqueAlpha()
227 int cc = Color.argb(a0, rr, gg, bb); in testSetPixelsWithNonOpaqueAlpha()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
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;
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DHsvColorComparator.java19 import android.graphics.Color;
31 Color.colorToHSV(lhs, hsv); in compare()
37 Color.colorToHSV(rhs, hsv2); in compare()
DColorStateDrawable.java19 import android.graphics.Color;
63 Color.colorToHSV(color, hsv); in getPressedColor()
65 return Color.HSVToColor(hsv); in getPressedColor()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardCircleFramedDrawable.java21 import android.graphics.Color;
84 mPaint.setColor(Color.BLACK); in KeyguardCircleFramedDrawable()
128 mPaint.setColor(Color.argb((int) (0.33f * 255), in draw()
129 Color.red(mHighlightColor), in draw()
130 Color.green(mHighlightColor), in draw()
131 Color.blue(mHighlightColor))); in draw()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
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); in getTile()
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java22 import android.graphics.Color;
163 mMisspelledUnderlineColor = Color.BLACK; in initStyle()
164 mEasyCorrectUnderlineColor = Color.BLACK; in initStyle()
165 mAutoCorrectionUnderlineColor = Color.BLACK; in initStyle()
175 com.android.internal.R.styleable.SuggestionSpan_textUnderlineColor, Color.BLACK); in initStyle()
183 com.android.internal.R.styleable.SuggestionSpan_textUnderlineColor, Color.BLACK); in initStyle()
191 com.android.internal.R.styleable.SuggestionSpan_textUnderlineColor, Color.BLACK); in initStyle()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java28 import android.graphics.Color;
85 mTextPaint.setColor(Color.WHITE); in init()
151 mPainter.setColor(Color.BLACK); in onDraw()
162 mPainter.setColor(Color.RED); in onDraw()
166 mPainter.setColor(Color.BLACK); in onDraw()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DIconLoader.java22 import android.graphics.Color;
269 return Color.WHITE; in bitToBnW()
271 return Color.BLACK; in bitToBnW()
293 clut[numOfClutEntries - 1] = Color.TRANSPARENT; in parseToRGB()
314 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], in parseToRGB()
/frameworks/base/core/tests/coretests/src/android/view/
DViewAttachView.java21 import android.graphics.Color;
78 canvas.drawColor(Color.BLUE); in onDraw()

1234