Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DPixelCopyTest.java779 assertTrue("Top left", pixelsAreSame(topLeft, getPixelFloatPos(bitmap, .25f, .25f), in assertBitmapQuadColor()
781 assertTrue("Top right", pixelsAreSame(topRight, getPixelFloatPos(bitmap, .75f, .25f), in assertBitmapQuadColor()
783 assertTrue("Bottom left", pixelsAreSame(bottomLeft, getPixelFloatPos(bitmap, .25f, .75f), in assertBitmapQuadColor()
785 assertTrue("Bottom right", pixelsAreSame(bottomRight, getPixelFloatPos(bitmap, .75f, .75f), in assertBitmapQuadColor()
809 private boolean pixelsAreSame(int ideal, int given, int threshold) { in pixelsAreSame() method in PixelCopyTest
818 if (!pixelsAreSame(color, pixel, 10)) { in assertBitmapColor()
826 if (pixelsAreSame(color, pixel, 10)) { in assertBitmapNotColor()