/foundation/window/window_manager/test/systemtest/dms/ |
H A D | display_change_test.cpp | 261 for (uint32_t modeIdx = 0; modeIdx < modes.size(); modeIdx++) { in HWTEST_F() 262 if (modeIdx != usedModeIdx && CheckModeSizeChange(modes[usedModeIdx], modes[modeIdx])) { in HWTEST_F() 263 defaultScreen_->SetScreenActiveMode(modeIdx); in HWTEST_F() 264 WLOGI("SetScreenActiveMode: %{public}u -> %{public}u", usedModeIdx, modeIdx); in HWTEST_F() 265 ASSERT_EQ(true, ScreenSizeEqual(defaultScreen_, modes[modeIdx])); in HWTEST_F() 288 for (uint32_t modeIdx = 0; modeIdx < mode in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/screen_manager/ |
H A D | rs_screen.cpp | 767 int32_t RSScreen::SetScreenColorGamut(int32_t modeIdx)
in SetScreenColorGamut() argument 769 if (modeIdx < 0) {
in SetScreenColorGamut() 773 if (modeIdx >= static_cast<int32_t>(supportedVirtualColorGamuts_.size())) {
in SetScreenColorGamut() 776 currentVirtualColorGamutIdx_ = modeIdx;
in SetScreenColorGamut() 787 if (modeIdx >= static_cast<int32_t>(hdiMode.size())) {
in SetScreenColorGamut() 790 int32_t result = hdiScreen_->SetScreenColorGamut(hdiMode[modeIdx]);
in SetScreenColorGamut() 792 currentPhysicalColorGamutIdx_ = modeIdx;
in SetScreenColorGamut() 934 int32_t RSScreen::SetScreenHDRFormat(int32_t modeIdx)
in SetScreenHDRFormat() argument 936 if (modeIdx < 0) {
in SetScreenHDRFormat() 940 if (modeIdx > in SetScreenHDRFormat() [all...] |
H A D | rs_screen.h | 84 virtual int32_t SetScreenColorGamut(int32_t modeIdx) = 0;
99 virtual int32_t SetScreenHDRFormat(int32_t modeIdx) = 0;
168 int32_t SetScreenColorGamut(int32_t modeIdx) override;
183 int32_t SetScreenHDRFormat(int32_t modeIdx) override;
|
H A D | rs_screen_manager.h | 162 virtual int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx) = 0;
182 virtual int32_t SetScreenHDRFormat(ScreenId id, int32_t modeIdx) = 0;
369 int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx) override;
391 int32_t SetScreenHDRFormat(ScreenId id, int32_t modeIdx) override;
484 int32_t SetScreenColorGamutLocked(ScreenId id, int32_t modeIdx);
495 int32_t SetScreenHDRFormatLocked(ScreenId id, int32_t modeIdx);
|
H A D | rs_screen_manager.cpp | 1731 int32_t RSScreenManager::SetScreenColorGamutLocked(ScreenId id, int32_t modeIdx)
in SetScreenColorGamutLocked() argument 1738 return screensIt->second->SetScreenColorGamut(modeIdx);
in SetScreenColorGamutLocked() 1898 int32_t RSScreenManager::SetScreenHDRFormatLocked(ScreenId id, int32_t modeIdx)
in SetScreenHDRFormatLocked() argument 1905 return screensIt->second->SetScreenHDRFormat(modeIdx);
in SetScreenHDRFormatLocked() 1994 int32_t RSScreenManager::SetScreenColorGamut(ScreenId id, int32_t modeIdx)
in SetScreenColorGamut() argument 1997 return SetScreenColorGamutLocked(id, modeIdx);
in SetScreenColorGamut() 2060 int32_t RSScreenManager::SetScreenHDRFormat(ScreenId id, int32_t modeIdx)
in SetScreenHDRFormat() argument 2063 return SetScreenHDRFormatLocked(id, modeIdx);
in SetScreenHDRFormat()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/screen_manager/ |
H A D | rs_screen_test.cpp | 1135 * @tc.desc: SetScreenColorGamut Test, when modeIdx < 0, expect INVALID_ARGUMENTS 1145 int32_t modeIdx = -1; in HWTEST_F() local 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 1163 // modeIdx >=0 in HWTEST_F() 1164 int32_t modeIdx = 2; in HWTEST_F() local 1168 // modeIdx >= static_cast<int32_t>(hdiMode.size()) in HWTEST_F() 1171 .WillOnce([modeIdx](uint32_t, std::vector<GraphicColorGamut>& gamuts) { in HWTEST_F() 1172 gamuts.resize(modeIdx - 1); in HWTEST_F() 1176 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeIdx), StatusCod in HWTEST_F() 1194 int32_t modeIdx = 2; HWTEST_F() local 1226 int32_t modeIdx = 2; HWTEST_F() local 1381 int32_t modeIdx = -1; HWTEST_F() local 1398 int32_t modeIdx = 1; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/screenmanager/ |
H A D | rs_screen_unit_test.cpp | 1135 * @tc.desc: SetScreenColorGamut Test, when modeIdx < 0, expect INVALID_ARGUMENTS 1145 int32_t modeIdx = -1; in HWTEST_F() local 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 1163 // modeIdx >=0 in HWTEST_F() 1164 int32_t modeIdx = 2; in HWTEST_F() local 1168 // modeIdx >= static_cast<int32_t>(hdiMode.size()) in HWTEST_F() 1171 .WillOnce([modeIdx](uint32_t, std::vector<GraphicColorGamut>& gamuts) { in HWTEST_F() 1172 gamuts.resize(modeIdx - 1); in HWTEST_F() 1176 ASSERT_EQ(rsScreen->SetScreenColorGamut(modeIdx), StatusCod in HWTEST_F() 1194 int32_t modeIdx = 2; HWTEST_F() local 1226 int32_t modeIdx = 2; HWTEST_F() local 1381 int32_t modeIdx = -1; HWTEST_F() local 1398 int32_t modeIdx = 1; HWTEST_F() local [all...] |
/foundation/window/window_manager/dm/src/ |
H A D | screen.cpp | 179 DMError Screen::SetScreenHDRFormat(int32_t modeIdx)
in SetScreenHDRFormat() argument 181 return SingletonContainer::Get<ScreenManagerAdapter>().SetScreenHDRFormat(GetId(), modeIdx);
in SetScreenHDRFormat()
|
/foundation/window/window_manager/interfaces/innerkits/dm/ |
H A D | screen.h | 281 DMError SetScreenHDRFormat(int32_t modeIdx);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/transaction/ |
H A D | rs_interfaces.h | 174 int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx);
192 int32_t SetScreenHDRFormat(ScreenId id, int32_t modeIdx);
|
H A D | rs_interfaces.cpp | 457 int32_t RSInterfaces::SetScreenColorGamut(ScreenId id, int32_t modeIdx)
in SetScreenColorGamut() argument 459 return renderServiceClient_->SetScreenColorGamut(id, modeIdx);
in SetScreenColorGamut() 523 int32_t RSInterfaces::SetScreenHDRFormat(ScreenId id, int32_t modeIdx)
in SetScreenHDRFormat() argument 525 return renderServiceClient_->SetScreenHDRFormat(id, modeIdx);
in SetScreenHDRFormat()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsinterfaces_fuzzer/ |
H A D | rsinterfaces_fuzzer.cpp | 83 int32_t modeIdx = GetData<uint32_t>(); in RSPhysicalScreenFuzzTest() local 106 rsInterfaces.SetScreenColorGamut(static_cast<ScreenId>(id), modeIdx); in RSPhysicalScreenFuzzTest() local
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/ |
H A D | rs_render_service_connection_proxy_test.cpp | 630 int32_t modeIdx = 7; in HWTEST_F() local 631 proxy->SetScreenColorGamut(id, modeIdx); in HWTEST_F() 702 int32_t modeIdx = 1; in HWTEST_F() local 703 ASSERT_EQ(proxy->SetScreenHDRFormat(id, modeIdx), 2); in HWTEST_F()
|
H A D | rs_render_service_client_test.cpp | 746 int32_t modeIdx = 0; in HWTEST_F() local 747 int ret = rsClient->SetScreenColorGamut(virtualScreenId, modeIdx); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/ohos/ |
H A D | rs_irender_service_connection.h | 191 virtual int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx) = 0; 215 virtual int32_t SetScreenHDRFormat(ScreenId id, int32_t modeIdx) = 0;
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_render_service_connection_proxy.h | 163 int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx) override; 187 int32_t SetScreenHDRFormat(ScreenId id, int32_t modeIdx) override;
|
H A D | rs_render_service_client.cpp | 840 int32_t RSRenderServiceClient::SetScreenColorGamut(ScreenId id, int32_t modeIdx) in SetScreenColorGamut() argument 846 return renderService->SetScreenColorGamut(id, modeIdx); in SetScreenColorGamut() 954 int32_t RSRenderServiceClient::SetScreenHDRFormat(ScreenId id, int32_t modeIdx) in SetScreenHDRFormat() argument 960 return renderService->SetScreenHDRFormat(id, modeIdx); in SetScreenHDRFormat()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_render_service_connection.h | 188 int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx) override; 212 int32_t SetScreenHDRFormat(ScreenId id, int32_t modeIdx) override;
|
H A D | rs_render_service_connection.cpp | 1290 int32_t RSRenderServiceConnection::SetScreenColorGamut(ScreenId id, int32_t modeIdx) 1298 [=]() { return screenManager_->SetScreenColorGamut(id, modeIdx); }).get(); 1301 [=]() { return screenManager_->SetScreenColorGamut(id, modeIdx); }).get(); 1449 int32_t RSRenderServiceConnection::SetScreenHDRFormat(ScreenId id, int32_t modeIdx) 1457 [=]() { return screenManager_->SetScreenHDRFormat(id, modeIdx); }).get(); 1460 [=]() { return screenManager_->SetScreenHDRFormat(id, modeIdx); }).get();
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/ |
H A D | rs_render_service_client.cpp | 326 int32_t RSRenderServiceClient::SetScreenColorGamut(ScreenId id, int32_t modeIdx) in SetScreenColorGamut() argument 386 int32_t RSRenderServiceClient::SetScreenHDRFormat(ScreenId id, int32_t modeIdx) in SetScreenHDRFormat() argument
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/transaction/ |
H A D | rs_render_service_client.h | 248 int32_t SetScreenColorGamut(ScreenId id, int32_t modeIdx);
272 int32_t SetScreenHDRFormat(ScreenId id, int32_t modeIdx);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/ |
H A D | rs_render_service_client.cpp | 326 int32_t RSRenderServiceClient::SetScreenColorGamut(ScreenId id, int32_t modeIdx) in SetScreenColorGamut() argument 386 int32_t RSRenderServiceClient::SetScreenHDRFormat(ScreenId id, int32_t modeIdx) in SetScreenHDRFormat() argument
|
/foundation/window/window_manager/dmserver/include/ |
H A D | display_manager_proxy.h | 62 DMError SetScreenHDRFormat(ScreenId screenId, int32_t modeIdx) override;
|
/foundation/window/window_manager/test/common/mock/ |
H A D | mock_display_manager_adapter.h | 85 MOCK_METHOD2(SetScreenHDRFormat, DMError(ScreenId screenId, int32_t modeIdx));
|
/foundation/window/window_manager/window_scene/session/screen/src/ |
H A D | screen_session.cpp | 1073 DMError ScreenSession::SetScreenHDRFormat(int32_t modeIdx) in SetScreenHDRFormat() argument 1081 if (modeIdx < 0 || modeIdx >= static_cast<int32_t>(hdrFormats.size())) { in SetScreenHDRFormat() 1082 WLOGE("SetScreenHDRFormat fail! rsId %{public}" PRIu64 " modeIdx %{public}d invalid.", in SetScreenHDRFormat() 1083 rsId_, modeIdx); in SetScreenHDRFormat() 1086 auto ret = RSInterfaces::GetInstance().SetScreenHDRFormat(rsId_, modeIdx); in SetScreenHDRFormat() 1091 WLOGI("SetScreenHDRFormat ok! rsId %{public}" PRIu64 ", modeIdx %{public}d", in SetScreenHDRFormat() 1092 rsId_, modeIdx); in SetScreenHDRFormat()
|