Searched refs:surface (Results 1 - 25 of 309) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DVkLayer.cpp28 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 DSurfaceUtils.java38 * 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
66 getSurfaceSize(Surface surface) argument
82 getSurfaceFormat(Surface surface) argument
98 getSurfaceDataspace(Surface surface) argument
120 checkHighSpeedSurfaceFormat(Surface surface) argument
[all...]
/frameworks/base/core/java/android/hardware/display/
H A DVirtualDisplay.java26 * 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 Dnative_window_jni.cpp30 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/av/include/media/stagefright/
H A DSurfaceUtils.h36 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason);
37 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason);
/frameworks/av/media/libstagefright/foundation/include/
H A DSurfaceUtils.h36 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason);
37 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason);
/frameworks/av/media/libstagefright/include/
H A DSurfaceUtils.h36 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason);
37 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason);
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.h43 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 DVulkanManager.cpp120 VulkanSurface::BackbufferInfo* VulkanManager::getAvailableBackbuffer(VulkanSurface* surface) { argument
121 SkASSERT(surface->mBackbuffers);
123 ++surface->mCurrentBackbufferIndex;
124 if (surface->mCurrentBackbufferIndex > surface->mImageCount) {
125 surface->mCurrentBackbufferIndex = 0;
128 VulkanSurface::BackbufferInfo* backbuffer = surface->mBackbuffers +
129 surface->mCurrentBackbufferIndex;
143 SkSurface* VulkanManager::getBackbufferSurface(VulkanSurface* surface) { argument
144 VulkanSurface::BackbufferInfo* backbuffer = getAvailableBackbuffer(surface);
243 destroyBuffers(VulkanSurface* surface) argument
268 destroySurface(VulkanSurface* surface) argument
289 createBuffers(VulkanSurface* surface, VkFormat format, VkExtent2D extent) argument
369 createSwapchain(VulkanSurface* surface) argument
526 VulkanSurface* surface = new VulkanSurface(); local
605 swapBuffers(VulkanSurface* surface) argument
692 getAge(VulkanSurface* surface) argument
[all...]
H A DEglManager.cpp44 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
224 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, attribs); local
225 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE,
230 LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED) == EGL_FALSE,
235 return surface;
238 void EglManager::destroySurface(EGLSurface surface) { argument
239 if (isCurrent(surface)) {
242 if (!eglDestroySurface(mEglDisplay, surface)) {
243 ALOGW("Failed to destroy surface %p, error=%s", (void*)surface, eglErrorStrin
264 makeCurrent(EGLSurface surface, EGLint* errOut) argument
288 queryBufferAge(EGLSurface surface) argument
302 beginFrame(EGLSurface surface) argument
369 setPreserveBuffer(EGLSurface surface, bool preserve) argument
[all...]
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp34 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/base/libs/hwui/tests/unit/
H A DSkiaPipelineTests.cpp51 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);
54 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface);
55 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED);
72 auto surface = SkSurface::MakeRasterN32Premul(2, 2); local
73 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver);
74 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE);
75 pipeline->renderFrame(layerUpdateQueue, dirty, renderNodes, true, contentDrawBounds, surface);
76 ASSERT_EQ(TestUtils::getColor(surface,
94 auto surface = SkSurface::MakeRasterN32Premul(2, 2); local
162 auto surface = SkSurface::MakeRasterN32Premul(1, 1); local
[all...]
/frameworks/native/libs/vr/libdvr/
H A Ddvr_surface.cpp68 std::unique_ptr<Surface> surface; member in struct:DvrSurface
82 ALOGE("dvrSurfaceCreate: Invalid surface attribute type: %" PRIu64,
89 ALOGE("dvrSurfaceCreate:: Failed to create display surface: %s",
98 void dvrSurfaceDestroy(DvrSurface* surface) { delete surface; } argument
100 int dvrSurfaceGetId(DvrSurface* surface) { argument
101 return surface->surface->surface_id();
104 int dvrSurfaceSetAttributes(DvrSurface* surface, argument
107 if (surface
134 dvrSurfaceCreateWriteBufferQueue(DvrSurface* surface, uint32_t width, uint32_t height, uint32_t format, uint32_t layer_count, uint64_t usage, size_t capacity, DvrWriteBufferQueue** out_writer) argument
[all...]
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.java36 EGLSurface surface;
38 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
40 surface = _eglCreateWindowSurfaceTexture(dpy, config,
49 return surface;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLEnvironment.java102 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 DRSTextureView.java68 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 DGLHelper.h51 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 Dswapinterval.cpp43 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 DLegacyCameraDevice.java269 * Check if a given surface uses {@link ImageFormat#YUV_420_888} or format that can be readily
272 * @param s the surface to check.
318 * <p>Every surface in {@code outputs} must be non-{@code null}.</p>
342 // Validate surface size and format.
424 "submitRequestList - configured surface is abandoned.");
427 // Make sure that there all requests have at least 1 surface; all surfaces are non-null
437 for (Surface surface : request.getTargets()) {
438 if (surface == null) {
448 } else if (!containsSurfaceId(surface, surfaceIds)) {
449 Log.e(TAG, "submitRequestList - cannot use a surface tha
579 getSurfaceSize(Surface surface) argument
640 detectSurfaceUsageFlags(Surface surface) argument
648 detectSurfaceType(Surface surface) argument
665 detectSurfaceDataspace(Surface surface) argument
670 connectSurface(Surface surface) argument
676 disconnectSurface(Surface surface) argument
682 produceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
694 setSurfaceFormat(Surface surface, int pixelFormat) argument
701 setSurfaceDimens(Surface surface, int width, int height) argument
710 getSurfaceId(Surface surface) argument
765 setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
783 setNextTimestamp(Surface surface, long timestamp) argument
789 setScalingMode(Surface surface, int mode) argument
796 nativeDetectSurfaceType(Surface surface) argument
798 nativeDetectSurfaceDataspace(Surface surface) argument
800 nativeDetectSurfaceDimens(Surface surface, int[ ] dimens) argument
803 nativeConnectSurface(Surface surface) argument
805 nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
808 nativeSetSurfaceFormat(Surface surface, int pixelFormat) argument
810 nativeSetSurfaceDimens(Surface surface, int width, int height) argument
812 nativeGetSurfaceId(Surface surface) argument
814 nativeSetSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
820 nativeSetNextTimestamp(Surface surface, long timestamp) argument
822 nativeDetectSurfaceUsageFlags(Surface surface) argument
824 nativeSetScalingMode(Surface surface, int scalingMode) argument
826 nativeDisconnectSurface(Surface surface) argument
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dgl2_perf.cpp57 static EGLSurface surface; variable
99 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
101 if (surface == EGL_NO_SURFACE) {
112 returnValue = eglMakeCurrent(dpy, surface, surface, context);
117 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
119 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
127 eglSwapBuffers(dpy, surface);
135 eglSwapBuffers(dpy, surface);
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp104 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);
249 sp<Surface> surface(new Surface(producer, true));
250 if (surface == NULL) {
255 surface->incStrong(&sRefBaseOwner);
256 return jlong(surface.get());
298 sp<Surface> surface(reinterpret_cas
480 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
488 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
496 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
501 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
506 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
512 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
[all...]
/frameworks/native/libs/vr/libvrflinger/
H A Ddisplay_manager_service.cpp97 [&items](const std::shared_ptr<DisplaySurface>& surface) mutable {
98 items.push_back({surface->surface_id(), surface->process_id(),
99 surface->user_id(), surface->attributes(),
100 surface->update_flags(), surface->GetQueueIds()});
101 surface->ClearUpdate();
112 auto surface = display_service_->GetDisplaySurface(surface_id); local
113 if (!surface || surfac
[all...]
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLSurfaceImpl.java28 public EGLSurfaceImpl(long surface) { argument
29 mEGLSurface = surface;
/frameworks/base/libs/hwui/debug/
H A Dnullegl.cpp28 EGLSurface surface; member in struct:__anon1235
49 ptr->surface = EGL_NO_SURFACE;
97 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) { argument
98 free(surface);
102 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, argument
112 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, argument
134 state->surface = draw;
144 return getThreadState()->surface;
151 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) { argument
155 EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface surface, EGLin argument
180 eglBeginFrame(EGLDisplay dpy, EGLSurface surface) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java44 final SurfaceControl surface; field in class:BlackFrame.BlackSurface
55 surface = new WindowSurfaceController.SurfaceTrace(session, "BlackSurface("
59 surface = new SurfaceControl(session, "BlackSurface",
63 surface.setAlpha(1);
64 surface.setLayerStack(layerStack);
65 surface.setLayer(layer);
66 surface.show();
68 " BLACK " + surface + ": CREATE layer=" + layer);
72 surface.setAlpha(alpha);
79 surface
[all...]

Completed in 667 milliseconds

1234567891011>>