Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp31 ANativeWindow *nativeWindow /* nonnull */, in setNativeWindowSizeFormatAndUsage() argument
37 err = nativeWindowDisconnect(nativeWindow, "setNativeWindowSizeFormatAndUsage"); in setNativeWindowSizeFormatAndUsage()
43 err = nativeWindowConnect(nativeWindow, "setNativeWindowSizeFormatAndUsage"); in setNativeWindowSizeFormatAndUsage()
50 err = native_window_set_buffers_dimensions(nativeWindow, width, height); in setNativeWindowSizeFormatAndUsage()
56 err = native_window_set_buffers_format(nativeWindow, format); in setNativeWindowSizeFormatAndUsage()
72 err = native_window_set_buffers_transform(nativeWindow, transform); in setNativeWindowSizeFormatAndUsage()
79 err = nativeWindow->query(nativeWindow, NATIVE_WINDOW_CONSUMER_USAGE_BITS, &consumerUsage); in setNativeWindowSizeFormatAndUsage()
90 err = nativeWindow->query( in setNativeWindowSizeFormatAndUsage()
91 nativeWindow, NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, &queuesToNativeWindow); in setNativeWindowSizeFormatAndUsage()
99 err = nativeWindow->query( in setNativeWindowSizeFormatAndUsage()
[all …]
DMediaCodecListOverrides.cpp153 const sp<Surface> nativeWindow; in doProfileCodecs() local
157 err = codec->configure(format, nativeWindow, crypto, flags); in doProfileCodecs()
DSimpleDecodingSource.cpp50 const sp<MediaSource> &source, uint32_t flags, const sp<ANativeWindow> &nativeWindow, in Create() argument
52 sp<Surface> surface = static_cast<Surface*>(nativeWindow.get()); in Create()
DACodec.cpp723 ANativeWindow *nativeWindow = surface.get(); in handleSetSurface() local
739 nativeWindow, &usageBits, !storingMetadataInDecodedBuffers()); in handleSetSurface()
754 err = nativeWindow->query( in handleSetSurface()
755 nativeWindow, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in handleSetSurface()
773 err = native_window_set_buffer_count(nativeWindow, buffers.size()); in handleSetSurface()
813 err = nativeWindow->cancelBuffer( in handleSetSurface()
814 nativeWindow, info.mGraphicBuffer->getNativeBuffer(), info.mFenceFd); in handleSetSurface()
833 mNativeWindow = nativeWindow; in handleSetSurface()
1049 ANativeWindow *nativeWindow /* nonnull */, int *finalUsage /* nonnull */, in setupNativeWindowSizeFormatAndUsage() argument
1072 if (nativeWindow->query( in setupNativeWindowSizeFormatAndUsage()
[all …]
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp51 jfieldID nativeWindow; member
121 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, jlong(window.get())); in android_view_TextureView_createNativeWindow()
126 ANativeWindow* nativeWindow = (ANativeWindow*) in android_view_TextureView_destroyNativeWindow() local
127 GET_LONG(textureView, gTextureViewClassInfo.nativeWindow); in android_view_TextureView_destroyNativeWindow()
129 if (nativeWindow) { in android_view_TextureView_destroyNativeWindow()
130 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow()
132 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, 0); in android_view_TextureView_destroyNativeWindow()
137 jlong nativeWindow, jobject canvas, jobject dirtyRect) { in android_view_TextureView_lockCanvas() argument
139 if (!nativeWindow) { in android_view_TextureView_lockCanvas()
155 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas()
[all …]
Dandroid_app_NativeActivity.cpp124 nativeWindow = NULL; in NativeCode()
156 nativeWindow = android_view_Surface_getNativeWindow(env, _surface); in setSurface()
158 nativeWindow = NULL; in setSurface()
171 sp<ANativeWindow> nativeWindow; member
547 if (code->nativeWindow != NULL && code->callbacks.onNativeWindowCreated != NULL) { in onSurfaceCreated_native()
549 code->nativeWindow.get()); in onSurfaceCreated_native()
569 sp<ANativeWindow> oldNativeWindow = code->nativeWindow; in onSurfaceChanged_native()
571 if (oldNativeWindow != code->nativeWindow) { in onSurfaceChanged_native()
576 if (code->nativeWindow != NULL) { in onSurfaceChanged_native()
579 code->nativeWindow.get()); in onSurfaceChanged_native()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DRenderSurfaceCreationArgs.h44 sp<ANativeWindow> nativeWindow; member
75 RenderSurfaceCreationArgsBuilder& setNativeWindow(sp<ANativeWindow> nativeWindow) { in setNativeWindow() argument
76 mArgs.nativeWindow = nativeWindow; in setNativeWindow()
/frameworks/av/media/libstagefright/include/media/stagefright/
DSurfaceUtils.h37 ANativeWindow *nativeWindow /* nonnull */,
40 ANativeWindow *nativeWindow /* nonnull */, HDRStaticInfo *info /* nonnull */);
41 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */);
DSimpleDecodingSource.h49 const sp<ANativeWindow> &nativeWindow,
DMediaCodec.h95 const sp<Surface> &nativeWindow,
101 const sp<Surface> &nativeWindow,
179 status_t setSurface(const sp<Surface> &nativeWindow);
DACodec.h315 ANativeWindow *nativeWindow /* nonnull */, int *finalUsage /* nonnull */,
348 const sp<ANativeWindow> &nativeWindow);
/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp465 ANativeWindow *nativeWindow = (ANativeWindow *) in android_Player_realize() local
468 assert(nativeWindow != NULL); in android_Player_realize()
469 result = android_Player_setNativeWindow(mp, nativeWindow); in android_Player_realize()
728 SLresult android_Player_setNativeWindow(CMediaPlayer *mp, ANativeWindow *nativeWindow) in android_Player_setNativeWindow() argument
732 if (nativeWindow == NULL) { in android_Player_setNativeWindow()
740 err = (*nativeWindow->query)(nativeWindow, NATIVE_WINDOW_CONCRETE_TYPE, &value); in android_Player_setNativeWindow()
743 "errno %d", nativeWindow, err); in android_Player_setNativeWindow()
750 static_cast<android::Surface *>(nativeWindow)); in android_Player_setNativeWindow()
760 nativeWindow, value); in android_Player_setNativeWindow()
DMediaPlayer_to_android.h44 ANativeWindow *nativeWindow);
/frameworks/native/opengl/libagl/
Degl.cpp264 ANativeWindow* nativeWindow; member
366 nativeWindow(window), buffer(0), previousBuffer(0), bits(NULL) in egl_window_surface_v2_t()
372 nativeWindow->common.incRef(&nativeWindow->common); in egl_window_surface_v2_t()
373 nativeWindow->query(nativeWindow, NATIVE_WINDOW_WIDTH, &width); in egl_window_surface_v2_t()
374 nativeWindow->query(nativeWindow, NATIVE_WINDOW_HEIGHT, &height); in egl_window_surface_v2_t()
384 nativeWindow->common.decRef(&nativeWindow->common); in ~egl_window_surface_v2_t()
390 native_window_set_usage(nativeWindow, in connect()
395 if (nativeWindow->dequeueBuffer(nativeWindow, &buffer, in connect()
403 nativeWindow->cancelBuffer(nativeWindow, buffer, fenceFd); in connect()
447 nativeWindow->cancelBuffer(nativeWindow, buffer, -1); in disconnect()
[all …]
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp70 args.nativeWindow.get()),
72 args.nativeWindow.get()),
73 args.nativeWindow, args.displaySurface});
DDisplayDevice.h239 sp<ANativeWindow> nativeWindow; member
DSurfaceFlinger.cpp2635 auto nativeWindow = nativeWindowSurface->getNativeWindow(); in setupNewDisplayDeviceInternal() local
2636 creationArgs.nativeWindow = nativeWindow; in setupNewDisplayDeviceInternal()
2642 nativeWindow->setSwapInterval(nativeWindow.get(), 0); in setupNewDisplayDeviceInternal()
/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.h36 const sp<ANativeWindow> &nativeWindow, int32_t rotation = 0);
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp2145 auto nativeWindow = new mock::NativeWindow(); in TEST_F() local
2149 display.setNativeWindow(nativeWindow); in TEST_F()
2152 EXPECT_CALL(*nativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in TEST_F()
2154 EXPECT_CALL(*nativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in TEST_F()
2156 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)).Times(1); in TEST_F()
2157 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_API_CONNECT)).Times(1); in TEST_F()
2158 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)).Times(1); in TEST_F()
2159 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_API_DISCONNECT)).Times(1); in TEST_F()
2190 auto nativeWindow = new mock::NativeWindow(); in TEST_F() local
2194 display.setNativeWindow(nativeWindow); in TEST_F()
[all …]
DTestableSurfaceFlinger.h520 auto& setNativeWindow(const sp<ANativeWindow>& nativeWindow) { in setNativeWindow() argument
521 mCreationArgs.nativeWindow = nativeWindow; in setNativeWindow()
/frameworks/base/core/java/android/view/
DTextureView.java858 private static native boolean nLockCanvas(long nativeWindow, Canvas canvas, Rect dirty); in nLockCanvas() argument
859 private static native void nUnlockCanvasAndPost(long nativeWindow, Canvas canvas); in nUnlockCanvasAndPost() argument
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp45 const sp<ANativeWindow> &nativeWindow, int32_t rotation) in SoftwareRenderer() argument
49 mNativeWindow(nativeWindow), in SoftwareRenderer()
/frameworks/base/opengl/java/android/opengl/
DGLSurfaceView.java824 Object nativeWindow); in createWindowSurface() argument
831 EGLConfig config, Object nativeWindow) { in createWindowSurface() argument
834 result = egl.eglCreateWindowSurface(display, config, nativeWindow, null); in createWindowSurface()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp53 mNativeWindow(args.nativeWindow), in RenderSurface()

12