/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | LegacyCameraDevice.java | 232 * 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...] |
H A D | SurfaceTextureRenderer.java | 71 Surface surface; field in class:SurfaceTextureRenderer.EGLSurfaceHolder 134 * tells the fragment shader to interpolate over it. Each surface pixel position 292 width + "x" + height + " surface, intermediate buffer size is " + texWidth + 350 * Initializes GL state. Call this after the EGL surface has been created and made current. 458 holder.surface, surfaceAttribs, /*offset*/ 0); 471 // Find max surface size, ensure PBuffer can hold this many pixels 516 private void makeCurrent(EGLSurface surface) { argument 517 EGL14.eglMakeCurrent(mEGLDisplay, surface, surface, mEGLContext); 521 private boolean swapBuffers(EGLSurface surface) { argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | Surface.java | 68 Log.e(TAG, "Exception creating surface from parcel", e); 121 * Create an empty surface, which will later be filled in by readFromParcel(). 136 * @throws OutOfResourcesException if the surface could not be created. 169 * Release the local reference to the server-side surface. 171 * This will make the surface invalid. 187 * Free all server-side state associated with this surface and 197 * Returns true if this object holds a valid surface. 199 * @return True if it holds a physical surface, so lockCanvas() will succeed. 210 * Gets the generation number of this surface, incremented each time 211 * the native surface containe 614 nHwuiCreate(long rootNode, long surface) argument 615 nHwuiSetSurface(long renderer, long surface) argument [all...] |
H A D | SurfaceControl.java | 98 * Surface creation flag: The surface contains secure content, special 99 * measures will be taken to disallow the surface's content to be copied 102 * surface might not be hardware accelerated. 108 * Surface creation flag: Creates a surface where color components are interpreted 122 * composited on top of each-other into the surface. A pre-multiplied 123 * surface can never lower the value of the alpha component of a given 126 * In some rare situations, a non pre-multiplied surface is preferable. 132 * Surface creation flag: Indicates that the surface must be considered opaque, 137 * This flag is ignored if setAlpha() is used to make the surface non-opaque. 153 * then this surface wil 578 setDisplaySurface(IBinder displayToken, Surface surface) argument [all...] |
H A D | ThreadedRenderer.java | 58 * RenderThread with surface buffer allocation. 80 // Actual size of the drawing surface. 83 // Insets between the drawing surface and rendered content. These are 87 // Whether the surface has insets. Used to protect opacity. 135 private void updateEnabledState(Surface surface) { argument 136 if (surface == null || !surface.isValid()) { 144 boolean initialize(Surface surface) throws OutOfResourcesException { argument 146 updateEnabledState(surface); 147 boolean status = nInitialize(mNativeProxy, surface); 153 updateSurface(Surface surface) argument 159 pauseSurface(Surface surface) argument 183 invalidate(Surface surface) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 146 * Produce a frame in the given surface. 149 * anw - a surface to produce a frame in. 210 ALOGE("%s: Error while querying surface pixel format %s (%d).", __FUNCTION__, 364 static sp<ANativeWindow> getNativeWindow(JNIEnv* env, jobject surface) { argument 366 if (surface) { 367 anw = android_view_Surface_getNativeWindow(env, surface); 372 jniThrowNullPointerException(env, "surface"); 402 static sp<Surface> getSurface(JNIEnv* env, jobject surface) { argument 404 if (surface) { 405 s = android_view_Surface_getSurface(env, surface); 423 LegacyCameraDevice_nativeDetectSurfaceType(JNIEnv* env, jobject thiz, jobject surface) argument 440 LegacyCameraDevice_nativeDetectSurfaceDimens(JNIEnv* env, jobject thiz, jobject surface, jintArray dimens) argument 476 LegacyCameraDevice_nativeDetectSurfaceUsageFlags(JNIEnv* env, jobject thiz, jobject surface) argument 527 LegacyCameraDevice_nativeConfigureSurface(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height, jint pixelFormat) argument 543 LegacyCameraDevice_nativeProduceFrame(JNIEnv* env, jobject thiz, jobject surface, jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) argument 577 LegacyCameraDevice_nativeSetSurfaceFormat(JNIEnv* env, jobject thiz, jobject surface, jint pixelFormat) argument 593 LegacyCameraDevice_nativeSetSurfaceDimens(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument 613 LegacyCameraDevice_nativeGetSurfaceId(JNIEnv* env, jobject thiz, jobject surface) argument 637 LegacyCameraDevice_nativeSetSurfaceOrientation(JNIEnv* env, jobject thiz, jobject surface, jint facing, jint orientation) argument 673 LegacyCameraDevice_nativeSetNextTimestamp(JNIEnv* env, jobject thiz, jobject surface, jlong timestamp) argument [all...] |
H A D | android_app_NativeActivity.cpp | 480 onSurfaceCreated_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument 485 code->setSurface(surface); 500 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface, argument 507 code->setSurface(surface); 553 onSurfaceDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument
|
H A D | android_hardware_Camera.cpp | 606 sp<Surface> surface; local 608 surface = android_view_Surface_getSurface(env, jSurface); 609 if (surface != NULL) { 610 gbp = surface->getIGraphicBufferProducer(); 652 sp<Surface> surface; local 654 surface = android_view_Surface_getSurface(env, jSurface); 655 if (surface != NULL) { 656 gbp = surface->getIGraphicBufferProducer(); 661 // Then set up callback surface
|
H A D | android_opengl_EGL14.cpp | 757 /* EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface ) */ 760 (JNIEnv *_env, jobject _this, jobject dpy, jobject surface) { 763 EGLSurface surface_native = (EGLSurface) fromEGLHandle(_env, eglsurfaceGetHandleID, surface); 772 /* EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value ) */ 775 (JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint attribute, jintArray value_ref, jint offset) { 781 EGLSurface surface_native = (EGLSurface) fromEGLHandle(_env, eglsurfaceGetHandleID, surface); 939 /* EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value ) */ 942 (JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint attribute, jint value) { 945 EGLSurface surface_native = (EGLSurface) fromEGLHandle(_env, eglsurfaceGetHandleID, surface); 956 /* EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLin 759 android_eglDestroySurface(JNIEnv *_env, jobject _this, jobject dpy, jobject surface) argument 774 android_eglQuerySurface(JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint attribute, jintArray value_ref, jint offset) argument 941 android_eglSurfaceAttrib(JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint attribute, jint value) argument 958 android_eglBindTexImage(JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint buffer) argument 974 android_eglReleaseTexImage(JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint buffer) argument 1206 android_eglSwapBuffers(JNIEnv *_env, jobject _this, jobject dpy, jobject surface) argument 1221 android_eglCopyBuffers(JNIEnv *_env, jobject _this, jobject dpy, jobject surface, jint target) argument [all...] |
H A D | android_view_SurfaceControl.cpp | 97 sp<SurfaceControl> surface = client->createSurface( local 99 if (surface == NULL) { 103 surface->incStrong((void *)nativeCreate); 104 return reinterpret_cast<jlong>(surface.get());
|
H A D | com_google_android_gles_jni_EGLImpl.cpp | 165 jobject surface, jint attribute, jintArray value) { 166 if (display == NULL || surface == NULL || value == NULL 172 EGLContext sur = getSurface(_env, surface); 447 static jboolean jni_eglDestroySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument 448 if (display == NULL || surface == NULL) { 453 EGLSurface sur = getSurface(_env, surface); 456 SkPixelRef* ref = (SkPixelRef*)(_env->GetLongField(surface, 492 static jboolean jni_eglSwapBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument 493 if (display == NULL || surface == NULL) { 498 EGLSurface sur = getSurface(_env, surface); 164 jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface, jint attribute, jintArray value) argument 511 jni_eglCopyBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface, jobject native_pixmap) argument [all...] |
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
H A D | VideoDumpView.java | 61 * 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/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 80 void setSurface(const sp<Surface>& surface); 102 void setSurfaceLocked(const sp<Surface>& surface); 135 void BufferProducerThread::setSurface(const sp<Surface>& surface) { argument 137 setSurfaceLocked(surface); 140 void BufferProducerThread::setSurfaceLocked(const sp<Surface>& surface) { argument 141 if (surface == mSurface) { 158 mSurface = surface; 194 ALOGE("error %d while wating for non-null surface to be set", err); 210 ALOGE("error %d while queueing buffer to surface", err); 220 ALOGE("error %d while dequeueing buffer to surface", er 335 addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | RenderTarget.java | 55 /** 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 D | BridgeWindowSession.java | 92 Configuration configuration, Surface surface) throws RemoteException { 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, Configuration configuration, Surface surface) argument
|
/frameworks/native/cmds/flatland/ |
H A D | Main.cpp | 512 bool doFrame(EGLSurface surface) { argument 530 result = mGLHelper->makeCurrent(surface); 545 result = mGLHelper->swapBuffers(surface); 575 // The surface into which layers are composited 579 // Used for displaying the surface to a window.
|
/frameworks/native/opengl/libagl/ |
H A D | dxt.cpp | 195 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 D | DisplayDevice.cpp | 83 * Create our display's surface 86 EGLSurface surface; local 92 surface = eglCreateWindowSurface(display, config, window, NULL); 93 eglQuerySurface(display, surface, EGL_WIDTH, &mDisplayWidth); 94 eglQuerySurface(display, surface, EGL_HEIGHT, &mDisplayHeight); 108 mSurface = surface; 192 EGLSurface surface = mSurface; local 198 eglSetSwapRectangleANDROID(dpy, surface,
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | ImageProcessingActivityJB.java | 351 // During startup we may not have a surface yet to display, if 357 // Our display surface changed, set it. 738 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 739 mProcessor.setSurface(new Surface(surface)); 743 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 744 mProcessor.setSurface(new Surface(surface)); 748 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument 754 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
|
/frameworks/av/camera/tests/ |
H A D | ProCameraTests.cpp | 394 void createOnScreenSurface(sp<Surface>& surface) { argument 414 surface = mSurfaceControl->getSurface(); 416 ASSERT_NE((void*)NULL, surface.get()); 419 void createDepthOnScreenSurface(sp<Surface>& surface) { argument 439 surface = mDepthSurfaceControl->getSurface(); 441 ASSERT_NE((void*)NULL, surface.get()); 598 sp<Surface> surface; local 600 createOnScreenSurface(/*out*/surface); 625 surface, 671 sp<Surface> surface; local [all...] |
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputService.java | 416 * method as soon as the content rendered onto its surface gets ready for viewing. 599 * Also, if a surface is passed to a non-main session and active source is changed to 600 * initiate the surface, the active source should be returned to the main session. 622 * @param surface {@link Surface} an application passes to this TV input session. 623 * @return {@code true} if the surface was set, {@code false} otherwise. 625 public abstract boolean onSetSurface(Surface surface); argument 898 void setSurface(Surface surface) { argument 899 onSetSurface(surface); 903 mSurface = surface; 1174 * a hardware TV Input (e.g. HDMI 1) and forward the application's surface t 1255 onSetSurface(Surface surface) argument [all...] |
H A D | TvView.java | 210 * Sets the Z order of a window owning the surface of this TvView above the normal TvView 234 * Sets the Z order of a window owning the surface of this TvView on top of an application. 619 // Punch a hole so that the underlying overlay view and surface can be shown. 628 // Punch a hole so that the underlying overlay view and surface can be shown. 678 private void setSessionSurface(Surface surface) { argument 682 mSession.setSurface(surface);
|
/frameworks/base/opengl/java/javax/microedition/khronos/egl/ |
H A D | EGL10.java | 98 boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap); argument 104 boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); argument 116 boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value); argument 119 boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface); argument
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | WifiDisplayController.java | 741 public void onDisplayConnected(Surface surface, 755 advertiseDisplay(display, surface, width, height, flags); 946 final Surface surface, final int width, final int height, final int flags) { 948 || mAdvertisedDisplaySurface != surface 956 mAdvertisedDisplaySurface = surface; 964 if (oldSurface != null && surface != oldSurface) { 978 if (surface != null && surface != oldSurface) { 979 mListener.onDisplayConnected(display, surface, width, height, flags); 1109 Surface surface, in 945 advertiseDisplay(final WifiDisplay display, final Surface surface, final int width, final int height, final int flags) argument 1108 onDisplayConnected(WifiDisplay display, Surface surface, int width, int height, int flags) argument [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConnection.java | 323 public void setPreviewSurface(Surface surface) { argument 325 mVideoProviderBinder.setPreviewSurface(surface); 330 public void setDisplaySurface(Surface surface) { argument 332 mVideoProviderBinder.setDisplaySurface(surface);
|