/frameworks/av/cmds/stagefright/ |
H A D | stream.cpp | 335 sp<Surface> surface = control->getSurface(); local 336 CHECK(surface != NULL); 376 player->setVideoSurfaceTexture(surface->getSurfaceTexture());
|
H A D | sf2.cpp | 47 const sp<Surface> &surface, bool renderToSurface) 50 mSurface(surface), 556 " -S(urface) Allocate output buffers on a surface.\n" 557 " -R(ender) Render surface-allocated buffers.\n"); 607 sp<Surface> surface; local 628 surface = control->getSurface(); 629 CHECK(surface != NULL); 633 surface.get(), NATIVE_WINDOW_API_MEDIA)); 637 new Controller(argv[0], decodeAudio, surface, renderToSurface); 650 surface 46 Controller(const char *uri, bool decodeAudio, const sp<Surface> &surface, bool renderToSurface) argument [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
H A D | VideoEditorPreviewController.cpp | 421 M4OSA_ERR VideoEditorPreviewController::setSurface(const sp<Surface> &surface) { argument 425 mSurface = surface; 734 const sp<Surface> &surface, VideoEditor_renderPreviewFrameStr* pFrameInfo) { 757 surface, 781 /* Fill the surface with black frame */ 794 const sp<Surface> &surface, 824 surface, 733 clearSurface( const sp<Surface> &surface, VideoEditor_renderPreviewFrameStr* pFrameInfo) argument 793 renderPreviewFrame( const sp<Surface> &surface, VideoEditor_renderPreviewFrameStr* pFrameInfo, VideoEditorCurretEditInfo *pCurrEditInfo) argument
|
/frameworks/av/media/libmedia/ |
H A D | IMediaRecorder.cpp | 89 status_t setPreviewSurface(const sp<Surface>& surface) argument 91 ALOGV("setPreviewSurface(%p)", surface.get()); 94 Surface::writeToParcel(surface, &data); 429 sp<Surface> surface = Surface::readFromParcel(data); local 430 reply->writeInt32(setPreviewSurface(surface));
|
/frameworks/base/core/java/android/view/ |
H A D | TextureView.java | 63 * 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/services/java/com/android/server/display/ |
H A D | WifiDisplayAdapter.java | 276 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
|
H A D | WifiDisplayController.java | 591 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...] |
/frameworks/native/libs/gui/ |
H A D | Surface.cpp | 51 const sp<ISurface>& surface, 53 : mClient(client), mSurface(surface), 79 // the surface's resource. Soon after this call, it will also release 203 Surface::Surface(const sp<SurfaceControl>& surface) argument 205 mSurface(surface->mSurface), 206 mIdentity(surface->mIdentity) 240 const sp<Surface>& surface, Parcel* parcel) 245 if (Surface::isValid(surface)) { 246 sur = surface->mSurface; 247 st = surface 49 SurfaceControl( const sp<SurfaceComposerClient>& client, const sp<ISurface>& surface, const ISurfaceComposerClient::surface_data_t& data) argument 239 writeToParcel( const sp<Surface>& surface, Parcel* parcel) argument 271 sp<Surface> surface = sCachedSurfaces.valueFor(binder).promote(); local [all...] |
H A D | SurfaceComposerClient.cpp | 100 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...] |
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
H A D | GL2CameraEye.java | 285 * surface is created. 331 synchronized public void onFrameAvailable(SurfaceTexture surface) { argument 341 * Move the camera surface around based on some simple spring physics with drag
|
/frameworks/native/opengl/tests/gl2_copyTexImage/ |
H A D | gl2_copyTexImage.cpp | 381 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 D | gl2_yuvtex.cpp | 346 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/native/opengl/tests/hwc/ |
H A D | hwcStress.cpp | 197 static EGLSurface surface; variable 495 list->sur = surface; 536 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
|
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.cpp | 132 * 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,
|
H A D | SurfaceFlinger.h | 166 sp<ISurfaceTexture> surface; member in struct:android::SurfaceFlinger::DisplayDeviceState 198 const sp<ISurfaceTexture>& surface) const;
|
/frameworks/wilhelm/tests/native-media/jni/ |
H A D | native-media-jni.c | 513 // set the surface 514 void Java_com_example_nativemedia_NativeMedia_setSurface(JNIEnv *env, jclass clazz, jobject surface) argument 516 // obtain a native window from a Java surface 517 theNativeWindow = ANativeWindow_fromSurface(env, surface);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 78 * 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/jni/ |
H A D | android_media_MediaRecorder.cpp | 49 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/base/opengl/java/android/opengl/ |
H A D | EGLLogWrapper.java | 64 public boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, argument 68 arg("surface", surface); 72 boolean result = mEgl10.eglCopyBuffers(display, surface, native_pixmap); 153 public boolean eglDestroySurface(EGLDisplay display, EGLSurface surface) { argument 156 arg("surface", surface); 159 boolean result = mEgl10.eglDestroySurface(display, surface); 303 public boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, argument 307 arg("surface", surfac 328 eglSwapBuffers(EGLDisplay display, EGLSurface surface) argument [all...] |
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
H A D | EGLImpl.java | 33 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/media/libstagefright/ |
H A D | CameraSource.cpp | 140 const sp<Surface>& surface, 144 videoSize, frameRate, surface, 155 const sp<Surface>& surface, 161 mSurface(surface), 524 // applications may already set a surface to the camera. 134 CreateFromCamera( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, const sp<Surface>& surface, bool storeMetaDataInVideoBuffers) argument 149 CameraSource( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, const sp<Surface>& surface, bool storeMetaDataInVideoBuffers) argument
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraClient.cpp | 266 // return if no change in surface. 306 status_t CameraClient::setPreviewDisplay(const sp<Surface>& surface) { argument 307 LOG1("setPreviewDisplay(%p) (pid %d)", surface.get(), getCallingPid()); 309 sp<IBinder> binder(surface != 0 ? surface->asBinder() : 0); 310 sp<ANativeWindow> window(surface);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 227 // create the native surface 248 EGLSurface surface; local 255 surface = eglCreateWindowSurface(display, config, s.get(), NULL); 257 eglQuerySurface(display, surface, EGL_WIDTH, &w); 258 eglQuerySurface(display, surface, EGL_HEIGHT, &h); 260 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) 265 mSurface = surface; 384 // Allow surface flinger to gracefully request shutdown
|
/frameworks/base/core/java/android/app/ |
H A D | NativeActivity.java | 98 private native void onSurfaceCreatedNative(int handle, Surface surface); argument 99 private native void onSurfaceChangedNative(int handle, Surface surface, argument 101 private native void onSurfaceRedrawNeededNative(int handle, Surface surface); argument
|
/frameworks/base/core/jni/ |
H A D | com_google_android_gles_jni_EGLImpl.cpp | 160 jobject surface, jint attribute, jintArray value) { 161 if (display == NULL || surface == NULL || value == NULL 167 EGLContext sur = getSurface(_env, surface); 444 static jboolean jni_eglDestroySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument 445 if (display == NULL || surface == NULL) { 450 EGLSurface sur = getSurface(_env, surface); 453 SkPixelRef* ref = (SkPixelRef*)(_env->GetIntField(surface, 489 static jboolean jni_eglSwapBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument 490 if (display == NULL || surface == NULL) { 495 EGLSurface sur = getSurface(_env, surface); 159 jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface, jint attribute, jintArray value) argument 508 jni_eglCopyBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface, jobject native_pixmap) argument [all...] |