Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java130 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertEqualsTextAppearanceStyle()
131 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertEqualsTextAppearanceStyle()
132 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertEqualsTextAppearanceStyle()
133 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertEqualsTextAppearanceStyle()
134 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertEqualsTextAppearanceStyle()
135 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertEqualsTextAppearanceStyle()
136 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in assertEqualsTextAppearanceStyle()
137 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); in assertEqualsTextAppearanceStyle()
/cts/tests/tests/widget/src/android/widget/cts/
DCalendarViewTest.java145 assertEquals(mActivity.getColor(R.color.calendarview_week_background), in testAppearanceHolo()
147 assertEquals(mActivity.getColor(R.color.calendarview_focusedmonthdate), in testAppearanceHolo()
149 assertEquals(mActivity.getColor(R.color.calendarview_unfocusedmonthdate), in testAppearanceHolo()
158 mActivity.getColor(R.color.calendarview_week_background_new); in testAppearanceHolo()
160 mActivity.getColor(R.color.calendarview_focusedmonthdate_new); in testAppearanceHolo()
162 mActivity.getColor(R.color.calendarview_unfocusedmonthdate_new); in testAppearanceHolo()
164 mActivity.getColor(R.color.calendarview_week_number_new); in testAppearanceHolo()
166 mActivity.getColor(R.color.calendarview_week_separatorline_new); in testAppearanceHolo()
DTextViewTest.java2735 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testTextAttr()
2737 assertEquals(mActivity.getResources().getColor(R.drawable.red), in testTextAttr()
2739 assertEquals(mActivity.getResources().getColor(R.drawable.red), in testTextAttr()
2741 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testTextAttr()
3485 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testDeprecatedSetTextAppearance()
3489 assertEquals(mActivity.getResources().getColor(R.drawable.red), in testDeprecatedSetTextAppearance()
3491 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testDeprecatedSetTextAppearance()
3495 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testDeprecatedSetTextAppearance()
3497 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testDeprecatedSetTextAppearance()
3499 assertEquals(mActivity.getResources().getColor(R.drawable.yellow), in testDeprecatedSetTextAppearance()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DQuoteSpanTest.java52 assertEquals(Color.BLACK, quoteSpan.getColor()); in testGetColor()
55 assertEquals(Color.BLUE, quoteSpan.getColor()); in testGetColor()
90 assertEquals(Color.RED, q.getColor()); in testWriteToParcel()
100 assertEquals(Color.MAGENTA, q.getColor()); in testWriteToParcel()
DForegroundColorSpanTest.java54 assertEquals(0, tp.getColor()); in testUpdateDrawState()
56 assertEquals(Color.CYAN, tp.getColor()); in testUpdateDrawState()
60 assertEquals(Color.DKGRAY, tp.getColor()); in testUpdateDrawState()
DClickableSpanTest.java37 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState()
42 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState()
DTextAppearanceSpanTest.java162 assertEquals(0, tp.getColor()); in testUpdateDrawState()
167 assertEquals(expected, tp.getColor()); in testUpdateDrawState()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DCustomDrawableTest.java42 assertEquals(Color.RED, ((CustomDrawable) dr).getColor()); in testInflation()
62 mColor = ta.getColor(0, Color.BLACK); in inflate()
65 public int getColor() { in getColor() method in CustomDrawableTest.CustomDrawable
DGradientDrawableTest.java296 gradientDrawable.getColor().getDefaultColor()); in testSetColor()
301 gradientDrawable.getColor().getDefaultColor()); in testSetColor()
327 assertEquals("Color was set to RED", color, gradientDrawable.getColor()); in testSetColorList()
331 assertEquals("Color was set to null (TRANSPARENT)", color, gradientDrawable.getColor()); in testSetColorList()
DThemedDrawableTest.java78 assertEquals(Color.BLACK, d.getColor()); in testColorDrawable()
/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()
DGridItemPresenter.java45 mainFragment.getResources().getColor(R.color.default_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.java134 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertTextAppearanceStyle()
135 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertTextAppearanceStyle()
136 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertTextAppearanceStyle()
137 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertTextAppearanceStyle()
138 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertTextAppearanceStyle()
139 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertTextAppearanceStyle()
140 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in assertTextAppearanceStyle()
141 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/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerPowerLevelActivity.java75 mTimerText.setTextColor(getResources().getColor(R.color.red)); in onCreate()
191 mTimerText.setTextColor(getResources().getColor(R.color.green));
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java148 setBrandColor(getResources().getColor(R.color.fastlane_background, theme));
150 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java95 assertEquals(0, testTypedArray.getColor(0, 0)); in testObtainAttributes()
96 assertEquals(128, testTypedArray.getColor(1, 128)); in testObtainAttributes()
205 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); in testGetColorStateList()
210 mResources.getColor(-1); in testGetColor()
216 final int color = mResources.getColor(R.color.testcolor1); in testGetColor()
DResources_ThemeTest.java151 assertEquals(Color.BLACK, dr.getColor()); in testGetDrawable()
DTypedArrayTest.java121 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.java475 assertEquals(0, p.getColor()); in testSetARGB()
478 assertEquals((3 << 24) | (3 << 16) | (3 << 8) | 3, p.getColor()); in testSetARGB()
722 assertEquals(1, p.getColor());
725 assertEquals(0, p.getColor());
728 assertEquals(255, p.getColor());
731 assertEquals(-1, p.getColor());
734 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.java514 protected String getColor() throws UiObjectNotFoundException, IOException { in getColor() method in BasePrintTest
/cts/tools/dex-tools/dex/
Dclasses.out.dex25691 public int getColor(
26100 public int getColor(
32755 public native int getColor()
80136 public int getColor()