Searched refs:surface (Results 51 - 75 of 152) sorted by relevance

1234567

/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java51 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
54 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
55 mOutPixelsAllocation.setSurfaceTexture(surface);
58 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
59 mOutPixelsAllocation.setSurfaceTexture(surface);
63 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp49 jfieldID surface; member in struct:fields_t
319 jobject surface = env->GetObjectField(thiz, fields.surface); local
320 if (surface != NULL) {
321 const sp<Surface> native_surface = get_surface(env, surface);
324 // the preview surface becomes unavailable
326 ALOGE("Application lost the surface");
327 jniThrowException(env, "java/io/IOException", "invalid preview surface");
331 ALOGI("prepare: surface=%p (identity=%d)", native_surface.get(), native_surface->getIdentity());
402 fields.surface
407 jclass surface = env->FindClass("android/view/Surface"); local
[all...]
/frameworks/native/opengl/include/EGL/
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/native/opengl/libagl/
H A Dtexture.cpp80 c->rasterizer.procs.bindTexture(c, &(u.texture->surface));
145 c->rasterizer.procs.bindTexture(c, &(u.texture->surface));
168 c->rasterizer.procs.bindTexture(c, &(u.texture->surface));
390 GGLSurface& surface = tex->editMip(level);
391 *outSurface = &surface;
403 *outSurface = &tex->surface;
452 void *surface, int stride, int format)
498 uint8_t* p = (uint8_t*)surface + y*stride*2;
522 uint8_t* p = (uint8_t*)surface + y*stride*3;
549 uint8_t* p = (uint8_t*)surface
451 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument
1118 GGLSurface* surface; local
[all...]
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...]
H A Degl.cpp1260 // (it's possible that the surface is not fully initialized)
1265 egl_surface_t* surface; local
1266 surface = new egl_window_surface_v2_t(dpy, config, depthFormat,
1269 if (!surface->initCheck()) {
1272 delete surface;
1273 surface = 0;
1275 return surface;
1311 egl_surface_t* surface =
1315 if (!surface->initCheck()) {
1318 delete surface;
1355 egl_surface_t* surface = local
1884 eglCopyBuffers( EGLDisplay dpy, EGLSurface surface, NativePixmapType target) argument
1920 eglSurfaceAttrib( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) argument
1929 eglBindTexImage( EGLDisplay dpy, EGLSurface surface, EGLint buffer) argument
1938 eglReleaseTexImage( EGLDisplay dpy, EGLSurface surface, EGLint buffer) argument
2008 eglLockSurfaceKHR(EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list) argument
2015 eglUnlockSurfaceKHR(EGLDisplay dpy, EGLSurface surface) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaCodec.java78 * If a video surface has been provided in the call to {@link #configure},
80 * to the surface.<p>
229 * @param surface Specify a surface on which to render the output of this
238 Surface surface, MediaCrypto crypto, int flags) {
256 native_configure(keys, values, surface, crypto, flags);
261 Surface surface, MediaCrypto crypto, int flags);
449 * the codec. If you previously specified a surface when configuring this
453 * @param render If a valid surface was specified when configuring the codec,
454 * passing true renders this output buffer to the surface
236 configure( MediaFormat format, Surface surface, MediaCrypto crypto, int flags) argument
259 native_configure( String[] keys, Object[] values, Surface surface, MediaCrypto crypto, int flags) argument
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_environment.cpp135 jobject surface) {
137 if (!surface) {
142 ANativeWindow* window = ANativeWindow_fromSurface(env, surface);
151 // Configure surface
168 ALOGE("GLEnvironment: No suitable EGL configuration found for surface!");
172 // Create the EGL surface
179 ALOGE("GLEnvironment: Error creating window surface!");
195 jobject surface,
199 if (!surface) {
204 ANativeWindow* window = ANativeWindow_fromSurface(env, surface);
133 Java_android_filterfw_core_GLEnvironment_nativeAddSurface(JNIEnv* env, jobject thiz, jobject surface) argument
193 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
[all...]
/frameworks/native/opengl/tests/gl2_copyTexImage/
H A Dgl2_copyTexImage.cpp381 EGLSurface surface; local
424 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
426 if (surface == EGL_NO_SURFACE) {
437 returnValue = eglMakeCurrent(dpy, surface, surface, context);
442 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
444 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
462 eglSwapBuffers(dpy, surface);
/frameworks/native/opengl/tests/gl2_yuvtex/
H A Dgl2_yuvtex.cpp346 EGLSurface surface; local
379 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
381 if (surface == EGL_NO_SURFACE) {
392 returnValue = eglMakeCurrent(dpy, surface, surface, context);
397 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
399 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
411 fprintf(stderr, "Could not set up texture surface.\n");
422 eglSwapBuffers(dpy, surface);
/frameworks/rs/driver/
H A DrsdFrameBufferObj.cpp132 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_WIDTH, &width);
133 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_HEIGHT, &height);
H A DrsdGL.cpp138 ALOGE(" EGL context %p surface %p, Display=%p", dc->gl.egl.context, dc->gl.egl.surface,
166 if (dc->gl.egl.surface != EGL_NO_SURFACE) {
167 RSD_CALL_GL(eglDestroySurface, dc->gl.egl.display, dc->gl.egl.surface);
432 if (dc->gl.egl.surface != NULL) {
439 ret = eglDestroySurface(dc->gl.egl.display, dc->gl.egl.surface);
442 dc->gl.egl.surface = NULL;
454 dc->gl.egl.surface = eglCreateWindowSurface(dc->gl.egl.display, dc->gl.egl.config,
457 if (dc->gl.egl.surface == EGL_NO_SURFACE) {
462 ret = eglMakeCurrent(dc->gl.egl.display, dc->gl.egl.surface,
[all...]
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp41 const sp<Surface>& surface,
46 videoSize, videoFrameRate, surface,
64 const sp<Surface>& surface,
66 : CameraSource(camera, proxy, cameraId, videoSize, videoFrameRate, surface, true),
35 CreateFromCamera( const sp<ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, Size videoSize, int32_t videoFrameRate, const sp<Surface>& surface, int64_t timeBetweenFrameCaptureUs) argument
58 CameraSourceTimeLapse( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t videoFrameRate, const sp<Surface>& surface, int64_t timeBetweenFrameCaptureUs) argument
/frameworks/base/core/java/android/view/
H A DHardwareRenderer.java222 * Initializes the hardware renderer for the specified surface.
224 * @param surface The surface to hardware accelerate
228 abstract boolean initialize(Surface surface) throws Surface.OutOfResourcesException; argument
231 * Updates the hardware renderer for the specified surface.
233 * @param surface The surface to hardware accelerate
235 abstract void updateSurface(Surface surface) throws Surface.OutOfResourcesException; argument
256 * @param surface The surface t
258 invalidate(Surface surface) argument
514 initializeIfNeeded(int width, int height, Surface surface) argument
784 initialize(Surface surface) argument
813 updateSurface(Surface surface) argument
941 createEglSurface(Surface surface) argument
1031 invalidate(Surface surface) argument
1055 createSurface(Surface surface) argument
[all...]
H A DTextureView.java63 * public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
67 * mCamera.setPreviewTexture(surface);
74 * public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
78 * public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
84 * public void onSurfaceTextureUpdated(SurfaceTexture surface) {
219 Log.w(LOG_TAG, "TextureView was not able to destroy its surface: " + this);
455 * The specified transform applies to the underlying surface
506 * of the associated surface texture. If the surface texture is not available,
517 * @return A valid {@link Bitmap.Config#ARGB_8888} bitmap, or null if the surface
769 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument
779 onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) argument
789 onSurfaceTextureDestroyed(SurfaceTexture surface) argument
797 onSurfaceTextureUpdated(SurfaceTexture surface) argument
800 nCreateNativeWindow(SurfaceTexture surface) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp68 jobject surface, jint width, jint height) {
70 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface));
102 jobject surface) {
104 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface));
67 android_view_TextureView_setDefaultBufferSize(JNIEnv* env, jobject, jobject surface, jint width, jint height) argument
101 android_view_TextureView_createNativeWindow(JNIEnv* env, jobject textureView, jobject surface) argument
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLImpl.java33 public native boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value); argument
41 public native boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); argument
44 public native boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface); argument
46 public native boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap); argument
/frameworks/av/cmds/stagefright/
H A Dcodec.cpp45 "\t\t[-S] allocate buffers from a surface\n",
71 const android::sp<android::Surface> &surface) {
123 format, isVideo ? surface : NULL,
377 sp<Surface> surface; local
407 surface = control->getSurface();
408 CHECK(surface != NULL);
416 player->setSurface(surface->getSurfaceTexture());
422 decode(looper, argv[0], useAudio, useVideo, surface);
66 decode( const android::sp<android::ALooper> &looper, const char *path, bool useAudio, bool useVideo, const android::sp<android::Surface> &surface) argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLTextureViewActivity.java91 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
92 mRenderThread = new RenderThread(getResources(), surface);
111 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
115 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
126 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
147 RenderThread(Resources resources, SurfaceTexture surface) { argument
149 mSurface = surface;
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp132 * Create our display's surface
135 EGLSurface surface; local
138 surface = eglCreateWindowSurface(display, config, window, NULL);
139 eglQuerySurface(display, surface, EGL_WIDTH, &mDisplayWidth);
140 eglQuerySurface(display, surface, EGL_HEIGHT, &mDisplayHeight);
143 mSurface = surface;
196 EGLSurface surface = mSurface; local
202 eglSetSwapRectangleANDROID(dpy, surface,
/frameworks/base/services/java/com/android/server/display/
H A DWifiDisplayController.java591 public void onDisplayConnected(Surface surface,
600 advertiseDisplay(display, surface, width, height, flags);
746 final Surface surface, final int width, final int height, final int flags) {
748 || mAdvertisedDisplaySurface != surface
756 mAdvertisedDisplaySurface = surface;
764 if (oldSurface != null && surface != oldSurface) {
774 if (surface != null && surface != oldSurface) {
775 mListener.onDisplayConnected(display, surface, width, height, flags);
889 Surface surface, in
745 advertiseDisplay(final WifiDisplay display, final Surface surface, final int width, final int height, final int flags) argument
888 onDisplayConnected(WifiDisplay display, Surface surface, int width, int height, int flags) argument
[all...]
H A DWifiDisplayAdapter.java276 Surface surface, int width, int height, int flags) {
300 refreshRate, deviceFlags, address, surface);
482 public void onDisplayConnected(WifiDisplay display, Surface surface,
486 handleConnectLocked(display, surface, width, height, flags);
527 Surface surface) {
535 mSurface = surface;
275 handleConnectLocked(WifiDisplay display, Surface surface, int width, int height, int flags) argument
525 WifiDisplayDevice(IBinder displayToken, String name, int width, int height, float refreshRate, int flags, String address, Surface surface) argument
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/
H A DCameraPreviewActivity.java136 public void onSurfaceTextureAvailable(SurfaceTexture surface, argument
138 mPreviewTexture = surface;
146 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
150 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
154 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
/frameworks/av/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp627 sp<MSurface> surface = new MSurface(); local
628 ASSERT(c->setPreviewDisplay(surface) == NO_ERROR);
637 sp<MSurface> surface = new MSurface(); local
638 ASSERT(c->setPreviewDisplay(surface) == NO_ERROR);
643 surface->waitUntil(1, 10, 0); // needs 1 registerBuffers and 10 postBuffer
644 surface->clearStat();
649 surface->waitUntil(0, 0, 1); // needs unregisterBuffers
670 surface = new MSurface();
671 ASSERT(c->setPreviewDisplay(surface) == NO_ERROR);
676 sp<MSurface> surface; member in class:AfterStartPreview
808 sp<MSurface> surface = new MSurface(); local
839 sp<MSurface> surface = new MSurface(); local
[all...]
/frameworks/native/libs/gui/
H A DSurfaceComposerClient.cpp100 if (lhs.state.surface < rhs.state.surface) return -1;
101 if (lhs.state.surface > rhs.state.surface) return 1;
158 void setDisplaySurface(const sp<IBinder>& token, const sp<ISurfaceTexture>& surface);
226 s.state.surface = id;
260 // Resizing a surface makes the transaction synchronous.
368 const sp<ISurfaceTexture>& surface) {
371 s.surface = surface;
367 setDisplaySurface(const sp<IBinder>& token, const sp<ISurfaceTexture>& surface) argument
454 sp<ISurface> surface = mClient->createSurface(&data, name, local
552 setDisplaySurface(const sp<IBinder>& token, const sp<ISurfaceTexture>& surface) argument
[all...]

Completed in 830 milliseconds

1234567