/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelChecker.java | 41 Rect boundsToCheck) { in getNumMatchingPixels() argument 45 final int bytesWidth = boundsToCheck.width() * PIXEL_STRIDE; in getNumMatchingPixels() 47 for (int row = boundsToCheck.top; row < boundsToCheck.bottom; row++) { in getNumMatchingPixels() 48 buffer.position(rowStride * row + boundsToCheck.left * PIXEL_STRIDE); in getNumMatchingPixels() 60 boolean isEmpty(Image.Plane plane, Rect boundsToCheck) { in isEmpty() argument 63 final int bytesWidth = boundsToCheck.width() * PIXEL_STRIDE; in isEmpty() 65 for (int row = boundsToCheck.top; row < boundsToCheck.bottom; row++) { in isEmpty() 66 buffer.position(rowStride * row + boundsToCheck.left * PIXEL_STRIDE); in isEmpty() 95 Rect boundsToCheck, int width, int height) { in validatePlane() argument 101 if (isEmpty(plane, boundsToCheck)) { in validatePlane() [all …]
|
D | MultiFramePixelChecker.java | 42 private boolean findStartingColor(Image.Plane plane, Rect boundsToCheck) { in findStartingColor() argument 46 boundsToCheck); in findStartingColor() 55 public boolean validatePlane(Image.Plane plane, long frameNumber, Rect boundsToCheck, int width, in validatePlane() argument 58 mStartingColorFound = findStartingColor(plane, boundsToCheck); in validatePlane() 68 return isEmpty(plane, boundsToCheck); in validatePlane() 72 mMatchingPixelCount = getNumMatchingPixels(getColor(frameNumber), plane, boundsToCheck); in validatePlane()
|
D | RectChecker.java | 51 public boolean validatePlane(Image.Plane plane, long framenumber, Rect boundsToCheck, in validatePlane() argument 54 if (validatePlaneForTarget(t, plane, boundsToCheck, width, height) == false) { in validatePlane() 61 public boolean validatePlaneForTarget(Target t, Image.Plane plane, Rect boundsToCheck, in validatePlaneForTarget() argument 68 int startY = boundsToCheck.top + t.mTargetRect.top; in validatePlaneForTarget() 70 int startX = (boundsToCheck.left + t.mTargetRect.left) * PIXEL_STRIDE; in validatePlaneForTarget()
|
D | ASurfaceControlTestActivity.java | 225 public RectChecker(List<Rect> boundsToCheck) { in RectChecker() argument 227 mBoundsToCheck = boundsToCheck; in RectChecker() 230 public RectChecker(Rect boundsToCheck) { in RectChecker() argument 231 this(List.of(boundsToCheck)); in RectChecker() 234 public RectChecker(Rect boundsToCheck, int expectedColor) { in RectChecker() argument 236 mBoundsToCheck = List.of(boundsToCheck); in RectChecker() 275 for (Rect boundsToCheck : getBoundsToCheck(bitmap)) { in getNumMatchingPixels() 276 for (int x = boundsToCheck.left; x < boundsToCheck.right; x++) { in getNumMatchingPixels() 277 for (int y = boundsToCheck.top; y < boundsToCheck.bottom; y++) { in getNumMatchingPixels()
|
D | SurfaceControlTestCase.java | 64 Rect boundsToCheck = new Rect(0, 0, boundsView.getWidth(), boundsView.getHeight()); in getBoundsToCheck() local 67 boundsToCheck.offset(topLeft[0], topLeft[1]); in getBoundsToCheck() 68 return boundsToCheck; in getBoundsToCheck()
|
D | CapturedActivity.java | 223 Rect boundsToCheck = animationTestCase.getBoundsToCheck(mParentLayout); in runTest() local 224 if (boundsToCheck != null && (boundsToCheck.width() < 40 in runTest() 225 || boundsToCheck.height() < 40)) { in runTest() 226 fail("capture bounds too small to be a fullscreen activity: " + boundsToCheck); in runTest() 230 + (boundsToCheck == null ? "full screen" : boundsToCheck.toShortString())); in runTest() 233 boundsToCheck, animationTestCase.getChecker(), numFramesRequired); in runTest()
|
D | SurfacePixelValidator2.java | 124 public SurfacePixelValidator2(Point size, @Nullable Rect boundsToCheck, in SurfacePixelValidator2() argument 133 if (boundsToCheck == null) { in SurfacePixelValidator2() 136 mBoundsToCheck = new Rect(boundsToCheck); in SurfacePixelValidator2()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayManagerTest.java | 121 final Rect boundsToCheck = mActivity.getBoundsToCheck(); in testCreateVirtualDisplayFromShell() local 128 int size = boundsToCheck.width() * boundsToCheck.height(); in testCreateVirtualDisplayFromShell() 130 image.getPlanes()[0], boundsToCheck); in testCreateVirtualDisplayFromShell() 133 Log.w(TAG, "boundsToCheck=" + boundsToCheck + " expectedPixels=" + size in testCreateVirtualDisplayFromShell()
|