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

/development/ndk/platforms/android-9/include/android/
H A Dnative_window_jni.h34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
/development/ndk/platforms/android-9/samples/native-activity/jni/
H A Dmain.c53 EGLSurface surface; member in struct:engine
81 EGLSurface surface; local
101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL);
104 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) {
109 eglQuerySurface(display, surface, EGL_WIDTH, &w);
110 eglQuerySurface(display, surface, EGL_HEIGHT, &h);
114 engine->surface = surface;
142 eglSwapBuffers(engine->display, engine->surface);
[all...]
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
H A DLevelsRSActivity.java214 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument
215 if (surface != null) {
216 mOutPixelsAllocation.setSurface(new Surface(surface));
222 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
223 if (surface != null) {
224 mOutPixelsAllocation.setSurface(new Surface(surface));
229 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { argument
235 public void onSurfaceTextureUpdated(SurfaceTexture surface) { argument
/development/ndk/platforms/android-9/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,
H A Deglext.h71 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
72 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface);
74 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
75 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface);
/development/samples/Support7Demos/src/com/example/android/supportv7/media/
H A DMediaPlayerWrapper.java141 public void setSurface(Surface surface) { argument
142 mSurface = surface;
283 public static final void setSurface(MediaPlayer player, Surface surface) { argument
284 player.setSurface(surface);
H A DSampleMediaRouteProvider.java212 public void onWindowCreated(Surface surface) {
213 mMediaPlayer.setSurface(surface);
H A DOverlayDisplayWindow.java95 public void onWindowCreated(Surface surface); argument
/development/samples/ApiDemos/src/com/example/android/apis/media/
H A DMediaPlayerDemo_Video.java64 mPreview = (SurfaceView) findViewById(R.id.surface);
/development/ndk/platforms/android-14/samples/native-media/jni/
H A Dnative-media-jni.c495 // set the surface
496 void Java_com_example_nativemedia_NativeMedia_setSurface(JNIEnv *env, jclass clazz, jobject surface) argument
498 // obtain a native window from a Java surface
499 theNativeWindow = ANativeWindow_fromSurface(env, surface);
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java178 * surface is created.
214 synchronized public void onFrameAvailable(SurfaceTexture surface) { argument
220 //Log.v(TAG, "onFrameAvailable " + surface.getTimestamp());
H A DNativeMedia.java333 public static native void setSurface(Surface surface); argument
/development/ndk/platforms/android-4/samples/san-angeles/jni/
H A Dimportgl.h69 FNDEF(EGLBoolean, eglDestroySurface, (EGLDisplay dpy, EGLSurface surface));

Completed in 776 milliseconds