/cts/tests/tests/view/src/android/view/cts/ |
D | ViewOverlayTest.java | 60 DrawingUtils.assertAllPixelsOfColor("Default fill", mViewWithOverlay, in testBasics() 87 DrawingUtils.assertAllPixelsOfColor("Overlay with one red drawable", mViewWithOverlay, in testOverlayWithOneDrawable() 92 DrawingUtils.assertAllPixelsOfColor("Back to default fill", mViewWithOverlay, in testOverlayWithOneDrawable() 107 DrawingUtils.assertAllPixelsOfColor("Overlay with one red drawable", mViewWithOverlay, in testAddTheSameDrawableTwice() 112 DrawingUtils.assertAllPixelsOfColor("Back to default fill", mViewWithOverlay, in testAddTheSameDrawableTwice() 126 DrawingUtils.assertAllPixelsOfColor("Overlay with one red drawable", mViewWithOverlay, in testRemoveTheSameDrawableTwice() 133 DrawingUtils.assertAllPixelsOfColor("Back to default fill", mViewWithOverlay, in testRemoveTheSameDrawableTwice() 156 DrawingUtils.assertAllPixelsOfColor("Overlay with three drawables", mViewWithOverlay, in testOverlayWithNonOverlappingDrawables() 164 DrawingUtils.assertAllPixelsOfColor("Overlay with two drawables", mViewWithOverlay, in testOverlayWithNonOverlappingDrawables() 169 DrawingUtils.assertAllPixelsOfColor("Back to default fill", mViewWithOverlay, in testOverlayWithNonOverlappingDrawables() [all …]
|
D | ViewGroupOverlayTest.java | 78 DrawingUtils.assertAllPixelsOfColor("Default fill", mViewGroupWithOverlay, in testBasics() 107 DrawingUtils.assertAllPixelsOfColor("Overlay with one red view", in testOverlayWithOneView() 112 DrawingUtils.assertAllPixelsOfColor("Back to default fill", mViewGroupWithOverlay, in testOverlayWithOneView() 138 DrawingUtils.assertAllPixelsOfColor("Overlay with three views", mViewGroupWithOverlay, in testOverlayWithNonOverlappingViews() 146 DrawingUtils.assertAllPixelsOfColor("Overlay with two views", mViewGroupWithOverlay, in testOverlayWithNonOverlappingViews() 151 DrawingUtils.assertAllPixelsOfColor("Back to default fill", mViewGroupWithOverlay, in testOverlayWithNonOverlappingViews() 171 DrawingUtils.assertAllPixelsOfColor("Overlay with one view and one drawable", in testOverlayWithNonOverlappingViewAndDrawable() 178 DrawingUtils.assertAllPixelsOfColor("Overlay with one drawable", mViewGroupWithOverlay, in testOverlayWithNonOverlappingViewAndDrawable() 183 DrawingUtils.assertAllPixelsOfColor("Back to default fill", mViewGroupWithOverlay, in testOverlayWithNonOverlappingViewAndDrawable() 206 DrawingUtils.assertAllPixelsOfColor("Overlay with two drawables", mViewGroupWithOverlay, in testOverlayWithOverlappingViews() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TabWidgetTest.java | 87 TestUtils.assertAllPixelsOfColor("Left strip green", leftStripDrawable, in testConstructorWithStyle() 93 TestUtils.assertAllPixelsOfColor("Right strip red", rightStripDrawable, in testConstructorWithStyle() 107 TestUtils.assertAllPixelsOfColor("Left strip red", leftStripDrawable, in testInflateFromXml() 113 TestUtils.assertAllPixelsOfColor("Right strip green", rightStripDrawable, in testInflateFromXml() 304 TestUtils.assertAllPixelsOfColor("Left strip green", leftStripDrawable, in testStripDrawables() 312 TestUtils.assertAllPixelsOfColor("Left strip red", leftStripDrawable, in testStripDrawables() 327 TestUtils.assertAllPixelsOfColor("Right strip red", rightStripDrawable, in testStripDrawables() 335 TestUtils.assertAllPixelsOfColor("Left strip green", rightStripDrawable, in testStripDrawables() 353 TestUtils.assertAllPixelsOfColor("Divider blue", dividerDrawable, in testDividerDrawables() 360 TestUtils.assertAllPixelsOfColor("Divider yellow", dividerDrawable, in testDividerDrawables()
|
D | SwitchTest.java | 127 TestUtils.assertAllPixelsOfColor("Thumb drawable should be blue", thumbDrawable, in testAccessThumbDrawable() 135 TestUtils.assertAllPixelsOfColor("Thumb drawable should be red", thumbDrawable, in testAccessThumbDrawable() 143 TestUtils.assertAllPixelsOfColor("Thumb drawable should be green", thumbDrawable, in testAccessThumbDrawable() 153 TestUtils.assertAllPixelsOfColor("Thumb drawable should be green / blue", thumbDrawable, in testAccessThumbDrawable() 167 TestUtils.assertAllPixelsOfColor("Track drawable should be 50% red", trackDrawable, in testAccessTrackDrawable() 176 TestUtils.assertAllPixelsOfColor("Track drawable should be blue", trackDrawable, in testAccessTrackDrawable() 185 TestUtils.assertAllPixelsOfColor("Track drawable should be green", trackDrawable, in testAccessTrackDrawable() 196 TestUtils.assertAllPixelsOfColor("Track drawable should be green / blue", trackDrawable, in testAccessTrackDrawable()
|
D | ImageButtonTest.java | 80 TestUtils.assertAllPixelsOfColor("Default source is red", imageButtonDrawable, in testImageSource() 86 TestUtils.assertAllPixelsOfColor("New source is green", imageButtonDrawable, in testImageSource() 92 TestUtils.assertAllPixelsOfColor("New source is yellow", imageButtonDrawable, in testImageSource()
|
D | ImageViewTest.java | 557 TestUtils.assertAllPixelsOfColor("All pixels should be white", imageViewTinted, in testImageTintVisuals() 564 TestUtils.assertAllPixelsOfColor("All pixels should be light red", imageViewTinted, in testImageTintVisuals() 570 TestUtils.assertAllPixelsOfColor("All pixels should be 50% alpha white", imageViewTinted, in testImageTintVisuals() 576 TestUtils.assertAllPixelsOfColor("All pixels should be red", imageViewTinted, in testImageTintVisuals() 585 TestUtils.assertAllPixelsOfColor("All pixels should be blue", mImageViewRegular, in testAlpha() 589 TestUtils.assertAllPixelsOfColor("All pixels should be 50% alpha blue", mImageViewRegular, in testAlpha() 593 TestUtils.assertAllPixelsOfColor("All pixels should be transparent", mImageViewRegular, in testAlpha() 597 TestUtils.assertAllPixelsOfColor("All pixels should be blue", mImageViewRegular, in testAlpha() 607 TestUtils.assertAllPixelsOfColor("All pixels should be blue", mImageViewRegular, in testImageAlpha() 612 TestUtils.assertAllPixelsOfColor("All pixels should be 50% alpha blue", mImageViewRegular, in testImageAlpha() [all …]
|
D | CheckedTextViewTest.java | 320 TestUtils.assertAllPixelsOfColor("Initial state is red", checkMark, 334 TestUtils.assertAllPixelsOfColor("Expected 50% green", checkMark, 346 TestUtils.assertAllPixelsOfColor("Expected 50% green over full red", checkMark, 357 TestUtils.assertAllPixelsOfColor("Expected 50% green over full yellow", checkMark,
|
D | ToolbarTest.java | 220 TestUtils.assertAllPixelsOfColor("Overflow icon is red", toolbarOverflowIcon, in testMenuOverflowIcon() 266 TestUtils.assertAllPixelsOfColor("Navigation icon is green", toolbarNavigationIcon, in testNavigationConfiguration() 274 TestUtils.assertAllPixelsOfColor("Navigation icon is blue", toolbarNavigationIcon, in testNavigationConfiguration() 294 TestUtils.assertAllPixelsOfColor("Logo is yellow", toolbarLogo, in testLogoConfiguration() 302 TestUtils.assertAllPixelsOfColor("Logo is red", toolbarLogo, in testLogoConfiguration()
|
D | CalendarViewTest.java | 310 TestUtils.assertAllPixelsOfColor("Selected date vertical bar blue", in testAppearanceHolo() 355 TestUtils.assertAllPixelsOfColor("Selected date vertical bar yellow", in testAppearanceHolo() 360 TestUtils.assertAllPixelsOfColor("Selected date vertical bar magenta", in testAppearanceHolo()
|
D | ActionMenuViewTest.java | 163 TestUtils.assertAllPixelsOfColor("Overflow icon is red", toolbarOverflowIcon, in testMenuOverflowIcon()
|
D | SpinnerTest.java | 400 TestUtils.assertAllPixelsOfColor("Drop down should be blue", dropDownBackground, in testDropDownBackgroundDropdownMode() 421 TestUtils.assertAllPixelsOfColor("Drop down should be yellow", dropDownBackground, in testDropDownBackgroundDropdownMode()
|
D | AutoCompleteTextViewTest.java | 405 TestUtils.assertAllPixelsOfColor("Drop down should be blue", dropDownBackground, in testDropDownBackground() 418 TestUtils.assertAllPixelsOfColor("Drop down should be yellow", dropDownBackground, in testDropDownBackground()
|
D | LinearLayoutTest.java | 840 TestUtils.assertAllPixelsOfColor("Divider is red", dividerDrawable, in testDividersInVerticalLayout() 1103 TestUtils.assertAllPixelsOfColor("Divider is red", dividerDrawable, in testDividersInHorizontalLayout()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 128 public static void assertAllPixelsOfColor(String failMessagePrefix, @NonNull View view, in assertAllPixelsOfColor() method in TestUtils 158 assertAllPixelsOfColor(failMessagePrefix, bitmap, region, in assertRegionPixelsOfColor() 174 public static void assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, in assertAllPixelsOfColor() method in TestUtils 194 assertAllPixelsOfColor(failMessagePrefix, bitmap, in assertAllPixelsOfColor() 211 private static void assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, in assertAllPixelsOfColor() method in TestUtils
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 41 public static void assertAllPixelsOfColor(String failMessagePrefix, View view, in assertAllPixelsOfColor() method in DrawingUtils
|