Home
last modified time | relevance | path

Searched refs:getColor (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java39 mFailureColor = mResources.getColor(R.color.failColor); in setUp()
47 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); in testStateIsInList()
55 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testEmptyState()
60 int defaultColor = mResources.getColor(R.color.color1); in testGetColor()
61 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testGetColor()
66 int defaultColor = mResources.getColor(R.color.color_no_default); in testGetColorWhenListHasNoDefault()
67 assertEquals(mResources.getColor(R.color.testcolor1), defaultColor); in testGetColorWhenListHasNoDefault()
/frameworks/base/core/java/android/text/style/
DQuoteSpan.java58 public int getColor() { in getColor() method in QuoteSpan
71 int color = p.getColor(); in drawLeadingMargin()
DSuggestionSpan.java155 mMisspelledUnderlineColor = typedArray.getColor( in initStyle()
163 mEasyCorrectUnderlineColor = typedArray.getColor( in initStyle()
171 mAutoCorrectionUnderlineColor = typedArray.getColor( in initStyle()
DBulletSpan.java89 oldcolor = p.getColor(); in drawLeadingMargin()
/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java79 public int getColor() { in getColor() method in ColorDrawable
147 color = a.getColor(com.android.internal.R.styleable.ColorDrawable_color, color); in inflate()
DShapeDrawable.java322 int color = mShapeState.mPaint.getColor(); in inflate()
323 color = a.getColor(com.android.internal.R.styleable.ShapeDrawable_color, color); in inflate()
DGradientDrawable.java684 int startColor = a.getColor(
688 int centerColor = a.getColor(
690 int endColor = a.getColor(
783 int argb = a.getColor(
792 int color = a.getColor(
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp40 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { in getColor() function
80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) { in drawStretchyPatch()
84 SkColor prev = paint.getColor(); in drawStretchyPatch()
176 const SkColor initColor = ((SkPaint*)paint)->getColor(); in NinePatch_Draw()
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DPlaybackView.java56 getPaint().setColor(getResources().getColor(colorId)); in TileDrawable()
191 getResources().getColor(R.color.inval_region_start), in setFrame()
192 getResources().getColor(R.color.inval_region_stop)); in setFrame()
/frameworks/base/media/java/android/media/videoeditor/
DEffectColor.java139 public int getColor() { in getColor() method in EffectColor
/frameworks/base/core/java/android/animation/
DAnimatorInflater.java256 valueFrom = a.getColor(valueFromIndex, 0); in loadAnimator()
265 valueTo = a.getColor(valueToIndex, 0); in loadAnimator()
279 valueTo = a.getColor(valueToIndex, 0); in loadAnimator()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapShader_Delegate.java179 data[index++] = getColor(pt2[0], pt2[1]); in getRaster()
192 private int getColor(float fx, float fy) { in getColor() method in BitmapShader_Delegate.BitmapShaderPaint
DLinearGradient_Delegate.java207 data[index++] = getColor(pt2[0], pt2[1]); in getRaster()
220 private int getColor(float x, float y) { in getColor() method in LinearGradient_Delegate.LinearGradientPaint
/frameworks/base/libs/hwui/
DGammaFontRenderer.cpp88 uint32_t c = paint->getColor(); in getFontRenderer()
DOpenGLRenderer.cpp1322 setupDrawAlpha8Color(paint->getColor(), alpha); in drawAlphaBitmap()
1724 setupDrawColor(paint->getColor(), alpha); in drawLines()
1931 setupDrawColor(paint->getColor(), alpha); in drawPoints()
2047 int color = p->getColor(); in drawRect()
2152 setupDrawAlpha8Color(paint->getColor(), alpha); in drawText()
2329 setupDrawAlpha8Color(paint->getColor(), alpha); in drawPathTexture()
2555 int color = paint->getColor(); in getAlphaAndMode()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestViewDrawText.java47 mColor = a.getColor(R.styleable.DrawTextTestView_color, Color.YELLOW); in BiDiTestViewDrawText()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java68 public static int getColor(String value) { in getColor() method in ResourceHelper
147 int color = ResourceHelper.getColor(value); in getColorStateList()
248 int color = getColor(stringValue); in getDrawable()
/frameworks/base/core/java/android/widget/
DCalendarView.java361 mSelectedWeekBackgroundColor = attributesArray.getColor( in CalendarView()
363 mFocusedMonthDateColor = attributesArray.getColor( in CalendarView()
365 mUnfocusedMonthDateColor = attributesArray.getColor( in CalendarView()
367 mWeekSeparatorLineColor = attributesArray.getColor( in CalendarView()
369 mWeekNumberColor = attributesArray.getColor(R.styleable.CalendarView_weekNumberColor, 0); in CalendarView()
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java132 public int getColor(int id) throws NotFoundException { in getColor() method in MockResources
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
DVideoEditorAPITest.java1068 assertEquals("Effect Color", EffectColor.PINK, effectColor1.getColor()); in testAllEffects()
1082 assertEquals("Effect Color", EffectColor.GRAY, effectColor2.getColor()); in testAllEffects()
1096 assertEquals("Effect Color", EffectColor.GREEN, effectColor3.getColor()); in testAllEffects()
1110 assertEquals("Effect Color", EffectColor.PINK, effectColor4.getColor()); in testAllEffects()
1124 assertEquals("Effect Color", EffectColor.GRAY, effectColor5.getColor()); in testAllEffects()
1139 EffectColor.GREEN, effectColor6.getColor()); in testAllEffects()
1153 assertEquals("Effect Color", -1, effectColor7.getColor()); in testAllEffects()
1166 assertEquals("Effect Color", -1, effectColor8.getColor()); in testAllEffects()
1180 assertEquals("Effect Color", -1, effectColor9.getColor()); in testAllEffects()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java308 public int getColor(int index, int defValue) { in getColor() method in BridgeTypedArray
384 int color = ResourceHelper.getColor(value); in getColorStateList()
DBridgeResources.java173 public int getColor(int id) throws NotFoundException { in getColor() method in BridgeResources
178 return ResourceHelper.getColor(value.getSecond().getValue()); in getColor()
/frameworks/base/core/java/android/content/res/
DColorStateList.java224 color = r.getColor(colorRes); in inflate()
/frameworks/base/core/java/android/gesture/
DGestureOverlayView.java146 mCertainGestureColor = a.getColor(R.styleable.GestureOverlayView_gestureColor, in GestureOverlayView()
148 mUncertainGestureColor = a.getColor(R.styleable.GestureOverlayView_uncertainGestureColor, in GestureOverlayView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java58 mNumberPain.setColor(res.getColor(R.drawable.notification_number_text_color)); in StatusBarIconView()

12