Searched defs:surface (Results 126 - 150 of 203) sorted by relevance

123456789

/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyCameraDevice.java269 * Check if a given surface uses {@link ImageFormat#YUV_420_888} or format that can be readily
272 * @param s the surface to check.
318 * <p>Every surface in {@code outputs} must be non-{@code null}.</p>
342 // Validate surface size and format.
424 "submitRequestList - configured surface is abandoned.");
427 // Make sure that there all requests have at least 1 surface; all surfaces are non-null
437 for (Surface surface : request.getTargets()) {
438 if (surface == null) {
448 } else if (!containsSurfaceId(surface, surfaceIds)) {
449 Log.e(TAG, "submitRequestList - cannot use a surface tha
579 getSurfaceSize(Surface surface) argument
640 detectSurfaceUsageFlags(Surface surface) argument
648 detectSurfaceType(Surface surface) argument
665 detectSurfaceDataspace(Surface surface) argument
670 connectSurface(Surface surface) argument
676 disconnectSurface(Surface surface) argument
682 produceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
694 setSurfaceFormat(Surface surface, int pixelFormat) argument
701 setSurfaceDimens(Surface surface, int width, int height) argument
710 getSurfaceId(Surface surface) argument
765 setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
783 setNextTimestamp(Surface surface, long timestamp) argument
789 setScalingMode(Surface surface, int mode) argument
796 nativeDetectSurfaceType(Surface surface) argument
798 nativeDetectSurfaceDataspace(Surface surface) argument
800 nativeDetectSurfaceDimens(Surface surface, int[ ] dimens) argument
803 nativeConnectSurface(Surface surface) argument
805 nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
808 nativeSetSurfaceFormat(Surface surface, int pixelFormat) argument
810 nativeSetSurfaceDimens(Surface surface, int width, int height) argument
812 nativeGetSurfaceId(Surface surface) argument
814 nativeSetSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
820 nativeSetNextTimestamp(Surface surface, long timestamp) argument
822 nativeDetectSurfaceUsageFlags(Surface surface) argument
824 nativeSetScalingMode(Surface surface, int scalingMode) argument
826 nativeDisconnectSurface(Surface surface) argument
[all...]
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/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java275 * each output {@code surface} target may or may not itself support that {@code format}.
276 * Refer to the class which provides the surface for additional documentation.</p>
283 * {@code true} iff using a {@code surface} with this {@code format} will be
365 * Determine whether or not the {@code surface} in its current state is suitable to be included
369 * of that {@code surface} are compatible. Some classes that provide the {@code surface} are
372 * {@code surface} into a state that will be compatible with the {@link CameraDevice}.</p>
374 * <p>Reasons for a {@code surface} being specifically incompatible might be:
378 * <li>The {@code surface} itself is not in a state where it can service a new producer.</p>
392 * @param surface
401 isOutputSupportedFor(Surface surface) argument
[all...]
/frameworks/base/core/java/android/view/
H A DSurface.java89 Log.e(TAG, "Exception creating surface from parcel", e);
159 * Create an empty surface, which will later be filled in by readFromParcel().
174 * @throws OutOfResourcesException if the surface could not be created.
207 * Release the local reference to the server-side surface.
209 * This will make the surface invalid.
225 * Free all server-side state associated with this surface and
235 * Returns true if this object holds a valid surface.
237 * @return True if it holds a physical surface, so lockCanvas() will succeed.
248 * Gets the generation number of this surface, incremented each time
249 * the native surface containe
751 nHwuiCreate(long rootNode, long surface) argument
752 nHwuiSetSurface(long renderer, long surface) argument
[all...]
H A DTextureView.java64 * public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
68 * mCamera.setPreviewTexture(surface);
75 * public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
79 * public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
85 * public void onSurfaceTextureUpdated(SurfaceTexture surface) {
468 * The specified transform applies to the underlying surface
519 * of the associated surface texture. If the surface texture is not available,
530 * @return A valid {@link Bitmap.Config#ARGB_8888} bitmap, or null if the surface
543 * of the associated surface textur
811 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument
821 onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) argument
831 onSurfaceTextureDestroyed(SurfaceTexture surface) argument
839 onSurfaceTextureUpdated(SurfaceTexture surface) argument
842 nCreateNativeWindow(SurfaceTexture surface) argument
[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...]
H A Dandroid_view_Surface.cpp104 jobject android_view_Surface_createFromSurface(JNIEnv* env, const sp<Surface>& surface) { argument
106 gSurfaceClassInfo.ctor, (jlong)surface.get());
115 surface->incStrong(&sRefBaseOwner);
125 sp<Surface> surface(new Surface(bufferProducer, true));
126 return android_view_Surface_createFromSurface(env, surface);
249 sp<Surface> surface(new Surface(producer, true));
250 if (surface == NULL) {
255 surface->incStrong(&sRefBaseOwner);
256 return jlong(surface.get());
298 sp<Surface> surface(reinterpret_cas
480 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
488 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
496 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
501 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
506 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
512 Surface* surface = reinterpret_cast<Surface*>(nativeObject); local
[all...]
H A Dcom_google_android_gles_jni_EGLImpl.cpp162 jobject surface, jint attribute, jintArray value) {
163 if (display == NULL || surface == NULL || value == NULL
169 EGLContext sur = getSurface(_env, surface);
394 static jboolean jni_eglDestroySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument
395 if (display == NULL || surface == NULL) {
400 EGLSurface sur = getSurface(_env, surface);
403 SkPixelRef* ref = (SkPixelRef*)(_env->GetLongField(surface,
439 static jboolean jni_eglSwapBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument
440 if (display == NULL || surface == NULL) {
445 EGLSurface sur = getSurface(_env, surface);
161 jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface, jint attribute, jintArray value) argument
458 jni_eglCopyBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface, jobject native_pixmap) argument
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp184 void CanvasContext::setSurface(Surface* surface) { argument
187 mNativeSurface = surface;
189 bool hasSurface = mRenderPipeline->setSurface(surface, mSwapBehavior);
205 void CanvasContext::initialize(Surface* surface) { argument
206 setSurface(surface);
209 void CanvasContext::updateSurface(Surface* surface) { argument
210 setSurface(surface);
213 bool CanvasContext::pauseSurface(Surface* surface) { argument
697 // mFrameNumber is reset to -1 when the surface changes or we swap buffers
711 // New surface need
[all...]
/frameworks/base/media/java/android/media/
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/base/media/java/android/media/tv/
H A DITvInputSessionWrapper.java261 public void setSurface(Surface surface) { argument
262 mCaller.executeOrSendMessage(mCaller.obtainMessageO(DO_SET_SURFACE, surface));
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp230 sp<Surface> surface(android_view_Surface_getSurface(env, jsurface));
231 if (surface == NULL) {
234 "The surface has been released");
237 sp<IGraphicBufferProducer> bufferProducer = surface->getIGraphicBufferProducer();
273 // Query surface format if no valid user format is specified, otherwise, override surface format
500 sp<Surface> surface = ctx->getProducer(); local
518 res = surface->attachBuffer(buffer->mGraphicBuffer.get());
532 sp < ANativeWindow > anw = surface;
H A Dandroid_media_MediaRecorder.cpp58 jfieldID surface; member in struct:fields_t
406 jobject surface = env->GetObjectField(thiz, fields.surface); local
407 if (surface != NULL) {
408 const sp<Surface> native_surface = get_surface(env, surface);
411 // the preview surface becomes unavailable
413 ALOGE("Application lost the surface");
414 jniThrowException(env, "java/io/IOException", "invalid preview surface");
418 ALOGI("prepare: surface=%p", native_surface.get());
455 "failed to get surface");
558 jclass surface = env->FindClass("android/view/Surface"); local
[all...]
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
H A DVideoDumpView.java61 * It uses a renderer to display each video frame over a surface texture, read pixels,
267 * A renderer to read each video frame from a media player, draw it over a surface
462 * Called when the surface changed size.
463 * Called after the surface is created and whenever the OpenGL surface size changes.
473 // TODO: adjust video_width and video_height with the surface size.
512 * Called when the surface is created or recreated.
551 // Create our texture. This has to be done each time the surface is created.
578 Surface surface = new Surface(mSurface);
579 mMediaPlayer.setSurface(surface);
593 onFrameAvailable(SurfaceTexture 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/base/services/core/java/com/android/server/wm/
H A DDragState.java109 DragState(WindowManagerService service, IBinder token, SurfaceControl surface, argument
113 mSurfaceControl = surface;
431 // Move the surface to the given touch
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/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp98 void setSurface(const sp<Surface>& surface);
120 void setSurfaceLocked(const sp<Surface>& surface);
153 void BufferProducerThread::setSurface(const sp<Surface>& surface) { argument
155 setSurfaceLocked(surface);
158 void BufferProducerThread::setSurfaceLocked(const sp<Surface>& surface) { argument
159 if (surface == mSurface) {
176 mSurface = surface;
212 ALOGE("error %d while wating for non-null surface to be set", err);
228 ALOGE("error %d while queueing buffer to surface", err);
238 ALOGE("error %d while dequeueing buffer to surface", er
340 addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface) argument
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DInCallService.java532 * Sets the surface to be used for displaying a preview of what the user's camera is
538 * @param surface The {@link Surface}.
540 public abstract void setPreviewSurface(Surface surface); argument
543 * Sets the surface to be used for displaying the video received from the remote device.
547 * @param surface The {@link Surface}.
549 public abstract void setDisplaySurface(Surface 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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindowSession.java92 Rect rect6, Rect rect7, MergedConfiguration mergedConfig, Surface surface)
90 relayout(IWindow iWindow, int i, LayoutParams layoutParams, int i2, int i3, int i4, int i5, Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, Rect rect6, Rect rect7, MergedConfiguration mergedConfig, Surface surface) argument
/frameworks/native/cmds/flatland/
H A DMain.cpp511 bool doFrame(EGLSurface surface) { argument
529 result = mGLHelper->makeCurrent(surface);
544 result = mGLHelper->swapBuffers(surface);
574 // The surface into which layers are composited
578 // Used for displaying the surface to a window.
/frameworks/native/libs/vr/libdvr/tests/
H A Ddvr_display_manager-test.cpp44 DvrSurface* surface = nullptr; local
50 attributes, std::extent<decltype(attributes)>::value, &surface);
54 return {UniqueDvrSurface(surface)};
58 const UniqueDvrSurface& surface, uint32_t width, uint32_t height,
62 dvrSurfaceCreateWriteBufferQueue(surface.get(), width, height, format,
226 ASSERT_EQ(0, ret) << "Failed to create surface state object";
391 // Get surface state and verify there are no surfaces.
395 // Get flags for invalid surface index.
398 // Create an application surface.
401 UniqueDvrSurface surface local
57 CreateSurfaceQueue( const UniqueDvrSurface& surface, uint32_t width, uint32_t height, uint32_t format, uint32_t layer_count, uint64_t usage, size_t capacity) argument
442 auto surface = surface_status.take(); local
474 UniqueDvrSurface surface = surface_status.take(); local
541 UniqueDvrSurface surface = surface_status.take(); local
[all...]
/frameworks/native/opengl/libagl/
H A Ddxt.cpp195 void *surface, int stride,
211 uint16_t* rowPtr = (uint16_t*)surface;
308 void *surface, int stride)
323 uint32_t* rowPtr = (uint32_t*)surface;
417 void *surface, int stride)
447 uint32_t* rowPtr = (uint32_t*)surface;
580 * The output is written to 'surface' with each scanline separated by
600 void *surface, int stride, int format)
611 decodeDXT1(data, width, height, surface, stride, false);
615 decodeDXT1(data, width, height, surface, strid
194 decodeDXT1(const GLvoid *data, int width, int height, void *surface, int stride, bool hasAlpha) argument
307 decodeDXT3(const GLvoid *data, int width, int height, void *surface, int stride) argument
416 decodeDXT5(const GLvoid *data, int width, int height, void *surface, int stride) argument
599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp119 Surface* surface; local
120 mNativeWindow = surface = new Surface(producer, false);
130 * Create our display's surface
188 surface->allocateBuffers();

Completed in 310 milliseconds

123456789