/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 152 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/ |
D | QuoteSpanTest.java | 61 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()
|
D | ForegroundColorSpanTest.java | 63 assertEquals(0, tp.getColor()); in testUpdateDrawState() 65 assertEquals(Color.CYAN, tp.getColor()); in testUpdateDrawState() 69 assertEquals(Color.DKGRAY, tp.getColor()); in testUpdateDrawState()
|
D | ClickableSpanTest.java | 46 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState() 51 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState()
|
D | TextAppearanceSpanTest.java | 165 assertEquals(0, tp.getColor()); in testUpdateDrawState() 170 assertEquals(expected, tp.getColor()); in testUpdateDrawState()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | CustomDrawableTest.java | 51 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
|
D | GradientDrawableTest.java | 328 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()
|
D | ThemedDrawableTest.java | 89 assertEquals(Color.BLACK, d.getColor()); in testColorDrawable()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CalendarViewTest.java | 304 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()
|
D | TextViewTest.java | 3199 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/ |
D | CardPresenter.java | 41 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/ |
D | ContextTest.java | 205 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/ |
D | DialogTest.java | 135 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/ |
D | ShapeHolder.java | 68 public int getColor() { in getColor() method in ShapeHolder
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/ |
D | MainFragment.java | 147 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/ |
D | BitmapTests.java | 71 public int getColor() { in getColor() method in BitmapTests.BitmapView 193 if (child.getColor() == Color.BLUE) { in testChangeDuringUiAnimation()
|
D | EdgeEffectTests.java | 153 assertEquals(Color.GREEN, effect.getColor()); in testGetColor()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
D | RobustnessFragment.java | 155 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/ |
D | ResourcesTest.java | 99 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()
|
D | Resources_ThemeTest.java | 161 assertEquals(Color.BLACK, dr.getColor()); in testGetDrawable()
|
D | TypedArrayTest.java | 124 t.getColor(R.styleable.style1_type3, DEFINT)); in testGetAttributes()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 233 mImageListener.getColor() != color); in assertDisplayCanShowPresentation() 327 public int getColor() { in getColor() method in VirtualDisplayTest.ImageListener
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PaintTest.java | 483 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/ |
D | SplitAppTest.java | 89 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/ |
D | BasePrintTest.java | 616 protected String getColor() throws UiObjectNotFoundException, IOException { in getColor() method in BasePrintTest
|