Home
last modified time | relevance | path

Searched refs:SetScreenColorGamut (Results 1 - 25 of 72) sorted by relevance

123

/foundation/window/window_manager/test/systemtest/dms/
H A Dscreen_gamut_test.cpp90 * @tc.desc: gamut SetScreenColorGamut, valid index
109 ret = defaultScreen_->SetScreenColorGamut(i); in HWTEST_F()
124 ret = defaultScreen_->SetScreenColorGamut(colorGamutBackupIdx); // restore in HWTEST_F()
130 * @tc.desc: gamut SetScreenColorGamut, invalid index < 0
144 ret = defaultScreen_->SetScreenColorGamut(invalidColorGamutIndex); in HWTEST_F()
155 * @tc.desc: gamut SetScreenColorGamut, invalid index >= size
173 ret = defaultScreen_->SetScreenColorGamut(invalidColorGamutIndex); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/unittest/
H A Dhdiscreen_test.cpp52 EXPECT_CALL(*mockDevice_, SetScreenColorGamut(_, _)).WillRepeatedly(testing::Return(0)); in SetUpTestCase()
100 ASSERT_EQ(hdiScreen_->SetScreenColorGamut(gamut), GRAPHIC_DISPLAY_NULL_PTR); in HWTEST_F()
314 * CaseDescription: 1. call SetScreenColorGamut
320 ASSERT_EQ(HdiScreenTest::hdiScreen_->SetScreenColorGamut(colorGamut), 0); in HWTEST_F()
H A Dmock_hdi_device.h57 MOCK_METHOD2(SetScreenColorGamut, int32_t(uint32_t, GraphicColorGamut));
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/
H A Dhdi_screen.cpp196 int32_t HdiScreen::SetScreenColorGamut(GraphicColorGamut gamut) const in SetScreenColorGamut() function in OHOS::Rosen::HdiScreen
199 return device_->SetScreenColorGamut(screenId_, gamut); in SetScreenColorGamut()
/foundation/window/window_manager/dm/src/
H A Dscreen.cpp139 DMError Screen::SetScreenColorGamut(int32_t colorGamutIdx) in SetScreenColorGamut() function in OHOS::Rosen::Screen
141 return SingletonContainer::Get<ScreenManagerAdapter>().SetScreenColorGamut(GetId(), colorGamutIdx); in SetScreenColorGamut()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include/
H A Dhdi_screen.h52 int32_t SetScreenColorGamut(GraphicColorGamut gamut) const;
/foundation/window/window_manager/dmserver/test/unittest/
H A Ddisplay_manager_service_test.cpp282 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetScreenColorGamut(SCREEN_ID_INVALID, colorGamut)); in HWTEST_F()
283 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetScreenColorGamut(0, colorGamut)); in HWTEST_F()
285 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetScreenColorGamut(SCREEN_ID_INVALID, 0)); in HWTEST_F()
286 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetScreenColorGamut(0, 0)); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdiscreen_fuzzer/
H A Dhdiscreen_fuzzer.cpp127 g_hdiScreen->SetScreenColorGamut(gamut); in DoSomethingInterestingWithMyAPI()
/foundation/window/window_manager/interfaces/innerkits/dm/
H A Dscreen.h205 DMError SetScreenColorGamut(int32_t colorGamutIdx);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/screen_manager/
H A Drs_screen_test.cpp176 * @tc.desc: SetScreenColorGamut Test
184 rsScreen->SetScreenColorGamut(static_cast<int32_t>(1000)); in HWTEST_F()
187 ASSERT_EQ(virtualScreen->SetScreenColorGamut(static_cast<int32_t>(1000)), INVALID_ARGUMENTS); in HWTEST_F()
1135 * @tc.desc: SetScreenColorGamut Test, when modeIdx < 0, expect INVALID_ARGUMENTS
1146 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeIdx), StatusCode::INVALID_ARGUMENTS); in HWTEST_F()
1151 * @tc.desc: SetScreenColorGamut Test, trigger branch: modeIdx >= hdiMode.size(), expect INVALID_ARGUMENTS
1176 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeIdx), StatusCode::INVALID_ARGUMENTS); in HWTEST_F()
1181 * @tc.desc: SetScreenColorGamut Test, not virtual, expect SUCCESS.
1207 EXPECT_CALL(*hdiDeviceMock_, SetScreenColorGamut(_, _)).Times(1).WillOnce(testing::Return(GRAPHIC_DISPLAY_SUCCESS)); in HWTEST_F()
1208 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeId in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/screenmanager/
H A Drs_screen_unit_test.cpp176 * @tc.desc: SetScreenColorGamut Test
184 rsScreen->SetScreenColorGamut(static_cast<int32_t>(1000)); in HWTEST_F()
187 ASSERT_EQ(virtualScreen->SetScreenColorGamut(static_cast<int32_t>(1000)), INVALID_ARGUMENTS); in HWTEST_F()
1135 * @tc.desc: SetScreenColorGamut Test, when modeIdx < 0, expect INVALID_ARGUMENTS
1146 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeIdx), StatusCode::INVALID_ARGUMENTS); in HWTEST_F()
1151 * @tc.desc: SetScreenColorGamut Test, trigger branch: modeIdx >= hdiMode.size(), expect INVALID_ARGUMENTS
1176 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeIdx), StatusCode::INVALID_ARGUMENTS); in HWTEST_F()
1181 * @tc.desc: SetScreenColorGamut Test, not virtual, expect SUCCESS.
1207 EXPECT_CALL(*hdiDeviceMock_, SetScreenColorGamut(_, _)).Times(1).WillOnce(testing::Return(GRAPHIC_DISPLAY_SUCCESS)); in HWTEST_F()
1208 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeId in HWTEST_F()
[all...]
/foundation/window/window_manager/dmserver/include/
H A Dabstract_screen.h65 DMError SetScreenColorGamut(int32_t colorGamutIdx);
H A Ddisplay_manager_proxy.h53 DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) override;
H A Dabstract_screen_controller.h83 DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx);
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/screen_manager/
H A Drs_screen.h84 virtual int32_t SetScreenColorGamut(int32_t modeIdx) = 0;
168 int32_t SetScreenColorGamut(int32_t modeIdx) override;
H A Drs_screen.cpp767 int32_t RSScreen::SetScreenColorGamut(int32_t modeIdx) in SetScreenColorGamut() function in OHOS::Rosen::impl::RSScreen
790 int32_t result = hdiScreen_->SetScreenColorGamut(hdiMode[modeIdx]); in SetScreenColorGamut()
1028 int32_t result = hdiScreen_->SetScreenColorGamut(hdiMode[curIdx]); in SetScreenColorSpace()
/foundation/window/window_manager/dm/test/unittest/
H A Dscreen_test.cpp145 * @tc.desc: SetScreenColorGamut
151 EXPECT_CALL(m->Mock(), SetScreenColorGamut(_, _)).Times(1).WillOnce(Return(DMError::DM_OK)); in HWTEST_F()
153 auto res = screen_->SetScreenColorGamut(colorGamut); in HWTEST_F()
H A Ddisplay_manager_adapter_test.cpp93 * @tc.name: SetScreenColorGamut
97 HWTEST_F(DisplayManagerAdapterTest, SetScreenColorGamut, Function | SmallTest | Level2) in HWTEST_F()
100 DMError err = SingletonContainer::Get<ScreenManagerAdapter>().SetScreenColorGamut(0, -1); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/mock/
H A Dmock_hdi_device.h56 MOCK_METHOD2(SetScreenColorGamut, int32_t(uint32_t, GraphicColorGamut));
/foundation/window/window_manager/test/common/mock/
H A Dmock_display_manager_adapter.h75 MOCK_METHOD2(SetScreenColorGamut, DMError(ScreenId screenId, int32_t colorGamutIdx));
/foundation/window/window_manager/test/fuzztest/dms/screen_fuzzer/
H A Dscreen_fuzzer.cpp143 screen->SetScreenColorGamut(index); in ColorGamutsFuzzTest()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/systemtest/
H A Dmock_hdi_device_systest.h57 MOCK_METHOD2(SetScreenColorGamut, int32_t(uint32_t, GraphicColorGamut));
/foundation/window/window_manager/dmserver/src/
H A Dabstract_screen.cpp297 DMError AbstractScreen::SetScreenColorGamut(int32_t colorGamutIdx) in SetScreenColorGamut() function in OHOS::Rosen::AbstractScreen
302 WLOGE("SetScreenColorGamut fail! rsId %{public}" PRIu64"", rsId_); in SetScreenColorGamut()
306 WLOGE("SetScreenColorGamut fail! rsId %{public}" PRIu64" colorGamutIdx %{public}d invalid.", in SetScreenColorGamut()
310 auto ret = RSInterfaces::GetInstance().SetScreenColorGamut(rsId_, colorGamutIdx); in SetScreenColorGamut()
312 WLOGE("SetScreenColorGamut fail! rsId %{public}" PRIu64"", rsId_); in SetScreenColorGamut()
315 WLOGI("SetScreenColorGamut ok! rsId %{public}" PRIu64", colorGamutIdx %{public}u", in SetScreenColorGamut()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/transaction/
H A Drs_interfaces.h174 int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsinterfaces_fuzzer/
H A Drsinterfaces_fuzzer.cpp106 rsInterfaces.SetScreenColorGamut(static_cast<ScreenId>(id), modeIdx); in RSPhysicalScreenFuzzTest()

Completed in 17 milliseconds

123