Searched refs:surface (Results 101 - 125 of 309) sorted by relevance

1234567891011>>

/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/base/core/java/android/hardware/display/
H A DDisplayManager.java505 int width, int height, int densityDpi, @Nullable Surface surface, int flags) {
506 return createVirtualDisplay(name, width, height, densityDpi, surface, flags, null, null);
516 * when no longer needed. Because a virtual display renders to a surface
524 * As of {@link android.os.Build.VERSION_CODES#KITKAT_WATCH}, the surface may
526 * Previously, the surface had to be non-null when {@link #createVirtualDisplay}
529 * Detaching the surface that backs a virtual display has a similar effect to
537 * @param surface The surface to which the content of the virtual display should
553 int width, int height, int densityDpi, @Nullable Surface surface, int flags,
555 return createVirtualDisplay(null /* projection */, name, width, height, densityDpi, surface,
504 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags) argument
552 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
560 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, @Nullable String uniqueId) argument
[all...]
/frameworks/base/telephony/java/com/android/ims/internal/
H A DImsVideoCallProvider.java129 public void setPreviewSurface(Surface surface) { argument
130 mProviderHandler.obtainMessage(MSG_SET_PREVIEW_SURFACE, surface).sendToTarget();
133 public void setDisplaySurface(Surface surface) { argument
134 mProviderHandler.obtainMessage(MSG_SET_DISPLAY_SURFACE, surface).sendToTarget();
197 public abstract void onSetPreviewSurface(Surface surface); argument
200 public abstract void onSetDisplaySurface(Surface surface); argument
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DDisplaySinkService.java44 // This is to ensure that the surface lifecycle is respected. Although decoding
45 // happens on the transport thread, we are not allowed to access the surface after
108 // Ignore. Wait for surface changed event that follows.
122 Surface surface = null;
125 surface = holder.getSurface();
126 if (surface.isValid()) {
131 surface = null;
136 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) {
140 mSurface = surface;
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingSessionCallback.java197 public void onSurfacePrepared(CameraCaptureSession session, Surface surface) { argument
200 mProxy.onSurfacePrepared(session, surface);
209 preparedSurfaces.add(surface);
224 * Wait until the designated surface is prepared by the camera capture session.
227 * @param surface the input {@link Surface} to wait for
233 CameraCaptureSession session, Surface surface, long timeoutMs) {
236 if (preparedSurfaces != null && preparedSurfaces.contains(surface)) {
248 preparedSurfaces.contains(surface)) {
232 waitForSurfacePrepared( CameraCaptureSession session, Surface surface, long timeoutMs) argument
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DSurfaceTextureRenderer.java71 Surface surface; field in class:SurfaceTextureRenderer.EGLSurfaceHolder
134 * tells the fragment shader to interpolate over it. Each surface pixel position
293 width + "x" + height + " surface, intermediate buffer size is " + texWidth +
351 * Initializes GL state. Call this after the EGL surface has been created and made current.
407 LegacyCameraDevice.disconnectSurface(holder.surface);
466 holder.surface, surfaceAttribs, /*offset*/ 0);
479 // Find max surface size, ensure PBuffer can hold this many pixels
524 private void makeCurrent(EGLSurface surface) { argument
525 EGL14.eglMakeCurrent(mEGLDisplay, surface, surface, mEGLContex
529 swapBuffers(EGLSurface surface) argument
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DVirtualDisplayAdapter.java85 int width, int height, int densityDpi, Surface surface, int flags, String uniqueId) {
98 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags,
128 public void setVirtualDisplaySurfaceLocked(IBinder appToken, Surface surface) { argument
131 device.setSurfaceLocked(surface);
209 String name, int width, int height, int densityDpi, Surface surface, int flags,
220 mSurface = surface;
279 public void setSurfaceLocked(Surface surface) { argument
280 if (!mStopped && mSurface != surface) {
281 if ((mSurface != null) != (surface != null)) {
285 mSurface = surface;
83 createVirtualDisplayLocked(IVirtualDisplayCallback callback, IMediaProjection projection, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags, String uniqueId) argument
207 VirtualDisplayDevice(IBinder displayToken, IBinder appToken, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags, Callback callback, String uniqueId, int uniqueIndex) argument
[all...]
/frameworks/native/opengl/include/EGL/
H A Deglext.h71 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
72 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface);
74 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
75 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface);
189 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
191 EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
306 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
308 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
314 EGLAPI EGLBoolean eglQuerySurfacePointerANGLE(EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
316 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLin
[all...]
H A Degl.h273 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
274 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface,
288 EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface,
290 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
291 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
312 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
313 EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface,
/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskSnapshotSurface.java137 final Surface surface = new Surface();
202 surface, snapshot, layoutParams.getTitle(), backgroundColor, statusBarColor,
209 tmpMergedConfiguration, surface);
219 TaskSnapshotSurface(WindowManagerService service, Window window, Surface surface, argument
227 mSurface = surface;
245 Slog.v(TAG, "Defer removing snapshot surface in " + (now - mShownTime) + "ms");
251 if (DEBUG_STARTING_WINDOW) Slog.v(TAG, "Removing snapshot surface");
270 if (DEBUG_STARTING_WINDOW) Slog.v(TAG, "Drawing snapshot surface sizeMismatch="
300 mTitle + " - task-snapshot-surface",
302 Surface surface
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp143 CREATE_BRIDGE2(initialize, CanvasContext* context, Surface* surface) { argument
144 args->context->initialize(args->surface);
148 void RenderProxy::initialize(const sp<Surface>& surface) { argument
151 args->surface = surface.get();
155 CREATE_BRIDGE2(updateSurface, CanvasContext* context, Surface* surface) { argument
156 args->context->updateSurface(args->surface);
160 void RenderProxy::updateSurface(const sp<Surface>& surface) { argument
163 args->surface = surface
167 CREATE_BRIDGE2(pauseSurface, CanvasContext* context, Surface* surface) argument
171 pauseSurface(const sp<Surface>& surface) argument
617 CREATE_BRIDGE4(copySurfaceInto, RenderThread* thread, Surface* surface, Rect srcRect, SkBitmap* bitmap) argument
623 copySurfaceInto(sp<Surface>& surface, int left, int top, int right, int bottom, SkBitmap* bitmap) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DSingleFrameTextureViewTestActivity.java78 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null);
201 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
206 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
213 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
/frameworks/native/opengl/libagl/
H A Dtexture.cpp83 c->rasterizer.procs.bindTexture(c, &(u.texture->surface));
142 c->rasterizer.procs.bindTexture(c, &(u.texture->surface));
161 c->rasterizer.procs.bindTexture(c, &(u.texture->surface));
383 GGLSurface& surface = tex->editMip(level);
384 *outSurface = &surface;
396 *outSurface = &tex->surface;
445 void *surface, int stride, int format)
491 uint8_t* p = (uint8_t*)surface + y*stride*2;
515 uint8_t* p = (uint8_t*)surface + y*stride*3;
542 uint8_t* p = (uint8_t*)surface
444 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument
1111 GGLSurface* surface; local
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaVulkanPipeline.cpp53 "drawRenderNode called on a context with no surface!");
134 bool SkiaVulkanPipeline::setSurface(Surface* surface, SwapBehavior swapBehavior) { argument
140 if (surface) {
141 mVkSurface = mVkManager.createSurface(surface);
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHal.java61 Surface surface);
85 public int addOrUpdateStream(int deviceId, Surface surface, TvStreamConfig streamConfig) { argument
94 if (nativeAddOrUpdateStream(mPtr, deviceId, streamConfig.getStreamId(), surface) == 0) {
60 nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, Surface surface) argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DSurfaceHolderTarget.java120 Surface surface = mSurfaceHolder.getSurface();
121 mHasSurface = (surface != null) && surface.isValid();
128 // Synchronize the surface holder in case another filter is accessing this surface.
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DGpuVideoTrackDecoder.java71 // Create a surface texture to be used by the video track decoder.
99 Surface surface = new Surface(mSurfaceTexture);
100 mediaCodec.configure(format, surface, null, 0);
101 surface.release();
/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/libs/vr/libvrflinger/
H A Ddisplay_service.h50 auto surface = std::static_pointer_cast<DisplaySurface>(pair.second);
51 if (surface->surface_type() == surface_type)
52 action(surface);
105 // Called by DisplaySurface to signal that a surface property has changed and
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_environment.cpp136 jobject surface) {
138 if (!surface) {
143 ANativeWindow* window = ANativeWindow_fromSurface(env, surface);
152 // Configure surface
169 ALOGE("GLEnvironment: No suitable EGL configuration found for surface!");
173 // Create the EGL surface
180 ALOGE("GLEnvironment: Error creating window surface!");
196 jobject surface,
200 if (!surface) {
205 ANativeWindow* window = ANativeWindow_fromSurface(env, surface);
134 Java_android_filterfw_core_GLEnvironment_nativeAddSurface(JNIEnv* env, jobject thiz, jobject surface) argument
194 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
[all...]
/frameworks/av/cmds/stagefright/
H A Dcodec.cpp48 "\t\t[-S] allocate buffers from a surface\n"
49 "\t\t[-R] render output to surface (enables -S)\n"
75 const android::sp<android::Surface> &surface,
129 format, isVideo ? surface : NULL,
269 if (surface == NULL || !renderSurface) {
408 sp<Surface> surface; local
438 surface = control->getSurface();
439 CHECK(surface != NULL);
447 player->setSurface(surface->getIGraphicBufferProducer());
453 decode(looper, argv[0], useAudio, useVideo, surface, renderSurfac
70 decode( const android::sp<android::ALooper> &looper, const char *path, bool useAudio, bool useVideo, const android::sp<android::Surface> &surface, bool renderSurface, bool useTimestamp) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DCameraSourceTimeLapse.h47 const sp<IGraphicBufferProducer>& surface,
124 const sp<IGraphicBufferProducer>& surface,
/frameworks/av/media/libstagefright/foundation/include/
H A DCameraSourceTimeLapse.h47 const sp<IGraphicBufferProducer>& surface,
124 const sp<IGraphicBufferProducer>& surface,
/frameworks/av/media/libstagefright/include/
H A DCameraSourceTimeLapse.h47 const sp<IGraphicBufferProducer>& surface,
124 const sp<IGraphicBufferProducer>& surface,
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraCaptureSessionImpl.java50 /** Input surface configured by native camera framework based on user-specified configuration */
140 public void prepare(Surface surface) throws CameraAccessException { argument
141 mDeviceImpl.prepare(surface);
145 public void prepare(int maxCount, Surface surface) throws CameraAccessException { argument
146 mDeviceImpl.prepare(maxCount, surface);
150 public void tearDown(Surface surface) throws CameraAccessException { argument
151 mDeviceImpl.tearDown(surface);
646 public void onSurfacePrepared(Surface surface) {
648 mStateCallback.onSurfacePrepared(session, surface);

Completed in 5257 milliseconds

1234567891011>>