/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraDeviceImpl.java | 419 // is created, as the deferred output configuration doesn't have unique surface 498 for (Surface surface : outputs) { 499 outConfigurations.add(new OutputConfiguration(surface)); 534 for (Surface surface : outputs) { 535 outConfigurations.add(new OutputConfiguration(surface)); 575 "Output surface list must not be null and the size must be no more than 2"); 582 for (Surface surface : outputs) { 583 outConfigurations.add(new OutputConfiguration(surface)); 726 public void prepare(Surface surface) throws CameraAccessException { argument 727 if (surface 746 prepare(int maxCount, Surface surface) argument 767 tearDown(Surface surface) argument 1247 onSurfacePrepared(Surface surface) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 128 * Surface creation flag: The surface contains secure content, special 129 * measures will be taken to disallow the surface's content to be copied 132 * surface might not be hardware accelerated. 138 * Surface creation flag: Creates a surface where color components are interpreted 152 * composited on top of each-other into the surface. A pre-multiplied 153 * surface can never lower the value of the alpha component of a given 156 * In some rare situations, a non pre-multiplied surface is preferable. 162 * Surface creation flag: Indicates that the surface must be considered opaque, 167 * This flag is ignored if setAlpha() is used to make the surface non-opaque. 183 * then this surface wil 737 setDisplaySurface(IBinder displayToken, Surface surface) argument [all...] |
H A D | ThreadedRenderer.java | 61 * RenderThread with surface buffer allocation. 259 * @param translucent True if the surface is translucent, false otherwise 319 // Actual size of the drawing surface. 322 // Insets between the drawing surface and rendered content. These are 326 // Whether the surface has insets. Used to protect opacity. 415 private void updateEnabledState(Surface surface) { argument 416 if (surface == null || !surface.isValid()) { 424 * Initializes the threaded renderer for the specified surface. 426 * @param surface Th 430 initialize(Surface surface) argument 454 initializeIfNeeded(int width, int height, View.AttachInfo attachInfo, Surface surface, Rect surfaceInsets) argument 473 updateSurface(Surface surface) argument 485 pauseSurface(Surface surface) argument 872 copySurfaceInto(Surface surface, Rect srcRect, Bitmap bitmap) argument 1035 nCopySurfaceInto(Surface surface, int srcLeft, int srcTop, int srcRight, int srcBottom, Bitmap bitmap) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 106 sp<SurfaceControl> surface = client->createSurface( local 108 if (surface == NULL) { 113 surface->incStrong((void *)nativeCreate); 114 return reinterpret_cast<jlong>(surface.get());
|
H A D | android_view_ThreadedRenderer.cpp | 648 sp<Surface> surface = android_view_Surface_getSurface(env, jsurface); local 649 proxy->initialize(surface); 655 sp<Surface> surface; local 657 surface = android_view_Surface_getSurface(env, jsurface); 659 proxy->updateSurface(surface); 665 sp<Surface> surface; local 667 surface = android_view_Surface_getSurface(env, jsurface); 669 return proxy->pauseSurface(surface); 861 sp<Surface> surface = android_view_Surface_getSurface(env, jsurface); local 862 return RenderProxy::copySurfaceInto(surface, lef 892 sp<Surface> surface = new Surface(producer); local [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaRecorder.java | 137 * Gets the surface to record from when using SURFACE video source. 149 * Configures the recorder to use a persistent surface when using SURFACE video source. 154 * @param surface a persistent input surface created by 158 * @throws IllegalArgumentException if the surface was not created by 163 public void setInputSurface(@NonNull Surface surface) { argument 164 if (!(surface instanceof MediaCodec.PersistentSurface)) { 167 native_setInputSurface(surface); 170 private native final void native_setInputSurface(@NonNull Surface surface); argument 175 * set. If {@link #setCamera(Camera)} is used and the surface ha [all...] |
H A D | MediaCodec.java | 287 surface} by calling {@link #setInputSurface}. 602 surface. You have three choices: 649 passed from the input surface to the codec. Calling {@link #dequeueInputBuffer 653 Call {@link #signalEndOfInputStream} to signal end-of-stream. The input surface will stop 805 <tr><td>⎋</td><td>Restricted to surface input mode</td></tr> 806 <tr><td>⎆</td><td>Restricted to surface output mode</td></tr> 1842 * @param surface Specify a surface on which to render the output of this 1843 * decoder. Pass {@code null} as {@code surface} if the 1852 * @throws IllegalArgumentException if the surface ha 1860 configure( @ullable MediaFormat format, @Nullable Surface surface, @Nullable MediaCrypto crypto, @ConfigureFlag int flags) argument 1890 configure( @ullable MediaFormat format, @Nullable Surface surface, @ConfigureFlag int flags, @Nullable MediaDescrambler descrambler) argument 1897 configure( @ullable MediaFormat format, @Nullable Surface surface, @Nullable MediaCrypto crypto, @Nullable IBinder descramblerBinder, @ConfigureFlag int flags) argument 1950 setOutputSurface(@onNull Surface surface) argument 1957 native_setSurface(@onNull Surface surface) argument 1997 setInputSurface(@onNull Surface surface) argument 2006 native_releasePersistentInputSurface(@onNull Surface surface) argument 2007 native_setInputSurface(@onNull Surface surface) argument 2011 native_configure( @ullable String[] keys, @Nullable Object[] values, @Nullable Surface surface, @Nullable MediaCrypto crypto, @Nullable IBinder descramblerBinder, @ConfigureFlag int flags) argument [all...] |
H A D | MediaPlayer.java | 681 * Call after setting a new display surface. 683 private native void _setVideoSurface(Surface surface); argument 739 * Either a surface holder or surface must be set if a display or video sink 742 * A null surface holder or surface will result in only the audio track being 751 Surface surface; 753 surface = sh.getSurface(); 755 surface = null; 757 _setVideoSurface(surface); 781 setSurface(Surface surface) argument [all...] |
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputService.java | 458 * surface is ready for viewing. This method must be called each time {@link #onTune} 682 * Assigns a size and position to the surface passed in {@link #onSetSurface}. The position 683 * is relative to the overlay view that sits on top of this surface. 726 * Also, if a surface is passed to a non-main session and active source is changed to 727 * initiate the surface, the active source should be returned to the main session. 745 * Called when the application sets the surface. 747 * <p>The TV input service should render video onto the given surface. When called with 749 * currently set surface and stop using it. 751 * @param surface The surface t 754 onSetSurface(@ullable Surface surface) argument 1157 setSurface(Surface surface) argument 1900 onSetSurface(Surface surface) argument [all...] |
H A D | TvInputManager.java | 464 * layout of surface. 1533 * @param surface the {@link Surface} to which the snapshot is captured. 1540 public boolean captureFrame(String inputId, Surface surface, TvStreamConfig config) { argument 1542 return mService.captureFrame(inputId, surface, config, mUserId); 1796 * @param surface A {@link android.view.Surface} used to render video. 1798 public void setSurface(Surface surface) { argument 1803 // surface can be null. 1805 mService.setSurface(mToken, surface, mUserId); 1812 * Notifies of any structural changes (format or size) of the surface passed in 1815 * @param format The new PixelFormat of the surface 2577 setSurface(Surface surface, TvStreamConfig config) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 308 const sp<PersistentSurface> &surface) { 309 return mCodec->setInputSurface(surface); 994 sp<Surface> surface(android_view_Surface_getSurface(env, jsurface)); 995 if (surface != NULL) { 996 bufferProducer = surface->getIGraphicBufferProducer(); 1001 "The surface has been released"); 1035 sp<Surface> surface(android_view_Surface_getSurface(env, jsurface)); 1036 if (surface != NULL) { 1037 bufferProducer = surface->getIGraphicBufferProducer(); 1042 "The surface ha 307 setInputSurface( const sp<PersistentSurface> &surface) argument 1078 sp<Surface> surface = new Surface( local [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | EGL14.java | 261 EGLSurface surface; 263 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); 265 surface = _eglCreateWindowSurfaceTexture(dpy, config, 274 return surface; 296 // C function EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface ) 300 EGLSurface surface 303 // C function EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value ) 307 EGLSurface surface, 357 // C function EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value ) 361 EGLSurface surface, 305 eglQuerySurface( EGLDisplay dpy, EGLSurface surface, int attribute, int[] value, int offset ) argument 359 eglSurfaceAttrib( EGLDisplay dpy, EGLSurface surface, int attribute, int value ) argument 368 eglBindTexImage( EGLDisplay dpy, EGLSurface surface, int buffer ) argument 376 eglReleaseTexImage( EGLDisplay dpy, EGLSurface surface, int buffer ) argument 461 eglCopyBuffers( EGLDisplay dpy, EGLSurface surface, int target ) argument [all...] |
H A D | GLSurfaceView.java | 40 * An implementation of SurfaceView that uses the dedicated surface for 46 * <li>Manages a surface, which is a special piece of memory that can be 48 * <li>Manages an EGL display, which enables OpenGL to render into a surface. 85 * By default GLSurfaceView will create a PixelFormat.RGB_888 format surface. If a translucent 86 * surface is required, call getHolder().setFormat(PixelFormat.TRANSLUCENT). 87 * The exact format of a TRANSLUCENT surface is device dependent, but it will be 88 * a 32-bit-per-pixel surface with 8 bits per component. 173 * when the surface is created, or when {@link #requestRender} is called. 240 // underlying surface is created and destroyed 255 * whenever a surface i 824 destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface) argument 846 destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayManagerService.java | 110 * the display manager while holding a surface transaction with the expectation that 202 // to the surface flinger state. 623 int height, int densityDpi, Surface surface, int flags, String uniqueId) { 633 surface, flags, uniqueId); 664 private void setVirtualDisplaySurfaceInternal(IBinder appToken, Surface surface) { argument 670 mVirtualDisplayAdapter.setVirtualDisplaySurfaceLocked(appToken, surface); 1518 int width, int height, int densityDpi, Surface surface, int flags, 1534 if (surface != null && surface.isSingleBuffered()) { 1582 name, width, height, densityDpi, surface, flag 621 createVirtualDisplayInternal(IVirtualDisplayCallback callback, IMediaProjection projection, int callingUid, String packageName, String name, int width, int height, int densityDpi, Surface surface, int flags, String uniqueId) argument 1516 createVirtualDisplay(IVirtualDisplayCallback callback, IMediaProjection projection, String packageName, String name, int width, int height, int densityDpi, Surface surface, int flags, String uniqueId) argument 1600 setVirtualDisplaySurface(IVirtualDisplayCallback callback, Surface surface) argument [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputHardwareManager.java | 458 public boolean captureFrame(String inputId, Surface surface, final TvStreamConfig config, argument 476 boolean result = hardwareImpl.startCapture(surface, config); 837 public boolean setSurface(Surface surface, TvStreamConfig config) argument 845 if (surface == null) { 846 // The value of config is ignored when surface == null. 855 // It's impossible to set a non-null surface with a null config. 868 result = mHal.addOrUpdateStream(mInfo.getDeviceId(), surface, config); 1039 private boolean startCapture(Surface surface, TvStreamConfig config) { argument 1044 if (surface == null || config == null) { 1051 int result = mHal.addOrUpdateStream(mInfo.getDeviceId(), surface, confi [all...] |
H A D | TvInputManagerService.java | 1255 public void setSurface(IBinder sessionToken, Surface surface, int userId) { argument 1266 getSessionLocked(sessionState).setSurface(surface); 1269 Process.SYSTEM_UID, resolvedUserId).setSurface(surface); 1276 if (surface != null) { 1277 // surface is not used in TvInputManagerService. 1278 surface.release(); 1891 public boolean captureFrame(String inputId, Surface surface, TvStreamConfig config, argument 1923 surface, config, callingUid, resolvedUserId);
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConnection.java | 505 * Sets the surface to be used for displaying a preview of what the user's camera is 508 * @param surface The {@link Surface}. 511 public void setPreviewSurface(Surface surface) { argument 513 mVideoProviderBinder.setPreviewSurface(surface); 519 * Sets the surface to be used for displaying the video received from the remote device for 522 * @param surface The {@link Surface}. 525 public void setDisplaySurface(Surface surface) { argument 527 mVideoProviderBinder.setDisplaySurface(surface);
|
H A D | Connection.java | 1175 public void setPreviewSurface(Surface surface) { argument 1176 mMessageHandler.obtainMessage(MSG_SET_PREVIEW_SURFACE, surface).sendToTarget(); 1179 public void setDisplaySurface(Surface surface) { argument 1180 mMessageHandler.obtainMessage(MSG_SET_DISPLAY_SURFACE, surface).sendToTarget(); 1281 * Sets the surface to be used for displaying a preview of what the user's camera is 1288 * @param surface The {@link Surface}. 1290 public abstract void onSetPreviewSurface(Surface surface); argument 1293 * Sets the surface to be used for displaying the video received from the remote device. 1298 * @param surface The {@link Surface}. 1300 public abstract void onSetDisplaySurface(Surface surface); argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 1297 // (it's possible that the surface is not fully initialized) 1302 egl_surface_t* surface; local 1303 surface = new egl_window_surface_v2_t(dpy, config, depthFormat, 1306 if (!surface->initCheck()) { 1309 delete surface; 1310 surface = 0; 1312 return surface; 1348 egl_surface_t* surface = 1352 if (!surface->initCheck()) { 1355 delete surface; 1392 egl_surface_t* surface = local [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | eglApi.cpp | 575 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/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 233 static EGLSurface surface; variable 1502 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
|
/frameworks/native/vulkan/libvulkan/ |
H A D | swapchain.cpp | 186 VkSurfaceKHR HandleFromSurface(Surface* surface) { argument 187 return VkSurfaceKHR(reinterpret_cast<uint64_t>(surface)); 204 : surface(surface_), 210 ANativeWindow* window = surface.window.get(); 216 Surface& surface; member in struct:vulkan::driver::__anon1940::Swapchain 296 if (swapchain->surface.swapchain_handle != HandleFromSwapchain(swapchain)) 302 swapchain->surface.swapchain_handle = VK_NULL_HANDLE; 330 swapchain.surface.window.get(), ti.native_frame_id_, 489 Surface* surface = new (mem) Surface; 491 surface 515 Surface* surface = SurfaceFromHandle(surface_handle); local 540 GetPhysicalDeviceSurfaceCapabilitiesKHR( VkPhysicalDevice , VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* capabilities) argument 627 Surface& surface = *SurfaceFromHandle(surface_handle); local 817 Surface& surface = *SurfaceFromHandle(create_info->surface); local [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 82 * {@link #setPreviewDisplay(SurfaceHolder)}. Without a surface, the camera 86 * preview surface. Preview must be started before you can take a picture. 95 * <li>Call {@link #stopPreview()} to stop updating the preview surface. 617 * Either a surface or surface texture is necessary for preview, and 618 * preview is necessary to take pictures. The same surface can be re-set 619 * without harm. Setting a preview surface will un-set any preview surface 622 * <p>The {@link SurfaceHolder} must already contain a surface when this 630 * one exception is that if the preview surface i 652 setPreviewSurface(Surface surface) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 621 status_t ACodec::setSurface(const sp<Surface> &surface) { argument 623 msg->setObject("surface", surface); 639 const sp<PersistentSurface> &surface) { 641 msg->setObject("input-surface", surface); 688 status_t ACodec::handleSetSurface(const sp<Surface> &surface) { argument 689 // allow keeping unset surface 690 if (surface == NULL) { 692 ALOGW("cannot unset a surface"); 638 initiateSetInputSurface( const sp<PersistentSurface> &surface) argument 6726 sp<PersistentSurface> surface = static_cast<PersistentSurface *>(obj.get()); local [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityStackSupervisor.java | 4818 public void setSurface(Surface surface, int width, int height, int density) { argument 4874 public void setSurface(Surface surface, int width, int height, int density) { argument 4875 super.setSurface(surface, width, height, density); 4880 setSurfaceLocked(surface, width, height, density); 4887 private void setSurfaceLocked(Surface surface, int width, int height, int density) { argument 4905 mSurface = surface; 4906 if (surface != null) { 5058 VIRTUAL_DISPLAY_BASE_NAME, width, height, density, null /* surface */, 5068 void setSurface(Surface surface) { argument 5070 mVirtualDisplay.setSurface(surface); [all...] |