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

12345678

/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp29 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
112 // We can't be certain about the state of the current surface (whether
114 // the pbuffer surface which we fully control
196 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, NULL); local
197 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE,
200 return surface;
203 void EglManager::destroySurface(EGLSurface surface) { argument
204 if (isCurrent(surface)) {
207 if (!eglDestroySurface(mEglDisplay, surface)) {
208 ALOGW("Failed to destroy surface
233 makeCurrent(EGLSurface surface) argument
249 beginFrame(EGLSurface surface, EGLint* width, EGLint* height) argument
263 swapBuffers(EGLSurface surface) argument
287 setPreserveBuffer(EGLSurface surface, bool preserve) 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);
53 // Returns true iff the surface is now preserving buffers.
54 bool setPreserveBuffer(EGLSurface surface, bool preserve);
87 // TODO: Need to be better about surface/contex
[all...]
/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/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", __FUNCTION__,
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/core/jni/
H A Dandroid_view_Surface.cpp113 sp<Surface> surface(new Surface(bufferProducer, true));
114 if (surface == NULL) {
119 gSurfaceClassInfo.ctor, (jlong)surface.get());
128 surface->incStrong(&sRefBaseOwner);
149 sp<Surface> surface(new Surface(producer, true));
150 if (surface == NULL) {
155 surface->incStrong(&sRefBaseOwner);
156 return jlong(surface.get());
197 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject));
199 if (!isSurfaceValid(surface)) {
361 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
369 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyCameraDevice.java232 * Check if a given surface uses {@link ImageFormat#YUV_420_888} or format that can be readily
235 * @param s the surface to check.
281 * <p>Every surface in {@code outputs} must be non-{@code null}.</p>
298 // Validate surface size and format.
377 // Make sure that there all requests have at least 1 surface; all surfaces are non-null
385 for (Surface surface : request.getTargets()) {
386 if (surface == null) {
393 } else if (!containsSurfaceId(surface, surfaceIds)) {
394 Log.e(TAG, "submitRequestList - cannot use a surface that wasn't configured");
520 * Query the surface fo
527 getSurfaceSize(Surface surface) argument
552 detectSurfaceUsageFlags(Surface surface) argument
560 detectSurfaceType(Surface surface) argument
565 configureSurface(Surface surface, int width, int height, int pixelFormat) argument
575 produceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
587 setSurfaceFormat(Surface surface, int pixelFormat) argument
594 setSurfaceDimens(Surface surface, int width, int height) argument
603 getSurfaceId(Surface surface) argument
629 setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
647 setNextTimestamp(Surface surface, long timestamp) argument
653 nativeDetectSurfaceType(Surface surface) argument
655 nativeDetectSurfaceDimens(Surface surface, int[ ] dimens) argument
658 nativeConfigureSurface(Surface surface, int width, int height, int pixelFormat) argument
661 nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
664 nativeSetSurfaceFormat(Surface surface, int pixelFormat) argument
666 nativeSetSurfaceDimens(Surface surface, int width, int height) argument
668 nativeGetSurfaceId(Surface surface) argument
670 nativeSetSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
676 nativeSetNextTimestamp(Surface surface, long timestamp) argument
678 nativeDetectSurfaceUsageFlags(Surface surface) argument
[all...]
/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

Completed in 709 milliseconds

12345678