Searched refs:surface (Results 1 - 25 of 195) sorted by relevance

12345678

/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp29 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
108 // We don't care *WHAT* surface is active, just that one is active to give
191 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, NULL); local
192 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE,
195 return surface;
198 void EglManager::destroySurface(EGLSurface surface) { argument
199 if (isCurrent(surface)) {
202 if (!eglDestroySurface(mEglDisplay, surface)) {
203 ALOGW("Failed to destroy surface %p, error=%s", (void*)surface, egl_error_st
228 makeCurrent(EGLSurface surface) argument
244 beginFrame(EGLSurface surface, EGLint* width, EGLint* height) argument
257 swapBuffers(EGLSurface surface) argument
276 enableDirtyRegions(EGLSurface surface) argument
[all...]
H A DEglManager.h42 void destroySurface(EGLSurface surface);
46 bool isCurrent(EGLSurface surface) { return mCurrentSurface == surface; } argument
47 // Returns true if the current surface changed, false if it was already current
48 bool makeCurrent(EGLSurface surface);
49 void beginFrame(EGLSurface surface, EGLint* width, EGLint* height);
50 bool swapBuffers(EGLSurface surface);
52 bool enableDirtyRegions(EGLSurface surface);
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp34 if (mSize && surface.data)
35 free(surface.data);
43 memset(&surface, 0, sizeof(surface));
44 surface.version = sizeof(surface);
74 if (!surface.data)
77 int w = surface.width;
78 int h = surface.height;
109 return surface;
[all...]
H A Ddxt.h29 void *surface, int stride, int format);
/frameworks/native/include/android/
H A Dnative_window_jni.h34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.java36 EGLSurface surface;
38 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
40 surface = _eglCreateWindowSurfaceTexture(dpy, config,
49 return 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/rs/java/android/renderscript/
H A DRSTextureView.java68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
70 mSurfaceTexture = surface;
81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
83 mSurfaceTexture = surface;
94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
96 mSurfaceTexture = surface;
109 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
111 mSurfaceTexture = surface;
147 * @param sc The RS surface config to create.
/frameworks/base/core/java/android/hardware/display/
H A DVirtualDisplay.java27 * Because a virtual display renders to a surface provided by the application, it will be
42 IVirtualDisplayCallback token, Surface surface) {
46 mSurface = surface;
57 * Gets the surface that backs the virtual display.
64 * Sets the surface that backs the virtual display.
66 * Detaching the surface that backs a virtual display has a similar effect to
69 * It is still the caller's responsibility to destroy the surface after it has
73 * @param surface The surface to set, or null to detach the surface fro
41 VirtualDisplay(DisplayManagerGlobal global, Display display, IVirtualDisplayCallback token, Surface surface) argument
75 setSurface(Surface surface) argument
[all...]
/frameworks/native/opengl/tests/swapinterval/
H A Dswapinterval.cpp43 EGLSurface surface; local
71 surface = eglCreateWindowSurface(dpy, config, window, NULL);
72 if (surface == EGL_NO_SURFACE) {
84 eglMakeCurrent(dpy, surface, surface, context);
85 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
86 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
100 eglSwapBuffers(dpy, surface);
112 eglSwapBuffers(dpy, surface);
115 eglSwapBuffers(dpy, surface);
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyCameraDevice.java223 * Check if a given surface uses {@link ImageFormat#YUV_420_888} or format that can be readily
226 * @param s the surface to check.
272 * <p>Every surface in {@code outputs} must be non-{@code null}.</p>
288 // Validate surface size and format.
359 // Make sure that there all requests have at least 1 surface; all surfaces are non-null
367 for (Surface surface : request.getTargets()) {
368 if (surface == null) {
375 } else if (!containsSurfaceId(surface, surfaceIds)) {
376 Log.e(TAG, "submitRequestList - cannot use a surface that wasn't configured");
477 * Query the surface fo
484 getSurfaceSize(Surface surface) argument
493 detectSurfaceType(Surface surface) argument
498 configureSurface(Surface surface, int width, int height, int pixelFormat) argument
508 produceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
520 setSurfaceFormat(Surface surface, int pixelFormat) argument
527 setSurfaceDimens(Surface surface, int width, int height) argument
536 getSurfaceId(Surface surface) argument
562 setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
580 setNextTimestamp(Surface surface, long timestamp) argument
586 nativeDetectSurfaceType(Surface surface) argument
588 nativeDetectSurfaceDimens(Surface surface, int[ ] dimens) argument
591 nativeConfigureSurface(Surface surface, int width, int height, int pixelFormat) argument
594 nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
597 nativeSetSurfaceFormat(Surface surface, int pixelFormat) argument
599 nativeSetSurfaceDimens(Surface surface, int width, int height) argument
601 nativeGetSurfaceId(Surface surface) argument
603 nativeSetSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
609 nativeSetNextTimestamp(Surface surface, long timestamp) argument
[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/services/surfaceflinger/tests/resize/
H A Dresize.cpp44 sp<Surface> surface = surfaceControl->getSurface(); local
51 surface->lock(&outBuffer, NULL);
54 surface->unlockAndPost();
56 surface->lock(&outBuffer);
58 surface->unlockAndPost();
/frameworks/av/camera/camera2/
H A DCaptureRequest.cpp48 ALOGE("%s: Failed to read surface list size from parcel", __FUNCTION__);
51 ALOGV("%s: Read surface list size = %d", __FUNCTION__, size);
58 ALOGV("%s: Read surface class = %s", __FUNCTION__,
67 ALOGV("%s: Read surface name = %s",
70 ALOGV("%s: Read surface binder = %p",
73 sp<Surface> surface; local
78 surface = new Surface(gbp);
81 mSurfaceList.push_back(surface);
105 sp<Surface> surface = mSurfaceList[i]; local
108 if (surface !
[all...]
/frameworks/native/cmds/flatland/
H A DGLHelper.h52 bool makeCurrent(EGLSurface surface);
55 sp<GLConsumer>* surfaceTexture, EGLSurface* surface,
59 sp<SurfaceControl>* surfaceControl, EGLSurface* surface);
61 void destroySurface(EGLSurface* surface);
63 bool swapBuffers(EGLSurface surface);
72 sp<GLConsumer>* surfaceTexture, EGLSurface* surface);
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLSurfaceImpl.java28 public EGLSurfaceImpl(long surface) { argument
29 mEGLSurface = surface;
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java37 final SurfaceControl surface; field in class:BlackFrame.BlackSurface
48 surface = new WindowStateAnimator.SurfaceTrace(session, "BlackSurface("
52 surface = new SurfaceControl(session, "BlackSurface",
56 surface.setAlpha(1);
57 surface.setLayerStack(layerStack);
58 surface.setLayer(layer);
59 surface.show();
62 " BLACK " + surface + ": CREATE layer=" + layer);
66 surface.setAlpha(alpha);
73 surface
[all...]
/frameworks/base/telecomm/java/com/android/internal/telecom/
H A DIVideoProvider.aidl32 void setPreviewSurface(in Surface surface);
34 void setDisplaySurface(in Surface surface);
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsVideoCallProvider.aidl47 void setPreviewSurface(in Surface surface);
49 void setDisplaySurface(in Surface 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/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);
108 eglSwapBuffers(dpy, 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
/frameworks/native/opengl/tests/fillrate/
H A Dfillrate.cpp44 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);
125 eglSwapBuffers(dpy, surface);
135 eglSwapBuffers(dpy, surface);
147 eglSwapBuffers(dpy, surface);
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
H A DRsYuv.java127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
128 android.util.Log.v("cpa", "onSurfaceTextureAvailable " + surface);
129 mSurface = new Surface(surface);
134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
135 android.util.Log.v("cpa", "onSurfaceTextureSizeChanged " + surface);
136 mSurface = new Surface(surface);
141 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
142 android.util.Log.v("cpa", "onSurfaceTextureDestroyed " + surface);
149 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...]

Completed in 670 milliseconds

12345678