Home
last modified time | relevance | path

Searched refs:nativeWindow (Results 1 – 18 of 18) sorted by relevance

/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp28 ANativeWindow *nativeWindow /* nonnull */, in setNativeWindowSizeFormatAndUsage() argument
34 err = native_window_api_disconnect(nativeWindow, NATIVE_WINDOW_API_MEDIA); in setNativeWindowSizeFormatAndUsage()
40 err = native_window_api_connect(nativeWindow, NATIVE_WINDOW_API_MEDIA); in setNativeWindowSizeFormatAndUsage()
47 err = native_window_set_buffers_dimensions(nativeWindow, width, height); in setNativeWindowSizeFormatAndUsage()
53 err = native_window_set_buffers_format(nativeWindow, format); in setNativeWindowSizeFormatAndUsage()
69 err = native_window_set_buffers_transform(nativeWindow, transform); in setNativeWindowSizeFormatAndUsage()
76 err = nativeWindow->query(nativeWindow, NATIVE_WINDOW_CONSUMER_USAGE_BITS, &consumerUsage); in setNativeWindowSizeFormatAndUsage()
87 err = nativeWindow->query( in setNativeWindowSizeFormatAndUsage()
88 nativeWindow, NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, &queuesToNativeWindow); in setNativeWindowSizeFormatAndUsage()
103 err = native_window_set_usage(nativeWindow, finalUsage); in setNativeWindowSizeFormatAndUsage()
[all …]
DSimpleDecodingSource.cpp39 const sp<IMediaSource> &source, uint32_t flags, const sp<ANativeWindow> &nativeWindow, in Create() argument
41 sp<Surface> surface = static_cast<Surface*>(nativeWindow.get()); in Create()
DMediaCodecListOverrides.cpp210 const sp<Surface> nativeWindow; in doProfileCodecs() local
214 err = codec->configure(format, nativeWindow, crypto, flags); in doProfileCodecs()
DACodec.cpp663 ANativeWindow *nativeWindow = surface.get(); in handleSetSurface() local
679 nativeWindow, &usageBits, in handleSetSurface()
695 err = nativeWindow->query( in handleSetSurface()
696 nativeWindow, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in handleSetSurface()
714 err = native_window_set_buffer_count(nativeWindow, buffers.size()); in handleSetSurface()
752 err = nativeWindow->cancelBuffer( in handleSetSurface()
753 nativeWindow, info.mGraphicBuffer->getNativeBuffer(), info.mFenceFd); in handleSetSurface()
772 mNativeWindow = nativeWindow; in handleSetSurface()
954 ANativeWindow *nativeWindow /* nonnull */, int *finalUsage /* nonnull */, in setupNativeWindowSizeFormatAndUsage() argument
988 nativeWindow, in setupNativeWindowSizeFormatAndUsage()
[all …]
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp51 jfieldID nativeWindow; member
117 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, jlong(window.get())); in android_view_TextureView_createNativeWindow()
122 ANativeWindow* nativeWindow = (ANativeWindow*) in android_view_TextureView_destroyNativeWindow() local
123 GET_LONG(textureView, gTextureViewClassInfo.nativeWindow); in android_view_TextureView_destroyNativeWindow()
125 if (nativeWindow) { in android_view_TextureView_destroyNativeWindow()
126 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow()
128 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, 0); in android_view_TextureView_destroyNativeWindow()
133 jlong nativeWindow, jobject canvas, jobject dirtyRect) { in android_view_TextureView_lockCanvas() argument
135 if (!nativeWindow) { in android_view_TextureView_lockCanvas()
151 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas()
[all …]
Dandroid_app_NativeActivity.cpp122 nativeWindow = NULL; in NativeCode()
149 nativeWindow = android_view_Surface_getNativeWindow(env, _surface); in setSurface()
151 nativeWindow = NULL; in setSurface()
164 sp<ANativeWindow> nativeWindow; member
519 if (code->nativeWindow != NULL && code->callbacks.onNativeWindowCreated != NULL) { in onSurfaceCreated_native()
521 code->nativeWindow.get()); in onSurfaceCreated_native()
541 sp<ANativeWindow> oldNativeWindow = code->nativeWindow; in onSurfaceChanged_native()
543 if (oldNativeWindow != code->nativeWindow) { in onSurfaceChanged_native()
548 if (code->nativeWindow != NULL) { in onSurfaceChanged_native()
551 code->nativeWindow.get()); in onSurfaceChanged_native()
[all …]
/frameworks/av/include/media/stagefright/
DSurfaceUtils.h33 ANativeWindow *nativeWindow /* nonnull */,
35 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */);
DSimpleDecodingSource.h49 const sp<ANativeWindow> &nativeWindow = NULL,
DMediaCodec.h84 const sp<Surface> &nativeWindow,
161 status_t setSurface(const sp<Surface> &nativeWindow);
DACodec.h317 ANativeWindow *nativeWindow /* nonnull */, int *finalUsage /* nonnull */,
351 const sp<ANativeWindow> &nativeWindow);
/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp461 ANativeWindow *nativeWindow = (ANativeWindow *) in android_Player_realize() local
464 assert(nativeWindow != NULL); in android_Player_realize()
465 result = android_Player_setNativeWindow(mp, nativeWindow); in android_Player_realize()
720 SLresult android_Player_setNativeWindow(CMediaPlayer *mp, ANativeWindow *nativeWindow) in android_Player_setNativeWindow() argument
724 if (nativeWindow == NULL) { in android_Player_setNativeWindow()
732 err = (*nativeWindow->query)(nativeWindow, NATIVE_WINDOW_CONCRETE_TYPE, &value); in android_Player_setNativeWindow()
735 "errno %d", nativeWindow, err); in android_Player_setNativeWindow()
742 static_cast<android::Surface *>(nativeWindow)); in android_Player_setNativeWindow()
752 nativeWindow, value); in android_Player_setNativeWindow()
DMediaPlayer_to_android.h44 ANativeWindow *nativeWindow);
/frameworks/native/opengl/libagl/
Degl.cpp243 ANativeWindow* nativeWindow; member
345 nativeWindow(window), buffer(0), previousBuffer(0), bits(NULL) in egl_window_surface_v2_t()
351 nativeWindow->common.incRef(&nativeWindow->common); in egl_window_surface_v2_t()
352 nativeWindow->query(nativeWindow, NATIVE_WINDOW_WIDTH, &width); in egl_window_surface_v2_t()
353 nativeWindow->query(nativeWindow, NATIVE_WINDOW_HEIGHT, &height); in egl_window_surface_v2_t()
363 nativeWindow->common.decRef(&nativeWindow->common); in ~egl_window_surface_v2_t()
369 native_window_set_usage(nativeWindow, in connect()
374 if (nativeWindow->dequeueBuffer(nativeWindow, &buffer, in connect()
382 nativeWindow->cancelBuffer(nativeWindow, buffer, fenceFd); in connect()
426 nativeWindow->cancelBuffer(nativeWindow, buffer, -1); in disconnect()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dxaplay.c372 ANativeWindow *nativeWindow; in main() local
426 nativeWindow = getNativeWindow(); in main()
429 locND.hWindow = nativeWindow; in main()
441 &audioSnk, nativeWindow != NULL ? &imageVideoSink : NULL, NULL, NULL, abq ? 4 : 3, ids, in main()
852 if (nativeWindow != NULL) { in main()
853 ANativeWindow_release(nativeWindow); in main()
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h35 const sp<ANativeWindow> &nativeWindow, int32_t rotation = 0);
/frameworks/base/core/java/android/view/
DTextureView.java845 private static native boolean nLockCanvas(long nativeWindow, Canvas canvas, Rect dirty); in nLockCanvas() argument
846 private static native void nUnlockCanvasAndPost(long nativeWindow, Canvas canvas); in nUnlockCanvasAndPost() argument
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp42 const sp<ANativeWindow> &nativeWindow, int32_t rotation) in SoftwareRenderer() argument
46 mNativeWindow(nativeWindow), in SoftwareRenderer()
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java812 Object nativeWindow); in createWindowSurface() argument
819 EGLConfig config, Object nativeWindow) { in createWindowSurface() argument
822 result = egl.eglCreateWindowSurface(display, config, nativeWindow, null); in createWindowSurface()