/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 130 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/ |
D | CalendarViewTest.java | 145 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()
|
D | TextViewTest.java | 2735 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/ |
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/graphics/src/android/graphics/drawable/cts/ |
D | CustomDrawableTest.java | 42 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
|
D | GradientDrawableTest.java | 296 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()
|
D | ThemedDrawableTest.java | 78 assertEquals(Color.BLACK, d.getColor()); in testColorDrawable()
|
/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()
|
D | GridItemPresenter.java | 45 mainFragment.getResources().getColor(R.color.default_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 | 134 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/ |
D | ShapeHolder.java | 68 public int getColor() { in getColor() method in ShapeHolder
|
/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/tests/leanbackjank/app/src/android/leanbackjank/app/ui/ |
D | MainFragment.java | 148 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/ |
D | ResourcesTest.java | 95 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()
|
D | Resources_ThemeTest.java | 151 assertEquals(Color.BLACK, dr.getColor()); in testGetDrawable()
|
D | TypedArrayTest.java | 121 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 | 475 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/ |
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 | 514 protected String getColor() throws UiObjectNotFoundException, IOException { in getColor() method in BasePrintTest
|
/cts/tools/dex-tools/dex/ |
D | classes.out.dex | 25691 public int getColor( 26100 public int getColor( 32755 public native int getColor() 80136 public int getColor()
|