Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java114 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertEqualsTextAppearanceStyle()
115 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertEqualsTextAppearanceStyle()
116 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertEqualsTextAppearanceStyle()
117 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertEqualsTextAppearanceStyle()
118 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertEqualsTextAppearanceStyle()
119 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertEqualsTextAppearanceStyle()
120 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in assertEqualsTextAppearanceStyle()
121 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); in assertEqualsTextAppearanceStyle()
/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/content/src/android/content/cts/
DContextTest.java98 assertEquals(0xff000000, attrArray.getColor(1, 0)); in testAccessTheme()
99 assertEquals(0xffffffff, attrArray.getColor(2, 0)); in testAccessTheme()
193 mContext.getColor(0); in testGetColor()
199 final int color = mContext.getColor(R.color.color2); in testGetColor()
/cts/tests/tests/graphics/src/android/graphics/cts/
DAvoidXfermodeTest.java43 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.AVOID); in testAvoidXfermode()
48 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.TARGET); in testAvoidXfermode()
DPaintTest.java473 assertEquals(0, p.getColor()); in testSetARGB()
476 assertEquals((3 << 24) | (3 << 16) | (3 << 8) | 3, p.getColor()); in testSetARGB()
677 assertEquals(1, p.getColor());
680 assertEquals(0, p.getColor());
683 assertEquals(255, p.getColor());
686 assertEquals(-1, p.getColor());
689 assertEquals(256, p.getColor());
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/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/animation/src/android/animation/cts/
DShapeHolder.java68 public int getColor() { in getColor() method in ShapeHolder
/cts/tests/tests/app/src/android/app/cts/
DDialogTest.java130 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertTextAppearanceStyle()
131 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertTextAppearanceStyle()
132 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertTextAppearanceStyle()
133 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertTextAppearanceStyle()
134 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertTextAppearanceStyle()
135 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertTextAppearanceStyle()
136 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in assertTextAppearanceStyle()
137 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); in assertTextAppearanceStyle()
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/ui/
DMainFragment.java109 setBrandColor(getResources().getColor(R.color.fastlane_background, theme)); in setupUIElements()
111 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme)); in setupUIElements()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java94 assertEquals(0, testTypedArray.getColor(0, 0)); in testObtainAttributes()
95 assertEquals(128, testTypedArray.getColor(1, 128)); in testObtainAttributes()
204 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); in testGetColorStateList()
209 mResources.getColor(-1); in testGetColor()
215 final int color = mResources.getColor(R.color.testcolor1); in testGetColor()
DTypedArrayTest.java80 assertEquals(EXPECTEDCLOLOR, mTypedArray.getColor(R.styleable.style1_type3, DEFINT)); in testAttrsMethod()
/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/suite/cts/deviceTests/browserbench/assets/octane/
Draytrace.js336 getColor: function(u, v){ method in Flog.RayTracer.Material.BaseMaterial
367 getColor: function(u, v){ method
398 getColor: function(u, v){ method
451 info.color = this.material.getColor(0,0);
504 info.color = this.material.getColor(u,v);
506 info.color = this.material.getColor(0,0);
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DThemedDrawableTest.java78 assertEquals(Color.BLACK, d.getColor()); in testColorDrawable()
/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/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java86 assertEquals(0xff00ff00, r.getColor(R.color.my_color)); in testSingleBase()
230 assertEquals(0xff00ff00, r.getColor(R.color.my_color)); in testFeatureBase()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java2331 assertEquals(mActivity.getResources().getColor(R.drawable.black),
2333 assertEquals(mActivity.getResources().getColor(R.drawable.red),
2335 assertEquals(mActivity.getResources().getColor(R.drawable.red),
2337 assertEquals(mActivity.getResources().getColor(R.drawable.blue),
2958 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testDeprecatedSetTextAppearance()
2962 assertEquals(mActivity.getResources().getColor(R.drawable.red), in testDeprecatedSetTextAppearance()
2964 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testDeprecatedSetTextAppearance()
2968 assertEquals(mActivity.getResources().getColor(R.drawable.black), in testDeprecatedSetTextAppearance()
2970 assertEquals(mActivity.getResources().getColor(R.drawable.blue), in testDeprecatedSetTextAppearance()
2972 assertEquals(mActivity.getResources().getColor(R.drawable.yellow), in testDeprecatedSetTextAppearance()
[all …]