Home
last modified time | relevance | path

Searched refs:nativeWindow (Results 1 – 25 of 35) 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.cpp152 const sp<Surface> nativeWindow; in doProfileCodecs() local
156 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()
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp47 jfieldID nativeWindow; member
90 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, jlong(window.get())); in android_view_TextureView_createNativeWindow()
95 ANativeWindow* nativeWindow = (ANativeWindow*) in android_view_TextureView_destroyNativeWindow() local
96 GET_LONG(textureView, gTextureViewClassInfo.nativeWindow); in android_view_TextureView_destroyNativeWindow()
98 if (nativeWindow) { in android_view_TextureView_destroyNativeWindow()
99 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow()
101 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, 0); in android_view_TextureView_destroyNativeWindow()
106 jlong nativeWindow, jobject canvasObj, jobject dirtyRect) { in android_view_TextureView_lockCanvas() argument
108 if (!nativeWindow) { in android_view_TextureView_lockCanvas()
123 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/av/services/camera/virtualcamera/
DVirtualCameraTestInstance.cc47 ANativeWindow* nativeWindow = surface.get(); in nativeWindowFromSurface() local
48 if (nativeWindow != nullptr) { in nativeWindowFromSurface()
49 ANativeWindow_acquire(nativeWindow); in nativeWindowFromSurface()
51 return std::shared_ptr<ANativeWindow>(nativeWindow, ANativeWindow_release); in nativeWindowFromSurface()
62 std::shared_ptr<ANativeWindow> nativeWindow, int fps) in TestPatternRenderer() argument
63 : mFps(fps), mNativeWindow(nativeWindow) { in TestPatternRenderer()
87 std::shared_ptr<ANativeWindow> nativeWindow) { in renderThreadLoop() argument
93 EglDisplayContext eglDisplayContext(nativeWindow); in renderThreadLoop()
DVirtualCameraTestInstance.h37 TestPatternRenderer(std::shared_ptr<ANativeWindow> nativeWindow, int fps);
49 void renderThreadLoop(std::shared_ptr<ANativeWindow> nativeWindow);
/frameworks/av/media/ndk/fuzzer/
Dndk_sync_codec_fuzzer.cpp43 ANativeWindow* nativeWindow = nullptr; in invokekSyncCodecAPIs() local
50 AMediaCodec_configure(mCodec, getCodecFormat(), nativeWindow, nullptr /* crypto */, in invokekSyncCodecAPIs()
63 AMediaCodec_createPersistentInputSurface(&nativeWindow); in invokekSyncCodecAPIs()
114 AMediaCodec_setInputSurface(mCodec, nativeWindow); in invokekSyncCodecAPIs()
118 if (nativeWindow) { in invokekSyncCodecAPIs()
119 ANativeWindow_release(nativeWindow); in invokekSyncCodecAPIs()
Dndk_async_codec_fuzzer.cpp307 ANativeWindow* nativeWindow = nullptr; in invokekAsyncCodecAPIs() local
310 AMediaCodec_createInputSurface(mCodec, &nativeWindow); in invokekAsyncCodecAPIs()
313 if (AMEDIA_OK == AMediaCodec_configure(mCodec, getCodecFormat(), nativeWindow, in invokekAsyncCodecAPIs()
379 if (nativeWindow) { in invokekAsyncCodecAPIs()
380 ANativeWindow_release(nativeWindow); in invokekAsyncCodecAPIs()
/frameworks/av/media/libstagefright/include/media/stagefright/
DSurfaceUtils.h38 ANativeWindow *nativeWindow /* nonnull */,
41 ANativeWindow *nativeWindow /* nonnull */, HDRStaticInfo *info /* nonnull */);
43 ANativeWindow *nativeWindow /* nonnull */, int rotation);
44 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */);
DSimpleDecodingSource.h49 const sp<ANativeWindow> &nativeWindow,
DMediaCodec.h147 const sp<Surface> &nativeWindow,
153 const sp<Surface> &nativeWindow,
276 status_t setSurface(const sp<Surface> &nativeWindow);
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DRenderSurfaceCreationArgs.h40 sp<ANativeWindow> nativeWindow; member
67 RenderSurfaceCreationArgsBuilder& setNativeWindow(sp<ANativeWindow> nativeWindow) { in setNativeWindow() argument
68 mArgs.nativeWindow = std::move(nativeWindow); in setNativeWindow()
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_DisplayTransactionCommitTest.cpp657 auto nativeWindow = sp<mock::NativeWindow>::make(); in TEST_F() local
663 display.setNativeWindow(nativeWindow); in TEST_F()
666 EXPECT_CALL(*nativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in TEST_F()
668 EXPECT_CALL(*nativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in TEST_F()
670 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)).Times(1); in TEST_F()
671 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_API_CONNECT)).Times(1); in TEST_F()
672 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)).Times(1); in TEST_F()
673 EXPECT_CALL(*nativeWindow, perform(NATIVE_WINDOW_API_DISCONNECT)).Times(1); in TEST_F()
704 auto nativeWindow = sp<mock::NativeWindow>::make(); in TEST_F() local
708 display.setNativeWindow(nativeWindow); in TEST_F()
[all …]
DFakeDisplayInjector.h40 sp<mock::NativeWindow> nativeWindow) in FakeDisplayInjector() argument
41 : mFlinger(flinger), mPowerAdvisor(powerAdvisor), mNativeWindow(nativeWindow) {} in FakeDisplayInjector()
/frameworks/hardware/interfaces/automotive/display/aidl/vts/functional/
DVtsHalCarDisplayTargetTest.cpp106 ANativeWindow* nativeWindow = getNativeWindow(surfaceHolder.get()); in TEST_P() local
107 ASSERT_EQ(desc.width, ANativeWindow_getWidth(nativeWindow)); in TEST_P()
108 ASSERT_EQ(desc.height, ANativeWindow_getHeight(nativeWindow)); in TEST_P()
140 ANativeWindow* nativeWindow = shimSurface.get(); in TEST_P() local
141 ASSERT_EQ(desc.width, ANativeWindow_getWidth(nativeWindow)); in TEST_P()
142 ASSERT_EQ(desc.height, ANativeWindow_getHeight(nativeWindow)); in TEST_P()
/frameworks/av/services/camera/virtualcamera/util/
DEglDisplayContext.cc33 EglDisplayContext::EglDisplayContext(std::shared_ptr<ANativeWindow> nativeWindow) in EglDisplayContext() argument
57 nativeWindow == nullptr ? EGL_PBUFFER_BIT : EGL_WINDOW_BIT, in EglDisplayContext()
78 if (nativeWindow != nullptr) { in EglDisplayContext()
80 nativeWindow.get(), NULL); in EglDisplayContext()
DEglDisplayContext.h36 EglDisplayContext(std::shared_ptr<ANativeWindow> nativeWindow = nullptr);
/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/av/media/libstagefright/include/
DSoftwareRenderer.h36 const sp<ANativeWindow> &nativeWindow, int32_t rotation = 0);
/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/native/services/surfaceflinger/
DDisplayDevice.cpp76 .setDisplayWidth(ANativeWindow_getWidth(args.nativeWindow.get()))
77 .setDisplayHeight(ANativeWindow_getHeight(args.nativeWindow.get()))
78 .setNativeWindow(std::move(args.nativeWindow))
/frameworks/base/core/java/android/view/
DTextureView.java977 private static native boolean nLockCanvas(long nativeWindow, Canvas canvas, Rect dirty); in nLockCanvas() argument
978 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()

12