Searched refs:surface (Results 1 - 25 of 244) sorted by relevance

12345678910

/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSurfaceUtils.java38 * Check if a surface is for preview consumer based on consumer end point Gralloc usage flags.
40 * @param surface The surface to be checked.
41 * @return true if the surface is for preview consumer, false otherwise.
43 public static boolean isSurfaceForPreview(Surface surface) { argument
44 return LegacyCameraDevice.isPreviewConsumer(surface);
48 * Check if the surface is for hardware video encoder consumer based on consumer end point
51 * @param surface The surface to be checked.
52 * @return true if the surface i
54 isSurfaceForHwVideoEncoder(Surface surface) argument
66 getSurfaceSize(Surface surface) argument
82 getSurfaceFormat(Surface surface) argument
98 getSurfaceDataspace(Surface surface) argument
120 checkHighSpeedSurfaceFormat(Surface surface) argument
[all...]
/frameworks/base/core/java/android/hardware/display/
H A DVirtualDisplay.java26 * Because a virtual display renders to a surface provided by the application, it will be
41 IVirtualDisplayCallback token, Surface surface) {
45 mSurface = surface;
56 * Gets the surface that backs the virtual display.
63 * Sets the surface that backs the virtual display.
65 * Detaching the surface that backs a virtual display has a similar effect to
68 * It is still the caller's responsibility to destroy the surface after it has
72 * @param surface The surface to set, or null to detach the surface fro
40 VirtualDisplay(DisplayManagerGlobal global, Display display, IVirtualDisplayCallback token, Surface surface) argument
74 setSurface(Surface surface) argument
[all...]
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp34 if (mSize && surface.data)
35 free(surface.data);
43 memset(&surface, 0, sizeof(surface));
44 surface.version = sizeof(surface);
74 if (!surface.data)
77 int w = surface.width;
78 int h = surface.height;
109 return surface;
[all...]
H A Ddxt.h29 void *surface, int stride, int format);
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp33 EGLAPI void EGLAPIENTRY eglBeginFrame(EGLDisplay dpy, EGLSurface surface);
71 /* The rectangles are specified relative to the bottom-left of the surface
227 EGLSurface surface = eglCreateWindowSurface(mEglDisplay, mEglConfig, window, nullptr); local
228 LOG_ALWAYS_FATAL_IF(surface == EGL_NO_SURFACE,
233 LOG_ALWAYS_FATAL_IF(eglSurfaceAttrib(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED) == EGL_FALSE,
238 return surface;
241 void EglManager::destroySurface(EGLSurface surface) { argument
242 if (isCurrent(surface)) {
245 if (!eglDestroySurface(mEglDisplay, surface)) {
246 ALOGW("Failed to destroy surface
266 makeCurrent(EGLSurface surface, EGLint* errOut) argument
287 queryBufferAge(EGLSurface surface) argument
301 beginFrame(EGLSurface surface) argument
368 setPreserveBuffer(EGLSurface surface, bool preserve) argument
[all...]
H A DEglManager.h64 void destroySurface(EGLSurface surface);
68 bool isCurrent(EGLSurface surface) { return mCurrentSurface == surface; } argument
69 // Returns true if the current surface changed, false if it was already current
70 bool makeCurrent(EGLSurface surface, EGLint* errOut = nullptr);
71 Frame beginFrame(EGLSurface surface);
79 // Returns true iff the surface is now preserving buffers.
80 bool setPreserveBuffer(EGLSurface surface, bool preserve);
98 EGLint queryBufferAge(EGLSurface surface);
/frameworks/native/include/android/
H A Dnative_window_jni.h43 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.java36 EGLSurface surface;
38 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
40 surface = _eglCreateWindowSurfaceTexture(dpy, config,
49 return surface;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLEnvironment.java102 public int registerSurface(Surface surface) { argument
103 int result = nativeAddSurface(surface);
105 throw new RuntimeException("Error registering surface " + surface + "!");
111 Surface surface = new Surface(surfaceTexture);
112 int result = nativeAddSurfaceWidthHeight(surface, width, height);
113 surface.release();
123 throw new RuntimeException("Error registering surface from "
131 throw new RuntimeException("Could not activate surface " + surfaceId + "!");
137 throw new RuntimeException("Could not unregister surface "
171 nativeAddSurface(Surface surface) argument
173 nativeAddSurfaceWidthHeight(Surface surface, int width, int height) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DRSTextureView.java68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
70 mSurfaceTexture = surface;
81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
83 mSurfaceTexture = surface;
94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
96 mSurfaceTexture = surface;
109 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
111 mSurfaceTexture = surface;
147 * @param sc The RS surface config to create.
/frameworks/native/vulkan/libvulkan/
H A Dswapchain.h26 VKAPI_ATTR VkResult CreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
27 VKAPI_ATTR void DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* allocator);
28 VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice pdev, uint32_t queue_family, VkSurfaceKHR surface, VkBool32* pSupported);
29 VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* capabilities);
30 VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface, uint32_t* count, VkSurfaceFormatKHR* formats);
31 VKAPI_ATTR VkResult GetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface, uint32_t* count, VkPresentModeKHR* modes);
/frameworks/native/opengl/tests/swapinterval/
H A Dswapinterval.cpp43 EGLSurface surface; local
71 surface = eglCreateWindowSurface(dpy, config, window, NULL);
72 if (surface == EGL_NO_SURFACE) {
84 eglMakeCurrent(dpy, surface, surface, context);
85 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
86 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
100 eglSwapBuffers(dpy, surface);
112 eglSwapBuffers(dpy, surface);
115 eglSwapBuffers(dpy, surface);
[all...]
/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.
426 "submitRequestList - configured surface is abandoned.");
429 // Make sure that there all requests have at least 1 surface; all surfaces are non-null
439 for (Surface surface : request.getTargets()) {
440 if (surface == null) {
450 } else if (!containsSurfaceId(surface, surfaceIds)) {
451 Log.e(TAG, "submitRequestList - cannot use a surface tha
581 getSurfaceSize(Surface surface) argument
642 detectSurfaceUsageFlags(Surface surface) argument
650 detectSurfaceType(Surface surface) argument
658 detectSurfaceDataspace(Surface surface) argument
663 connectSurface(Surface surface) argument
669 disconnectSurface(Surface surface) argument
675 produceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
687 setSurfaceFormat(Surface surface, int pixelFormat) argument
694 setSurfaceDimens(Surface surface, int width, int height) argument
703 getSurfaceId(Surface surface) argument
758 setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
776 setNextTimestamp(Surface surface, long timestamp) argument
782 setScalingMode(Surface surface, int mode) argument
789 nativeDetectSurfaceType(Surface surface) argument
791 nativeDetectSurfaceDataspace(Surface surface) argument
793 nativeDetectSurfaceDimens(Surface surface, int[ ] dimens) argument
796 nativeConnectSurface(Surface surface) argument
798 nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument
801 nativeSetSurfaceFormat(Surface surface, int pixelFormat) argument
803 nativeSetSurfaceDimens(Surface surface, int width, int height) argument
805 nativeGetSurfaceId(Surface surface) argument
807 nativeSetSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
813 nativeSetNextTimestamp(Surface surface, long timestamp) argument
815 nativeDetectSurfaceUsageFlags(Surface surface) argument
817 nativeSetScalingMode(Surface surface, int scalingMode) argument
819 nativeDisconnectSurface(Surface surface) argument
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dgl2_perf.cpp57 static EGLSurface surface; variable
99 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
101 if (surface == EGL_NO_SURFACE) {
112 returnValue = eglMakeCurrent(dpy, surface, surface, context);
117 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
119 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
127 eglSwapBuffers(dpy, surface);
135 eglSwapBuffers(dpy, surface);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DOutputConfiguration.java78 * Invalid surface group ID.
80 *<p>An {@link OutputConfiguration} with this value indicates that the included surface
81 *doesn't belong to any surface group.</p>
88 * @param surface
91 * <p>This constructor creates a default configuration, with a surface group ID of
95 public OutputConfiguration(@NonNull Surface surface) { argument
96 this(SURFACE_GROUP_ID_NONE, surface, ROTATION_0);
100 * Unknown surface source type.
105 * The surface is obtained from {@link android.view.SurfaceView}.
110 * The surface i
145 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface) argument
168 OutputConfiguration(@onNull Surface surface, int rotation) argument
195 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) argument
288 setDeferredSurface(@onNull Surface surface) argument
[all...]
/frameworks/native/cmds/flatland/
H A DGLHelper.h52 bool makeCurrent(EGLSurface surface);
55 sp<GLConsumer>* surfaceTexture, EGLSurface* surface,
59 sp<SurfaceControl>* surfaceControl, EGLSurface* surface);
61 void destroySurface(EGLSurface* surface);
63 bool swapBuffers(EGLSurface surface);
72 sp<GLConsumer>* surfaceTexture, EGLSurface* surface);
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLSurfaceImpl.java28 public EGLSurfaceImpl(long surface) { argument
29 mEGLSurface = surface;
/frameworks/base/libs/hwui/
H A DReadback.h40 Surface& surface, SkBitmap* bitmap);
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java44 final SurfaceControl surface; field in class:BlackFrame.BlackSurface
55 surface = new WindowSurfaceController.SurfaceTrace(session, "BlackSurface("
59 surface = new SurfaceControl(session, "BlackSurface",
63 surface.setAlpha(1);
64 surface.setLayerStack(layerStack);
65 surface.setLayer(layer);
66 surface.show();
68 " BLACK " + surface + ": CREATE layer=" + layer);
72 surface.setAlpha(alpha);
79 surface
[all...]
/frameworks/base/telecomm/java/com/android/internal/telecom/
H A DIVideoProvider.aidl35 void setPreviewSurface(in Surface surface);
37 void setDisplaySurface(in Surface surface);
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsVideoCallProvider.aidl48 void setPreviewSurface(in Surface surface);
50 void setDisplaySurface(in Surface surface);
/frameworks/wilhelm/tests/sandbox/
H A Dnativewindow.cpp68 sp<Surface> surface = control->getSurface(); local
69 CHECK(surface != NULL);
71 gSurface = surface;
75 return surface.get();
/frameworks/native/opengl/tests/linetex/
H A Dlinetex.cpp43 EGLSurface surface; local
60 surface = eglCreateWindowSurface(dpy, config, window, NULL);
62 eglMakeCurrent(dpy, surface, surface, context);
63 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
64 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
110 eglSwapBuffers(dpy, surface);
/frameworks/base/libs/hwui/debug/
H A Dnullegl.cpp27 EGLSurface surface; member in struct:__anon1068
48 ptr->surface = EGL_NO_SURFACE;
93 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) { argument
94 free(surface);
98 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, argument
108 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, argument
130 state->surface = draw;
140 return getThreadState()->surface;
147 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) { argument
160 void eglBeginFrame(EGLDisplay dpy, EGLSurface surface) {} argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGetBitmapActivity.java81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
85 mCamera.setPreviewTexture(surface);
94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
106 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument

Completed in 713 milliseconds

12345678910