Searched defs:surface (Results 1 - 25 of 203) sorted by relevance

123456789

/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/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/native/include/gui/
H A DSurfaceControl.h46 static bool isValid(const sp<SurfaceControl>& surface) { argument
47 return (surface != 0) && surface->isValid();
57 // release surface data from java
100 // freezing the total geometry of a surface until a resize is completed.
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLSurfaceImpl.java28 public EGLSurfaceImpl(long surface) { argument
29 mEGLSurface = surface;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGetBitmapActivity.java81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
85 mCamera.setPreviewTexture(surface);
94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
106 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
H A DSingleFrameTextureViewTestActivity.java78 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null);
201 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
206 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
213 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
H A DTextureViewActivity.java101 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
110 mCamera.setPreviewTexture(surface);
147 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
152 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
159 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DGlTextureViewActivity.java49 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
50 mRenderThread = new ImageFlipRenderThread(getResources(), surface);
71 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
75 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
86 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
/frameworks/native/opengl/tests/finish/
H A Dfinish.cpp45 EGLSurface surface; local
62 surface = eglCreateWindowSurface(dpy, config, window, NULL);
64 eglMakeCurrent(dpy, surface, surface, context);
65 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
66 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
114 eglSwapBuffers(dpy, surface);
128 eglSwapBuffers(dpy, surface);
143 eglSwapBuffers(dpy, surface);
158 eglSwapBuffers(dpy, surface);
[all...]
/frameworks/native/opengl/tests/textures/
H A Dtextures.cpp41 EGLSurface surface; local
58 surface = eglCreateWindowSurface(dpy, config, window, NULL);
60 eglMakeCurrent(dpy, surface, surface, context);
61 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
62 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
117 eglSwapBuffers(dpy, surface);
/frameworks/wilhelm/tests/sandbox/
H A Dnativewindow.cpp68 sp<Surface> surface = control->getSurface(); local
69 CHECK(surface != NULL);
71 gSurface = surface;
75 return surface.get();
/frameworks/av/camera/camera2/
H A DCaptureRequest.cpp58 ALOGE("%s: Failed to read surface list size from parcel", __FUNCTION__);
61 ALOGV("%s: Read surface list size = %d", __FUNCTION__, size);
68 ALOGV("%s: Read surface class = %s", __FUNCTION__,
83 sp<Surface> surface; local
85 surface = new Surface(surfaceShim.graphicBufferProducer);
88 mSurfaceList.push_back(surface);
/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/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);
/frameworks/base/libs/hwui/tests/common/
H A DTestContext.cpp65 sp<Surface> TestContext::surface() { function in class:android::uirenderer::test::TestContext
/frameworks/base/libs/hwui/tests/unit/
H A DSkiaCanvasTests.cpp67 auto surface = SkSurface::MakeRasterN32Premul(10, 10); local
68 SkiaCanvas canvas(surface->getCanvas(), Canvas::XformToSRGB::kDefer);
80 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorWHITE);
81 ASSERT_NE(TestUtils::getColor(surface, 5, 5), SK_ColorWHITE);
/frameworks/native/libs/gui/tests/
H A DMalicious.cpp147 sp<Surface> surface = new Surface(malicious); local
149 ASSERT_EQ(NO_ERROR, surface->connect(NATIVE_WINDOW_API_CPU, nullptr, false));
151 ASSERT_EQ(NO_ERROR, surface->lock(&buffer, nullptr));
152 ASSERT_EQ(NO_ERROR, surface->unlockAndPost());
156 ASSERT_EQ(FAILED_TRANSACTION, surface->lock(&buffer, nullptr));
161 sp<Surface> surface = new Surface(malicious); local
163 ASSERT_EQ(NO_ERROR, surface->connect(NATIVE_WINDOW_API_CPU, nullptr, false));
165 ASSERT_EQ(NO_ERROR, surface->lock(&buffer, nullptr));
166 ASSERT_EQ(NO_ERROR, surface->unlockAndPost());
170 ASSERT_EQ(FAILED_TRANSACTION, surface
175 sp<Surface> surface = new Surface(malicious); local
189 sp<Surface> surface = new Surface(malicious); local
[all...]
/frameworks/native/opengl/tests/filter/
H A Dfilter.cpp37 EGLSurface surface; local
54 surface = eglCreateWindowSurface(dpy, config, window, NULL);
59 surface = eglCreatePbufferSurface(dpy, config, attribs);
60 if (surface == EGL_NO_SURFACE) {
65 eglMakeCurrent(dpy, surface, surface, context);
66 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
67 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
159 eglSwapBuffers(dpy, surface);
185 eglSwapBuffers(dpy, surface);
[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/native/opengl/tests/linetex/
H A Dlinetex.cpp43 EGLSurface surface; local
60 surface = eglCreateWindowSurface(dpy, config, window, NULL);
62 eglMakeCurrent(dpy, surface, surface, context);
63 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
64 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
110 eglSwapBuffers(dpy, surface);
/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp36 status_t EglWindow::createWindow(const sp<IGraphicBufferProducer>& surface) { argument
38 ALOGE("surface already created");
47 surface->query(NATIVE_WINDOW_WIDTH, &mWidth);
48 surface->query(NATIVE_WINDOW_HEIGHT, &mHeight);
50 // Output side (EGL surface to draw on).
51 sp<ANativeWindow> anw = new Surface(surface);
65 ALOGE("surface already created");
/frameworks/av/media/libstagefright/
H A DSurfaceUtils.cpp243 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason) { argument
244 ALOGD("connecting to surface %p, reason %s", surface, reason);
246 status_t err = native_window_api_connect(surface, NATIVE_WINDOW_API_MEDIA);
247 ALOGE_IF(err != OK, "Failed to connect to surface %p, err %d", surface, err);
252 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason) { argument
253 ALOGD("disconnecting from surface %p, reason %s", surface, reason);
255 status_t err = native_window_api_disconnect(surface, NATIVE_WINDOW_API_MEDI
[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/core/jni/
H A Dandroid_view_HardwareLayer.cpp69 jlong layerUpdaterPtr, jobject surface) {
71 sp<GLConsumer> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface));
68 android_view_HardwareLayer_setSurfaceTexture(JNIEnv* env, jobject clazz, jlong layerUpdaterPtr, jobject surface) argument
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.h60 // includes the display, context, and surface. It is possible to either create
64 // surface.
75 // Inits a new GL environment, including a new surface and context. You
80 // there is already a display, surface and context available (possibly
96 // When rendering to a visible surface, call this to swap between the
103 // Add a surface to the environment. This surface will now be managed (and
104 // owned) by the GLEnv instance. Returns the id of the surface.
105 int AddSurface(const EGLSurface& surface);
107 // Add a window surface t
133 const EGLSurface& surface() const { function in class:android::filterfw::GLEnv
[all...]

Completed in 401 milliseconds

123456789