Home
last modified time | relevance | path

Searched refs:srcRect (Results 1 – 7 of 7) sorted by relevance

/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAbstractAutoFillActivity.java100 final Rect srcRect = new Rect(); in takeScreenshot() local
101 syncRunOnUiThread(() -> view.getGlobalVisibleRect(srcRect)); in takeScreenshot()
103 srcRect.width(), srcRect.height(), Bitmap.Config.ARGB_8888); in takeScreenshot()
106 final int copyResult = copy.request(getWindow(), srcRect, dest); in takeScreenshot()
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java54 public int request(Surface source, Rect srcRect, Bitmap dest) { in request() argument
57 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
70 public int request(SurfaceView source, Rect srcRect, Bitmap dest) { in request() argument
73 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
86 public int request(Window source, Rect srcRect, Bitmap dest) { in request() argument
89 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java151 final Rect srcRect = new Rect(); in testAnimationOnLayer() local
153 imageView[0].getGlobalVisibleRect(srcRect); in testAnimationOnLayer()
160 Bitmap screenShot = takeScreenshot(srcRect); in testAnimationOnLayer()
312 final Rect srcRect = new Rect(); in testInfiniteAVD() local
314 mActivity.findViewById(R.id.imageview).getGlobalVisibleRect(srcRect); in testInfiniteAVD()
320 Bitmap screenShot = takeScreenshot(srcRect); in testInfiniteAVD()
348 private Bitmap takeScreenshot(Rect srcRect) { in takeScreenshot() argument
351 srcRect.width(), srcRect.height(), Bitmap.Config.ARGB_8888); in takeScreenshot()
352 int copyResult = copy.request(mActivity.getWindow(), srcRect, dest); in takeScreenshot()
/cts/tests/tests/view/src/android/view/cts/
DViewAnimationMatrixTest.java122 Rect srcRect = new Rect(0, 0, width, height); in captureView() local
123 srcRect.offset(offset[0], offset[1]); in captureView()
129 PixelCopy.request(mRule.getActivity().getWindow(), srcRect, dest, onCopyFinished, in captureView() local
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java134 Rect srcRect = new Rect(0, 0, TEST_WIDTH, TEST_HEIGHT); in takeScreenshot() local
135 srcRect.offset(testPositionInfo.surfaceOffset.x, testPositionInfo.surfaceOffset.y); in takeScreenshot()
136 Log.d(TAG, "capturing screenshot of " + srcRect.toShortString()); in takeScreenshot()
137 int copyResult = copy.request(getActivity().getWindow(), srcRect, dest); in takeScreenshot()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java161 Rect srcRect = new Rect(0, 0, TEST_WIDTH, TEST_HEIGHT); in takeScreenshot() local
162 srcRect.offset(testPositionInfo.surfaceOffset.x, testPositionInfo.surfaceOffset.y); in takeScreenshot()
163 Log.d(TAG, "capturing screenshot of " + srcRect.toShortString()); in takeScreenshot()
164 int copyResult = copy.request(getActivity().getWindow(), srcRect, dest); in takeScreenshot()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSurfaceViewTests.java215 Rect srcRect = new Rect(0, 0, TEST_WIDTH, TEST_HEIGHT);
216 int copyResult = copy.request(mSurfaceView, srcRect, dest);