Searched defs:surface (Results 26 - 50 of 144) sorted by relevance

123456

/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/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/media/java/android/media/
H A DRemoteDisplay.java125 private void notifyDisplayConnected(final Surface surface, argument
130 mListener.onDisplayConnected(surface, width, height, flags, session);
159 void onDisplayConnected(Surface surface, argument
/frameworks/base/media/java/android/media/projection/
H A DMediaProjection.java102 int width, int height, int dpi, boolean isSecure, @Nullable Surface surface,
106 return dm.createVirtualDisplay(this, name, width, height, dpi, surface,
122 * @param surface The surface to which the content of the virtual display
135 int width, int height, int dpi, int flags, @Nullable Surface surface,
139 this, name, width, height, dpi, surface, flags, callback, handler);
101 createVirtualDisplay(@onNull String name, int width, int height, int dpi, boolean isSecure, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
134 createVirtualDisplay(@onNull String name, int width, int height, int dpi, int flags, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDevice.java46 // The display device owns its surface, but it should only set it
179 * Sets the display surface while in a transaction.
181 public final void setSurfaceInTransactionLocked(Surface surface) { argument
182 if (mCurrentSurface != surface) {
183 mCurrentSurface = surface;
184 SurfaceControl.setDisplaySurface(mDisplayToken, 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/services/core/jni/
H A Dcom_android_server_AssetAtlasService.cpp84 if (surface != EGL_NO_SURFACE) eglDestroySurface(display, surface); \
110 // We're going to use a 1x1 pbuffer surface later on
142 EGLSurface surface = EGL_NO_SURFACE; local
154 surface = eglCreatePbufferSurface(display, configs[0], surfaceAttrs);
155 if (surface == EGL_NO_SURFACE) {
156 ALOGW("Could not create EGL surface");
160 if (!eglMakeCurrent(display, surface, surface, context)) {
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DSurfaceAndTextureViews.java173 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
178 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
186 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
191 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
/frameworks/native/cmds/flatland/
H A DRenderers.cpp166 virtual bool render(EGLSurface surface) { argument
171 result = mGLHelper->makeCurrent(surface);
181 result = mGLHelper->swapBuffers(surface);
/frameworks/native/include/gui/
H A DSurface.h75 /* convenience function to check that the given surface is non NULL as
77 static bool isValid(const sp<Surface>& surface) { argument
78 return surface != NULL && surface->getIGraphicBufferProducer() != NULL;
190 // mSurfaceTexture is the interface to the surface texture server. All
191 // operations on the surface texture client ultimately translate into
/frameworks/native/opengl/tests/angeles/
H A Dapp-linux.cpp134 EGLSurface surface; local
150 surface = eglCreateWindowSurface(dpy, config, window, NULL);
153 fprintf(stderr,"surface = %p\n", surface);
159 eglMakeCurrent(dpy, surface, surface, context);
162 eglQuerySurface(dpy, surface, EGL_WIDTH, &sWindowWidth);
163 eglQuerySurface(dpy, surface, EGL_HEIGHT, &sWindowHeight);
166 sEglSurface = surface;
/frameworks/rs/driver/
H A DrsdGL.h39 EGLSurface surface; member in struct:RsdGLRec::__anon1491
/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/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java52 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
55 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
56 if (surface != null) {
57 mOutPixelsAllocation.setSurface(new Surface(surface));
61 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
62 if (surface != null) {
63 mOutPixelsAllocation.setSurface(new Surface(surface));
68 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
/frameworks/av/camera/
H A DProCamera.cpp183 const sp<Surface>& surface,
192 if (surface == 0) {
197 surface->getIGraphicBufferProducer(),
182 createStream(int width, int height, int format, const sp<Surface>& surface, int* streamId) argument
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp71 sp<Surface> surface; local
73 surface = new Surface(bufferProducer);
77 "native-window", new NativeWindowWrapper(surface));
H A Dcodec.cpp48 "\t\t[-S] allocate buffers from a surface\n",
74 const android::sp<android::Surface> &surface) {
126 format, isVideo ? surface : NULL,
380 sp<Surface> surface; local
410 surface = control->getSurface();
411 CHECK(surface != NULL);
419 player->setSurface(surface->getIGraphicBufferProducer());
425 decode(looper, argv[0], useAudio, useVideo, surface);
69 decode( const android::sp<android::ALooper> &looper, const char *path, bool useAudio, bool useVideo, const android::sp<android::Surface> &surface) argument
/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp55 status_t MediaRecorder::setPreviewSurface(const sp<IGraphicBufferProducer>& surface) argument
57 ALOGV("setPreviewSurface(%p)", surface.get());
67 ALOGE("try to set preview surface without setting the video source first");
71 status_t ret = mMediaRecorder->setPreviewSurface(surface);
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp84 status_t MediaRecorderClient::setPreviewSurface(const sp<IGraphicBufferProducer>& surface) argument
92 return mRecorder->setPreviewSurface(surface);
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp45 const sp<IGraphicBufferProducer>& surface,
52 videoSize, videoFrameRate, surface,
73 const sp<IGraphicBufferProducer>& surface,
77 videoSize, videoFrameRate, surface,
37 CreateFromCamera( const sp<ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
65 CameraSourceTimeLapse( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
/frameworks/base/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java196 * each output {@code surface} target may or may not itself support that {@code format}.
197 * Refer to the class which provides the surface for additional documentation.</p>
204 * {@code true} iff using a {@code surface} with this {@code format} will be
281 * Determine whether or not the {@code surface} in its current state is suitable to be included
285 * of that {@code surface} are compatible. Some classes that provide the {@code surface} are
288 * {@code surface} into a state that will be compatible with the {@link CameraDevice}.</p>
290 * <p>Reasons for a {@code surface} being specifically incompatible might be:
294 * <li>The {@code surface} itself is not in a state where it can service a new producer.</p>
308 * @param surface
317 isOutputSupportedFor(Surface surface) argument
[all...]
/frameworks/base/core/java/android/hardware/display/
H A DDisplayManager.java478 int width, int height, int densityDpi, @Nullable Surface surface, int flags) {
479 return createVirtualDisplay(name, width, height, densityDpi, surface, flags, null, null);
489 * when no longer needed. Because a virtual display renders to a surface
497 * As of {@link android.os.Build.VERSION_CODES#KITKAT_WATCH}, the surface may
499 * Previously, the surface had to be non-null when {@link #createVirtualDisplay}
502 * Detaching the surface that backs a virtual display has a similar effect to
510 * @param surface The surface to which the content of the virtual display should
526 int width, int height, int densityDpi, @Nullable Surface surface, int flags,
529 name, width, height, densityDpi, surface, flag
477 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags) argument
525 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
533 createVirtualDisplay(@ullable MediaProjection projection, @NonNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
[all...]
/frameworks/base/core/java/android/view/
H A DHardwareLayer.java133 public void setSurfaceTexture(SurfaceTexture surface) { argument
134 nSetSurfaceTexture(mFinalizer.get(), surface, false);
151 SurfaceTexture surface, boolean isAlreadyAttached);
150 nSetSurfaceTexture(long layerUpdater, SurfaceTexture surface, boolean isAlreadyAttached) argument
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp115 jobject surface) {
117 sp<IGraphicBufferProducer> producer(SurfaceTexture_getProducer(env, surface));
114 android_view_TextureView_createNativeWindow(JNIEnv* env, jobject textureView, jobject surface) argument
/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...]

Completed in 2354 milliseconds

123456