Home
last modified time | relevance | path

Searched refs:mNativeWindow (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp53 mNativeWindow(args.nativeWindow), in RenderSurface()
56 LOG_ALWAYS_FATAL_IF(!mNativeWindow); in RenderSurface()
60 ANativeWindow* const window = mNativeWindow.get(); in ~RenderSurface()
69 ANativeWindow* const window = mNativeWindow.get(); in initialize()
93 native_window_set_buffers_data_space(mNativeWindow.get(), in setBufferDataspace()
102 const int status = native_window_set_usage(mNativeWindow.get(), usageFlags); in setProtected()
146 status_t result = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buffer, &fd); in dequeueBuffer()
189 mNativeWindow->queueBuffer(mNativeWindow.get(), in queueBuffer()
199 mNativeWindow->cancelBuffer(mNativeWindow.get(), in queueBuffer()
237 StringAppendF(&out, "ANativeWindow=%p (format %d) ", mNativeWindow.get(), in dump()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp60 EXPECT_CALL(*mNativeWindow, disconnect(NATIVE_WINDOW_API_EGL)) in RenderSurfaceTest()
69 sp<mock::NativeWindow> mNativeWindow = new StrictMock<mock::NativeWindow>(); member in android::compositionengine::__anon2f9684cc0111::RenderSurfaceTest
73 DEFAULT_DISPLAY_HEIGHT, mNativeWindow,
90 EXPECT_CALL(*mNativeWindow, connect(NATIVE_WINDOW_API_EGL)).WillOnce(Return(NO_ERROR)); in TEST_F()
91 EXPECT_CALL(*mNativeWindow, setBuffersFormat(HAL_PIXEL_FORMAT_RGBA_8888)) in TEST_F()
93 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER)).WillOnce(Return(NO_ERROR)); in TEST_F()
135 EXPECT_CALL(*mNativeWindow, setBuffersDataSpace(ui::Dataspace::DISPLAY_P3)) in TEST_F()
147 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_PROTECTED)) in TEST_F()
156 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER)).WillOnce(Return(NO_ERROR)); in TEST_F()
164 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_PROTECTED)) in TEST_F()
[all …]
DDisplayTest.cpp46 sp<mock::NativeWindow> mNativeWindow = new StrictMock<mock::NativeWindow>(); member in android::compositionengine::__anon87d131590111::DisplayTest
203 EXPECT_CALL(*mNativeWindow, disconnect(NATIVE_WINDOW_API_EGL)).WillRepeatedly(Return(NO_ERROR)); in TEST_F()
205 mDisplay.createRenderSurface(RenderSurfaceCreationArgs{640, 480, mNativeWindow, nullptr}); in TEST_F()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp385 : mNativeWindow(window) in VulkanSurface()
395 int err = native_window_api_disconnect(mNativeWindow.get(), NATIVE_WINDOW_API_EGL); in ~VulkanSurface()
404 int err = mNativeWindow->cancelBuffer(mNativeWindow.get(), bufferInfo.buffer.get(), in releaseBuffers()
435 mNativeWindow->query(mNativeWindow.get(), NATIVE_WINDOW_WIDTH, &newSize.fWidth); in dequeueNativeBuffer()
436 mNativeWindow->query(mNativeWindow.get(), NATIVE_WINDOW_HEIGHT, &newSize.fHeight); in dequeueNativeBuffer()
437 mNativeWindow->query(mNativeWindow.get(), NATIVE_WINDOW_TRANSFORM_HINT, &transformHint); in dequeueNativeBuffer()
447 err = native_window_set_buffers_dimensions(mNativeWindow.get(), in dequeueNativeBuffer()
463 err = native_window_set_buffers_transform(mNativeWindow.get(), in dequeueNativeBuffer()
478 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buffer, &fence_fd); in dequeueNativeBuffer()
500 mNativeWindow->cancelBuffer(mNativeWindow.get(), buffer, fence_fd); in dequeueNativeBuffer()
[all …]
DVulkanSurface.h114 sp<ANativeWindow> mNativeWindow; variable
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp49 mNativeWindow(nativeWindow), in SoftwareRenderer()
190 CHECK(mNativeWindow != NULL); in resetFormatIfChanged()
197 mNativeWindow.get(), in resetFormatIfChanged()
203 mNativeWindow.get(), in resetFormatIfChanged()
208 mNativeWindow.get(), in resetFormatIfChanged()
212 mNativeWindow.get(), in resetFormatIfChanged()
215 mNativeWindow.get(), numOutputBuffers + 4)) { in resetFormatIfChanged()
229 CHECK_EQ(0, native_window_set_crop(mNativeWindow.get(), &crop)); in resetFormatIfChanged()
245 mNativeWindow.get(), transform)); in resetFormatIfChanged()
260 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd); in render()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp128 sp<mock::NativeWindow> mNativeWindow = new mock::NativeWindow(); member in android::__anon968546880111::DisplayTransactionTest
357 injector.setNativeWindow(test->mNativeWindow); in makeFakeExistingDisplayInjector()
361 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in makeFakeExistingDisplayInjector()
363 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in makeFakeExistingDisplayInjector()
365 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)) in makeFakeExistingDisplayInjector()
367 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)) in makeFakeExistingDisplayInjector()
369 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)) in makeFakeExistingDisplayInjector()
371 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_DISCONNECT)) in makeFakeExistingDisplayInjector()
380 .WillOnce(Return(test->mNativeWindow)); in setupNativeWindowSurfaceCreationCallExpectations()
382 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in setupNativeWindowSurfaceCreationCallExpectations()
[all …]
DCompositionTest.cpp102 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in CompositionTest()
104 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in CompositionTest()
176 mock::NativeWindow* mNativeWindow = new mock::NativeWindow(); member in android::__anon4393af000111::CompositionTest
279 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in setupPreconditions()
281 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in setupPreconditions()
283 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)).Times(1); in setupPreconditions()
284 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)).Times(1); in setupPreconditions()
285 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)).Times(1); in setupPreconditions()
289 .setNativeWindow(test->mNativeWindow) in setupPreconditions()
293 Mock::VerifyAndClear(test->mNativeWindow); in setupPreconditions()
[all …]
/frameworks/rs/
DrsGrallocConsumer.cpp55 ret = AImageReader_getWindow(mImgReader, &mNativeWindow); in GrallocConsumer()
56 if (ret != AMEDIA_OK || mNativeWindow == nullptr) { in GrallocConsumer()
87 return mNativeWindow; in getNativeWindow()
DrsGrallocConsumer.h61 ANativeWindow* mNativeWindow; variable
/frameworks/base/core/java/android/view/
DTextureView.java135 private long mNativeWindow; field in TextureView
688 if (!nLockCanvas(mNativeWindow, mCanvas, dirty)) { in lockCanvas()
714 nUnlockCanvasAndPost(mNativeWindow, mCanvas); in unlockCanvasAndPost()
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h53 sp<ANativeWindow> mNativeWindow; variable
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DRenderSurface.h77 const sp<ANativeWindow> mNativeWindow; variable
/frameworks/av/media/libstagefright/
DACodec.cpp710 if (mNativeWindow != NULL) { in handleSetSurface()
718 if (mNativeWindow == NULL) { in handleSetSurface()
726 mNativeWindow = surface; in handleSetSurface()
830 pushBlankBuffersToNativeWindow(mNativeWindow.get()); in handleSetSurface()
833 mNativeWindow = nativeWindow; in handleSetSurface()
860 if (mNativeWindow != NULL && portIndex == kPortIndexOutput) { in allocateBuffersOnPort()
1133 mNativeWindow.get(), &mNativeWindowUsageBits, in configureOutputBuffersFromNativeWindow()
1141 static_cast<Surface *>(mNativeWindow.get())->setDequeueTimeout(-1); in configureOutputBuffersFromNativeWindow()
1159 err = mNativeWindow->query( in configureOutputBuffersFromNativeWindow()
1160 mNativeWindow.get(), NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in configureOutputBuffersFromNativeWindow()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h235 sp<ANativeWindow> mNativeWindow; member