Home
last modified time | relevance | path

Searched refs:modeId (Results 1 - 25 of 61) sorted by relevance

123

/foundation/window/window_manager/dm/src/
H A Dscreen.cpp69 auto modeId = GetModeId(); in GetWidth() local
71 if (modeId < 0 || modeId >= modes.size()) { in GetWidth()
74 return modes[modeId]->width_; in GetWidth()
80 auto modeId = GetModeId(); in GetHeight() local
82 if (modeId < 0 || modeId >= modes.size()) { in GetHeight()
85 return modes[modeId]->height_; in GetHeight()
216 DMError Screen::SetScreenActiveMode(uint32_t modeId) in SetScreenActiveMode() argument
219 if (modeId > in SetScreenActiveMode()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/
H A Dhgm_screen.cpp95 int32_t HgmScreen::AddScreenModeInfo(int32_t width, int32_t height, uint32_t rate, int32_t modeId) in AddScreenModeInfo() argument
97 if (supportedModeIds_.find(modeId) == supportedModeIds_.end()) { in AddScreenModeInfo()
98 supportedModeIds_.emplace(modeId); in AddScreenModeInfo()
107 auto newProfile = std::make_shared<ScreenProfile>(width, height, rate, modeId); in AddScreenModeInfo()
112 void HgmScreen::SetActiveModeId(int32_t modeId) in SetActiveModeId() argument
114 HGM_LOGD("HgmScreen setting activeModeId to %{public}d", modeId); in SetActiveModeId()
115 activeModeId_ = modeId; in SetActiveModeId()
127 HGM_LOGW("HgmScreen failed to get activeMode via modeId : %{public}d", id); in GetModeViaId()
162 HGM_LOGE("HgmScreen freshrate %{public}u is not supported by any modeId", rate); in GetModeIdViaRate()
H A Dhgm_screen.h113 int32_t AddScreenModeInfo(int32_t width, int32_t height, uint32_t rate, int32_t modeId);
118 ScreenProfile(int32_t width, int32_t height, uint32_t rate, int32_t modeId) in ScreenProfile() argument
119 : width_(width), height_(height), refreshrate_(rate), modeId_(modeId) {} in ScreenProfile()
174 void SetActiveModeId(int32_t modeId);
/foundation/window/window_manager/test/fuzztest/dms/screen_fuzzer/
H A Dscreen_fuzzer.cpp76 uint32_t modeId; in ScreenFuzzTest() local
78 size_t minSize = sizeof(modeId) + sizeof(orientation); in ScreenFuzzTest()
86 startPos += GetObject<uint32_t>(modeId, data + startPos, size - startPos); in ScreenFuzzTest()
88 screen->SetScreenActiveMode(modeId); in ScreenFuzzTest()
102 uint32_t modeId; in ScreenFuzzTestNoDisplay() local
106 size_t minSize = sizeof(modeId) + sizeof(orientation) + sizeof(originalDensityDpi) + in ScreenFuzzTestNoDisplay()
114 startPos += GetObject<uint32_t>(modeId, data + startPos, size - startPos); in ScreenFuzzTestNoDisplay()
116 screen->SetScreenActiveMode(modeId); in ScreenFuzzTestNoDisplay()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/
H A Dhdi_screen.cpp120 int32_t HdiScreen::GetScreenMode(uint32_t &modeId) in GetScreenMode() argument
125 modeId = modeId_; in GetScreenMode()
128 int32_t ret = device_->GetScreenMode(screenId_, modeId); in GetScreenMode()
130 modeId_ = modeId; in GetScreenMode()
135 int32_t HdiScreen::SetScreenMode(uint32_t modeId) in SetScreenMode() argument
139 int32_t ret = device_->SetScreenMode(screenId_, modeId); in SetScreenMode()
141 modeId_ = modeId; in SetScreenMode()
H A Dhdi_device_impl.cpp193 int32_t HdiDeviceImpl::GetScreenMode(uint32_t screenId, uint32_t &modeId) in GetScreenMode() argument
196 return g_composer->GetDisplayMode(screenId, modeId); in GetScreenMode()
199 int32_t HdiDeviceImpl::SetScreenMode(uint32_t screenId, uint32_t modeId) in SetScreenMode() argument
202 return g_composer->SetDisplayMode(screenId, modeId); in SetScreenMode()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/unittest/
H A Dhdiscreen_test.cpp83 uint32_t modeId = 0; in HWTEST_F() local
84 ASSERT_EQ(hdiScreen_->GetScreenMode(modeId), GRAPHIC_DISPLAY_NULL_PTR); in HWTEST_F()
85 ASSERT_EQ(hdiScreen_->SetScreenMode(modeId), GRAPHIC_DISPLAY_NULL_PTR); in HWTEST_F()
177 uint32_t modeId = 0; in HWTEST_F() local
178 ASSERT_EQ(HdiScreenTest::hdiScreen_->GetScreenMode(modeId), 0); in HWTEST_F()
191 uint32_t modeId = 0; in HWTEST_F() local
192 ASSERT_EQ(HdiScreenTest::hdiScreen_->SetScreenMode(modeId), 0); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdiscreen_fuzzer/
H A Dhdiscreen_fuzzer.cpp95 uint32_t modeId = GetData<uint32_t>(); in DoSomethingInterestingWithMyAPI() local
120 g_hdiScreen->SetScreenMode(modeId); in DoSomethingInterestingWithMyAPI()
133 g_hdiScreen->GetScreenMode(modeId); in DoSomethingInterestingWithMyAPI()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/systemtest/
H A Dhdiscreen_test.cpp74 uint32_t modeId = 0; in HWTEST_F() local
75 ASSERT_EQ(HdiScreenSysTest::hdiScreen_->SetScreenMode(modeId), 0); in HWTEST_F()
79 ASSERT_EQ(HdiScreenSysTest::hdiScreen_->GetScreenMode(modeId), 0); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include/
H A Dhdi_screen.h42 int32_t GetScreenMode(uint32_t &modeId);
43 int32_t SetScreenMode(uint32_t modeId);
69 uint32_t modeId_ = UINT32_MAX; // UINT32_MAX is invalid modeId
H A Dhdi_device_impl.h39 int32_t GetScreenMode(uint32_t screenId, uint32_t &modeId) override;
40 int32_t SetScreenMode(uint32_t screenId, uint32_t modeId) override;
H A Dhdi_device.h42 virtual int32_t GetScreenMode(uint32_t screenId, uint32_t &modeId) = 0;
43 virtual int32_t SetScreenMode(uint32_t screenId, uint32_t modeId) = 0;
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/screen_manager/
H A Drs_screen.cpp275 void RSScreen::SetActiveMode(uint32_t modeId) in SetActiveMode() argument
286 if (modeId >= supportedModes_.size()) { in SetActiveMode()
290 RS_LOGD_IF(DEBUG_SCREEN, "RSScreen set active mode: %{public}u", modeId); in SetActiveMode()
291 int32_t selectModeId = supportedModes_[modeId].id; in SetActiveMode()
345 int32_t RSScreen::GetActiveModePosByModeId(int32_t modeId) const in GetActiveModePosByModeId()
349 if (supportedModes_[modeIndex].id == modeId) { in GetActiveModePosByModeId()
390 uint32_t modeId = 0; in GetActiveMode() local
398 if (hdiScreen_->GetScreenMode(modeId) < 0) { in GetActiveMode()
405 [modeId](const auto &mode) { return static_cast<uint32_t>(mode.id) == modeId; }); in GetActiveMode()
[all...]
H A Drs_screen.h59 virtual void SetActiveMode(uint32_t modeId) = 0;
88 virtual int32_t GetActiveModePosByModeId(int32_t modeId) const = 0;
143 void SetActiveMode(uint32_t modeId) override;
173 int32_t GetActiveModePosByModeId(int32_t modeId) const override;
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/screen_manager/
H A Drs_screen_test.cpp219 uint32_t modeId = static_cast<uint32_t>(1); in HWTEST_F() local
220 virtualScreen->SetActiveMode(modeId); in HWTEST_F()
346 int32_t modeId = 0; in HWTEST_F() local
348 auto res = virtualScreen->GetActiveModePosByModeId(modeId); in HWTEST_F()
675 * @tc.desc: SetActiveMode Test, IsVirtual() is false, modeId >= supportedModes_.size()
688 uint32_t modeId = 5; in HWTEST_F() local
690 rsScreen->SetActiveMode(modeId); in HWTEST_F()
695 * @tc.desc: SetActiveMode Test, IsVirtual() is false, modeId < supportedModes_.size(),
709 uint32_t modeId = 1; in HWTEST_F() local
713 rsScreen->SetActiveMode(modeId); in HWTEST_F()
745 uint32_t modeId = supportedModesSize - 1; HWTEST_F() local
780 uint32_t modeId = supportedModesSize - 1; HWTEST_F() local
815 uint32_t modeId = supportedModesSize - 1; HWTEST_F() local
850 int32_t modeId = 0; HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/screenmanager/
H A Drs_screen_unit_test.cpp201 uint32_t modeId = static_cast<uint32_t>(1); in HWTEST_F() local
202 virtualScreen->SetActiveMode(modeId); in HWTEST_F()
362 int32_t modeId = 0; in HWTEST_F() local
364 auto res = virtualScreen->GetActiveModePosByModeId(modeId); in HWTEST_F()
675 * @tc.desc: SetActiveMode Test, IsVirtual() is false, modeId < supportedModes_.size(),
689 uint32_t modeId = 1; in HWTEST_F() local
693 rsScreen->SetActiveMode(modeId); in HWTEST_F()
698 * @tc.desc: SetActiveMode Test, IsVirtual() is false, modeId >= supportedModes_.size()
711 uint32_t modeId = 5; in HWTEST_F() local
713 rsScreen->SetActiveMode(modeId); in HWTEST_F()
745 uint32_t modeId = supportedModesSize - 1; HWTEST_F() local
780 uint32_t modeId = supportedModesSize - 1; HWTEST_F() local
815 uint32_t modeId = supportedModesSize - 1; HWTEST_F() local
872 int32_t modeId = 0; HWTEST_F() local
[all...]
/foundation/window/window_manager/interfaces/kits/napi/screen_runtime/napi/
H A Djs_screen.cpp159 uint32_t modeId = 0; in OnSetScreenActiveMode() local
169 if (!ConvertFromJsValue(env, argv[0], modeId)) { in OnSetScreenActiveMode()
170 WLOGFE("Failed to convert parameter to modeId"); in OnSetScreenActiveMode()
171 errMsg = "Failed to convert parameter to modeId"; in OnSetScreenActiveMode()
187 auto asyncTask = [this, modeId, env, task = napiAsyncTask.get()]() { in OnSetScreenActiveMode()
189 DmErrorCode ret = DM_JS_TO_ERROR_CODE_MAP.at(screen_->SetScreenActiveMode(modeId)); in OnSetScreenActiveMode()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
H A Dhal_device_manage_test.h161 virtual int32_t GetCurrentMode(uint32_t& modeId) in GetCurrentMode() argument
213 virtual int32_t SetChipMode(uint32_t modeId) in SetChipMode() argument
/foundation/window/window_manager/utils/include/
H A Dscreen_info.h55 DEFINE_VAR_DEFAULT_FUNC_GET_SET(uint32_t, ModeId, modeId, 0);
/foundation/window/window_manager/wmserver/src/zidl/
H A Dwindow_manager_stub.cpp497 uint32_t modeId = 0; in OnRemoteRequest() local
498 if (!data.ReadUint32(modeId) || modeId >= static_cast<uint32_t>(MaximizeMode::MODE_END)) { in OnRemoteRequest()
501 MaximizeMode maximizeMode = static_cast<MaximizeMode>(modeId); in OnRemoteRequest()
/foundation/window/window_manager/interfaces/innerkits/dm/
H A Dscreen.h146 * @param modeId Mode id.
149 DMError SetScreenActiveMode(uint32_t modeId);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsinterfaces_fuzzer/
H A Drsinterfaces_fuzzer.cpp80 uint32_t modeId = GetData<uint32_t>(); in RSPhysicalScreenFuzzTest() local
103 rsInterfaces.SetScreenActiveMode(static_cast<ScreenId>(id), modeId); in RSPhysicalScreenFuzzTest() local
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/
H A Drs_screen_skipframe_test.cpp45 uint32_t ConvertScreenModeToRefreshRate(int32_t modeId) in ConvertScreenModeToRefreshRate() argument
48 switch (modeId) { in ConvertScreenModeToRefreshRate()
49 case 0: // modeId 0 means 120hz in ConvertScreenModeToRefreshRate()
50 refreshRate = 120; // modeId 0 means 120hz in ConvertScreenModeToRefreshRate()
52 case 1: // modeId 1 means 90hz in ConvertScreenModeToRefreshRate()
53 refreshRate = 90; // modeId 1 means 90hz in ConvertScreenModeToRefreshRate()
55 case 2: // modeId 2 means 60hz in ConvertScreenModeToRefreshRate()
56 refreshRate = 60; // modeId 2 means 60hz in ConvertScreenModeToRefreshRate()
58 case 3: // modeId 3 means 30hz in ConvertScreenModeToRefreshRate()
59 refreshRate = 30; // modeId in ConvertScreenModeToRefreshRate()
[all...]
/foundation/window/window_manager/dmserver/include/
H A Ddisplay_manager_proxy.h93 DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId) override;
/foundation/window/window_manager/test/common/mock/
H A Dmock_display_manager_adapter.h68 MOCK_METHOD2(SetScreenActiveMode, DMError(ScreenId screenId, uint32_t modeId));

Completed in 16 milliseconds

123