Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp64 mNativeWindow(args.nativeWindow), in RenderSurface()
68 LOG_ALWAYS_FATAL_IF(!mNativeWindow); in RenderSurface()
72 ANativeWindow* const window = mNativeWindow.get(); in ~RenderSurface()
81 ANativeWindow* const window = mNativeWindow.get(); in initialize()
105 native_window_set_buffers_data_space(mNativeWindow.get(), in setBufferDataspace()
110 native_window_set_buffers_format(mNativeWindow.get(), static_cast<int32_t>(pixelFormat)); in setBufferPixelFormat()
118 const int status = native_window_set_usage(mNativeWindow.get(), usageFlags); in setProtected()
156 status_t result = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buffer, &fd); in dequeueBuffer()
222 status_t result = mNativeWindow->queueBuffer(mNativeWindow.get(), in queueBuffer()
233 mNativeWindow->cancelBuffer(mNativeWindow.get(), in queueBuffer()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp56 EXPECT_CALL(*mNativeWindow, disconnect(NATIVE_WINDOW_API_EGL)) in RenderSurfaceTest()
63 sp<mock::NativeWindow> mNativeWindow = new StrictMock<mock::NativeWindow>(); member in android::compositionengine::__anon036f35d30111::RenderSurfaceTest
69 .setNativeWindow(mNativeWindow)
87 EXPECT_CALL(*mNativeWindow, connect(NATIVE_WINDOW_API_EGL)).WillOnce(Return(NO_ERROR)); in TEST_F()
88 EXPECT_CALL(*mNativeWindow, setBuffersFormat(HAL_PIXEL_FORMAT_RGBA_8888)) in TEST_F()
90 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE)) in TEST_F()
134 EXPECT_CALL(*mNativeWindow, setBuffersDataSpace(ui::Dataspace::DISPLAY_P3)) in TEST_F()
146 EXPECT_CALL(*mNativeWindow, in TEST_F()
157 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE)) in TEST_F()
166 EXPECT_CALL(*mNativeWindow, in TEST_F()
[all …]
DDisplayTest.cpp189 sp<mock::NativeWindow> mNativeWindow = new StrictMock<mock::NativeWindow>(); member
471 EXPECT_CALL(*mNativeWindow, disconnect(NATIVE_WINDOW_API_EGL)).WillRepeatedly(Return(NO_ERROR)); in TEST_F()
476 .setNativeWindow(mNativeWindow) in TEST_F()
994 sp<mock::NativeWindow> mNativeWindow = new NiceMock<mock::NativeWindow>(); member
1013 .setNativeWindow(mNativeWindow)
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp316 : mNativeWindow(window), mWindowInfo(windowInfo), mGrContext(grContext) {} in VulkanSurface()
322 int err = native_window_api_disconnect(mNativeWindow.get(), NATIVE_WINDOW_API_EGL); in ~VulkanSurface()
331 int err = mNativeWindow->cancelBuffer(mNativeWindow.get(), bufferInfo.buffer.get(), in releaseBuffers()
359 mNativeWindow->query(mNativeWindow.get(), NATIVE_WINDOW_TRANSFORM_HINT, &transformHint); in dequeueNativeBuffer()
367 err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buffer, &rawFd); in dequeueNativeBuffer()
385 err = native_window_set_buffers_transform(mNativeWindow.get(), in dequeueNativeBuffer()
390 mNativeWindow->cancelBuffer(mNativeWindow.get(), buffer, fence_fd.release()); in dequeueNativeBuffer()
420 mNativeWindow->cancelBuffer(mNativeWindow.get(), buffer, fence_fd.release()); in dequeueNativeBuffer()
432 mNativeWindow->cancelBuffer(mNativeWindow.get(), buffer, in dequeueNativeBuffer()
459 int err = native_window_set_surface_damage(mNativeWindow.get(), &aRect, 1); in presentCurrentBuffer()
[all …]
DVulkanSurface.h122 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.cpp133 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in injectDefaultInternalDisplay()
135 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in injectDefaultInternalDisplay()
137 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)); in injectDefaultInternalDisplay()
138 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)); in injectDefaultInternalDisplay()
139 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)); in injectDefaultInternalDisplay()
140 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_API_DISCONNECT)).Times(AnyNumber()); in injectDefaultInternalDisplay()
158 injector.setNativeWindow(mNativeWindow); in injectDefaultInternalDisplay()
165 Mock::VerifyAndClear(mNativeWindow.get()); in injectDefaultInternalDisplay()
DDisplayTransactionTestHelpers.h112 sp<mock::NativeWindow> mNativeWindow = new mock::NativeWindow();
287 injector.setNativeWindow(test->mNativeWindow);
291 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _))
293 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _))
295 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT))
297 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT))
299 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64))
301 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_DISCONNECT))
310 .WillOnce(Return(test->mNativeWindow));
312 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _))
[all …]
DCompositionTest.cpp101 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in CompositionTest()
103 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in CompositionTest()
178 mock::NativeWindow* mNativeWindow = new mock::NativeWindow(); member in android::__anon9c7f1b470111::CompositionTest
275 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in setupPreconditions()
277 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in setupPreconditions()
279 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)).Times(1); in setupPreconditions()
280 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)).Times(1); in setupPreconditions()
281 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)).Times(1); in setupPreconditions()
305 .setNativeWindow(test->mNativeWindow) in setupPreconditions()
309 Mock::VerifyAndClear(test->mNativeWindow); in setupPreconditions()
[all …]
DDisplayDevice_GetBestColorModeTest.cpp50 injector.setNativeWindow(mNativeWindow); in getBestColorMode()
DSurfaceFlinger_SetupNewDisplayDeviceInternalTest.cpp43 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_DATASPACE)).Times(1); in setupComposerCallExpectations()
/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/av/media/libstagefright/include/
DSoftwareRenderer.h53 sp<ANativeWindow> mNativeWindow; variable
/frameworks/base/core/java/android/view/
DTextureView.java138 private long mNativeWindow; field in TextureView
695 if (!nLockCanvas(mNativeWindow, mCanvas, dirty)) { in lockCanvas()
721 nUnlockCanvasAndPost(mNativeWindow, mCanvas); in unlockCanvasAndPost()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DRenderSurface.h82 const sp<ANativeWindow> mNativeWindow; variable
/frameworks/av/media/libstagefright/
DACodec.cpp727 if (mNativeWindow != NULL) { in handleSetSurface()
735 if (mNativeWindow == NULL) { in handleSetSurface()
743 mNativeWindow = surface; in handleSetSurface()
847 pushBlankBuffersToNativeWindow(mNativeWindow.get()); in handleSetSurface()
850 mNativeWindow = nativeWindow; in handleSetSurface()
877 if (mNativeWindow != NULL && portIndex == kPortIndexOutput) { in allocateBuffersOnPort()
1150 mNativeWindow.get(), &mNativeWindowUsageBits, in configureOutputBuffersFromNativeWindow()
1158 static_cast<Surface *>(mNativeWindow.get())->setDequeueTimeout(-1); in configureOutputBuffersFromNativeWindow()
1176 err = mNativeWindow->query( in configureOutputBuffersFromNativeWindow()
1177 mNativeWindow.get(), NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in configureOutputBuffersFromNativeWindow()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h249 sp<ANativeWindow> mNativeWindow; member