Home
last modified time | relevance | path

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

/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DBitmapPixelChecker.java101 BitmapPixelChecker pixelChecker, float expectedMatchRatio, Insets insets) { in validateScreenshot() argument
104 pixelChecker.applyInsetsToLogBounds(insets); in validateScreenshot()
105 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot()
123 BitmapPixelChecker pixelChecker, int expectedMatchingPixels, Insets insets) { in validateScreenshot() argument
126 pixelChecker.applyInsetsToLogBounds(insets); in validateScreenshot()
127 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot()
DAnimationTestCase.java35 PixelChecker pixelChecker) { in AnimationTestCase() argument
39 mPixelChecker = pixelChecker; in AnimationTestCase()
DASurfaceControlTestActivity.java121 PixelChecker pixelChecker, TestName name) { in verifyTest() argument
122 verifyTest(surfaceHolderCallback, pixelChecker, name, 0); in verifyTest()
126 PixelChecker pixelChecker, TestName name, int numOfTransactionToListen) { in verifyTest() argument
145 verifyScreenshot(pixelChecker, name); in verifyTest()
166 public void verifyScreenshot(PixelChecker pixelChecker, TestName name) { in verifyScreenshot() argument
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()
DSurfaceControlTestCase.java36 public SurfaceControlTestCase(SurfaceHolder.Callback callback, PixelChecker pixelChecker, in SurfaceControlTestCase() argument
41 mPixelChecker = pixelChecker; in SurfaceControlTestCase()
DSurfacePixelValidator2.java125 PixelChecker pixelChecker, int requiredNumFrames) { in SurfacePixelValidator2() argument
132 mPixelChecker = pixelChecker; in SurfacePixelValidator2()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfacePackageFlickerTest.java83 public SurfacePackageTestCase(PixelChecker pixelChecker, in SurfacePackageTestCase() argument
87 mPixelChecker = pixelChecker; in SurfacePackageTestCase()
140 PixelChecker pixelChecker = new PixelChecker(Color.GREEN) { in testSurfacePackageNoFlicker() local
147 pixelChecker, DEFAULT_LAYOUT_WIDTH, DEFAULT_LAYOUT_HEIGHT); in testSurfacePackageNoFlicker()
DSurfaceViewSurfaceValidatorTest.java120 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLACK, in testOnTopHasNoBackground() local
122 validateScreenshot(mName, mActivity, pixelChecker, 0 /* expectedMatchingPixels */, in testOnTopHasNoBackground()
147 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLACK, in testBackgroundIsBehindAllSurfaceView() local
149 validateScreenshot(mName, mActivity, pixelChecker, 0 /* expectedMatchingPixels */, in testBackgroundIsBehindAllSurfaceView()
DASurfaceControlBackPressureTest.java234 MultiFramePixelChecker pixelChecker = new MultiFramePixelChecker(colors) { in testSurfaceTransaction_setEnableBackPressure() local
241 mActivity.verifyTest(new SurfaceControlTestCase(callback, pixelChecker, in testSurfaceTransaction_setEnableBackPressure()
264 MultiFramePixelChecker pixelChecker = new MultiFramePixelChecker(colors) { in testSurfaceTransaction_defaultBackPressureDisabled() local
272 pixelChecker, in testSurfaceTransaction_defaultBackPressureDisabled()
DFlagSecureTest.java111 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLACK); in testChildWindowInheritsFlagSecure() local
112 validateScreenshot(mName, mActivity, pixelChecker, -1 /* expectedMatchingPixels */, in testChildWindowInheritsFlagSecure()
DSurfaceSyncGroupTests.java199 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLUE); in validateScreenshot() local
205 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot()
DSurfaceControlTest.java275 private void verifyTest(SurfaceHolder.Callback callback, PixelChecker pixelChecker) { in verifyTest() argument
276 mActivity.verifyTest(callback, pixelChecker, mName); in verifyTest()
279 private void verifyTest(SurfaceHolder.Callback callback, PixelChecker pixelChecker, in verifyTest() argument
281 mActivity.verifyTest(callback, pixelChecker, mName, numOfTransaction); in verifyTest()
DASurfaceControlTest.java282 private void verifyTest(BasicSurfaceHolderCallback callback, PixelChecker pixelChecker) { in verifyTest() argument
284 mActivity.verifyTest(surfaceHolderCallback, pixelChecker, mName); in verifyTest()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DSnapshotTaskTests.java94 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.RED); in testSetDisablePreviewScreenshots() local
105 int matchingPixels = pixelChecker.getNumMatchingPixels(bitmap, boundToCheck); in testSetDisablePreviewScreenshots()
139 int matchingPixels = pixelChecker.getNumMatchingPixels(bitmap, boundToCheck); in testSetDisablePreviewScreenshots()
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveNotificationAppHidingTest.kt136 val pixelChecker = BitmapPixelChecker(Color.BLACK) in <lambda>() constant
140 pixelChecker, in <lambda>()
149 val pixelChecker = BitmapPixelChecker(Color.WHITE) in <lambda>() constant
153 pixelChecker, in <lambda>()
DViewSensitiveContentTest.java170 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLACK); in verifyScreenCapture()
171 BitmapPixelChecker.validateScreenshot(mName, activity, pixelChecker, in verifyScreenCapture()