Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java43 public static boolean isSurfaceForPreview(Surface surface) { in isSurfaceForPreview() argument
44 return LegacyCameraDevice.isPreviewConsumer(surface); in isSurfaceForPreview()
54 public static boolean isSurfaceForHwVideoEncoder(Surface surface) { in isSurfaceForHwVideoEncoder() argument
55 return LegacyCameraDevice.isVideoEncoderConsumer(surface); in isSurfaceForHwVideoEncoder()
66 public static Size getSurfaceSize(Surface surface) { in getSurfaceSize() argument
68 return LegacyCameraDevice.getSurfaceSize(surface); in getSurfaceSize()
82 public static int getSurfaceFormat(Surface surface) { in getSurfaceFormat() argument
84 return LegacyCameraDevice.detectSurfaceType(surface); in getSurfaceFormat()
98 public static int getSurfaceDataspace(Surface surface) { in getSurfaceDataspace() argument
100 return LegacyCameraDevice.detectSurfaceDataspace(surface); in getSurfaceDataspace()
[all …]
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp33 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
227 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, nullptr); in createSurface() local
228 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE, in createSurface()
233 …LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED… in createSurface()
238 return surface; in createSurface()
241 void EglManager::destroySurface(EGLSurface surface) { in destroySurface() argument
242 if (isCurrent(surface)) { in destroySurface()
245 if (!eglDestroySurface(mEglDisplay, surface)) { in destroySurface()
246 ALOGW("Failed to destroy surface %p, error=%s", (void*)surface, egl_error_str()); in destroySurface()
266 bool EglManager::makeCurrent(EGLSurface surface, EGLint* errOut) { in makeCurrent() argument
[all …]
DEglManager.h64 void destroySurface(EGLSurface surface);
68 bool isCurrent(EGLSurface surface) { return mCurrentSurface == surface; } in isCurrent() argument
70 bool makeCurrent(EGLSurface surface, EGLint* errOut = nullptr);
71 Frame beginFrame(EGLSurface surface);
80 bool setPreserveBuffer(EGLSurface surface, bool preserve);
98 EGLint queryBufferAge(EGLSurface surface);
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java439 for (Surface surface : request.getTargets()) { in submitRequestList()
440 if (surface == null) { in submitRequestList()
450 } else if (!containsSurfaceId(surface, surfaceIds)) { in submitRequestList()
581 public static Size getSurfaceSize(Surface surface) throws BufferQueueAbandonedException { in getSurfaceSize() argument
582 checkNotNull(surface); in getSurfaceSize()
585 LegacyExceptionUtils.throwOnError(nativeDetectSurfaceDimens(surface, /*out*/dimens)); in getSurfaceSize()
642 static int detectSurfaceUsageFlags(Surface surface) { in detectSurfaceUsageFlags() argument
643 checkNotNull(surface); in detectSurfaceUsageFlags()
644 return nativeDetectSurfaceUsageFlags(surface); in detectSurfaceUsageFlags()
650 public static int detectSurfaceType(Surface surface) throws BufferQueueAbandonedException { in detectSurfaceType() argument
[all …]
/frameworks/native/vulkan/libvulkan/
Dswapchain.cpp115 VkSurfaceKHR HandleFromSurface(Surface* surface) { in HandleFromSurface() argument
116 return VkSurfaceKHR(reinterpret_cast<uint64_t>(surface)); in HandleFromSurface()
125 : surface(surface_), num_images(num_images_) {} in Swapchain()
127 Surface& surface; member
201 if (swapchain->surface.swapchain_handle != HandleFromSwapchain(swapchain)) in OrphanSwapchain()
207 swapchain->surface.swapchain_handle = VK_NULL_HANDLE; in OrphanSwapchain()
225 Surface* surface = new (mem) Surface; in CreateAndroidSurfaceKHR() local
227 surface->window = pCreateInfo->window; in CreateAndroidSurfaceKHR()
228 surface->swapchain_handle = VK_NULL_HANDLE; in CreateAndroidSurfaceKHR()
232 native_window_api_connect(surface->window.get(), NATIVE_WINDOW_API_EGL); in CreateAndroidSurfaceKHR()
[all …]
Dswapchain.h26 …dSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
27 VKAPI_ATTR void DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCall…
28 …aceSupportKHR(VkPhysicalDevice pdev, uint32_t queue_family, VkSurfaceKHR surface, VkBool32* pSuppo…
29 …PhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface, VkSurfaceCapabil…
30 VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface,…
31 …PhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface, uint32_t* count,…
/frameworks/native/opengl/libagl/
DTextureObjectManager.cpp34 if (mSize && surface.data) in ~EGLTextureObject()
35 free(surface.data); in ~EGLTextureObject()
43 memset(&surface, 0, sizeof(surface)); in init()
44 surface.version = sizeof(surface); in init()
74 if (!surface.data) in allocateMipmaps()
77 int w = surface.width; in allocateMipmaps()
78 int h = surface.height; in allocateMipmaps()
109 return surface; in mip()
122 if (mSize && surface.data) { in setSurface()
123 free(surface.data); in setSurface()
[all …]
/frameworks/base/core/jni/
Dandroid_view_Surface.cpp108 sp<Surface> surface(new Surface(bufferProducer, true)); in android_view_Surface_createFromIGraphicBufferProducer() local
109 if (surface == NULL) { in android_view_Surface_createFromIGraphicBufferProducer()
114 gSurfaceClassInfo.ctor, (jlong)surface.get()); in android_view_Surface_createFromIGraphicBufferProducer()
123 surface->incStrong(&sRefBaseOwner); in android_view_Surface_createFromIGraphicBufferProducer()
245 sp<Surface> surface(new Surface(producer, true)); in nativeCreateFromSurfaceTexture() local
246 if (surface == NULL) { in nativeCreateFromSurfaceTexture()
251 surface->incStrong(&sRefBaseOwner); in nativeCreateFromSurfaceTexture()
252 return jlong(surface.get()); in nativeCreateFromSurfaceTexture()
293 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeLockCanvas() local
295 if (!isSurfaceValid(surface)) { in nativeLockCanvas()
[all …]
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp97 static status_t connectSurface(const sp<Surface>& surface, int32_t maxBufferSlack) { in connectSurface() argument
100 err = surface->connect(NATIVE_WINDOW_API_CAMERA, /*listener*/NULL); in connectSurface()
107 err = native_window_set_usage(surface.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in connectSurface()
115 err = static_cast<ANativeWindow*>(surface.get())->query(surface.get(), in connectSurface()
125 err = native_window_set_buffer_count(surface.get(), maxBufferSlack + 1 + minUndequeuedBuffers); in connectSurface()
353 static sp<ANativeWindow> getNativeWindow(JNIEnv* env, jobject surface) { in getNativeWindow() argument
355 if (surface) { in getNativeWindow()
356 anw = android_view_Surface_getNativeWindow(env, surface); in getNativeWindow()
390 static sp<Surface> getSurface(JNIEnv* env, jobject surface) { in getSurface() argument
392 if (surface) { in getSurface()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DOutputConfiguration.java95 public OutputConfiguration(@NonNull Surface surface) { in OutputConfiguration() argument
96 this(SURFACE_GROUP_ID_NONE, surface, ROTATION_0); in OutputConfiguration()
145 public OutputConfiguration(int surfaceGroupId, @NonNull Surface surface) { in OutputConfiguration() argument
146 this(surfaceGroupId, surface, ROTATION_0); in OutputConfiguration()
168 public OutputConfiguration(@NonNull Surface surface, int rotation) { in OutputConfiguration() argument
169 this(SURFACE_GROUP_ID_NONE, surface, rotation); in OutputConfiguration()
195 public OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) { in OutputConfiguration() argument
196 checkNotNull(surface, "Surface must not be null"); in OutputConfiguration()
200 mSurface = surface; in OutputConfiguration()
202 mConfiguredSize = SurfaceUtils.getSurfaceSize(surface); in OutputConfiguration()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DBlackFrame.java44 final SurfaceControl surface; field in BlackFrame.BlackSurface
55 surface = new WindowSurfaceController.SurfaceTrace(session, "BlackSurface(" in BlackSurface()
59 surface = new SurfaceControl(session, "BlackSurface", in BlackSurface()
63 surface.setAlpha(1); in BlackSurface()
64 surface.setLayerStack(layerStack); in BlackSurface()
65 surface.setLayer(layer); in BlackSurface()
66 surface.show(); in BlackSurface()
68 " BLACK " + surface + ": CREATE layer=" + layer); in BlackSurface()
72 surface.setAlpha(alpha); in setAlpha()
79 surface.setPosition(mTmpFloats[Matrix.MTRANS_X], in setMatrix()
[all …]
/frameworks/native/opengl/tests/finish/
Dfinish.cpp45 EGLSurface surface; in main() local
62 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
64 eglMakeCurrent(dpy, surface, surface, context); in main()
65 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
66 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
114 eglSwapBuffers(dpy, surface); in main()
128 eglSwapBuffers(dpy, surface); in main()
143 eglSwapBuffers(dpy, surface); in main()
158 eglSwapBuffers(dpy, surface); in main()
175 eglSwapBuffers(dpy, surface); in main()
[all …]
/frameworks/native/opengl/tests/swapinterval/
Dswapinterval.cpp43 EGLSurface surface; in main() local
71 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
72 if (surface == EGL_NO_SURFACE) { in main()
84 eglMakeCurrent(dpy, surface, surface, context); in main()
85 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
86 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
100 eglSwapBuffers(dpy, surface); in main()
112 eglSwapBuffers(dpy, surface); in main()
115 eglSwapBuffers(dpy, surface); in main()
/frameworks/native/opengl/tests/gl_perf/
Dgl2_perf.cpp57 static EGLSurface surface; variable
99 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); in main()
101 if (surface == EGL_NO_SURFACE) { in main()
112 returnValue = eglMakeCurrent(dpy, surface, surface, context); in main()
117 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
119 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
127 eglSwapBuffers(dpy, surface); in main()
135 eglSwapBuffers(dpy, surface); in ptSwap()
/frameworks/base/rs/java/android/renderscript/
DRSTextureView.java68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
70 mSurfaceTexture = surface; in onSurfaceTextureAvailable()
81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
83 mSurfaceTexture = surface; in onSurfaceTextureSizeChanged()
94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
96 mSurfaceTexture = surface; in onSurfaceTextureDestroyed()
109 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
111 mSurfaceTexture = surface; in onSurfaceTextureUpdated()
/frameworks/base/libs/hwui/debug/
Dnullegl.cpp27 EGLSurface surface; member
48 ptr->surface = EGL_NO_SURFACE; in getThreadState()
93 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) { in eglDestroySurface() argument
94 free(surface); in eglDestroySurface()
98 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, in eglQuerySurface() argument
108 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, in eglSurfaceAttrib() argument
130 state->surface = draw; in eglMakeCurrent()
140 return getThreadState()->surface; in eglGetCurrentSurface()
147 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) { in eglSwapBuffers() argument
160 void eglBeginFrame(EGLDisplay dpy, EGLSurface surface) {} in eglBeginFrame() argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLEnvironment.java102 public int registerSurface(Surface surface) { in registerSurface() argument
103 int result = nativeAddSurface(surface); in registerSurface()
105 throw new RuntimeException("Error registering surface " + surface + "!"); in registerSurface()
111 Surface surface = new Surface(surfaceTexture); in registerSurfaceTexture() local
112 int result = nativeAddSurfaceWidthHeight(surface, width, height); in registerSurfaceTexture()
113 surface.release(); in registerSurfaceTexture()
171 private native int nativeAddSurface(Surface surface); in nativeAddSurface() argument
173 private native int nativeAddSurfaceWidthHeight(Surface surface, int width, int height); in nativeAddSurfaceWidthHeight() argument
/frameworks/native/opengl/tests/filter/
Dfilter.cpp37 EGLSurface surface; in main() local
54 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
59 surface = eglCreatePbufferSurface(dpy, config, attribs); in main()
60 if (surface == EGL_NO_SURFACE) { in main()
65 eglMakeCurrent(dpy, surface, surface, context); in main()
66 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
67 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
159 eglSwapBuffers(dpy, surface); in main()
185 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/core/java/android/hardware/display/
DVirtualDisplay.java41 IVirtualDisplayCallback token, Surface surface) { in VirtualDisplay() argument
45 mSurface = surface; in VirtualDisplay()
74 public void setSurface(Surface surface) { in setSurface() argument
75 if (mSurface != surface) { in setSurface()
76 mGlobal.setVirtualDisplaySurface(mToken, surface); in setSurface()
77 mSurface = surface; in setSurface()
/frameworks/native/opengl/tests/fillrate/
Dfillrate.cpp44 EGLSurface surface; in main() local
61 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
63 eglMakeCurrent(dpy, surface, surface, context); in main()
64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
127 eglSwapBuffers(dpy, surface); in main()
137 eglSwapBuffers(dpy, surface); in main()
149 eglSwapBuffers(dpy, surface); in main()
/frameworks/native/opengl/tests/textures/
Dtextures.cpp41 EGLSurface surface; in main() local
58 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
60 eglMakeCurrent(dpy, surface, surface, context); in main()
61 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
62 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
117 eglSwapBuffers(dpy, surface); in main()
/frameworks/native/opengl/tests/linetex/
Dlinetex.cpp43 EGLSurface surface; in main() local
60 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
62 eglMakeCurrent(dpy, surface, surface, context); in main()
63 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
64 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
110 eglSwapBuffers(dpy, surface); in main()
/frameworks/native/cmds/flatland/
DGLHelper.cpp135 bool GLHelper::makeCurrent(EGLSurface surface) { in makeCurrent() argument
138 result = eglMakeCurrent(mDisplay, surface, surface, mContext); in makeCurrent()
145 eglQuerySurface(mDisplay, surface, EGL_WIDTH, &w); in makeCurrent()
146 eglQuerySurface(mDisplay, surface, EGL_HEIGHT, &h); in makeCurrent()
153 sp<GLConsumer>* glConsumer, EGLSurface* surface, in createSurfaceTexture() argument
166 return createNamedSurfaceTexture(*name, w, h, glConsumer, surface); in createSurfaceTexture()
169 void GLHelper::destroySurface(EGLSurface* surface) { in destroySurface() argument
170 if (eglGetCurrentSurface(EGL_READ) == *surface || in destroySurface()
171 eglGetCurrentSurface(EGL_DRAW) == *surface) { in destroySurface()
175 eglDestroySurface(mDisplay, *surface); in destroySurface()
[all …]
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DRsYuv.java127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
128 android.util.Log.v("cpa", "onSurfaceTextureAvailable " + surface); in onSurfaceTextureAvailable()
129 mSurface = new Surface(surface); in onSurfaceTextureAvailable()
134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
135 android.util.Log.v("cpa", "onSurfaceTextureSizeChanged " + surface); in onSurfaceTextureSizeChanged()
136 mSurface = new Surface(surface); in onSurfaceTextureSizeChanged()
141 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
142 android.util.Log.v("cpa", "onSurfaceTextureDestroyed " + surface); in onSurfaceTextureDestroyed()
149 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/frameworks/base/opengl/java/android/opengl/
DEGL14.java261 EGLSurface surface; in eglCreateWindowSurface() local
263 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); in eglCreateWindowSurface()
265 surface = _eglCreateWindowSurfaceTexture(dpy, config, in eglCreateWindowSurface()
274 return surface; in eglCreateWindowSurface()
299 EGLSurface surface in eglDestroySurface() argument
306 EGLSurface surface, in eglQuerySurface() argument
360 EGLSurface surface, in eglSurfaceAttrib() argument
369 EGLSurface surface, in eglBindTexImage() argument
377 EGLSurface surface, in eglReleaseTexImage() argument
455 EGLSurface surface in eglSwapBuffers() argument
[all …]

12345678910>>...12