Searched defs:surface (Results 51 - 75 of 144) sorted by relevance

123456

/frameworks/base/libs/input/
H A DSpriteController.cpp165 ALOGE("Error %d resizing sprite surface from %dx%d to %dx%d",
177 ALOGE("Error %d hiding sprite surface after resize.", status);
201 sp<Surface> surface = update.state.surfaceControl->getSurface(); local
203 status_t status = surface->lock(&outBuffer, NULL);
205 ALOGE("Error %d locking sprite surface before drawing.", status);
229 status = surface->unlockAndPost();
231 ALOGE("Error %d unlocking and posting sprite surface after drawing.", status);
240 // Set sprite surface properties and make them visible.
263 ALOGE("Error %d setting sprite surface alpha.", status);
274 ALOGE("Error %d setting sprite surface positio
[all...]
/frameworks/base/media/java/android/media/tv/
H A DITvInputSessionWrapper.java185 public void setSurface(Surface surface) { argument
186 mCaller.executeOrSendMessage(mCaller.obtainMessageO(DO_SET_SURFACE, 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/media/mca/filterfw/jni/
H A Djni_gl_environment.cpp135 jobject surface) {
137 if (!surface) {
142 ANativeWindow* window = ANativeWindow_fromSurface(env, surface);
151 // Configure surface
168 ALOGE("GLEnvironment: No suitable EGL configuration found for surface!");
172 // Create the EGL surface
179 ALOGE("GLEnvironment: Error creating window surface!");
195 jobject surface,
199 if (!surface) {
204 ANativeWindow* window = ANativeWindow_fromSurface(env, surface);
133 Java_android_filterfw_core_GLEnvironment_nativeAddSurface(JNIEnv* env, jobject thiz, jobject surface) argument
193 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.cpp94 surface() != eglGetCurrentSurface(EGL_DRAW)) {
96 if (context() == EGL_NO_CONTEXT || surface() == EGL_NO_SURFACE)
101 eglMakeCurrent(display(), surface(), surface(), context());
109 const bool result = eglSwapBuffers(display(), surface()) == EGL_TRUE;
123 (surface() != EGL_NO_SURFACE);
141 // Configure context/surface
164 // Create dummy surface using a GLConsumer
192 && surface() == eglGetCurrentSurface(EGL_DRAW);
203 int GLEnv::AddWindowSurface(const EGLSurface& surface, WindowHandl argument
209 AddSurface(const EGLSurface& surface) argument
216 const SurfaceWindowPair* surface = FindOrNull(surfaces_, surface_id); local
[all...]
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHal.java60 Surface surface);
84 public int addOrUpdateStream(int deviceId, Surface surface, TvStreamConfig streamConfig) { argument
93 if (nativeAddOrUpdateStream(mPtr, deviceId, streamConfig.getStreamId(), surface) == 0) {
59 nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, Surface surface) argument
/frameworks/base/services/core/java/com/android/server/wm/
H A DDragState.java67 DragState(WindowManagerService service, IBinder token, SurfaceControl surface, argument
71 mSurfaceControl = surface;
293 // Move the surface to the given touch
/frameworks/base/telecomm/java/android/telecom/
H A DVideoCallImpl.java177 public void setPreviewSurface(Surface surface) { argument
179 mVideoProvider.setPreviewSurface(surface);
185 public void setDisplaySurface(Surface surface) { argument
187 mVideoProvider.setDisplaySurface(surface);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLTextureViewActivity.java91 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
92 mRenderThread = new RenderThread(getResources(), surface);
111 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
115 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
126 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
147 RenderThread(Resources resources, SurfaceTexture surface) { argument
149 mSurface = surface;
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp135 bool GLHelper::makeCurrent(EGLSurface surface) { argument
138 result = eglMakeCurrent(mDisplay, surface, surface, mContext);
145 eglQuerySurface(mDisplay, surface, EGL_WIDTH, &w);
146 eglQuerySurface(mDisplay, surface, EGL_HEIGHT, &h);
153 sp<GLConsumer>* glConsumer, EGLSurface* surface,
166 return createNamedSurfaceTexture(*name, w, h, glConsumer, surface);
169 void GLHelper::destroySurface(EGLSurface* surface) { argument
170 if (eglGetCurrentSurface(EGL_READ) == *surface ||
171 eglGetCurrentSurface(EGL_DRAW) == *surface) {
152 createSurfaceTexture(uint32_t w, uint32_t h, sp<GLConsumer>* glConsumer, EGLSurface* surface, GLuint* name) argument
179 swapBuffers(EGLSurface surface) argument
202 createNamedSurfaceTexture(GLuint name, uint32_t w, uint32_t h, sp<GLConsumer>* glConsumer, EGLSurface* surface) argument
[all...]
/frameworks/native/include/private/gui/
H A DLayerState.h77 sp<IBinder> surface; member in struct:android::layer_state_t
122 sp<IGraphicBufferProducer> surface; member in struct:android::DisplayState
/frameworks/native/opengl/libs/EGL/
H A Degl_object.h133 EGLNativeWindowType win, EGLSurface surface,
136 EGLSurface surface; member in class:android::egl_surface_t
177 egl_surface_t* get_surface(EGLSurface surface) { argument
178 return egl_to_native_cast<egl_surface_t>(surface);
/frameworks/native/opengl/tests/gl2_basic/
H A Dgl2_basic.cpp273 EGLSurface surface; local
314 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
316 if (surface == EGL_NO_SURFACE) {
327 returnValue = eglMakeCurrent(dpy, surface, surface, context);
332 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
334 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
352 eglSwapBuffers(dpy, surface);
/frameworks/native/opengl/tests/gl_yuvtex/
H A Dgl_yuvtex.cpp236 EGLSurface surface; local
270 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
272 if (surface == EGL_NO_SURFACE) {
283 returnValue = eglMakeCurrent(dpy, surface, surface, context);
288 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
290 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
302 fprintf(stderr, "Could not set up texture surface.\n");
315 eglSwapBuffers(dpy, surface);
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp128 static EGLSurface surface; variable
396 list->sur = surface;
419 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
H A DhwcRects.cpp169 static EGLSurface surface; variable
344 list->sur = surface;
538 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
H A DImsVideoCallProvider.java103 public void setPreviewSurface(Surface surface) { argument
104 mProviderHandler.obtainMessage(MSG_SET_PREVIEW_SURFACE, surface).sendToTarget();
107 public void setDisplaySurface(Surface surface) { argument
108 mProviderHandler.obtainMessage(MSG_SET_DISPLAY_SURFACE, surface).sendToTarget();
157 public abstract void onSetPreviewSurface(Surface surface); argument
160 public abstract void onSetDisplaySurface(Surface surface); argument
H A DImsVideoCallProviderWrapper.java175 public void onSetPreviewSurface(Surface surface) { argument
177 mVideoCallProvider.setPreviewSurface(surface);
183 public void onSetDisplaySurface(Surface surface) { argument
185 mVideoCallProvider.setDisplaySurface(surface);
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
H A DCameraPreviewActivity.java138 public void onSurfaceTextureAvailable(SurfaceTexture surface, argument
140 mPreviewTexture = surface;
148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
152 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
156 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java190 * surface is created.
226 synchronized public void onFrameAvailable(SurfaceTexture surface) { argument
232 //Log.v(TAG, "onFrameAvailable " + surface.getTimestamp());
H A DNativeMedia.java333 public static native void setSurface(Surface surface); argument
392 Surface surface = new Surface(mMyGLSurfaceView.getSurfaceTexture());
393 setSurface(surface);
394 surface.release();
/frameworks/av/cmds/stagefright/
H A Dstream.cpp339 sp<Surface> surface = control->getSurface(); local
340 CHECK(surface != NULL);
380 player->setVideoSurfaceTexture(surface->getIGraphicBufferProducer());
/frameworks/av/media/libmedia/
H A DIMediaRecorder.cpp92 status_t setPreviewSurface(const sp<IGraphicBufferProducer>& surface) argument
94 ALOGV("setPreviewSurface(%p)", surface.get());
97 data.writeStrongBinder(surface->asBinder());
448 sp<IGraphicBufferProducer> surface = interface_cast<IGraphicBufferProducer>(data.readStrongBinder()); local
449 reply->writeInt32(setPreviewSurface(surface));
/frameworks/base/core/java/android/app/
H A DActivityView.java120 // Don't change surface when going between View.VISIBLE and View.INVISIBLE.
125 "ActivityView: Unable to set surface of ActivityContainer. " + e);
312 "ActivityView: Unable to set surface of ActivityContainer. " + e);
372 void setSurface(Surface surface, int width, int height, int density) argument
374 mIActivityContainer.setSurface(surface, width, height, density);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DCameraDeviceUserShim.java507 public int createStream(int width, int height, int format, Surface surface) { argument
522 mSurfaces.put(id, surface);

Completed in 8040 milliseconds

123456