/frameworks/base/libs/hwui/ |
H A D | VkLayer.cpp | 28 sk_sp<SkSurface> surface; local 30 surface = SkSurface::MakeRenderTarget(mRenderState.getGrContext(), SkBudgeted::kNo, info); 31 surface->getCanvas()->clear(SK_ColorBLUE); 32 mImage = surface->makeImageSnapshot();
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | SurfaceUtils.java | 38 * Check if a surface is for preview consumer based on consumer end point Gralloc usage flags. 40 * @param surface The surface to be checked. 41 * @return true if the surface is for preview consumer, false otherwise. 43 public static boolean isSurfaceForPreview(Surface surface) { argument 44 return LegacyCameraDevice.isPreviewConsumer(surface); 48 * Check if the surface is for hardware video encoder consumer based on consumer end point 51 * @param surface The surface to be checked. 52 * @return true if the surface i 54 isSurfaceForHwVideoEncoder(Surface surface) argument 64 getSurfaceId(Surface surface) argument 80 getSurfaceSize(Surface surface) argument 96 getSurfaceFormat(Surface surface) argument 112 getSurfaceDataspace(Surface surface) argument 134 checkHighSpeedSurfaceFormat(Surface surface) argument [all...] |
/frameworks/base/core/java/android/hardware/display/ |
H A D | VirtualDisplay.java | 26 * Because a virtual display renders to a surface provided by the application, it will be 41 IVirtualDisplayCallback token, Surface surface) { 45 mSurface = surface; 56 * Gets the surface that backs the virtual display. 63 * Sets the surface that backs the virtual display. 65 * Detaching the surface that backs a virtual display has a similar effect to 68 * It is still the caller's responsibility to destroy the surface after it has 72 * @param surface The surface to set, or null to detach the surface fro 40 VirtualDisplay(DisplayManagerGlobal global, Display display, IVirtualDisplayCallback token, Surface surface) argument 74 setSurface(Surface surface) argument [all...] |
/frameworks/base/native/android/ |
H A D | native_window_jni.cpp | 30 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) { argument 31 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface); 42 sp<Surface> surface = static_cast<Surface*>(window); local 43 return android_view_Surface_createFromSurface(env, surface);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.h | 43 void destroySurface(EGLSurface surface); 47 bool isCurrent(EGLSurface surface) { return mCurrentSurface == surface; } argument 48 // Returns true if the current surface changed, false if it was already current 49 bool makeCurrent(EGLSurface surface, EGLint* errOut = nullptr); 50 Frame beginFrame(EGLSurface surface); 58 // Returns true iff the surface is now preserving buffers. 59 bool setPreserveBuffer(EGLSurface surface, bool preserve); 73 EGLint queryBufferAge(EGLSurface surface);
|
H A D | VulkanManager.cpp | 128 VulkanSurface::BackbufferInfo* VulkanManager::getAvailableBackbuffer(VulkanSurface* surface) { argument 129 SkASSERT(surface->mBackbuffers); 131 ++surface->mCurrentBackbufferIndex; 132 if (surface->mCurrentBackbufferIndex > surface->mImageCount) { 133 surface->mCurrentBackbufferIndex = 0; 137 surface->mBackbuffers + surface->mCurrentBackbufferIndex; 150 SkSurface* VulkanManager::getBackbufferSurface(VulkanSurface* surface) { argument 151 VulkanSurface::BackbufferInfo* backbuffer = getAvailableBackbuffer(surface); 252 destroyBuffers(VulkanSurface* surface) argument 277 destroySurface(VulkanSurface* surface) argument 298 createBuffers(VulkanSurface* surface, VkFormat format, VkExtent2D extent) argument 368 createSwapchain(VulkanSurface* surface) argument 525 VulkanSurface* surface = new VulkanSurface(); local 601 swapBuffers(VulkanSurface* surface) argument 688 getAge(VulkanSurface* surface) argument [all...] |
H A D | EglManager.cpp | 44 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface); 298 // surface appropriately for SurfaceFlinger: 325 EGLSurface surface = eglCreateWindowSurface( local 327 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, 332 LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, 338 return surface; 341 void EglManager::destroySurface(EGLSurface surface) { argument 342 if (isCurrent(surface)) { 345 if (!eglDestroySurface(mEglDisplay, surface)) { 346 ALOGW("Failed to destroy surface 367 makeCurrent(EGLSurface surface, EGLint* errOut) argument 391 queryBufferAge(EGLSurface surface) argument 405 beginFrame(EGLSurface surface) argument 467 setPreserveBuffer(EGLSurface surface, bool preserve) argument [all...] |
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
H A D | SyncRtSurfaceTransactionApplier.java | 28 * Helper class to apply surface transactions in sync with RenderThread. 37 * @param targetView The view in the surface that acts as synchronization anchor. 45 * Schedules applying surface parameters on the next frame. 47 * @param params The surface parameters to apply. DO NOT MODIFY the list after passing into 61 SurfaceControl surface = surfaceParams.surface; 62 t.deferTransactionUntilSurface(surface, mTargetSurface, frame); 78 t.setMatrix(params.surface, params.matrix, tmpFloat9); 79 t.setWindowCrop(params.surface, params.windowCrop); 80 t.setAlpha(params.surface, param 96 SurfaceParams(SurfaceControlCompat surface, float alpha, Matrix matrix, Rect windowCrop, int layer) argument 105 final SurfaceControl surface; field in class:SyncRtSurfaceTransactionApplier.SurfaceParams [all...] |
/frameworks/native/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 34 if (mSize && surface.data) 35 free(surface.data); 43 memset(&surface, 0, sizeof(surface)); 44 surface.version = sizeof(surface); 74 if (!surface.data) 77 int w = surface.width; 78 int h = surface.height; 109 return surface; [all...] |
/frameworks/native/opengl/tools/glgen/stubs/egl/ |
H A D | eglCreateWindowSurface.java | 36 EGLSurface surface; 38 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); 40 surface = _eglCreateWindowSurfaceTexture(dpy, config, 49 return surface;
|
/frameworks/av/include/media/stagefright/ |
H A D | SurfaceUtils.h | 40 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason); 41 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason);
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
H A D | SurfaceUtils.h | 40 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason); 41 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLEnvironment.java | 102 public int registerSurface(Surface surface) { argument 103 int result = nativeAddSurface(surface); 105 throw new RuntimeException("Error registering surface " + surface + "!"); 111 Surface surface = new Surface(surfaceTexture); 112 int result = nativeAddSurfaceWidthHeight(surface, width, height); 113 surface.release(); 123 throw new RuntimeException("Error registering surface from " 131 throw new RuntimeException("Could not activate surface " + surfaceId + "!"); 137 throw new RuntimeException("Could not unregister surface " 171 nativeAddSurface(Surface surface) argument 173 nativeAddSurfaceWidthHeight(Surface surface, int width, int height) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | RSTextureView.java | 68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 70 mSurfaceTexture = surface; 81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 83 mSurfaceTexture = surface; 94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument 96 mSurfaceTexture = surface; 109 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument 111 mSurfaceTexture = surface; 147 * @param sc The RS surface config to create.
|
/frameworks/native/cmds/flatland/ |
H A D | GLHelper.h | 51 bool makeCurrent(EGLSurface surface); 54 sp<GLConsumer>* surfaceTexture, EGLSurface* surface, 58 sp<SurfaceControl>* surfaceControl, EGLSurface* surface); 60 void destroySurface(EGLSurface* surface); 62 bool swapBuffers(EGLSurface surface); 71 sp<GLConsumer>* surfaceTexture, EGLSurface* surface);
|
/frameworks/native/opengl/tests/swapinterval/ |
H A D | swapinterval.cpp | 43 EGLSurface surface; local 71 surface = eglCreateWindowSurface(dpy, config, window, NULL); 72 if (surface == EGL_NO_SURFACE) { 84 eglMakeCurrent(dpy, surface, surface, context); 85 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 86 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 100 eglSwapBuffers(dpy, surface); 112 eglSwapBuffers(dpy, surface); 115 eglSwapBuffers(dpy, surface); [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | LegacyCameraDevice.java | 292 * Check if a given surface uses {@link ImageFormat#YUV_420_888} or format that can be readily 295 * @param s the surface to check. 341 * <p>Every surface in {@code outputs} must be non-{@code null}.</p> 365 // Validate surface size and format. 447 "submitRequestList - configured surface is abandoned."); 450 // Make sure that there all requests have at least 1 surface; all surfaces are non-null 460 for (Surface surface : request.getTargets()) { 461 if (surface == null) { 471 } else if (!containsSurfaceId(surface, surfaceIds)) { 472 Log.e(TAG, "submitRequestList - cannot use a surface tha 602 getSurfaceSize(Surface surface) argument 663 detectSurfaceUsageFlags(Surface surface) argument 671 detectSurfaceType(Surface surface) argument 688 detectSurfaceDataspace(Surface surface) argument 693 connectSurface(Surface surface) argument 699 disconnectSurface(Surface surface) argument 705 produceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument 717 setSurfaceFormat(Surface surface, int pixelFormat) argument 724 setSurfaceDimens(Surface surface, int width, int height) argument 733 getSurfaceId(Surface surface) argument 788 setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument 806 setNextTimestamp(Surface surface, long timestamp) argument 812 setScalingMode(Surface surface, int mode) argument 819 nativeDetectSurfaceType(Surface surface) argument 821 nativeDetectSurfaceDataspace(Surface surface) argument 823 nativeDetectSurfaceDimens(Surface surface, int[ ] dimens) argument 826 nativeConnectSurface(Surface surface) argument 828 nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument 831 nativeSetSurfaceFormat(Surface surface, int pixelFormat) argument 833 nativeSetSurfaceDimens(Surface surface, int width, int height) argument 835 nativeGetSurfaceId(Surface surface) argument 837 nativeSetSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument 843 nativeSetNextTimestamp(Surface surface, long timestamp) argument 845 nativeDetectSurfaceUsageFlags(Surface surface) argument 847 nativeSetScalingMode(Surface surface, int scalingMode) argument 849 nativeDisconnectSurface(Surface surface) argument [all...] |
/frameworks/native/opengl/tests/gl_perf/ |
H A D | gl2_perf.cpp | 50 static EGLSurface surface; variable 92 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); 94 if (surface == EGL_NO_SURFACE) { 105 returnValue = eglMakeCurrent(dpy, surface, surface, context); 110 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 112 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 119 eglSwapBuffers(dpy, surface); 127 eglSwapBuffers(dpy, surface);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | SkiaPipelineTests.cpp | 51 auto surface = SkSurface::MakeRasterN32Premul(1, 1); local 52 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); 53 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); 55 surface); 56 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); 82 auto surface = SkSurface::MakeRasterN32Premul(1, 1); local 83 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); 84 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); 88 surface); 89 ASSERT_EQ(TestUtils::getColor(surface, 106 auto surface = SkSurface::MakeRasterN32Premul(2, 2); local 130 auto surface = SkSurface::MakeRasterN32Premul(2, 2); local 199 auto surface = SkSurface::MakeRasterN32Premul(1, 1); local [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_Surface.cpp | 104 jobject android_view_Surface_createFromSurface(JNIEnv* env, const sp<Surface>& surface) { argument 106 gSurfaceClassInfo.ctor, (jlong)surface.get()); 115 surface->incStrong(&sRefBaseOwner); 125 sp<Surface> surface(new Surface(bufferProducer, true)); 126 return android_view_Surface_createFromSurface(env, surface); 255 sp<Surface> surface(new Surface(producer, true)); 256 if (surface == NULL) { 261 surface->incStrong(&sRefBaseOwner); 262 return jlong(surface.get()); 304 sp<Surface> surface(reinterpret_cas 486 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local 494 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local 502 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local 507 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local 512 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local 518 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local 526 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local 533 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local [all...] |
/frameworks/native/libs/vr/libvrflinger/ |
H A D | display_service.cpp | 64 for (const auto& surface : surfaces) { 65 if (surface->surface_type() == SurfaceType::Application) { 67 stream << " surface_id=" << surface->surface_id() 68 << " process_id=" << surface->process_id() 69 << " user_id=" << surface->user_id() 70 << " visible=" << surface->visible() 71 << " z_order=" << surface->z_order(); 74 auto queue_ids = surface->GetQueueIds(); 89 for (const auto& surface : surfaces) { 90 if (surface 250 auto surface = surface_status.take(); local 317 auto surface = std::static_pointer_cast<DisplaySurface>(message.GetChannel()); local [all...] |
H A D | display_manager_service.cpp | 101 [&items](const std::shared_ptr<DisplaySurface>& surface) mutable { 102 items.push_back({surface->surface_id(), surface->process_id(), 103 surface->user_id(), surface->attributes(), 104 surface->update_flags(), surface->GetQueueIds()}); 105 surface->ClearUpdate(); 116 auto surface = display_service_->GetDisplaySurface(surface_id); local 117 if (!surface || surfac [all...] |
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
H A D | EGLSurfaceImpl.java | 26 public EGLSurfaceImpl(long surface) { argument 27 mEGLSurface = surface;
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | OutputConfiguration.java | 52 * <li>Passing only a surface source class as an argument to the constructor. This is usually 61 * <li>The third and most complex usage pattern inlvolves surface sharing. Once instantiated an 62 * OutputConfiguration can be enabled for surface sharing via {@link #enableSurfaceSharing}. This 65 * surface sharing can be modified via {@link #addSurface} or {@link #removeSurface}. The updates 72 * complexity and flexibility. If exercised correctly surface sharing can switch between different 127 * Invalid surface group ID. 129 *<p>An {@link OutputConfiguration} with this value indicates that the included surface 130 *doesn't belong to any surface group.</p> 137 * @param surface 140 * <p>This constructor creates a default configuration, with a surface grou 144 OutputConfiguration(@onNull Surface surface) argument 203 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface) argument 226 OutputConfiguration(@onNull Surface surface, int rotation) argument 252 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) argument 446 addSurface(@onNull Surface surface) argument 495 removeSurface(@onNull Surface surface) argument [all...] |
/frameworks/base/libs/hwui/debug/ |
H A D | nullegl.cpp | 28 EGLSurface surface; member in struct:__anon1015 49 ptr->surface = EGL_NO_SURFACE; 94 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) { argument 95 free(surface); 99 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint* value) { argument 108 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) { argument 127 state->surface = draw; 137 return getThreadState()->surface; 144 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) { argument 148 EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface surface, EGLin argument 175 eglBeginFrame(EGLDisplay dpy, EGLSurface surface) argument [all...] |