Home
last modified time | relevance | path

Searched refs:fullScreenLayout (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/
H A Dvideo_full_screen_pattern.cpp127 auto fullScreenLayout = fullScreenNode->GetLayoutProperty<VideoLayoutProperty>(); in UpdateState() local
131 …if (videoLayout->HasObjectFit() && (fullScreenLayout->GetObjectFit() != videoLayout->GetObjectFit(… in UpdateState()
132 fullScreenLayout->UpdateObjectFit(videoLayout->GetObjectFit().value()); in UpdateState()
134 …if (videoLayout->HasVideoSource() && (fullScreenLayout->GetVideoSource() != videoLayout->GetVideoS… in UpdateState()
135 fullScreenLayout->UpdateVideoSource(videoLayout->GetVideoSource().value()); in UpdateState()
138 (fullScreenLayout->GetPosterImageInfo() != videoLayout->GetPosterImageInfo())) { in UpdateState()
139 fullScreenLayout->UpdatePosterImageInfo(videoLayout->GetPosterImageInfo().value()); in UpdateState()
141 …if (videoLayout->HasControls() && (fullScreenLayout->GetControls() != videoLayout->GetControls()))… in UpdateState()
142 fullScreenLayout->UpdateControls(videoLayout->GetControls().value()); in UpdateState()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/video/
H A Dvideo_property_test_ng.cpp493 auto fullScreenLayout = fullScreenPattern->CreateLayoutAlgorithm(); variable
841 auto fullScreenLayout = fullScreenNode->GetLayoutProperty<VideoLayoutProperty>(); variable
842 ASSERT_NE(fullScreenLayout, nullptr);
849 fullScreenLayout->UpdateObjectFit(ImageFit::CONTAIN);
854 fullScreenLayout->UpdateVideoSource(videoSrcInfo);
856 fullScreenLayout->UpdatePosterImageInfo(ImageSourceInfo(""));
858 fullScreenLayout->UpdateControls(false);
860 EXPECT_EQ(fullScreenLayout->GetObjectFit().value(), ImageFit::COVER);
861 EXPECT_EQ(fullScreenLayout->GetVideoSource().value().GetSrc(), VIDEO_SRC);
862 EXPECT_EQ(fullScreenLayout->GetPosterImageInfo().value(), ImageSourceInfo(VIDEO_POSTER_URL));
[all …]