/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FakeDisplayInjector.h | 41 : mFlinger(flinger), mPowerAdvisor(powerAdvisor), mNativeWindow(nativeWindow) {} in FakeDisplayInjector() 58 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) 60 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) 62 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)); 63 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)); 64 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)); 65 EXPECT_CALL(*mNativeWindow, perform(NATIVE_WINDOW_API_DISCONNECT)).Times(AnyNumber()); 79 injector.setNativeWindow(mNativeWindow); 86 Mock::VerifyAndClear(mNativeWindow.get()); 93 sp<mock::NativeWindow> mNativeWindow; variable
|
D | DisplayTransactionTestHelpers.h | 117 sp<mock::NativeWindow> mNativeWindow = sp<mock::NativeWindow>::make(); 123 FakeDisplayInjector mFakeDisplayInjector{mFlinger, mPowerAdvisor, mNativeWindow}; 284 injector.setNativeWindow(test->mNativeWindow); 288 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) 290 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) 292 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)) 294 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)) 296 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)) 298 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_DISCONNECT)) 307 .WillOnce(Return(test->mNativeWindow)); [all …]
|
D | CommitAndCompositeTest.h | 60 .setNativeWindow(mNativeWindow) in SetUp() 80 sp<mock::NativeWindow> mNativeWindow = sp<mock::NativeWindow>::make();
|
D | CompositionTest.cpp | 104 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in CompositionTest() 106 EXPECT_CALL(*mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in CompositionTest() 151 sp<mock::NativeWindow> mNativeWindow = sp<mock::NativeWindow>::make(); member in android::__anon4393af000111::CompositionTest 255 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_WIDTH, _)) in setupPreconditions() 257 EXPECT_CALL(*test->mNativeWindow, query(NATIVE_WINDOW_HEIGHT, _)) in setupPreconditions() 259 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_FORMAT)).Times(1); in setupPreconditions() 260 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_API_CONNECT)).Times(1); in setupPreconditions() 261 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_USAGE64)).Times(1); in setupPreconditions() 286 .setNativeWindow(test->mNativeWindow) in setupPreconditions() 292 Mock::VerifyAndClear(test->mNativeWindow.get()); in setupPreconditions() [all …]
|
D | DisplayDevice_GetBestColorModeTest.cpp | 50 injector.setNativeWindow(mNativeWindow); in getBestColorMode()
|
D | SurfaceFlinger_SetupNewDisplayDeviceInternalTest.cpp | 44 EXPECT_CALL(*test->mNativeWindow, perform(NATIVE_WINDOW_SET_BUFFERS_DATASPACE)).Times(1); in setupComposerCallExpectations()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | RenderSurface.cpp | 65 mNativeWindow(args.nativeWindow), in RenderSurface() 69 LOG_ALWAYS_FATAL_IF(!mNativeWindow); in RenderSurface() 73 ANativeWindow* const window = mNativeWindow.get(); in ~RenderSurface() 82 ANativeWindow* const window = mNativeWindow.get(); in initialize() 106 native_window_set_buffers_data_space(mNativeWindow.get(), in setBufferDataspace() 111 native_window_set_buffers_format(mNativeWindow.get(), static_cast<int32_t>(pixelFormat)); in setBufferPixelFormat() 119 const int status = native_window_set_usage(mNativeWindow.get(), usageFlags); in setProtected() 156 status_t result = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buffer, &fd); in dequeueBuffer() 223 status_t result = mNativeWindow->queueBuffer(mNativeWindow.get(), in queueBuffer() 234 mNativeWindow->cancelBuffer(mNativeWindow.get(), in queueBuffer() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | RenderSurfaceTest.cpp | 57 EXPECT_CALL(*mNativeWindow, disconnect(NATIVE_WINDOW_API_EGL)) in RenderSurfaceTest() 64 sp<mock::NativeWindow> mNativeWindow = sp<StrictMock<mock::NativeWindow>>::make(); member in android::compositionengine::__anon2f9684cc0111::RenderSurfaceTest 70 .setNativeWindow(mNativeWindow) 88 EXPECT_CALL(*mNativeWindow, connect(NATIVE_WINDOW_API_EGL)).WillOnce(Return(NO_ERROR)); in TEST_F() 89 EXPECT_CALL(*mNativeWindow, setBuffersFormat(HAL_PIXEL_FORMAT_RGBA_8888)) in TEST_F() 91 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE)) in TEST_F() 135 EXPECT_CALL(*mNativeWindow, setBuffersDataSpace(ui::Dataspace::DISPLAY_P3)) in TEST_F() 147 EXPECT_CALL(*mNativeWindow, in TEST_F() 158 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE)) in TEST_F() 167 EXPECT_CALL(*mNativeWindow, in TEST_F() [all …]
|
D | DisplayTest.cpp | 197 sp<mock::NativeWindow> mNativeWindow = sp<StrictMock<mock::NativeWindow>>::make(); member 474 EXPECT_CALL(*mNativeWindow, disconnect(NATIVE_WINDOW_API_EGL)).WillRepeatedly(Return(NO_ERROR)); in TEST_F() 479 .setNativeWindow(mNativeWindow) in TEST_F() 1036 sp<mock::NativeWindow> mNativeWindow = sp<NiceMock<mock::NativeWindow>>::make(); member 1057 .setNativeWindow(mNativeWindow) in createRenderSurface()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.cpp | 349 : mNativeWindow(window), mWindowInfo(windowInfo), mGrContext(grContext) {} in VulkanSurface() 355 int err = native_window_api_disconnect(mNativeWindow.get(), NATIVE_WINDOW_API_EGL); in ~VulkanSurface() 364 int err = mNativeWindow->cancelBuffer(mNativeWindow.get(), bufferInfo.buffer.get(), in releaseBuffers() 400 mNativeWindow->query(mNativeWindow.get(), NATIVE_WINDOW_TRANSFORM_HINT, &transformHint); in dequeueNativeBuffer() 408 err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buffer, &rawFd); in dequeueNativeBuffer() 430 err = native_window_set_buffers_transform(mNativeWindow.get(), in dequeueNativeBuffer() 435 mNativeWindow->cancelBuffer(mNativeWindow.get(), buffer, fence_fd.release()); in dequeueNativeBuffer() 466 mNativeWindow->cancelBuffer(mNativeWindow.get(), buffer, fence_fd.release()); in dequeueNativeBuffer() 484 mNativeWindow->cancelBuffer(mNativeWindow.get(), buffer, in dequeueNativeBuffer() 511 int err = native_window_set_surface_damage(mNativeWindow.get(), &aRect, 1); in presentCurrentBuffer() [all …]
|
D | VulkanSurface.h | 129 sp<ANativeWindow> mNativeWindow; variable
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | SoftwareRenderer.cpp | 49 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/base/libs/hwui/pipeline/skia/ |
D | SkiaVulkanPipeline.cpp | 63 } else if (!isSurfaceReady() && mNativeWindow) { in makeCurrent() 64 setSurface(mNativeWindow.get(), SwapBehavior::kSwap_default); in makeCurrent() 167 mNativeWindow = surface; in setSurface()
|
D | SkiaOpenGLPipeline.cpp | 65 } else if (!isSurfaceReady() && mNativeWindow) { in makeCurrent() 66 setSurface(mNativeWindow.get(), mSwapBehavior); in makeCurrent() 235 mNativeWindow = surface; in setSurface()
|
/frameworks/av/services/camera/virtualcamera/ |
D | VirtualCameraTestInstance.cc | 63 : mFps(fps), mNativeWindow(nativeWindow) { in TestPatternRenderer() 73 std::thread(&TestPatternRenderer::renderThreadLoop, this, mNativeWindow); in start()
|
D | VirtualCameraTestInstance.h | 53 std::shared_ptr<ANativeWindow> mNativeWindow; variable
|
/frameworks/av/services/camera/virtualcamera/util/ |
D | EglDisplayContext.h | 53 std::shared_ptr<ANativeWindow> mNativeWindow;
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 55 ret = AImageReader_getWindow(mImgReader, &mNativeWindow); in GrallocConsumer() 56 if (ret != AMEDIA_OK || mNativeWindow == nullptr) { in GrallocConsumer() 87 return mNativeWindow; in getNativeWindow()
|
D | rsGrallocConsumer.h | 61 ANativeWindow* mNativeWindow; variable
|
/frameworks/av/media/libstagefright/include/ |
D | SoftwareRenderer.h | 53 sp<ANativeWindow> mNativeWindow; variable
|
/frameworks/base/core/java/android/view/ |
D | TextureView.java | 204 private long mNativeWindow; field in TextureView 785 if (!nLockCanvas(mNativeWindow, mCanvas, dirty)) { in lockCanvas() 811 nUnlockCanvasAndPost(mNativeWindow, mCanvas); in unlockCanvasAndPost()
|
/frameworks/av/media/libstagefright/ |
D | ACodec.cpp | 745 if (mNativeWindow != NULL) { in handleSetSurface() 753 if (mNativeWindow == NULL) { in handleSetSurface() 761 mNativeWindow = surface; in handleSetSurface() 866 pushBlankBuffersToNativeWindow(mNativeWindow.get()); in handleSetSurface() 869 mNativeWindow = nativeWindow; in handleSetSurface() 897 if (mNativeWindow != NULL && portIndex == kPortIndexOutput) { in allocateBuffersOnPort() 1170 mNativeWindow.get(), &mNativeWindowUsageBits, in configureOutputBuffersFromNativeWindow() 1178 static_cast<Surface *>(mNativeWindow.get())->setDequeueTimeout(-1); in configureOutputBuffersFromNativeWindow() 1196 err = mNativeWindow->query( in configureOutputBuffersFromNativeWindow() 1197 mNativeWindow.get(), NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in configureOutputBuffersFromNativeWindow() [all …]
|
/frameworks/base/libs/hwui/platform/android/pipeline/skia/ |
D | SkiaOpenGLPipeline.h | 74 sp<ANativeWindow> mNativeWindow; variable
|
D | SkiaVulkanPipeline.h | 71 sp<ANativeWindow> mNativeWindow; variable
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | RenderSurface.h | 80 const sp<ANativeWindow> mNativeWindow; variable
|