/frameworks/base/opengl/tests/gl2_basic/ |
H A D | gl2_basic.cpp | 273 EGLSurface surface; local 313 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); 315 if (surface == EGL_NO_SURFACE) { 326 returnValue = eglMakeCurrent(dpy, surface, surface, context); 331 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 333 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 351 eglSwapBuffers(dpy, surface);
|
/frameworks/base/services/surfaceflinger/DisplayHardware/ |
H A D | DisplayHardware.cpp | 115 EGLSurface surface; local 163 * Create our main surface 166 surface = eglCreateWindowSurface(display, config, mNativeWindow.get(), NULL); 167 eglQuerySurface(display, surface, EGL_WIDTH, &mWidth); 168 eglQuerySurface(display, surface, EGL_HEIGHT, &mHeight); 173 eglSurfaceAttrib(display, surface, 177 if (eglQuerySurface(display, surface, EGL_SWAP_BEHAVIOR, &dummy) == EGL_TRUE) { 216 mSurface = surface; 225 eglMakeCurrent(display, surface, surface, contex 318 EGLSurface surface = mSurface; local [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 207 // create the native surface 224 EGLSurface surface; local 231 surface = eglCreateWindowSurface(display, config, s.get(), NULL); 233 eglQuerySurface(display, surface, EGL_WIDTH, &w); 234 eglQuerySurface(display, surface, EGL_HEIGHT, &h); 236 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) 241 mSurface = surface;
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaRecorder.cpp | 48 jfieldID surface; member in struct:fields_t 318 jobject surface = env->GetObjectField(thiz, fields.surface); local 319 if (surface != NULL) { 320 const sp<Surface> native_surface = get_surface(env, surface); 323 // the preview surface becomes unavailable 325 LOGE("Application lost the surface"); 326 jniThrowException(env, "java/io/IOException", "invalid preview surface"); 330 LOGI("prepare: surface=%p (identity=%d)", native_surface.get(), native_surface->getIdentity()); 403 fields.surface 409 jclass surface = env->FindClass("android/view/Surface"); local [all...] |
H A D | android_media_MediaPlayer.cpp | 48 jfieldID surface; member in struct:fields_t 291 jobject surface = env->GetObjectField(thiz, fields.surface); local 292 if (surface != NULL) { 293 const sp<Surface> native_surface = get_surface(env, surface); 294 LOGV("prepare: surface=%p (id=%d)", 331 jobject surface = env->GetObjectField(thiz, fields.surface); local 332 if (surface != NULL) { 333 const sp<Surface> native_surface = get_surface(env, surface); 633 jclass surface = env->FindClass("android/view/Surface"); local [all...] |
/frameworks/base/media/libmedia/ |
H A D | IMediaRecorder.cpp | 72 status_t setPreviewSurface(const sp<ISurface>& surface) argument 74 LOGV("setPreviewSurface(%p)", surface.get()); 77 data.writeStrongBinder(surface->asBinder()); 412 sp<ISurface> surface = interface_cast<ISurface>(data.readStrongBinder()); local 413 reply->writeInt32(setPreviewSurface(surface));
|
H A D | mediaplayer.cpp | 205 status_t MediaPlayer::setVideoSurface(const sp<Surface>& surface) argument 210 if (surface != NULL) 211 return mPlayer->setVideoSurface(surface->getISurface());
|
H A D | IOMX.cpp | 37 const sp<Surface> &surface, 44 surface->getISurface(), 69 sp<Surface> surface = (Surface *)env->GetIntField(javaSurface, surfaceID); local 72 surface, componentName, colorFormat, encodedWidth, 352 const sp<ISurface> &surface, 361 data.writeStrongBinder(surface->asBinder()); 36 createRenderer( const sp<Surface> &surface, const char *componentName, OMX_COLOR_FORMATTYPE colorFormat, size_t encodedWidth, size_t encodedHeight, size_t displayWidth, size_t displayHeight, int32_t rotationDegrees) argument 351 createRenderer( const sp<ISurface> &surface, const char *componentName, OMX_COLOR_FORMATTYPE colorFormat, size_t encodedWidth, size_t encodedHeight, size_t displayWidth, size_t displayHeight, int32_t rotationDegrees) argument
|
/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 318 eglSwapBuffers(EGLDisplay display, EGLSurface surface) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | NativeActivity.java | 99 private native void onSurfaceCreatedNative(int handle, Surface surface); argument 100 private native void onSurfaceChangedNative(int handle, Surface surface, argument 102 private native void onSurfaceRedrawNeededNative(int handle, Surface surface); argument
|
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 36 jfieldID surface; member in struct:fields_t 387 sp<Surface> surface = NULL; 389 surface = reinterpret_cast<Surface*>(env->GetIntField(jSurface, fields.surface)); 391 if (camera->setPreviewDisplay(surface) != NO_ERROR) { 690 { "android/view/Surface", ANDROID_VIEW_SURFACE_JNI_ID, "I", &fields.surface },
|
H A D | android_view_Surface.cpp | 61 jfieldID surface; member in struct:android::so_t 145 const sp<SurfaceControl>& surface) 149 if (surface.get()) { 150 surface->incStrong(clazz); 155 env->SetIntField(clazz, so.surfaceControl, (int)surface.get()); 160 sp<Surface> result((Surface*)env->GetIntField(clazz, so.surface)); 176 env->SetIntField(clazz, so.surface, (int)result.get()); 188 static void setSurface(JNIEnv* env, jobject clazz, const sp<Surface>& surface) argument 190 Surface* const p = (Surface*)env->GetIntField(clazz, so.surface); 191 if (surface 144 setSurfaceControl(JNIEnv* env, jobject clazz, const sp<SurfaceControl>& surface) argument 215 sp<SurfaceControl> surface; local 601 const sp<SurfaceControl>& surface = getSurfaceControl(env, clazz); local [all...] |
H A D | com_google_android_gles_jni_EGLImpl.cpp | 175 jobject surface, jint attribute, jintArray value) { 176 if (display == NULL || surface == NULL || value == NULL 182 EGLContext sur = getSurface(_env, surface); 420 static jboolean jni_eglDestroySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument 421 if (display == NULL || surface == NULL) { 426 EGLSurface sur = getSurface(_env, surface); 429 SkPixelRef* ref = (SkPixelRef*)(_env->GetIntField(surface, 465 static jboolean jni_eglSwapBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface) { argument 466 if (display == NULL || surface == NULL) { 471 EGLSurface sur = getSurface(_env, surface); 174 jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display, jobject surface, jint attribute, jintArray value) argument 484 jni_eglCopyBuffers(JNIEnv *_env, jobject _this, jobject display, jobject surface, jobject native_pixmap) argument [all...] |
H A D | android_app_NativeActivity.cpp | 842 onSurfaceCreated_native(JNIEnv* env, jobject clazz, jint handle, jobject surface) argument 847 code->setSurface(surface); 862 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jint handle, jobject surface, argument 869 code->setSurface(surface); 915 onSurfaceDestroyed_native(JNIEnv* env, jobject clazz, jint handle, jobject surface) argument
|
/frameworks/base/libs/surfaceflinger_client/ |
H A D | SharedBufferStack.cpp | 170 int surface, int32_t identity) 172 mSharedStack(sharedClient->surfaces + surface), 342 int surface, int num, int32_t identity) 343 : SharedBufferBase(sharedClient, surface, identity), 485 int surface, int num, int32_t identity) 486 : SharedBufferBase(sharedClient, surface, identity), 490 mSharedStack->token = surface; 169 SharedBufferBase(SharedClient* sharedClient, int surface, int32_t identity) argument 341 SharedBufferClient(SharedClient* sharedClient, int surface, int num, int32_t identity) argument 484 SharedBufferServer(SharedClient* sharedClient, int surface, int num, int32_t identity) argument
|
H A D | SurfaceComposerClient.cpp | 156 if (lhs.surface < rhs.surface) return -1; 157 if (lhs.surface > rhs.surface) return 1; 305 sp<ISurface> surface = mClient->createSurface(&data, pid, name, local 307 if (surface != 0) { 308 result = new SurfaceControl(this, surface, data, w, h, format, flags); 319 // it's okay to destroy a surface while a transaction is open, 324 "Destroying surface while a transaction is open. " 325 "Client %p: destroying surface [all...] |
H A D | Surface.cpp | 107 const sp<ISurface>& surface, 110 : mClient(client), mSurface(surface), 138 // the surface's resource. Soon after this call, it will also release 323 Surface::Surface(const sp<SurfaceControl>& surface) argument 328 mSurface(surface->mSurface), 329 mIdentity(surface->mIdentity), 330 mFormat(surface->mFormat), mFlags(surface->mFlags), 331 mWidth(surface->mWidth), mHeight(surface 105 SurfaceControl( const sp<SurfaceComposerClient>& client, const sp<ISurface>& surface, const ISurfaceComposerClient::surface_data_t& data, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument 351 writeToParcel( const sp<Surface>& surface, Parcel* parcel) argument 385 sp<Surface> surface = sCachedSurfaces.valueFor(binder).promote(); local 846 sp<ISurface> surface; member in class:android::SetBufferCountIPC 851 SetBufferCountIPC(const sp<ISurface>& surface) argument [all...] |
/frameworks/base/media/libstagefright/omx/ |
H A D | OMX.cpp | 464 const sp<ISurface> &surface, 478 const sp<ISurface> &surface, 486 const sp<ISurface> &surface, 500 surface, componentName, colorFormat, 511 impl = (*func)(surface, componentName, colorFormat, 531 surface, 463 createRenderer( const sp<ISurface> &surface, const char *componentName, OMX_COLOR_FORMATTYPE colorFormat, size_t encodedWidth, size_t encodedHeight, size_t displayWidth, size_t displayHeight, int32_t rotationDegrees) argument
|
/frameworks/base/opengl/libagl/ |
H A D | dxt.cpp | 195 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 D | texture.cpp | 81 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); 146 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); 169 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); 391 GGLSurface& surface = tex->editMip(level); 392 *outSurface = &surface; 404 *outSurface = &tex->surface; 453 void *surface, int stride, int format) 499 uint8_t* p = (uint8_t*)surface + y*stride*2; 523 uint8_t* p = (uint8_t*)surface + y*stride*3; 550 uint8_t* p = (uint8_t*)surface 452 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument 1119 GGLSurface* surface; local [all...] |
/frameworks/base/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 204 status_t StagefrightRecorder::setPreviewSurface(const sp<ISurface> &surface) { argument 205 LOGV("setPreviewSurface: %p", surface.get()); 206 mPreviewSurface = surface;
|
H A D | MediaPlayerService.cpp | 894 status_t MediaPlayerService::Client::setVideoSurface(const sp<ISurface>& surface) argument 896 LOGV("[%d] setVideoSurface(%p)", mConnId, surface.get()); 899 return p->setVideoSurface(surface);
|
/frameworks/base/opengl/java/javax/microedition/khronos/egl/ |
H A D | EGL10.java | 98 boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap); argument 104 boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); argument 116 boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value); argument 117 boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface); argument
|
/frameworks/base/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 333 ISurface *surface = (ISurface *)arg; local 334 surface->unregisterBuffers(); 484 status_t CameraService::Client::setPreviewDisplay(const sp<ISurface>& surface) { argument 485 LOG1("setPreviewDisplay(%p) (pid %d)", surface.get(), getCallingPid()); 492 // return if no change in surface. 494 if (surface->asBinder() == mSurface->asBinder()) { 499 LOG1("clearing old preview surface %p", mSurface.get()); 509 mSurface = surface; 672 // Unregister here because the surface may be previously registered
|
/frameworks/base/services/camera/tests/CameraServiceTest/ |
H A D | CameraServiceTest.cpp | 622 sp<MSurface> surface = new MSurface(); local 623 ASSERT(c->setPreviewDisplay(surface) == NO_ERROR); 632 sp<MSurface> surface = new MSurface(); local 633 ASSERT(c->setPreviewDisplay(surface) == NO_ERROR); 638 surface->waitUntil(1, 10, 0); // needs 1 registerBuffers and 10 postBuffer 639 surface->clearStat(); 644 surface->waitUntil(0, 0, 1); // needs unregisterBuffers 665 surface = new MSurface(); 666 ASSERT(c->setPreviewDisplay(surface) == NO_ERROR); 671 sp<MSurface> surface; member in class:AfterStartPreview 803 sp<MSurface> surface = new MSurface(); local 834 sp<MSurface> surface = new MSurface(); local [all...] |