Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DASurfaceControlTest.java66 import android.view.cts.surfacevalidator.PixelColor;
95 private static final PixelColor RED = new PixelColor(PixelColor.RED);
96 private static final PixelColor BLUE = new PixelColor(PixelColor.BLUE);
97 private static final PixelColor MAGENTA = new PixelColor(PixelColor.MAGENTA);
98 private static final PixelColor GREEN = new PixelColor(PixelColor.GREEN);
99 private static final PixelColor YELLOW = new PixelColor(PixelColor.YELLOW);
287 new PixelChecker(PixelColor.YELLOW) { //10000 in testSurfaceControl_createFromWindow()
305 new PixelChecker(PixelColor.YELLOW) { //10000 in testSurfaceControl_create()
325 PixelColor.RED); in testSurfaceControl_acquire()
328 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceControl_acquire()
[all …]
DASurfaceControlBackPressureTest.java42 import android.view.cts.surfacevalidator.PixelColor;
224 int[] colors = new int[]{PixelColor.RED, PixelColor.GREEN, PixelColor.BLUE}; in testSurfaceTransaction_setEnableBackPressure()
256 int[] colors = new int[]{PixelColor.RED, PixelColor.GREEN, PixelColor.BLUE}; in testSurfaceTransaction_defaultBackPressureDisabled()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceControlTest.java34 import android.view.cts.surfacevalidator.PixelColor;
162 new RectChecker(DEFAULT_RECT, PixelColor.RED)); in testShow()
181 new RectChecker(DEFAULT_RECT, PixelColor.BLACK)); in testHide()
198 new RectChecker(DEFAULT_RECT, PixelColor.BLACK)); in testReparentOff()
226 new RectChecker(DEFAULT_RECT, PixelColor.RED)); in testReparentOn()
250 new RectChecker(DEFAULT_RECT, PixelColor.GREEN)); in testSetLayer()
272 final PixelColor red = new PixelColor(PixelColor.RED); in testSetGeometry_dstBoundsOffScreen()
273 final PixelColor black = new PixelColor(PixelColor.BLACK); in testSetGeometry_dstBoundsOffScreen()
275 public PixelColor getExpectedColor(int x, int y) { in testSetGeometry_dstBoundsOffScreen()
305 final PixelColor red = new PixelColor(PixelColor.RED); in testSetGeometry_dstBoundsOnScreen()
[all …]
DSurfaceViewSurfaceValidatorTest.java31 import android.view.cts.surfacevalidator.PixelColor;
109 PixelChecker pixelChecker = new PixelChecker(PixelColor.BLACK) { in testOnTopHasNoBackground()
147 PixelChecker pixelChecker = new PixelChecker(PixelColor.BLACK) { in testBackgroundIsBehindAllSurfaceView()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DPixelChecker.java26 private PixelColor mPixelColor;
31 mPixelColor = new PixelColor(); in PixelChecker()
35 mPixelColor = new PixelColor(color); in PixelChecker()
38 int getNumMatchingPixels(PixelColor expectedColor, Image.Plane plane, Rect boundsToCheck) { in getNumMatchingPixels()
57 boolean matchesColor(PixelColor expectedColor, byte[] scanline, int offset) { in matchesColor()
DMultiFramePixelChecker.java27 private final PixelColor[] mPixelColors;
32 mPixelColors = new PixelColor[colors.length]; in MultiFramePixelChecker()
34 mPixelColors[i] = new PixelColor(colors[i]); in MultiFramePixelChecker()
38 private PixelColor getColor(long frameNumber) { in getColor()
DPixelColor.java18 public class PixelColor { class
46 public PixelColor(int color) { in PixelColor() method in PixelColor
62 public PixelColor() { in PixelColor() method in PixelColor
DASurfaceControlTestActivity.java169 public abstract PixelColor getExpectedColor(int x, int y); in getExpectedColor()
199 private final PixelColor mPixelColor;
211 mPixelColor = new PixelColor(color); in PixelChecker()
227 PixelColor expected = getExpectedColor(x, y); in getNumMatchingPixels()
240 boolean matchesColor(PixelColor expectedColor, int color) { in matchesColor()
262 public PixelColor getExpectedColor(int x, int y) { in getExpectedColor()
DRectChecker.java32 PixelColor mPixelColor;
36 mPixelColor = new PixelColor(p); in Target()