Home
last modified time | relevance | path

Searched refs:renderer (Results 1 – 25 of 44) sorted by relevance

12

/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfRendererPreVTest.java112 PdfRendererPreV renderer = createPreVRenderer(PROTECTED_PDF, mContext, LOAD_PARAMS); in rendererRecoversAfterFailure() local
113 renderer.close(); in rendererRecoversAfterFailure()
118 PdfRendererPreV renderer = createPreVRenderer(PROTECTED_PDF, mContext, LOAD_PARAMS); in useRenderer_afterRendererClose_throwsException() local
119 renderer.close(); in useRenderer_afterRendererClose_throwsException()
121 assertThrows(IllegalStateException.class, renderer::close); in useRenderer_afterRendererClose_throwsException()
122 assertThrows(IllegalStateException.class, renderer::getPageCount); in useRenderer_afterRendererClose_throwsException()
123 assertThrows(IllegalStateException.class, renderer::getDocumentLinearizationType); in useRenderer_afterRendererClose_throwsException()
124 assertThrows(IllegalStateException.class, () -> renderer.write(null, true)); in useRenderer_afterRendererClose_throwsException()
125 assertThrows(IllegalStateException.class, () -> renderer.openPage(0)); in useRenderer_afterRendererClose_throwsException()
130 PdfRendererPreV renderer = createPreVRenderer(SAMPLE_PDF, mContext, LOAD_PARAMS); in usePage_afterRendererClose_throwsException() local
[all …]
DPdfRendererTest.java97 PdfRenderer renderer = createRenderer(SAMPLE_PDF, mContext); in getDocumentType_withNonLinearizedPdf() local
98 assertThat(renderer.getDocumentLinearizationType()).isEqualTo( in getDocumentType_withNonLinearizedPdf()
100 renderer.close(); in getDocumentType_withNonLinearizedPdf()
107 PdfRenderer renderer = createRendererUsingNewConstructor(PROTECTED_PDF, mContext, in getDocumentType_withLinearizedPdf() local
109 assertThat(renderer.getDocumentLinearizationType()).isEqualTo( in getDocumentType_withLinearizedPdf()
111 renderer.close(); in getDocumentType_withLinearizedPdf()
166 PdfRenderer renderer = createRenderer(TWO_PAGES, mContext); in rendererRecoversAfterFailure() local
167 renderer.close(); in rendererRecoversAfterFailure()
181 PdfRenderer renderer = createRenderer(A4_PORTRAIT, mContext); in useRendererAfterClose() local
182 renderer.close(); in useRendererAfterClose()
[all …]
DUtils.java194 try (PdfRenderer renderer = createRendererUsingNewConstructor(docRes, context, in renderWithTransform() argument
196 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderWithTransform()
204 try (PdfRenderer renderer = createRenderer(docRes, context)) { in renderWithTransform() argument
205 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderWithTransform()
242 try (PdfRenderer renderer = createRendererUsingNewConstructor(docRes, context, in renderAndThenTransform() argument
244 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderAndThenTransform()
257 try (PdfRenderer renderer = Utils.createRenderer(docRes, context)) { in renderAndThenTransform() argument
258 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderAndThenTransform()
489 try (PdfRendererPreV renderer = createPreVRenderer(docRes, context, null)) { in renderPreV() argument
490 try (PdfRendererPreV.Page page = renderer.openPage(0)) { in renderPreV()
[all …]
DPdfFormFillingTest.java476 try (PdfRenderer renderer = createRenderer(CLICK_FORM, mContext)) { in getFormWidgetInfo_invalidIndex() argument
477 try (PdfRenderer.Page page = renderer.openPage(0)) { in getFormWidgetInfo_invalidIndex()
487 try (PdfRenderer renderer = createRenderer(CLICK_FORM, mContext)) { in getFormWidgetInfo_emptyPoint() argument
488 try (PdfRenderer.Page page = renderer.openPage(0)) { in getFormWidgetInfo_emptyPoint()
1029 try (PdfRenderer renderer = createRenderer(docRes, mContext)) { in verifyFormType() argument
1030 int formType = renderer.getPdfFormType(); in verifyFormType()
1037 try (PdfRenderer renderer = createRenderer(docRes, mContext)) { in verifyFormWidgetInfo() argument
1038 try (PdfRenderer.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfo()
1051 try (PdfRenderer renderer = createRenderer(docRes, mContext)) { in verifyFormWidgetInfos() argument
1052 try (PdfRenderer.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfos()
[all …]
DPdfFormFillingPreVTest.java475 try (PdfRendererPreV renderer = createPreVRenderer(CLICK_FORM, mContext, null)) { in getFormWidgetInfo_invalidIndex() argument
476 try (PdfRendererPreV.Page page = renderer.openPage(0)) { in getFormWidgetInfo_invalidIndex()
486 try (PdfRendererPreV renderer = createPreVRenderer(CLICK_FORM, mContext, null)) { in getFormWidgetInfo_emptyPoint() argument
487 try (PdfRendererPreV.Page page = renderer.openPage(0)) { in getFormWidgetInfo_emptyPoint()
1032 try (PdfRendererPreV renderer = createPreVRenderer(docRes, mContext, null)) { in verifyFormType() argument
1033 int formType = renderer.getPdfFormType(); in verifyFormType()
1040 try (PdfRendererPreV renderer = createPreVRenderer(docRes, mContext, null)) { in verifyFormWidgetInfo() argument
1041 try (PdfRendererPreV.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfo()
1054 try (PdfRendererPreV renderer = createPreVRenderer(docRes, mContext, null)) { in verifyFormWidgetInfos() argument
1055 try (PdfRendererPreV.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfos()
[all …]
/cts/tests/openglperf2/jni/reference/
DGLReference.cpp36 ReferenceRenderer* renderer = new ReferenceRenderer(nativeWindow); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark() local
37 bool success = renderer->eglSetUp(); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
38 success = renderer->setUp(0) && success; in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
40 setUpTimes, 0, ReferenceRenderer::NUM_SETUP_TIMES, renderer->mSetUpTimes); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
46 success = renderer->update(i); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
48 success = success && renderer->draw(); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
57 success = renderer->tearDown() && success; in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
58 renderer->eglTearDown(); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
59 delete renderer; in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
60 renderer = NULL; in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareRendererTests.kt73 val renderer = HardwareRenderer() in <lambda>() constant
76 renderer.setSurface(reader.surface) in <lambda>()
77 renderer.notifyFramePending() in <lambda>()
78 setup.invoke(renderer) in <lambda>()
79 val syncResult = renderer.createRenderRequest() in <lambda>()
111 renderer.destroy() in <lambda>()
152 val renderer = HardwareRenderer() in testBasicDrawCpuConsumer() constant
161 renderer.setContentRoot(content) in testBasicDrawCpuConsumer()
163 renderer.setSurface(reader.surface) in testBasicDrawCpuConsumer()
165 val syncResult = renderer.createRenderRequest() in testBasicDrawCpuConsumer()
[all …]
DHardwareBufferRendererTests.kt61 fun testRenderAfterCloseReturnsError() = hardwareBufferRendererTest{ _, renderer -> in <lambda>() method
62 renderer.close() in <lambda>()
64 renderer.obtainRenderRequest().draw(mExecutor) { _ -> /* NO-OP */ } in <lambda>()
69 fun testIsClosed() = hardwareBufferRendererTest { _, renderer -> in <lambda>() method
70 assertFalse(renderer.isClosed()) in <lambda>()
71 renderer.close() in <lambda>()
72 assertTrue(renderer.isClosed()) in <lambda>()
76 fun testMultipleClosesDoesNotCrash() = hardwareBufferRendererTest { _, renderer -> in <lambda>() method
77 renderer.close() in <lambda>()
78 renderer.close() in <lambda>()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_CameraGpuCtsActivity.cpp302 auto renderer = std::unique_ptr<CameraFrameRenderer>(new CameraFrameRenderer); in createRenderer() local
303 int ret = renderer->initRenderer(); in createRenderer()
309 return jptr(renderer.release()); in createRenderer()
312 bool isCameraReady(JNIEnv*, jclass, jlong renderer) { in isCameraReady() argument
313 if (renderer == 0) { in isCameraReady()
318 return native(renderer)->isCameraReady(); in isCameraReady()
321 void destroyRenderer(JNIEnv*, jclass, jlong renderer) { delete native(renderer); } in destroyRenderer() argument
323 jint drawFrame(JNIEnv*, jclass, jlong renderer) { in drawFrame() argument
324 if (renderer == 0) { in drawFrame()
329 return native(renderer)->drawFrame(); in drawFrame()
Dandroid_graphics_cts_CameraVulkanGpuTest.cpp52 VkImageRenderer renderer(&init, kTestImageWidth, kTestImageHeight, in loadCameraAndVerifyFrameImport() local
54 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadCameraAndVerifyFrameImport()
82 ASSERT(renderer.renderImageAndReadback( in loadCameraAndVerifyFrameImport()
98 VkImageRenderer renderer(&init, kTestImageWidth, kTestImageHeight, in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() local
100 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
128 ASSERT(renderer.renderImageAndReadback( in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
Dandroid_graphics_cts_VulkanPreTransformCtsActivity.cpp63 Renderer renderer(&deviceInfo, &swapchainInfo); in createNativeTest() local
64 ASSERT(renderer.init(env, jAssetManager) == VK_TEST_SUCCESS, in createNativeTest()
68 ret = renderer.drawFrame(); in createNativeTest()
Dandroid_graphics_cts_BasicVulkanGpuTest.cpp96 VkImageRenderer renderer(&init, kTestImageWidth, kTestImageHeight, in verifyBasicBufferImport() local
98 ASSERT(renderer.init(env, assetMgr), "Unable to initialize VkRenderer."); in verifyBasicBufferImport()
127 ASSERT(renderer.renderImageAndReadback(vkImage.image(), vkImage.sampler(), in verifyBasicBufferImport()
/cts/hostsidetests/angle/app/driverTestSecondary/src/com/android/angleIntegrationTest/driverTestSecondary/
DAngleDriverTestActivity.java38 String renderer = glesView.getRenderer(); in validateDeveloperOption() local
39 fail("Failure - ANGLE was not loaded: '" + renderer + "'"); in validateDeveloperOption()
41 String renderer = glesView.getRenderer(); in validateDeveloperOption() local
42 fail("Failure - ANGLE was loaded: '" + renderer + "'"); in validateDeveloperOption()
/cts/hostsidetests/angle/app/driverTest/src/com/android/angleIntegrationTest/driverTest/
DAngleDriverTestActivity.java38 String renderer = glesView.getRenderer(); in validateDeveloperOption() local
39 fail("Failure - ANGLE was not loaded: '" + renderer + "'"); in validateDeveloperOption()
41 String renderer = glesView.getRenderer(); in validateDeveloperOption() local
42 fail("Failure - ANGLE was loaded: '" + renderer + "'"); in validateDeveloperOption()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DUtility.cpp109 void Utility::setFailure(std::string message, Renderer *renderer) { in setFailure() argument
111 if (renderer != nullptr) { in setFailure()
112 renderer->addResult("failure", message); in setFailure()
113 JNIManager::sendResultsToJava(renderer->getResults()); in setFailure()
114 delete renderer; in setFailure()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DGLESSurfaceView.java61 String renderer; in onSurfaceCreated() local
65 renderer = GLES20.glGetString(GLES20.GL_RENDERER); in onSurfaceCreated()
69 renderer = GLES30.glGetString(GLES30.GL_RENDERER); in onSurfaceCreated()
73 renderer = gl.glGetString(GL10.GL_RENDERER); in onSurfaceCreated()
77 Log.i(TAG, "renderer : " + renderer); in onSurfaceCreated()
78 mParent.setGraphicsInfo(vendor, renderer); in onSurfaceCreated()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewRenderProcessTest.java94 final WebViewRenderProcess renderer) { in terminateRenderProcessOnUiThread() argument
96 return renderer.terminate(); in terminateRenderProcessOnUiThread()
155 …final WebViewRenderProcess renderer = WebkitUtils.waitForFuture(startAndGetRenderProcess(webView));
158 renderer, preStartRenderProcess);
162 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView)));
167 terminateRenderProcessOnUiThread(renderer));
174 terminateRenderProcessOnUiThread(renderer));
180 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView2)));
DWebViewRenderProcessClientTest.java164 public void onRenderProcessUnresponsive(WebView view, WebViewRenderProcess renderer) { in testWebViewRenderProcessClientOnExecutor()
170 public void onRenderProcessResponsive(WebView view, WebViewRenderProcess renderer) { in testWebViewRenderProcessClientOnExecutor()
212 public void onRenderProcessUnresponsive(WebView view, WebViewRenderProcess renderer) {} in testSetWebViewRenderProcessClient()
215 public void onRenderProcessResponsive(WebView view, WebViewRenderProcess renderer) {} in testSetWebViewRenderProcessClient()
/cts/tests/tests/view/src/android/view/cts/
DGLProducerThread.java52 private GLProducerThread(SurfaceTexture surfaceTexture, GLRenderer renderer, in GLProducerThread() argument
60 mRenderer = renderer; in GLProducerThread()
63 GLProducerThread(SurfaceTexture surfaceTexture, GLRenderer renderer, int frames, int delayMs, in GLProducerThread() argument
65 this(surfaceTexture, renderer, null, frames, delayMs, semaphore); in GLProducerThread()
68 GLProducerThread(SurfaceTexture surfaceTexture, GLRenderer renderer, AtomicBoolean shouldRender, in GLProducerThread() argument
70 this(surfaceTexture, renderer, shouldRender, 0, delayMs, semaphore); in GLProducerThread()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/
DCubePresentation.java48 final CubeRenderer renderer = new CubeRenderer(true); in onCreate() local
49 cubeView.setRenderer(renderer); in onCreate()
55 renderer.explode(); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DAccelerometerTestActivity.java51 GLArrowSensorTestRenderer renderer = in onCreate() local
53 mListener = renderer; in onCreate()
59 mGLSurfaceView.setRenderer(renderer); in onCreate()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraGpuCtsActivity.java113 private static native boolean nIsCameraReady(long renderer); in nIsCameraReady() argument
114 private static native void nDestroyRenderer(long renderer); in nDestroyRenderer() argument
115 private static native int nDrawFrame(long renderer); in nDrawFrame() argument
DHardwareRendererTest.java83 HardwareBufferRenderer renderer = new HardwareBufferRenderer(buffer); in hardwareBufferRendererLeakTest() local
86 renderer.setContentRoot(content); in hardwareBufferRendererLeakTest()
97 renderer.obtainRenderRequest().draw(executor, resultListener); in hardwareBufferRendererLeakTest()
/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfDocumentTest.java191 PdfRenderer renderer = new PdfRenderer(fd); in writeTwoPageDocWithSameIndex() local
192 assertEquals(2, renderer.getPageCount()); in writeTwoPageDocWithSameIndex()
193 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDocWithSameIndex()
198 try (PdfRenderer.Page page = renderer.openPage(1)) { in writeTwoPageDocWithSameIndex()
243 PdfRenderer renderer = new PdfRenderer(fd); in writeTwoPageDoc() local
244 assertEquals(1, renderer.getPageCount()); in writeTwoPageDoc()
245 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDoc()
267 PdfRenderer renderer = new PdfRenderer(fd); in writeTwoPageDoc() local
268 assertEquals(2, renderer.getPageCount()); in writeTwoPageDoc()
269 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDoc()
[all …]
/cts/libs/view/src/com/android/view/
DRenderedSurfaceView.java49 public void setRenderer(SurfaceRenderer renderer) { in setRenderer() argument
50 mRenderer = renderer; in setRenderer()

12