Home
last modified time | relevance | path

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

12

/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java152 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in verifyIdenticalTextAppearanceStyle()
153 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in verifyIdenticalTextAppearanceStyle()
154 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in verifyIdenticalTextAppearanceStyle()
155 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in verifyIdenticalTextAppearanceStyle()
156 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in verifyIdenticalTextAppearanceStyle()
157 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in verifyIdenticalTextAppearanceStyle()
158 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in verifyIdenticalTextAppearanceStyle()
159 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); in verifyIdenticalTextAppearanceStyle()
/cts/tests/tests/text/src/android/text/style/cts/
DQuoteSpanTest.java61 assertEquals(Color.BLACK, quoteSpan.getColor()); in testGetColor()
64 assertEquals(Color.BLUE, quoteSpan.getColor()); in testGetColor()
103 assertEquals(Color.RED, q.getColor()); in testWriteToParcel()
113 assertEquals(Color.MAGENTA, q.getColor()); in testWriteToParcel()
DForegroundColorSpanTest.java63 assertEquals(0, tp.getColor()); in testUpdateDrawState()
65 assertEquals(Color.CYAN, tp.getColor()); in testUpdateDrawState()
69 assertEquals(Color.DKGRAY, tp.getColor()); in testUpdateDrawState()
DClickableSpanTest.java46 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState()
51 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState()
DTextAppearanceSpanTest.java165 assertEquals(0, tp.getColor()); in testUpdateDrawState()
170 assertEquals(expected, tp.getColor()); in testUpdateDrawState()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DCustomDrawableTest.java51 assertEquals(Color.RED, ((CustomDrawable) dr).getColor()); in testInflation()
71 mColor = ta.getColor(0, Color.BLACK); in inflate()
74 public int getColor() { in getColor() method in CustomDrawableTest.CustomDrawable
DGradientDrawableTest.java328 gradientDrawable.getColor().getDefaultColor()); in testSetColor()
333 gradientDrawable.getColor().getDefaultColor()); in testSetColor()
359 assertEquals("Color was set to RED", color, gradientDrawable.getColor()); in testSetColorList()
363 assertEquals("Color was set to null (TRANSPARENT)", color, gradientDrawable.getColor()); in testSetColorList()
DThemedDrawableTest.java89 assertEquals(Color.BLACK, d.getColor()); in testColorDrawable()
/cts/tests/tests/widget/src/android/widget/cts/
DCalendarViewTest.java304 assertEquals(mActivity.getColor(R.color.calendarview_week_background), in testAppearanceHolo()
306 assertEquals(mActivity.getColor(R.color.calendarview_focusedmonthdate), in testAppearanceHolo()
308 assertEquals(mActivity.getColor(R.color.calendarview_unfocusedmonthdate), in testAppearanceHolo()
315 mActivity.getColor(R.color.calendarview_week_background_new); in testAppearanceHolo()
317 mActivity.getColor(R.color.calendarview_focusedmonthdate_new); in testAppearanceHolo()
319 mActivity.getColor(R.color.calendarview_unfocusedmonthdate_new); in testAppearanceHolo()
321 mActivity.getColor(R.color.calendarview_week_number_new); in testAppearanceHolo()
323 mActivity.getColor(R.color.calendarview_week_separatorline_new); in testAppearanceHolo()
DTextViewTest.java3199 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testTextAttr()
3201 assertEquals(mActivity.getResources().getColor(R.drawable.red), in testTextAttr()
3203 assertEquals(mActivity.getResources().getColor(R.drawable.red), in testTextAttr()
3205 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testTextAttr()
4350 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testDeprecatedSetTextAppearance()
4354 assertEquals(mActivity.getResources().getColor(R.drawable.red), in testDeprecatedSetTextAppearance()
4356 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testDeprecatedSetTextAppearance()
4360 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testDeprecatedSetTextAppearance()
4362 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testDeprecatedSetTextAppearance()
4364 assertEquals(mActivity.getResources().getColor(R.drawable.yellow), in testDeprecatedSetTextAppearance()
[all …]
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DCardPresenter.java41 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background, null); in onCreateViewHolder()
43 parent.getResources().getColor(R.color.selected_background, null); in onCreateViewHolder()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java205 assertEquals(0xff000000, attrArray.getColor(1, 0)); in testAccessTheme()
206 assertEquals(0xffffffff, attrArray.getColor(2, 0)); in testAccessTheme()
300 mContext.getColor(0); in testGetColor()
306 final int color = mContext.getColor(R.color.color2); in testGetColor()
/cts/tests/app/src/android/app/cts/
DDialogTest.java135 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertTextAppearanceStyle()
136 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertTextAppearanceStyle()
137 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertTextAppearanceStyle()
138 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertTextAppearanceStyle()
139 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertTextAppearanceStyle()
140 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertTextAppearanceStyle()
141 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in assertTextAppearanceStyle()
142 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); in assertTextAppearanceStyle()
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java68 public int getColor() { in getColor() method in ShapeHolder
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java147 setBrandColor(getResources().getColor(R.color.fastlane_background, theme));
149 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapTests.java71 public int getColor() { in getColor() method in BitmapTests.BitmapView
193 if (child.getColor() == Color.BLUE) { in testChangeDuringUiAnimation()
DEdgeEffectTests.java153 assertEquals(Color.GREEN, effect.getColor()); in testGetColor()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DRobustnessFragment.java155 mTvPassColour.setBackgroundColor(getResources().getColor(R.color.green)); in setupUILoop()
157 mTvPassColour.setBackgroundColor(getResources().getColor(R.color.red)); in setupUILoop()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java99 assertEquals(0, testTypedArray.getColor(0, 0)); in testObtainAttributes()
100 assertEquals(128, testTypedArray.getColor(1, 128)); in testObtainAttributes()
209 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); in testGetColorStateList()
214 mResources.getColor(-1); in testGetColor()
220 final int color = mResources.getColor(R.color.testcolor1); in testGetColor()
DResources_ThemeTest.java161 assertEquals(Color.BLACK, dr.getColor()); in testGetDrawable()
DTypedArrayTest.java124 t.getColor(R.styleable.style1_type3, DEFINT)); in testGetAttributes()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java233 mImageListener.getColor() != color); in assertDisplayCanShowPresentation()
327 public int getColor() { in getColor() method in VirtualDisplayTest.ImageListener
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java483 assertEquals(0, p.getColor()); in testSetARGB()
486 assertEquals((3 << 24) | (3 << 16) | (3 << 8) | 3, p.getColor()); in testSetARGB()
739 assertEquals(1, p.getColor());
742 assertEquals(0, p.getColor());
745 assertEquals(255, p.getColor());
748 assertEquals(-1, p.getColor());
751 assertEquals(256, p.getColor());
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java89 assertEquals(0xff00ff00, r.getColor(R.color.my_color)); in testSingleBase()
233 assertEquals(0xff00ff00, r.getColor(R.color.my_color)); in testFeatureBase()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java616 protected String getColor() throws UiObjectNotFoundException, IOException { in getColor() method in BasePrintTest

12