Home
last modified time | relevance | path

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

/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java93 public void onPixelCopyFinished(int copyResult) { in onPixelCopyFinished() argument
95 mStatus = copyResult; in onPixelCopyFinished()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyTest.java767 int copyResult = PixelCopy.ERROR_SOURCE_NO_DATA; in testVideoProducer() local
769 copyResult = mCopyHelper.request(activity.getVideoView(), bitmap); in testVideoProducer()
770 if (copyResult != PixelCopy.ERROR_SOURCE_NO_DATA) { in testVideoProducer()
775 assertEquals(PixelCopy.SUCCESS, copyResult); in testVideoProducer()
782 copyResult = mCopyHelper.request(activity.getVideoView(), new Rect(0, 0, 50, 50), bitmap); in testVideoProducer()
783 assertEquals("Scaled copy request failed", PixelCopy.SUCCESS, copyResult); in testVideoProducer()
787 copyResult = mCopyHelper.request(activity.getVideoView(), new Rect(50, 0, 100, 50), bitmap); in testVideoProducer()
788 assertEquals("Scaled copy request failed", PixelCopy.SUCCESS, copyResult); in testVideoProducer()
792 copyResult = mCopyHelper.request(activity.getVideoView(), new Rect(0, 50, 50, 100), bitmap); in testVideoProducer()
793 assertEquals("Scaled copy request failed", PixelCopy.SUCCESS, copyResult); in testVideoProducer()
[all …]
DViewAnimationMatrixTest.java114 copyResult -> { in captureView()
115 assertEquals(PixelCopy.SUCCESS, copyResult); in captureView()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAbstractAutoFillActivity.java104 final int copyResult = copy.request(getWindow(), srcRect, dest); in takeScreenshot() local
105 assertThat(copyResult).isEqualTo(PixelCopy.SUCCESS); in takeScreenshot()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformTest.java150 int copyResult = copy.request((SurfaceView) sActivity.findViewById(R.id.surfaceview), dest); in takeScreenshot() local
151 assertEquals("PixelCopy failed", PixelCopy.SUCCESS, copyResult); in takeScreenshot()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSurfaceViewTests.java140 int copyResult = copy.request(mSurfaceView, srcRect, dest); in takeScreenshot() local
141 Assert.assertEquals(PixelCopy.SUCCESS, copyResult); in takeScreenshot()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java137 int copyResult = copy.request(getActivity().getWindow(), srcRect, dest); in takeScreenshot() local
138 Assert.assertEquals(PixelCopy.SUCCESS, copyResult); in takeScreenshot()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java345 int copyResult = copy.request(mActivity.getWindow(), srcRect, dest); in takeScreenshot() local
346 Assert.assertEquals(PixelCopy.SUCCESS, copyResult); in takeScreenshot()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTestBase.java1374 private int copyResult; field in SurfaceViewSnapshot
1380 this.copyResult = INITIAL_STATE; in SurfaceViewSnapshot()
1387 copyResult = INITIAL_STATE; in run()
1392 while ((copyResult = copyHelper.request(surfaceView, bitmap)) != PixelCopy.SUCCESS in run()
1414 return bitmap != null && copyResult == PixelCopy.SUCCESS; in isBitmapReady()
1461 public void onPixelCopyFinished(int copyResult) { in onPixelCopyFinished() argument
1463 status = copyResult; in onPixelCopyFinished()