/ohos5.0/foundation/graphic/graphic_surface/surface/test/fuzztest/surface_fuzzer/ |
H A D | surface_fuzzer.cpp | 103 cSurface->GetUserData(key); in SurfaceFuzzTest4() 104 cSurface->GetQueueSize(); in SurfaceFuzzTest4() 154 cSurface->GetTunnelHandle(); in SurfaceFuzzTest3() 157 cSurface->GoBackground(); in SurfaceFuzzTest3() 158 cSurface->GetTransform(); in SurfaceFuzzTest3() 161 cSurface->GetTransformHint(); in SurfaceFuzzTest3() 171 cSurface->IsConsumer(); in SurfaceFuzzTest1() 248 cSurface->Dump(result); in SurfaceFuzzTest2() 249 cSurface->GetDefaultWidth(); in SurfaceFuzzTest2() 250 cSurface->GetDefaultUsage(); in SurfaceFuzzTest2() [all …]
|
/ohos5.0/foundation/graphic/graphic_surface/surface/test/systemtest/ |
H A D | native_window_test.cpp | 148 auto producer = cSurface->GetProducer(); 177 cSurface = nullptr; 297 cSurface = nullptr; 368 sptr<OHOS::IConsumerSurface> cSurface = variable 410 cSurface = nullptr; 567 cSurface = nullptr; 705 cSurface = nullptr; 795 cSurface = nullptr; 903 cSurface = nullptr; 912 cSurface->SetQueueSize(QUEUE_SIZE); in CreateNativeWindowAndAttachBuffer001() [all …]
|
H A D | surface_ipc_test.cpp | 39 static inline sptr<IConsumerSurface> cSurface = nullptr; member in OHOS::Rosen::SurfaceIPCTest 100 handleGet = cSurface->GetTunnelHandle(); in GetData() 107 auto sRet = cSurface->SetPresentTimestamp(buffer->GetSeqNum(), timestamp); in GetData() 209 cSurface = IConsumerSurface::Create("test"); 210 cSurface->RegisterConsumerListener(this); 211 auto producer = cSurface->GetProducer(); 225 auto sRet = cSurface->AcquireBuffer(buffer, fence, timestamp, damage); 230 sRet = cSurface->ReleaseBuffer(buffer, -1); 261 cSurface->RegisterConsumerListener(this); 262 auto producer = cSurface->GetProducer();
|
H A D | native_window_buffer_test.cpp | 41 static inline sptr<OHOS::IConsumerSurface> cSurface = nullptr; member in OHOS::Rosen::NativeWindowBufferTest 97 handleGet = cSurface->GetTunnelHandle(); in GetData() 228 cSurface = IConsumerSurface::Create("test"); 229 cSurface->RegisterConsumerListener(this); 230 auto producer = cSurface->GetProducer(); 244 auto ret = cSurface->AcquireBuffer(buffer, fence, timestamp, damage); 249 ret = cSurface->ReleaseBuffer(buffer, -1);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/backend/ |
H A D | rs_surface_ohos_gl_test.cpp | 94 sptr<IConsumerSurface> cSurface = IConsumerSurface::Create("DisplayNode"); variable 95 ASSERT_TRUE(cSurface != nullptr); 96 sptr<IBufferProducer> bp = cSurface->GetProducer(); 115 ASSERT_TRUE(cSurface != nullptr); 116 sptr<IBufferProducer> bp = cSurface->GetProducer(); 169 ASSERT_TRUE(cSurface != nullptr); 170 sptr<IBufferProducer> bp = cSurface->GetProducer(); 190 ASSERT_TRUE(cSurface != nullptr); 191 sptr<IBufferProducer> bp = cSurface->GetProducer(); 222 ASSERT_TRUE(cSurface != nullptr); [all …]
|
H A D | rs_surface_ohos_raster_test.cpp | 105 sptr<IConsumerSurface> cSurface = IConsumerSurface::Create("DisplayNode"); variable 106 sptr<IBufferProducer> bp = cSurface->GetProducer(); 150 sptr<IConsumerSurface> cSurface = IConsumerSurface::Create("DisplayNode"); variable 151 ASSERT_TRUE(cSurface != nullptr); 152 sptr<IBufferProducer> bp = cSurface->GetProducer();
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_surface.cpp | 34 static Surface* CastToSurface(OH_Drawing_Surface* cSurface) in CastToSurface() argument 36 return reinterpret_cast<Surface*>(cSurface); in CastToSurface() 63 OH_Drawing_Canvas* OH_Drawing_SurfaceGetCanvas(OH_Drawing_Surface* cSurface) in OH_Drawing_SurfaceGetCanvas() argument 65 Surface* surface = CastToSurface(cSurface); in OH_Drawing_SurfaceGetCanvas() 73 void OH_Drawing_SurfaceDestroy(OH_Drawing_Surface* cSurface) in OH_Drawing_SurfaceDestroy() argument 75 if (cSurface == nullptr) { in OH_Drawing_SurfaceDestroy() 79 auto it = g_surfaceMap.find(cSurface); in OH_Drawing_SurfaceDestroy()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/ |
H A D | rs_interfaces_test.cpp | 1491 ASSERT_NE(cSurface, nullptr); 1527 utils->Add(surfaceId, cSurface); 1600 ASSERT_NE(cSurface, nullptr); 1602 auto producer = cSurface->GetProducer(); 1626 ASSERT_NE(cSurface, nullptr); 1628 auto producer = cSurface->GetProducer(); 1652 ASSERT_NE(cSurface, nullptr); 1702 ASSERT_NE(cSurface, nullptr); 1772 ASSERT_NE(cSurface, nullptr); 1796 ASSERT_NE(cSurface, nullptr); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/create_pixelmap_surface/test/unittest/ |
H A D | pixel_map_from_surface_test.cpp | 52 auto cSurface = IConsumerSurface::Create(); variable 53 ASSERT_NE(cSurface, nullptr); 54 auto producer = cSurface->GetProducer();
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | egl_image_test.cpp | 34 static inline sptr<OHOS::Surface> cSurface; member in OHOS::Media::EglImageTest 37 explicit ConsumerSurfaceListener(const sptr<OHOS::Surface> &cSurface) : surface(cSurface) {} in ConsumerSurfaceListener() argument 109 cSurface = Surface::CreateSurfaceAsConsumer("imageFrameWorkEglImageTestSurface"); in SetUpTestCase() 110 consumerListener = sptr<OHOS::IBufferConsumerListener>(new ConsumerSurfaceListener(cSurface)); in SetUpTestCase() 112 if (cSurface != nullptr) { in SetUpTestCase() 113 auto producer = cSurface->GetProducer(); in SetUpTestCase() 115 cSurface->RegisterConsumerListener(consumerListener); in SetUpTestCase()
|
/ohos5.0/foundation/graphic/graphic_surface/surface/test/unittest/ |
H A D | native_buffer_test.cpp | 637 sptr<OHOS::IConsumerSurface> cSurface = IConsumerSurface::Create(); variable 639 cSurface->RegisterConsumerListener(listener); 640 sptr<OHOS::IBufferProducer> producer = cSurface->GetProducer(); 673 cSurface = nullptr; 734 sptr<OHOS::IConsumerSurface> cSurface = IConsumerSurface::Create(); variable 736 cSurface->RegisterConsumerListener(listener); 737 sptr<OHOS::IBufferProducer> producer = cSurface->GetProducer(); 779 cSurface = nullptr; 798 cSurface->RegisterConsumerListener(listener); 799 sptr<OHOS::IBufferProducer> producer = cSurface->GetProducer(); [all …]
|
H A D | native_window_test.cpp | 81 static inline sptr<OHOS::IConsumerSurface> cSurface = nullptr; member in OHOS::Rosen::NativeWindowTest 101 cSurface = IConsumerSurface::Create(); in SetUpTestCase() 103 cSurface->RegisterConsumerListener(listener); in SetUpTestCase() 104 producer = cSurface->GetProducer(); in SetUpTestCase() 119 cSurface = nullptr; in TearDownTestCase() 1890 cSurface->SetDefaultWidthAndHeight(300, 400); 1927 cSurface->SetBufferHold(false); 1941 sptr<OHOS::IConsumerSurface> cSurface = IConsumerSurface::Create(); variable 1943 cSurface->RegisterConsumerListener(listener); 1944 sptr<OHOS::IBufferProducer> producer = cSurface->GetProducer(); [all …]
|
H A D | consumer_surface_test.cpp | 1844 auto cSurface = IConsumerSurface::Create(); variable 1846 cSurface->RegisterConsumerListener(cListener); 1847 auto p = cSurface->GetProducer(); 1865 cSurface->ConsumerRequestCpuAccess(true); 1878 cSurface->ConsumerRequestCpuAccess(false); 1911 auto cSurface = IConsumerSurface::Create(); variable 1914 auto p = cSurface->GetProducer(); 1934 cSurface->ConsumerRequestCpuAccess(true); 1949 cSurface->ConsumerRequestCpuAccess(false); 2108 auto cSurface = IConsumerSurface::Create(); variable [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/ |
H A D | drawing_sample_canvaskit0310.cpp | 364 sptr<Surface> cSurface = baseCSurfaceVec_[index]; in FillBaseLayer() local 375 SurfaceError ret = cSurface->AcquireBuffer(cbuffer, fence, timestamp, damage); in FillBaseLayer() 389 showLayer->SetSurface(cSurface); in FillBaseLayer() 456 sptr<IConsumerSurface> cSurface = IConsumerSurface::Create(); in CreateBaseSurface() local 457 cSurface->SetDefaultWidthAndHeight(baseWidthVec_[index], baseHeightVec_[index]); in CreateBaseSurface() 458 … cSurface->SetDefaultUsage(BUFFER_USAGE_CPU_READ | BUFFER_USAGE_CPU_WRITE | BUFFER_USAGE_MEM_DMA); in CreateBaseSurface() 460 sptr<IBufferProducer> producer = cSurface->GetProducer(); in CreateBaseSurface() 462 cSurface->RegisterConsumerListener(this); in CreateBaseSurface() 464 baseCSurfaceVec_[index] = cSurface; in CreateBaseSurface()
|
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/graphic_adapter_test/ |
H A D | window_adapter_impl_test.cpp | 32 auto cSurface = IConsumerSurface::Create("test"); variable 33 auto producer = cSurface->GetProducer();
|
H A D | surface_adapter_impl_test.cpp | 221 auto cSurface = surfaceAdapter_->GetConsumerSurface(); variable 222 auto producer = cSurface->GetProducer(); 273 auto cSurface = surfaceAdapter->GetConsumerSurface(); variable 274 auto producer = cSurface->GetProducer();
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/create_pixelmap_surface/test/fuzztest/pixelmapfromsurface_fuzzer/ |
H A D | pixelmapfromsurface_fuzzer.cpp | 70 auto cSurface = IConsumerSurface::Create(); in DoSomethingInterestingWithMyAPI() local 71 OHOS::Rosen::CreatePixelMapFromSurface(cSurface, rect); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/hello_native_window/ |
H A D | hello_native_window.cpp | 32 sptr<OHOS::IConsumerSurface> cSurface = IConsumerSurface::Create(); in CreateNativeWindow() local 34 cSurface->RegisterConsumerListener(listener); in CreateNativeWindow() 35 sptr<OHOS::IBufferProducer> producer = cSurface->GetProducer(); in CreateNativeWindow()
|
/ohos5.0/foundation/graphic/graphic_surface/surface/test/fuzztest/surfaceutils_fuzzer/ |
H A D | surfaceutils_fuzzer.cpp | 47 sptr<OHOS::IConsumerSurface> cSurface = OHOS::IConsumerSurface::Create(); in DoSomethingInterestingWithMyAPI() local 48 sptr<OHOS::IBufferProducer> producer = cSurface->GetProducer(); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdibackend_fuzzer/ |
H A D | hdibackend_fuzzer.cpp | 87 sptr<IConsumerSurface> cSurface = IConsumerSurface::Create(); in DoSomethingInterestingWithMyAPI() local 88 layerInfoptr->SetSurface(cSurface); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/graphic/graphic_surface/surface/test/fuzztest/nativewindow_fuzzer/ |
H A D | nativewindow_fuzzer.cpp | 216 sptr<OHOS::IConsumerSurface> cSurface = IConsumerSurface::Create(); in DoSomethingInterestingWithMyAPI() local 218 cSurface->RegisterConsumerListener(listener); in DoSomethingInterestingWithMyAPI() 219 sptr<OHOS::IBufferProducer> producer = cSurface->GetProducer(); in DoSomethingInterestingWithMyAPI() 221 cSurface->SetDefaultWidthAndHeight(0x100, 0x100); // width and height is 0x100 in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/web/webview/ohos_adapter/media_adapter/src/ |
H A D | player_framework_adapter_impl.cpp | 219 …auto cSurface = std::static_pointer_cast<ConsumerSurfaceAdapterImpl>(cSurfaceAdapter)->GetConsumer… in SetVideoSurface() local 220 cSurface->SetDefaultUsage(BUFFER_USAGE_CPU_READ); in SetVideoSurface() 221 sptr<IBufferProducer> producer = cSurface->GetProducer(); in SetVideoSurface()
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/ |
H A D | camera_video.cpp | 382 sptr<IConsumerSurface> cSurface = IConsumerSurface::Create(); in main() local 383 …aceListener> videoListener = new SurfaceListener("Video", SurfaceType::VIDEO, g_videoFd, cSurface); in main() 384 cSurface->RegisterConsumerListener((sptr<IBufferConsumerListener> &)videoListener); in main() 385 sptr<IBufferProducer> videoProducer = cSurface->GetProducer(); in main()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screensinktrans/src/ |
H A D | screen_sink_trans_test.cpp | 37 sptr<IConsumerSurface> cSurface = IConsumerSurface::Create("test"); in SetUp() local 38 sptr<IBufferProducer> bp = cSurface->GetProducer(); in SetUp()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/ |
H A D | hdi_output.cpp | 549 sptr<IConsumerSurface> cSurface) -> void { in ReleaseSurfaceBuffer() argument 550 if (cSurface == nullptr) { in ReleaseSurfaceBuffer() 558 auto ret = cSurface->ReleaseBuffer(buffer, releaseFence); in ReleaseSurfaceBuffer() 595 …rPresentTimestamp = [](const LayerInfoPtr& layer, const sptr<IConsumerSurface>& cSurface) -> void { in ReleaseLayers() argument 603 …if (cSurface->SetPresentTimestamp(buffer->GetSeqNum(), layer->GetPresentTimestamp()) != GSERROR_OK… in ReleaseLayers()
|