/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | PdfRendererTest.java | 97 PdfRenderer renderer = createRenderer(TWO_PAGES, mContext); in rendererRecoversAfterFailure() local 98 renderer.close(); in rendererRecoversAfterFailure() 105 PdfRenderer renderer = createRenderer(A4_PORTRAIT, mContext); in useRendererAfterClose() local 106 renderer.close(); in useRendererAfterClose() 108 verifyException(renderer::close, IllegalStateException.class); in useRendererAfterClose() 109 verifyException(renderer::getPageCount, IllegalStateException.class); in useRendererAfterClose() 110 verifyException(renderer::shouldScaleForPrinting, IllegalStateException.class); in useRendererAfterClose() 111 verifyException(() -> renderer.openPage(0), IllegalStateException.class); in useRendererAfterClose() 116 PdfRenderer renderer = createRenderer(A4_PORTRAIT, mContext); in usePageAfterClose() local 117 Page page = renderer.openPage(0); in usePageAfterClose() [all …]
|
D | PdfDocumentTest.java | 192 PdfRenderer renderer = new PdfRenderer(fd); in writeTwoPageDocWithSameIndex() local 193 assertEquals(2, renderer.getPageCount()); in writeTwoPageDocWithSameIndex() 194 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDocWithSameIndex() 199 try (PdfRenderer.Page page = renderer.openPage(1)) { in writeTwoPageDocWithSameIndex() 245 PdfRenderer renderer = new PdfRenderer(fd); in writeTwoPageDoc() local 246 assertEquals(1, renderer.getPageCount()); in writeTwoPageDoc() 247 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDoc() 269 PdfRenderer renderer = new PdfRenderer(fd); in writeTwoPageDoc() local 270 assertEquals(2, renderer.getPageCount()); in writeTwoPageDoc() 271 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDoc() [all …]
|
D | Utils.java | 121 try (PdfRenderer renderer = createRenderer(docRes, context)) { in renderWithTransform() argument 122 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderWithTransform() 155 try (PdfRenderer renderer = Utils.createRenderer(docRes, context)) { in renderAndThenTransform() argument 156 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderAndThenTransform()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareRendererTests.kt | 73 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 …]
|
/cts/tests/openglperf2/jni/reference/ |
D | GLReference.cpp | 36 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/hostsidetests/angle/app/driverTest/src/com/android/angleIntegrationTest/driverTest/ |
D | AngleDriverTestActivity.java | 43 String renderer = glesView.getRenderer(); in validateDeveloperOption() local 45 while(renderer.length() == 0) { in validateDeveloperOption() 46 renderer = glesView.getRenderer(); in validateDeveloperOption() 50 if (!renderer.toLowerCase().contains("ANGLE".toLowerCase())) { in validateDeveloperOption() 51 fail("Failure - ANGLE was not loaded: '" + renderer + "'"); in validateDeveloperOption() 54 if (renderer.toLowerCase().contains("ANGLE".toLowerCase())) { in validateDeveloperOption() 55 fail("Failure - ANGLE was loaded: '" + renderer + "'"); in validateDeveloperOption()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewRenderProcessTest.java | 57 final WebViewRenderProcess renderer) { in terminateRenderProcessOnUiThread() argument 59 return renderer.terminate(); in terminateRenderProcessOnUiThread() 125 …final WebViewRenderProcess renderer = WebkitUtils.waitForFuture(startAndGetRenderProcess(webView)); 128 renderer, preStartRenderProcess); 132 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView))); 137 terminateRenderProcessOnUiThread(renderer)); 144 terminateRenderProcessOnUiThread(renderer)); 150 renderer, WebkitUtils.waitForFuture(startAndGetRenderProcess(webView2)));
|
D | WebViewRenderProcessClientTest.java | 124 public void onRenderProcessUnresponsive(WebView view, WebViewRenderProcess renderer) { in testWebViewRenderProcessClientOnExecutor() 130 public void onRenderProcessResponsive(WebView view, WebViewRenderProcess renderer) { in testWebViewRenderProcessClientOnExecutor() 172 public void onRenderProcessUnresponsive(WebView view, WebViewRenderProcess renderer) {} in disabled_testSetWebViewRenderProcessClient() 175 public void onRenderProcessResponsive(WebView view, WebViewRenderProcess renderer) {} in disabled_testSetWebViewRenderProcessClient()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_CameraGpuCtsActivity.cpp | 302 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()
|
D | android_graphics_cts_VulkanSurfaceSupportTest.cpp | 58 Renderer renderer(&deviceInfo, &swapchainInfo); in createNativeTest() local 59 ASSERT(renderer.init(env, jAssetManager) == VK_TEST_SUCCESS, in createNativeTest() 63 ASSERT(renderer.drawFrame() == VK_TEST_SUCCESS, "Failed to draw frame"); in createNativeTest()
|
D | android_graphics_cts_CameraVulkanGpuTest.cpp | 52 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()
|
D | android_graphics_cts_VulkanPreTransformCtsActivity.cpp | 61 Renderer renderer(&deviceInfo, &swapchainInfo); in createNativeTest() local 62 ASSERT(renderer.init(env, jAssetManager) == VK_TEST_SUCCESS, in createNativeTest() 66 ret = renderer.drawFrame(); in createNativeTest()
|
D | android_graphics_cts_BasicVulkanGpuTest.cpp | 96 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()
|
D | android_graphics_cts_MediaVulkanGpuTest.cpp | 109 VkImageRenderer renderer(&init, bufferDesc.width, bufferDesc.height, in loadMediaAndVerifyFrameImport() local 111 ASSERT(renderer.init(env, assetMgr), "Could not init VkImageRenderer."); in loadMediaAndVerifyFrameImport() 120 ASSERT(renderer.renderImageAndReadback( in loadMediaAndVerifyFrameImport()
|
/cts/hostsidetests/angle/app/driverTestSecondary/src/com/android/angleIntegrationTest/driverTestSecondary/ |
D | AngleDriverTestActivity.java | 43 String renderer = glesView.getRenderer(); in validateDeveloperOption() local 46 if (!renderer.toLowerCase().contains("ANGLE".toLowerCase())) { in validateDeveloperOption() 47 fail("Failure - ANGLE was not loaded: '" + renderer + "'"); in validateDeveloperOption() 50 if (renderer.toLowerCase().contains("ANGLE".toLowerCase())) { in validateDeveloperOption() 51 fail("Failure - ANGLE was loaded: '" + renderer + "'"); in validateDeveloperOption()
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | GLESSurfaceView.java | 61 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/view/src/android/view/cts/ |
D | GLProducerThread.java | 52 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/ |
D | CubePresentation.java | 48 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/ |
D | AccelerometerTestActivity.java | 51 GLArrowSensorTestRenderer renderer = in onCreate() local 53 mListener = renderer; in onCreate() 59 mGLSurfaceView.setRenderer(renderer); in onCreate()
|
D | RotationVectorTestActivity.java | 177 GLArrowSensorTestRenderer renderer = in onCreate() local 179 mListener = renderer; in onCreate() 181 initializeGlSurfaceView(renderer); in onCreate()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CameraGpuCtsActivity.java | 113 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
|
/cts/libs/view/src/com/android/view/ |
D | RenderedSurfaceView.java | 49 public void setRenderer(SurfaceRenderer renderer) { in setRenderer() argument 50 mRenderer = renderer; in setRenderer()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | GlesStubActivity.java | 162 void setRenderer(String renderer) { in setRenderer() argument 163 mGraphicsRenderer = renderer; in setRenderer() 414 String renderer; in onSurfaceCreated() local 418 renderer = GLES20.glGetString(GLES20.GL_RENDERER); in onSurfaceCreated() 423 renderer = GLES30.glGetString(GLES30.GL_RENDERER); in onSurfaceCreated() 428 renderer = gl.glGetString(GL10.GL_RENDERER); in onSurfaceCreated() 431 mParent.setRenderer(renderer); in onSurfaceCreated()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | GLSurfaceViewCtsActivity.java | 57 public static void setRenderer(GLSurfaceView.Renderer renderer) { in setRenderer() argument 58 mRenderer = renderer; in setRenderer()
|
/cts/tests/vr/src/android/vr/cts/ |
D | OpenGLESActivity.java | 190 public OpenGLES20View(Context context, int renderer, int protectedAttribute, in OpenGLES20View() argument 205 if (renderer == RENDERER_BASIC) { in OpenGLES20View() 207 } else if (renderer == RENDERER_PROTECTEDTEXTURES) { in OpenGLES20View() 209 } else if (renderer == RENDERER_REFRESHRATE) { in OpenGLES20View()
|