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

12345

/frameworks/native/services/surfaceflinger/tests/resize/
H A Dresize.cpp41 sp<Surface> surface = client->createSurface(String8("resize"), local
46 surface->setLayer(100000);
50 surface->lock(&info);
53 surface->unlockAndPost();
55 surface->lock(&info);
57 surface->unlockAndPost();
60 surface->setSize(320, 240);
/frameworks/native/services/surfaceflinger/tests/surface/
H A Dsurface.cpp40 String8("surface"), 160, 240, PIXEL_FORMAT_RGB_565, 0);
49 sp<Surface> surface = Surface::readFromParcel(parcel); local
50 ANativeWindow* window = surface.get();
/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 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
H A DCanvasTextureViewActivity.java50 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
56 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
61 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
67 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
75 public RenderingThread(TextureView surface) { argument
76 mSurface = surface;
/frameworks/native/opengl/tests/finish/
H A Dfinish.cpp45 EGLSurface surface; local
61 surface = eglCreateWindowSurface(dpy, config, window, NULL);
63 eglMakeCurrent(dpy, surface, surface, context);
64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
113 eglSwapBuffers(dpy, surface);
127 eglSwapBuffers(dpy, surface);
142 eglSwapBuffers(dpy, surface);
157 eglSwapBuffers(dpy, surface);
[all...]
/frameworks/native/opengl/tests/textures/
H A Dtextures.cpp41 EGLSurface surface; local
57 surface = eglCreateWindowSurface(dpy, config, window, NULL);
59 eglMakeCurrent(dpy, surface, surface, context);
60 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
61 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
116 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/base/opengl/java/com/google/android/gles_jni/
H A DEGLSurfaceImpl.java28 public EGLSurfaceImpl(int surface) { argument
29 mEGLSurface = surface;
/frameworks/av/libvideoeditor/lvpp/
H A DPreviewRenderer.cpp30 const sp<Surface> &surface, size_t width, size_t height) {
32 PreviewRenderer* renderer = new PreviewRenderer(surface, width, height);
43 const sp<Surface> &surface,
45 : mSurface(surface),
29 CreatePreviewRenderer( const sp<Surface> &surface, size_t width, size_t height) argument
42 PreviewRenderer( const sp<Surface> &surface, size_t width, size_t height) argument
/frameworks/native/opengl/tests/filter/
H A Dfilter.cpp37 EGLSurface surface; local
52 surface = eglCreateWindowSurface(dpy, config, window, NULL);
57 surface = eglCreatePbufferSurface(dpy, config, attribs);
58 if (surface == EGL_NO_SURFACE) {
63 eglMakeCurrent(dpy, surface, surface, context);
64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
156 eglSwapBuffers(dpy, surface);
182 eglSwapBuffers(dpy, surface);
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dgl2_perf.cpp57 static EGLSurface surface; variable
98 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
100 if (surface == EGL_NO_SURFACE) {
111 returnValue = eglMakeCurrent(dpy, surface, surface, context);
116 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
118 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
126 eglSwapBuffers(dpy, surface);
134 eglSwapBuffers(dpy, surface);
/frameworks/native/opengl/tests/linetex/
H A Dlinetex.cpp45 EGLSurface surface; local
61 surface = eglCreateWindowSurface(dpy, config, window, NULL);
63 eglMakeCurrent(dpy, surface, surface, context);
64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
109 eglSwapBuffers(dpy, surface);
/frameworks/base/core/jni/
H A Dandroid_view_HardwareRenderer.cpp26 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
58 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); local
61 eglSurfaceAttrib(display, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED);
73 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); local
77 eglQuerySurface(display, surface, EGL_SWAP_BEHAVIOR, &value);
107 EGLSurface surface = eglGetCurrentSurface(EGL_DRAW); local
113 eglQuerySurface(display, surface, EGL_WIDTH, &value);
116 eglQuerySurface(display, surface, EGL_HEIGHT, &value);
122 eglBeginFrame(display, surface);
/frameworks/base/graphics/java/android/renderscript/
H A DRSTextureView.java74 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
76 mSurfaceTexture = surface;
87 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
89 mSurfaceTexture = surface;
100 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
102 mSurfaceTexture = surface;
115 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
117 mSurfaceTexture = surface;
153 * @param sc The RS surface config to create.
/frameworks/native/include/gui/
H A DSurface.h49 static bool isValid(const sp<SurfaceControl>& surface) { argument
50 return (surface != 0) && surface->isValid();
60 // release surface data from java
90 const sp<ISurface>& surface,
127 static bool isValid(const sp<Surface>& surface) { argument
128 return (surface != 0) && surface->isValid();
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.h52 void setImageBits(void* vaddr) { surface.data = (GGLubyte*)vaddr; }
74 GGLSurface surface; member in class:android::EGLTextureObject
/frameworks/native/opengl/libs/EGL/
H A Degl_object.cpp67 EGLNativeWindowType win, EGLSurface surface,
69 egl_object_t(dpy), surface(surface), config(config), win(win), cnx(cnx)
66 egl_surface_t(egl_display_t* dpy, EGLConfig config, EGLNativeWindowType win, EGLSurface surface, egl_connection_t const* cnx) argument
/frameworks/native/opengl/tests/fillrate/
H A Dfillrate.cpp44 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);
124 eglSwapBuffers(dpy, surface);
134 eglSwapBuffers(dpy, surface);
146 eglSwapBuffers(dpy, surface);
/frameworks/native/opengl/tests/swapinterval/
H A Dswapinterval.cpp43 EGLSurface surface; local
70 surface = eglCreateWindowSurface(dpy, config, window, NULL);
71 if (surface == EGL_NO_SURFACE) {
83 eglMakeCurrent(dpy, surface, surface, context);
84 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
85 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
99 eglSwapBuffers(dpy, surface);
111 eglSwapBuffers(dpy, surface);
114 eglSwapBuffers(dpy, surface);
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.h56 // includes the display, context, and surface. It is possible to either create
60 // surface.
71 // Inits a new GL environment, including a new surface and context. You
76 // there is already a display, surface and context available (possibly
92 // When rendering to a visible surface, call this to swap between the
99 // Add a surface to the environment. This surface will now be managed (and
100 // owned) by the GLEnv instance. Returns the id of the surface.
101 int AddSurface(const EGLSurface& surface);
103 // Add a window surface t
129 const EGLSurface& surface() const { function in class:android::filterfw::GLEnv
[all...]
/frameworks/base/native/android/
H A Dnative_window.cpp27 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) { argument
28 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface);
/frameworks/base/services/java/com/android/server/display/
H A DDisplayDevice.java43 // The display device owns its surface, but it should only set it
164 * Sets the display surface while in a transaction.
166 public final void setSurfaceInTransactionLocked(Surface surface) { argument
167 if (mCurrentSurface != surface) {
168 mCurrentSurface = surface;
169 Surface.setDisplaySurface(mDisplayToken, surface);
/frameworks/base/services/java/com/android/server/wm/
H A DBlackFrame.java36 final Surface surface; field in class:BlackFrame.BlackSurface
46 surface = new WindowStateAnimator.SurfaceTrace(session, "BlackSurface("
50 surface = new Surface(session, "BlackSurface",
53 surface.setAlpha(1);
54 surface.setLayerStack(layerStack);
55 surface.setLayer(layer);
56 surface.show();
59 " BLACK " + surface + ": CREATE layer=" + layer);
66 surface.setPosition(mTmpFloats[Matrix.MTRANS_X],
68 surface
[all...]
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java51 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
54 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
55 mOutPixelsAllocation.setSurfaceTexture(surface);
58 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
59 mOutPixelsAllocation.setSurfaceTexture(surface);
63 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument

Completed in 1707 milliseconds

12345