/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | BitmapPixelChecker.java | 101 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()
|
D | AnimationTestCase.java | 35 PixelChecker pixelChecker) { in AnimationTestCase() argument 39 mPixelChecker = pixelChecker; in AnimationTestCase()
|
D | ASurfaceControlTestActivity.java | 121 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()
|
D | SurfaceControlTestCase.java | 36 public SurfaceControlTestCase(SurfaceHolder.Callback callback, PixelChecker pixelChecker, in SurfaceControlTestCase() argument 41 mPixelChecker = pixelChecker; in SurfaceControlTestCase()
|
D | SurfacePixelValidator2.java | 125 PixelChecker pixelChecker, int requiredNumFrames) { in SurfacePixelValidator2() argument 132 mPixelChecker = pixelChecker; in SurfacePixelValidator2()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfacePackageFlickerTest.java | 83 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()
|
D | SurfaceViewSurfaceValidatorTest.java | 120 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()
|
D | ASurfaceControlBackPressureTest.java | 234 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()
|
D | FlagSecureTest.java | 111 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLACK); in testChildWindowInheritsFlagSecure() local 112 validateScreenshot(mName, mActivity, pixelChecker, -1 /* expectedMatchingPixels */, in testChildWindowInheritsFlagSecure()
|
D | SurfaceSyncGroupTests.java | 199 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLUE); in validateScreenshot() local 205 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot()
|
D | SurfaceControlTest.java | 275 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()
|
D | ASurfaceControlTest.java | 282 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/ |
D | SnapshotTaskTests.java | 94 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/ |
D | SensitiveNotificationAppHidingTest.kt | 136 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>()
|
D | ViewSensitiveContentTest.java | 170 BitmapPixelChecker pixelChecker = new BitmapPixelChecker(Color.BLACK); in verifyScreenCapture() 171 BitmapPixelChecker.validateScreenshot(mName, activity, pixelChecker, in verifyScreenCapture()
|