Home
last modified time | relevance | path

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

/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DBitmapPixelChecker.java102 Bitmap swBitmap = takeScreenshot(activity); in validateScreenshot() local
103 Rect bounds = getBounds(swBitmap, insets); in validateScreenshot()
105 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot()
109 saveFailureCaptures(swBitmap, activity.getClass(), testName); in validateScreenshot()
116 swBitmap.recycle(); in validateScreenshot()
124 Bitmap swBitmap = takeScreenshot(activity); in validateScreenshot() local
125 Rect bounds = getBounds(swBitmap, insets); in validateScreenshot()
127 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot()
134 saveFailureCaptures(swBitmap, activity.getClass(), testName); in validateScreenshot()
140 swBitmap.recycle(); in validateScreenshot()
[all …]
DASurfaceControlTestActivity.java189 Bitmap swBitmap = mScreenshot.copy(Bitmap.Config.ARGB_8888, false); in verifyScreenshot() local
192 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap); in verifyScreenshot()
195 for (Rect bounds : pixelChecker.getBoundsToCheck(swBitmap)) { in verifyScreenshot()
199 boolean success = pixelChecker.checkPixels(numMatchingPixels, swBitmap.getWidth(), in verifyScreenshot()
200 swBitmap.getHeight()); in verifyScreenshot()
202 saveFailureCapture(swBitmap, name); in verifyScreenshot()
204 swBitmap.recycle(); in verifyScreenshot()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceSyncGroupTests.java196 Bitmap swBitmap = screenshot.copy(Bitmap.Config.ARGB_8888, false); in validateScreenshot() local
200 int halfWidth = swBitmap.getWidth() / 2; in validateScreenshot()
201 int halfHeight = swBitmap.getHeight() / 2; in validateScreenshot()
205 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot()
209 swBitmap.recycle(); in validateScreenshot()