Home
last modified time | relevance | path

Searched refs:capture (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/tests/systemui/src/android/systemui/cts/
DScreenshotTestRule.java63 private void capture(String fileName) { in capture() method in ScreenshotTestRule
64 ScreenCapture screenCapture = Screenshot.capture(); in capture()
75 private void capture(Description description, String result) { in capture() method in ScreenshotTestRule
78 capture(fileName + "_" + result); in capture()
81 public void capture() { in capture() method in ScreenshotTestRule
82 capture(mClassName + "#" + mTestMethod); in capture()
99 capture(description, "failed"); in failed()
DWindowInsetsBehaviorTests.java609 mScreenshotTestRule.capture(); in mandatorySystemGesture_excludeViewRects_withoutAnyCancel()
636 mScreenshotTestRule.capture(); in systemGesture_notExcludeViewRects_withoutAnyCancel()
661 mScreenshotTestRule.capture(); in tappableElements_tapSamplePoints_excludeViewRects_withoutAnyCancel()
683 mScreenshotTestRule.capture(); in tappableElements_tapSamplePoints_notExcludeViewRects_withoutAnyCancel()
/cts/tests/tests/text/src/android/text/cts/
DEmojiTest.java125 bitmapA = ccanvas.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyph()
126 bitmapB = ccanvas.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyph()
133 bitmapA = cviewA.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyph()
135 bitmapB = cviewB.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyph()
141 bitmapA = cedittextA.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyph()
143 bitmapB = cedittextB.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyph()
168 bitmapA = cwebview.capture(Character.toChars(sComparedCodePoints[i][0])); in testEmojiGlyphWebView()
169 bitmapB = cwebview.capture(Character.toChars(sComparedCodePoints[i][1])); in testEmojiGlyphWebView()
227 Bitmap capture(char c[]) { in capture() method in EmojiTest.CaptureCanvas
250 Bitmap capture(char c[]) { in capture() method in EmojiTest.CaptureTextView
[all …]
DMyanmarTest.java204 final Bitmap bitmapCorrect = CaptureTextView.capture(context, localeList, in isUnicodeRendersCorrectly()
206 final Bitmap bitmapWrong = CaptureTextView.capture(context, localeList, in isUnicodeRendersCorrectly()
213 final Bitmap bitmapCorrect = CaptureTextView.capture(context, localeList, in isZawgyiRendersCorrectly()
215 final Bitmap bitmapWrong = CaptureTextView.capture(context, localeList, in isZawgyiRendersCorrectly()
235 private Bitmap capture(String text) { in capture() method in MyanmarTest.CaptureTextView
250 static Bitmap capture(Context context, LocaleList localeList, String string) { in capture() method in MyanmarTest.CaptureTextView
253 return textView.capture(string); in capture()
/cts/tests/app/src/android/app/cts/
DFragmentReceiveResultTest.java59 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk()
71 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled()
83 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk()
95 .onActivityResult(eq(40), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartIntentSenderForResultCanceled()
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java139 .times(1)).onOpened(captor.capture()); in assertCameraAccess()
144 .times(1)).onError(captor.capture(), in assertCameraAccess()
172 .times(1)).onOpened(captor.capture()); in testCameraAccessBecomingInactiveUidByCamera()
183 .times(1)).onError(captor.capture(), in testCameraAccessBecomingInactiveUidByCamera()
DFastBasicsTest.java113 CaptureRequest capture = stillCaptureRequest.build(); in camera2TestByCamera() local
114 mSession.capture(capture, resultListener, mHandler); in camera2TestByCamera()
117 resultListener.getTotalCaptureResultForRequest(capture, FRAMES_TO_WAIT_FOR_CAPTURE); in camera2TestByCamera()
DStillCaptureTest.java677 mSession.capture(request, resultListener, mHandler); in focalLengthTestByCamera()
715 mSession.capture(request, stillResultListener, mHandler); in previewPersistenceTestByCamera()
886 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
894 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
901 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
926 mSession.capture(request, resultListener, mHandler); in takePictureTestByCamera()
1022 mSession.capture(stillRequest.build(), resultListener, mHandler); in previewStillCombinationTestByCamera()
1062 mSession.capture(rawRequest, resultListener, mHandler); in rawCaptureTestByCamera()
1138 mSession.capture(multiRequest, resultListener, mHandler); in fullRawCaptureTestByCamera()
1321 mSession.capture(request, resultListener, mHandler); in stillExifTestByCamera()
[all …]
DSurfaceViewPreviewTest.java557 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera()
567 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera()
610 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera()
619 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera()
635 mSession.capture(request.build(), resultListener, mHandler); in testDeferredSurfacesByCamera()
922 timestamps.capture(), in verifyCaptureResults()
923 frameNumbers.capture()); in verifyCaptureResults()
DCameraManagerTest.java357 argument.capture(), in testCameraManagerOpenAllCameras()
437 .onOpened(argument.capture()); in verifyCameraStateOpened()
489 verify(mockSuccessListener, atLeastOnce()).onOpened(argument.capture()); in testCameraManagerOpenCameraTwice()
490 verify(mockSuccessListener, atLeastOnce()).onDisconnected(argument.capture()); in testCameraManagerOpenCameraTwice()
494 verify(mockFailListener, atLeastOnce()).onOpened(argument.capture()); in testCameraManagerOpenCameraTwice()
DRobustnessTest.java138 session.capture(request.build(), captureListener, mHandler); in testBadSurfaceDimensions()
640 session.capture(builder.build(), inputCaptureListener, mHandler); in testMandatoryReprocessableStreamCombination()
787 mCameraSession.capture(triggerRequest, captureListener, mHandler); in testBasicTriggerSequence()
819 mCameraSession.capture(triggerRequest, captureListener, mHandler); in testBasicTriggerSequence()
926 mCameraSession.capture(triggerRequest, captureListener, mHandler); in testSimultaneousTriggers()
1028 mCameraSession.capture(triggerRequest, captureListener, mHandler); in testAfThenAeTrigger()
1036 mCameraSession.capture(triggerRequest2, captureListener, mHandler); in testAfThenAeTrigger()
1144 mCameraSession.capture(triggerRequest, captureListener, mHandler); in testAeThenAfTrigger()
1152 mCameraSession.capture(triggerRequest2, captureListener, mHandler); in testAeThenAfTrigger()
1662 mCameraSession.capture(triggerRequest, captureListener, mHandler); in cancelTriggersAndWait()
DLogicalCameraDeviceTest.java280 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
295 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
311 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
409 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicPhysicalRequests()
520 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), in testInvalidPhysicalCameraRequests()
544 mSession.capture(request, new SimpleCaptureCallback(), mHandler); in testInvalidPhysicalCameraRequests()
DCameraDeviceTest.java470 session.capture(request2.build(), in testChainedOperation()
513 session.capture(request.build(), mCaptureCallback, mHandler); in testChainedOperation()
779 mSession.capture(request, captureListener, mHandler); in testCreateCustomSessionByCamera()
1184 mSession.capture(request, captureListener, mHandler); in testCreateSessionWithParametersByCamera()
1255 session.capture(request, captureListener, mHandler); in testCreateSessionsByCamera()
1330 mSession.capture(r.build(), null, null); in prepareTestByCamera()
1370 mSession.capture(r.build(), resultListener, mHandler); in prepareTestByCamera()
1476 mSession.capture(/*request*/null, /*listener*/null, mHandler); in invalidRequestCaptureTestByCamera()
1486 mSession.capture(unConfiguredRequest, /*listener*/null, mHandler); in invalidRequestCaptureTestByCamera()
1709 mSession.capture(singleRequest, resultCallback, mHandler); in captureSingleShot()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DChoreographerTest.java210 .doFrame(frameTimeNanosCaptor1.capture()); in testPostFrameCallbackWithoutDelay()
211 verify(addedFrameCallback2, times(1)).doFrame(frameTimeNanosCaptor2.capture()); in testPostFrameCallbackWithoutDelay()
227 .doFrame(frameTimeNanosCaptor1.capture()); in testPostFrameCallbackWithoutDelay()
228 verify(addedFrameCallback2, times(1)).doFrame(frameTimeNanosCaptor2.capture()); in testPostFrameCallbackWithoutDelay()
262 .doFrame(frameTimeNanosCaptor.capture()); in testPostFrameCallbackWithDelay()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator.java92 Bitmap capture = Bitmap.createBitmap(mWidth, mHeight,
94 mInPixelsAllocation.copyTo(capture);
95 mFirstFailures.put(totalFramesSeen, capture);
DSurfacePixelValidator2.java82 Bitmap capture = Bitmap.wrapHardwareBuffer(
85 mFirstFailures.put(totalFramesSeen, capture);
/cts/tests/tests/content/src/android/content/cts/
DDeferSyncTest.java124 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndMakeSyncable()
150 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReady()
175 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReadyAlwaysSyncable()
199 extrasCaptor.capture(), any(), any(), any()); in onNewAccountForEachAccount()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTransitionTest.java285 verify(enterCallback).onSharedElementStart(names.capture(), views.capture(), in callStartEndWithSharedElements()
286 snapshots.capture()); in callStartEndWithSharedElements()
295 verify(enterCallback).onSharedElementEnd(names.capture(), views.capture(), in callStartEndWithSharedElements()
296 snapshots.capture()); in callStartEndWithSharedElements()
307 verify(enterCallback).onSharedElementStart(names.capture(), views.capture(), in callStartEndWithSharedElements()
308 snapshots.capture()); in callStartEndWithSharedElements()
317 verify(enterCallback).onSharedElementEnd(names.capture(), views.capture(), in callStartEndWithSharedElements()
318 snapshots.capture()); in callStartEndWithSharedElements()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java79 verify(inputConnection, times(1)).commitCompletion(completionInfoCaptor.capture()); in testInputConnectionWrapper()
87 verify(inputConnection, times(1)).commitCorrection(correctionInfoCaptor.capture()); in testInputConnectionWrapper()
134 verify(inputConnection, times(1)).sendKeyEvent(keyEventCaptor.capture()); in testInputConnectionWrapper()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCamera2Focuser.java220 mSession.capture(requestBuilder.build(), listener, mHandler); in cancelAutoFocus()
257 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusLocked()
281 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionManagerTest.java66 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testBeginDelayedTransition()
159 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testGo()
208 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testSetTransition1()
247 verify(mListener, times(1)).onTransitionStart(transitionArgumentCaptor.capture()); in testSetTransition2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java234 void onCaptureAvailable(Image capture, String physicalCameraId); in onCaptureAvailable() argument
1268 mSession.capture(req.build(),
1687 mSession.capture(inputReqest.build(), captureCallbackWaiter, mResultHandler);
1729 mSession.capture(req.build(), mCaptureResultListener, mResultHandler);
1771 public void onCaptureAvailable(Image capture, String physicalCameraId) {
1773 int format = capture.getFormat();
1776 byte[] img = ItsUtils.getDataFromImage(capture, mSocketQueueQuota);
1782 byte[] img = ItsUtils.getDataFromImage(capture, mSocketQueueQuota);
1788 byte[] img = ItsUtils.getDataFromImage(capture, mSocketQueueQuota);
1795 byte[] img = ItsUtils.getDataFromImage(capture, mSocketQueueQuota);
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java214 verify(canvas).drawCircle(anyFloat(), anyFloat(), anyFloat(), captor.capture()); in verifyAlpha()
220 verify(canvas).drawCircle(anyFloat(), anyFloat(), anyFloat(), captor.capture()); in verifyAlpha()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java311 protected void capture(String cameraId, CaptureRequest request, CaptureCallback listener) in capture() method in Camera2MultiViewTestCase
315 camera.capture(request, listener); in capture()
588 public void capture(CaptureRequest request, CaptureCallback listener) in capture() method in Camera2MultiViewTestCase.CameraHolder
590 mSession.capture(request, listener, mHandler); in capture()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp1456 camera_status_t capture(ACaptureRequest* request, in capture() function in PreviewTestCase
3250 for (intptr_t capture = 0; capture < NUM_TEST_IMAGES; capture++) { in nativeImageReaderTestBase() local
3252 ACaptureRequest_setUserContext(req, (void*) capture); in nativeImageReaderTestBase()
3254 ret = testCase.capture(req, &resultCb, &seqId); in nativeImageReaderTestBase()
3257 cameraId, capture, ret); in nativeImageReaderTestBase()
3260 if (capture == NUM_TEST_IMAGES - 1) { in nativeImageReaderTestBase()
3812 for (int capture = 0; capture < NUM_TEST_IMAGES; capture++) { in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative() local
3816 cameraId, capture, ret); in Java_android_hardware_camera2_cts_NativeStillCaptureTest_testStillCaptureNative()

12