Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/jni/
Dandroid_view_Surface.cpp71 jfieldID surface; member
146 const sp<SurfaceControl>& surface) in setSurfaceControl() argument
150 if (surface.get()) { in setSurfaceControl()
151 surface->incStrong(clazz); in setSurfaceControl()
156 env->SetIntField(clazz, so.surfaceControl, (int)surface.get()); in setSurfaceControl()
177 env->SetIntField(clazz, so.surface, (int)result.get()); in getSurface()
195 sp<Surface> surface((Surface*)env->GetIntField(clazz, so.surface)); in Surface_getSurface() local
196 return surface; in Surface_getSurface()
199 static void setSurface(JNIEnv* env, jobject clazz, const sp<Surface>& surface) in setSurface() argument
201 Surface* const p = (Surface*)env->GetIntField(clazz, so.surface); in setSurface()
[all …]
/frameworks/base/opengl/libagl/
DTextureObjectManager.cpp36 if (mSize && surface.data) in ~EGLTextureObject()
37 free(surface.data); in ~EGLTextureObject()
45 memset(&surface, 0, sizeof(surface)); in init()
46 surface.version = sizeof(surface); in init()
76 if (!surface.data) in allocateMipmaps()
79 int w = surface.width; in allocateMipmaps()
80 int h = surface.height; in allocateMipmaps()
111 return surface; in mip()
124 if (mSize && surface.data) { in setSurface()
125 free(surface.data); in setSurface()
[all …]
/frameworks/base/libs/gui/
DSurface.cpp50 const sp<ISurface>& surface, in SurfaceControl() argument
52 : mClient(client), mSurface(surface), in SurfaceControl()
208 Surface::Surface(const sp<SurfaceControl>& surface) in Surface() argument
210 mSurface(surface->mSurface), in Surface()
211 mIdentity(surface->mIdentity) in Surface()
245 const sp<Surface>& surface, Parcel* parcel) in writeToParcel() argument
250 if (Surface::isValid(surface)) { in writeToParcel()
251 sur = surface->mSurface; in writeToParcel()
252 st = surface->getISurfaceTexture(); in writeToParcel()
253 identity = surface->mIdentity; in writeToParcel()
[all …]
/frameworks/base/services/surfaceflinger/tests/resize/
Dresize.cpp42 sp<Surface> surface = client->createSurface(getpid(), 0, 160, 240, in main() local
47 surface->setLayer(100000); in main()
51 surface->lock(&info); in main()
54 surface->unlockAndPost(); in main()
56 surface->lock(&info); in main()
58 surface->unlockAndPost(); in main()
61 surface->setSize(320, 240); in main()
/frameworks/base/opengl/tests/swapinterval/
Dswapinterval.cpp43 EGLSurface surface; in main() local
70 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
71 if (surface == EGL_NO_SURFACE) { in main()
83 eglMakeCurrent(dpy, surface, surface, context); in main()
84 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
85 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
99 eglSwapBuffers(dpy, surface); in main()
111 eglSwapBuffers(dpy, surface); in main()
114 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/tests/finish/
Dfinish.cpp45 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()
113 eglSwapBuffers(dpy, surface); in main()
127 eglSwapBuffers(dpy, surface); in main()
142 eglSwapBuffers(dpy, surface); in main()
157 eglSwapBuffers(dpy, surface); in main()
174 eglSwapBuffers(dpy, surface); in main()
[all …]
/frameworks/base/opengl/tests/gl_perf/
Dgl2_perf.cpp57 static EGLSurface surface; variable
98 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); in main()
100 if (surface == EGL_NO_SURFACE) { in main()
111 returnValue = eglMakeCurrent(dpy, surface, surface, context); in main()
116 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
118 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
126 eglSwapBuffers(dpy, surface); in main()
134 eglSwapBuffers(dpy, surface); in ptSwap()
/frameworks/base/graphics/java/android/renderscript/
DRSTextureView.java68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
70 mSurfaceTexture = surface; in onSurfaceTextureAvailable()
78 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
80 mSurfaceTexture = surface; in onSurfaceTextureSizeChanged()
88 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
90 mSurfaceTexture = surface; in onSurfaceTextureDestroyed()
100 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
102 mSurfaceTexture = surface; in onSurfaceTextureUpdated()
/frameworks/base/services/java/com/android/server/wm/
DBlackFrame.java33 final Surface surface; field in BlackFrame.BlackSurface
41 surface = new Surface(session, 0, "BlackSurface", in BlackSurface()
45 " BLACK " + surface + ": CREATE layer=" + layer); in BlackSurface()
46 surface.setAlpha(1.0f); in BlackSurface()
47 surface.setLayer(layer); in BlackSurface()
54 surface.setPosition(mTmpFloats[Matrix.MTRANS_X], in setMatrix()
56 surface.setMatrix( in setMatrix()
71 surface.setMatrix(1, 0, 0, 1); in clearMatrix()
115 " BLACK " + mBlackSurfaces[i].surface + ": DESTROY"); in kill()
116 mBlackSurfaces[i].surface.destroy(); in kill()
[all …]
/frameworks/base/opengl/tests/filter/
Dfilter.cpp37 EGLSurface surface; in main() local
52 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
57 surface = eglCreatePbufferSurface(dpy, config, attribs); in main()
58 if (surface == EGL_NO_SURFACE) { 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()
156 eglSwapBuffers(dpy, surface); in main()
182 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/tests/fillrate/
Dfillrate.cpp44 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()
124 eglSwapBuffers(dpy, surface); in main()
134 eglSwapBuffers(dpy, surface); in main()
146 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/tests/linetex/
Dlinetex.cpp45 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()
109 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/tests/textures/
Dtextures.cpp41 EGLSurface surface; in main() local
57 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main()
59 eglMakeCurrent(dpy, surface, surface, context); in main()
60 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
61 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
116 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/tests/angeles/
Dapp-linux.cpp134 EGLSurface surface; in initGraphics() local
150 surface = eglCreateWindowSurface(dpy, config, window, NULL); in initGraphics()
153 fprintf(stderr,"surface = %p\n", surface); in initGraphics()
159 eglMakeCurrent(dpy, surface, surface, context); in initGraphics()
162 eglQuerySurface(dpy, surface, EGL_WIDTH, &sWindowWidth); in initGraphics()
163 eglQuerySurface(dpy, surface, EGL_HEIGHT, &sWindowHeight); in initGraphics()
166 sEglSurface = surface; in initGraphics()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DCanvasTextureViewActivity.java50 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
56 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
61 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
67 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
75 public RenderingThread(TextureView surface) { in RenderingThread() argument
76 mSurface = surface; in RenderingThread()
DGetBitmapActivity.java81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
85 mCamera.setPreviewTexture(surface); in onSurfaceTextureAvailable()
94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
106 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
DTextureViewActivity.java74 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
81 mCamera.setPreviewTexture(surface); in onSurfaceTextureAvailable()
90 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
95 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
102 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/frameworks/base/services/surfaceflinger/DisplayHardware/
DDisplayHardware.cpp146 EGLSurface surface; in init() local
198 surface = eglCreateWindowSurface(display, config, mNativeWindow.get(), NULL); in init()
199 eglQuerySurface(display, surface, EGL_WIDTH, &mWidth); in init()
200 eglQuerySurface(display, surface, EGL_HEIGHT, &mHeight); in init()
205 eglSurfaceAttrib(display, surface, in init()
209 if (eglQuerySurface(display, surface, EGL_SWAP_BEHAVIOR, &dummy) == EGL_TRUE) { in init()
248 mSurface = surface; in init()
257 result = eglMakeCurrent(display, surface, surface, context); in init()
279 if (eglSetSwapRectangleANDROID(display, surface, in init()
367 EGLSurface surface = mSurface; in flip() local
[all …]
/frameworks/base/include/surfaceflinger/
DSurface.h51 static bool isValid(const sp<SurfaceControl>& surface) { in isValid() argument
52 return (surface != 0) && surface->isValid(); in isValid()
93 const sp<ISurface>& surface,
130 static bool isValid(const sp<Surface>& surface) { in isValid() argument
131 return (surface != 0) && surface->isValid(); in isValid()
/frameworks/base/opengl/libs/EGL/
DeglApi.cpp391 EGLSurface surface = cnx->egl.eglCreateWindowSurface( in eglCreateWindowSurface() local
393 if (surface != EGL_NO_SURFACE) { in eglCreateWindowSurface()
394 egl_surface_t* s = new egl_surface_t(dpy, config, window, surface, in eglCreateWindowSurface()
415 EGLSurface surface = cnx->egl.eglCreatePixmapSurface( in eglCreatePixmapSurface() local
418 if (surface != EGL_NO_SURFACE) { in eglCreatePixmapSurface()
419 egl_surface_t* s = new egl_surface_t(dpy, config, NULL, surface, in eglCreatePixmapSurface()
435 EGLSurface surface = cnx->egl.eglCreatePbufferSurface( in eglCreatePbufferSurface() local
438 if (surface != EGL_NO_SURFACE) { in eglCreatePbufferSurface()
439 egl_surface_t* s = new egl_surface_t(dpy, config, NULL, surface, in eglCreatePbufferSurface()
447 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) in eglDestroySurface() argument
[all …]
/frameworks/media/libvideoeditor/lvpp/
DPreviewRenderer.cpp30 const sp<Surface> &surface, size_t width, size_t height) { in CreatePreviewRenderer() argument
32 PreviewRenderer* renderer = new PreviewRenderer(surface, width, height); in CreatePreviewRenderer()
43 const sp<Surface> &surface, in PreviewRenderer() argument
45 : mSurface(surface), in PreviewRenderer()
/frameworks/base/opengl/include/EGL/
Degl.h273 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
274 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface,
288 EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface,
290 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
291 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
312 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
313 EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface,
/frameworks/base/opengl/tests/gl_yuvtex/
Dgl_yuvtex.cpp236 EGLSurface surface; in main() local
269 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); in main()
271 if (surface == EGL_NO_SURFACE) { in main()
282 returnValue = eglMakeCurrent(dpy, surface, surface, context); in main()
287 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
289 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
314 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/tests/gl2_basic/
Dgl2_basic.cpp273 EGLSurface surface; in main() local
313 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); in main()
315 if (surface == EGL_NO_SURFACE) { in main()
326 returnValue = eglMakeCurrent(dpy, surface, surface, context); in main()
331 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main()
333 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main()
351 eglSwapBuffers(dpy, surface); in main()
/frameworks/base/opengl/java/android/opengl/
DEGLLogWrapper.java64 public boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, in eglCopyBuffers() argument
68 arg("surface", surface); in eglCopyBuffers()
72 boolean result = mEgl10.eglCopyBuffers(display, surface, native_pixmap); in eglCopyBuffers()
153 public boolean eglDestroySurface(EGLDisplay display, EGLSurface surface) { in eglDestroySurface() argument
156 arg("surface", surface); in eglDestroySurface()
159 boolean result = mEgl10.eglDestroySurface(display, surface); in eglDestroySurface()
303 public boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, in eglQuerySurface() argument
307 arg("surface", surface); in eglQuerySurface()
310 boolean result = mEgl10.eglQuerySurface(display, surface, attribute, in eglQuerySurface()
318 public boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface) { in eglSwapBuffers() argument
[all …]

1234567