Searched refs:surface (Results 51 - 75 of 309) sorted by relevance

1234567891011>>

/frameworks/native/opengl/tests/textures/
H A Dtextures.cpp41 EGLSurface surface; local
58 surface = eglCreateWindowSurface(dpy, config, window, NULL);
60 eglMakeCurrent(dpy, surface, surface, context);
61 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
62 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
117 eglSwapBuffers(dpy, surface);
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp134 bool GLHelper::makeCurrent(EGLSurface surface) { argument
137 result = eglMakeCurrent(mDisplay, surface, surface, mContext);
144 eglQuerySurface(mDisplay, surface, EGL_WIDTH, &w);
145 eglQuerySurface(mDisplay, surface, EGL_HEIGHT, &h);
152 sp<GLConsumer>* glConsumer, EGLSurface* surface,
165 return createNamedSurfaceTexture(*name, w, h, glConsumer, surface);
168 void GLHelper::destroySurface(EGLSurface* surface) { argument
169 if (eglGetCurrentSurface(EGL_READ) == *surface ||
170 eglGetCurrentSurface(EGL_DRAW) == *surface) {
151 createSurfaceTexture(uint32_t w, uint32_t h, sp<GLConsumer>* glConsumer, EGLSurface* surface, GLuint* name) argument
178 swapBuffers(EGLSurface surface) argument
201 createNamedSurfaceTexture(GLuint name, uint32_t w, uint32_t h, sp<GLConsumer>* glConsumer, EGLSurface* surface) argument
[all...]
/frameworks/native/opengl/tests/filter/
H A Dfilter.cpp37 EGLSurface surface; local
54 surface = eglCreateWindowSurface(dpy, config, window, NULL);
59 surface = eglCreatePbufferSurface(dpy, config, attribs);
60 if (surface == EGL_NO_SURFACE) {
65 eglMakeCurrent(dpy, surface, surface, context);
66 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
67 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
159 eglSwapBuffers(dpy, surface);
185 eglSwapBuffers(dpy, surface);
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.cpp97 surface() != eglGetCurrentSurface(EGL_DRAW)) {
99 if (context() == EGL_NO_CONTEXT || surface() == EGL_NO_SURFACE)
104 eglMakeCurrent(display(), surface(), surface(), context());
112 const bool result = eglSwapBuffers(display(), surface()) == EGL_TRUE;
126 (surface() != EGL_NO_SURFACE);
144 // Configure context/surface
167 // Create dummy surface using a GLConsumer
195 && surface() == eglGetCurrentSurface(EGL_DRAW);
206 int GLEnv::AddWindowSurface(const EGLSurface& surface, WindowHandl argument
212 AddSurface(const EGLSurface& surface) argument
219 const SurfaceWindowPair* surface = FindOrNull(surfaces_, surface_id); local
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp97 static status_t connectSurface(const sp<Surface>& surface, int32_t maxBufferSlack) { argument
100 err = surface->connect(NATIVE_WINDOW_API_CAMERA, /*listener*/NULL);
102 ALOGE("%s: Unable to connect to surface, error %s (%d).", __FUNCTION__,
107 err = native_window_set_usage(surface.get(), GRALLOC_USAGE_SW_WRITE_OFTEN);
115 err = static_cast<ANativeWindow*>(surface.get())->query(surface.get(),
125 err = native_window_set_buffer_count(surface.get(), maxBufferSlack + 1 + minUndequeuedBuffers);
135 * Produce a frame in the given surface.
138 * anw - a surface to produce a frame in.
199 ALOGE("%s: Error while querying surface pixe
353 getNativeWindow(JNIEnv* env, jobject surface) argument
390 getSurface(JNIEnv* env, jobject surface) argument
411 LegacyCameraDevice_nativeDetectSurfaceType(JNIEnv* env, jobject thiz, jobject surface) argument
428 LegacyCameraDevice_nativeDetectSurfaceDataspace(JNIEnv* env, jobject thiz, jobject surface) argument
445 LegacyCameraDevice_nativeDetectSurfaceDimens(JNIEnv* env, jobject thiz, jobject surface, jintArray dimens) argument
481 LegacyCameraDevice_nativeDetectSurfaceUsageFlags(JNIEnv* env, jobject thiz, jobject surface) argument
501 LegacyCameraDevice_nativeDisconnectSurface(JNIEnv* env, jobject thiz, jobject surface) argument
552 LegacyCameraDevice_nativeConnectSurface(JNIEnv* env, jobject thiz, jobject surface) argument
567 LegacyCameraDevice_nativeProduceFrame(JNIEnv* env, jobject thiz, jobject surface, jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) argument
601 LegacyCameraDevice_nativeSetSurfaceFormat(JNIEnv* env, jobject thiz, jobject surface, jint pixelFormat) argument
617 LegacyCameraDevice_nativeSetSurfaceDimens(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
637 LegacyCameraDevice_nativeGetSurfaceId(JNIEnv* env, jobject thiz, jobject surface) argument
661 LegacyCameraDevice_nativeSetSurfaceOrientation(JNIEnv* env, jobject thiz, jobject surface, jint facing, jint orientation) argument
697 LegacyCameraDevice_nativeSetNextTimestamp(JNIEnv* env, jobject thiz, jobject surface, jlong timestamp) argument
717 LegacyCameraDevice_nativeSetScalingMode(JNIEnv* env, jobject thiz, jobject surface, jint mode) argument
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaOpenGLPipeline.cpp55 "drawRenderNode called on a context with no surface!");
70 // setup surface for fbo0
83 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget(
87 renderFrame(*layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, surface);
93 SkCanvas* profileCanvas = surface->getCanvas();
158 bool SkiaOpenGLPipeline::setSurface(Surface* surface, SwapBehavior swapBehavior) { argument
165 if (surface) {
166 mEglSurface = mEglManager.createSurface(surface);
/frameworks/base/core/java/android/view/
H A DHardwareLayer.java134 public void setSurfaceTexture(SurfaceTexture surface) { argument
135 nSetSurfaceTexture(mFinalizer.get(), surface);
151 private static native void nSetSurfaceTexture(long layerUpdater, SurfaceTexture surface); argument
/frameworks/base/media/java/android/media/
H A DRemoteDisplay.java128 private void notifyDisplayConnected(final Surface surface, argument
133 mListener.onDisplayConnected(surface, width, height, flags, session);
162 void onDisplayConnected(Surface surface, argument
H A DImageWriter.java111 * @param surface The destination Surface this writer produces Image data
121 public static ImageWriter newInstance(Surface surface, int maxImages) { argument
122 return new ImageWriter(surface, maxImages, ImageFormat.UNKNOWN);
137 * from the {@code surface} will be overridden with this format. For example,
138 * if the surface is obtained from a {@link android.graphics.SurfaceTexture}, the default
140 * with this surface and {@link ImageFormat#PRIVATE}, this ImageWriter will be able to operate
153 * @param surface The destination Surface this writer produces Image data
167 public static ImageWriter newInstance(Surface surface, int maxImages, int format) { argument
171 return new ImageWriter(surface, maxImages, format);
177 protected ImageWriter(Surface surface, in argument
851 nativeInit(Object weakSelf, Surface surface, int maxImgs, int format) argument
[all...]
/frameworks/native/opengl/libs/EGL/
H A Degl_object.cpp59 EGLNativeWindowType win, EGLSurface surface,
61 egl_object_t(dpy), surface(surface), config(config), win(win), cnx(cnx),
58 egl_surface_t(egl_display_t* dpy, EGLConfig config, EGLNativeWindowType win, EGLSurface surface, egl_connection_t const* cnx) argument
H A DeglApi.cpp575 EGLSurface surface = cnx->egl.eglCreateWindowSurface( local
577 if (surface != EGL_NO_SURFACE) {
579 surface, cnx);
599 EGLSurface surface = cnx->egl.eglCreatePixmapSurface( local
601 if (surface != EGL_NO_SURFACE) {
603 surface, cnx);
618 EGLSurface surface = cnx->egl.eglCreatePbufferSurface( local
620 if (surface != EGL_NO_SURFACE) {
622 surface, cnx);
629 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) argument
648 eglQuerySurface( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value) argument
665 eglBeginFrame(EGLDisplay dpy, EGLSurface surface) argument
1201 eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) argument
1206 eglCopyBuffers( EGLDisplay dpy, EGLSurface surface, NativePixmapType target) argument
1280 eglSurfaceAttrib( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) argument
1317 eglBindTexImage( EGLDisplay dpy, EGLSurface surface, EGLint buffer) argument
1337 eglReleaseTexImage( EGLDisplay dpy, EGLSurface surface, EGLint buffer) argument
1465 eglLockSurfaceKHR(EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list) argument
1485 eglUnlockSurfaceKHR(EGLDisplay dpy, EGLSurface surface) argument
1734 EGLSurface surface = cnx->egl.eglCreateStreamProducerSurfaceKHR( local
1865 eglPresentationTimeANDROID(EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time) argument
1935 eglSetDamageRegionKHR(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects) argument
1961 eglGetNextFrameIdANDROID(EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId) argument
1995 eglGetCompositorTimingANDROID(EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values) argument
2052 eglGetCompositorTimingSupportedANDROID( EGLDisplay dpy, EGLSurface surface, EGLint name) argument
2084 eglGetFrameTimestampsANDROID(EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values) argument
2172 eglGetFrameTimestampSupportedANDROID( EGLDisplay dpy, EGLSurface surface, EGLint timestamp) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCaptureSession.java123 * prepare() only needs to be called on one surface, and {link
131 * @param surface the output Surface for which buffers should be pre-allocated. Must be one of
145 public abstract void prepare(@NonNull Surface surface) throws CameraAccessException; argument
168 * prepare with prepare(surface, 2) and prepare(surface, 4).</p>
173 * @param surface the output Surface for which buffers should be pre-allocated.
187 public abstract void prepare(int maxCount, @NonNull Surface surface) argument
212 * @param surface the output Surface for which buffers should be freed. Must be one of the
226 public abstract void tearDown(@NonNull Surface surface) throws CameraAccessException; argument
252 * OutputConfiguration with the available Surface, then enable furture surface sharin
805 onSurfacePrepared(@onNull CameraCaptureSession session, @NonNull Surface surface) argument
[all...]
/frameworks/base/core/java/android/hardware/display/
H A DIDisplayManager.aidl69 int width, int height, int densityDpi, in Surface surface, int flags, String uniqueId);
76 void setVirtualDisplaySurface(in IVirtualDisplayCallback token, in Surface surface);
/frameworks/base/libs/hwui/
H A DReadback.h42 * Copies the surface's most recently queued buffer into the provided bitmap.
44 virtual CopyResult copySurfaceInto(Surface& surface, const Rect& srcRect,
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDevice.java47 // The display device owns its surface, but it should only set it
191 * Sets the display surface while in a transaction.
193 public final void setSurfaceInTransactionLocked(Surface surface) { argument
194 if (mCurrentSurface != surface) {
195 mCurrentSurface = surface;
196 SurfaceControl.setDisplaySurface(mDisplayToken, surface);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DHardwareCanvasTextureViewActivity.java51 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
57 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
62 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
68 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
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DBlockingGLTextureView.java66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, argument
68 mRenderThread.setSurface(surface);
73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, argument
79 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
87 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
187 * Create an egl surface for the current SurfaceTexture surface. If a surface
188 * already exists, destroy it before creating the new surface.
190 * @return true if the surface wa
192 createSurface(SurfaceTexture surface) argument
343 setSurface(SurfaceTexture surface) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java120 Surface surface;
152 surface = recorder.getSurface();
161 * should succeed for surface source
165 surface = recorder.getSurface();
178 * should succeed for surface source
182 surface = recorder.getSurface();
203 surface = recorder.getSurface();
234 Surface surface = null;
253 Log.v(TAG, "using persistent surface");
254 surface
[all...]
/frameworks/av/media/libstagefright/
H A DSurfaceUtils.cpp243 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason) { argument
244 ALOGD("connecting to surface %p, reason %s", surface, reason);
246 status_t err = native_window_api_connect(surface, NATIVE_WINDOW_API_MEDIA);
247 ALOGE_IF(err != OK, "Failed to connect to surface %p, err %d", surface, err);
252 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason) { argument
253 ALOGD("disconnecting from surface %p, reason %s", surface, reason);
255 status_t err = native_window_api_disconnect(surface, NATIVE_WINDOW_API_MEDI
[all...]
/frameworks/base/core/java/android/app/
H A DIActivityContainer.aidl29 void setSurface(in Surface surface, int width, int height, int density);
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraConstrainedHighSpeedCaptureSessionImpl.java127 // Make sure singleTargetRequestBuilder contains only recording surface for
168 public void prepare(Surface surface) throws CameraAccessException { argument
169 mSessionImpl.prepare(surface);
173 public void prepare(int maxCount, Surface surface) throws CameraAccessException { argument
174 mSessionImpl.prepare(maxCount, surface);
178 public void tearDown(Surface surface) throws CameraAccessException { argument
179 mSessionImpl.tearDown(surface);
304 public void onSurfacePrepared(CameraCaptureSession session, Surface surface) { argument
306 surface);
/frameworks/rs/tests/java_api/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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DRenderTarget.java55 /** The source for the surface used in this target (if any) */
115 return new RenderTarget(mDisplay, mContext, surface(), fbo, false, false);
156 public RenderTarget forSurface(Surface surface) { argument
160 eglSurf = mSurfaceSources.get(surface);
162 eglSurf = mEgl.eglCreateWindowSurface(mDisplay, eglConfig, surface, null);
163 mSurfaceSources.put(surface, eglSurf);
169 result.setSurfaceSource(surface);
196 throw new RuntimeException("This device supports only a single display surface!");
214 mEgl.eglMakeCurrent(mDisplay, surface(), surface(), mContex
348 RenderTarget(EGLDisplay display, EGLContext context, EGLSurface surface, int fbo, boolean ownsContext, boolean ownsSurface) argument
359 private EGLSurface surface() { method in class:RenderTarget
416 checkSurface(EGL10 egl, EGLSurface surface) argument
[all...]
/frameworks/base/graphics/java/android/view/
H A DPixelCopy.java121 * the copy area will be the entire surface. The rect will be clamped to
168 * the copy area will be the entire surface. The rect will be clamped to
208 * if the DecorView has not yet acquired a backing surface. It is recommended
238 * if the DecorView has not yet acquired a backing surface. It is recommended
246 * the copy area will be the entire surface. The rect will be clamped to
265 Surface surface = null;
267 surface = source.peekDecorView().getViewRootImpl().mSurface;
269 if (surface == null || !surface.isValid()) {
271 "Window doesn't have a backing surface!");
[all...]

Completed in 578 milliseconds

1234567891011>>