/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 114 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/ |
D | QuoteSpanTest.java | 52 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()
|
D | ForegroundColorSpanTest.java | 54 assertEquals(0, tp.getColor()); in testUpdateDrawState() 56 assertEquals(Color.CYAN, tp.getColor()); in testUpdateDrawState() 60 assertEquals(Color.DKGRAY, tp.getColor()); in testUpdateDrawState()
|
D | ClickableSpanTest.java | 37 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState() 42 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState()
|
D | TextAppearanceSpanTest.java | 162 assertEquals(0, tp.getColor()); in testUpdateDrawState() 167 assertEquals(expected, tp.getColor()); in testUpdateDrawState()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 98 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/ |
D | AvoidXfermodeTest.java | 43 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.AVOID); in testAvoidXfermode() 48 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.TARGET); in testAvoidXfermode()
|
D | PaintTest.java | 473 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/ |
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()
|
D | GridItemPresenter.java | 45 mainFragment.getResources().getColor(R.color.default_background, null)); in onCreateViewHolder()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ShapeHolder.java | 68 public int getColor() { in getColor() method in ShapeHolder
|
/cts/tests/tests/app/src/android/app/cts/ |
D | DialogTest.java | 130 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/ |
D | MainFragment.java | 109 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/ |
D | ResourcesTest.java | 94 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()
|
D | TypedArrayTest.java | 80 assertEquals(EXPECTEDCLOLOR, mTypedArray.getColor(R.styleable.style1_type3, DEFINT)); in testAttrsMethod()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerPowerLevelActivity.java | 75 mTimerText.setTextColor(getResources().getColor(R.color.red)); in onCreate() 191 mTimerText.setTextColor(getResources().getColor(R.color.green));
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | raytrace.js | 336 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/ |
D | ThemedDrawableTest.java | 78 assertEquals(Color.BLACK, d.getColor()); in testColorDrawable()
|
/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/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 86 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/ |
D | TextViewTest.java | 2331 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 …]
|