/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include/ |
D | hdi_device.h | 34 …virtual int32_t RegScreenVBlankCallback(uint32_t screenId, VBlankCallback callback, void *data) = … 36 virtual int32_t GetScreenCapability(uint32_t screenId, GraphicDisplayCapability &info) = 0; 37 …virtual int32_t GetScreenSupportedModes(uint32_t screenId, std::vector<GraphicDisplayModeInfo> &mo… 38 virtual int32_t GetScreenMode(uint32_t screenId, uint32_t &modeId) = 0; 39 virtual int32_t SetScreenMode(uint32_t screenId, uint32_t modeId) = 0; 40 virtual int32_t GetScreenPowerStatus(uint32_t screenId, GraphicDispPowerStatus &status) = 0; 41 virtual int32_t SetScreenPowerStatus(uint32_t screenId, GraphicDispPowerStatus status) = 0; 42 virtual int32_t GetScreenBacklight(uint32_t screenId, uint32_t &level) = 0; 43 virtual int32_t SetScreenBacklight(uint32_t screenId, uint32_t level) = 0; 44 virtual int32_t PrepareScreenLayers(uint32_t screenId, bool &needFlushFb) = 0; [all …]
|
D | hdi_device_impl.h | 32 … int32_t RegScreenVBlankCallback(uint32_t screenId, VBlankCallback callback, void *data) override; 34 int32_t GetScreenCapability(uint32_t screenId, GraphicDisplayCapability &info) override; 35 …int32_t GetScreenSupportedModes(uint32_t screenId, std::vector<GraphicDisplayModeInfo> &modes) ove… 36 int32_t GetScreenMode(uint32_t screenId, uint32_t &modeId) override; 37 int32_t SetScreenMode(uint32_t screenId, uint32_t modeId) override; 38 int32_t GetScreenPowerStatus(uint32_t screenId, GraphicDispPowerStatus &status) override; 39 int32_t SetScreenPowerStatus(uint32_t screenId, GraphicDispPowerStatus status) override; 40 int32_t GetScreenBacklight(uint32_t screenId, uint32_t &level) override; 41 int32_t SetScreenBacklight(uint32_t screenId, uint32_t level) override; 42 int32_t PrepareScreenLayers(uint32_t screenId, bool &needFlushFb) override; [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/unittest/ |
D | hdidevice_test.cpp | 54 uint32_t screenId = 1, screenModeId = 0, screenLightLevel = 0; variable 55 ASSERT_EQ(HdiDeviceTest::hdiDevice_->RegScreenVBlankCallback(screenId, nullptr, nullptr), 58 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->SetScreenVsyncEnabled(screenId, enabled), GRAPHIC_DISPLAY_SUC… 60 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->GetScreenCapability(screenId, dcpInfo), GRAPHIC_DISPLAY_SUCCE… 62 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->GetScreenSupportedModes(screenId, dmodes), GRAPHIC_DISPLAY_SU… 63 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->GetScreenMode(screenId, screenModeId), GRAPHIC_DISPLAY_SUCCES… 64 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->SetScreenMode(screenId, screenModeId), GRAPHIC_DISPLAY_SUCCES… 66 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->GetScreenPowerStatus(screenId, dstatus), GRAPHIC_DISPLAY_SUCC… 67 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->SetScreenPowerStatus(screenId, dstatus), GRAPHIC_DISPLAY_SUCC… 68 …ASSERT_EQ(HdiDeviceTest::hdiDevice_->GetScreenBacklight(screenId, screenLightLevel), GRAPHIC_DISPL… [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/ |
D | rs_interfaces_test.cpp | 58 auto screenId = rsInterfaces->GetDefaultScreenId(); variable 59 EXPECT_NE(screenId, INVALID_SCREEN_ID); 62 int ret = rsInterfaces->GetScreenHDRCapability(screenId, hdrCapability); 93 auto screenId = rsInterfaces->GetDefaultScreenId(); variable 94 EXPECT_NE(screenId, INVALID_SCREEN_ID); 97 int ret = rsInterfaces->GetScreenType(screenId, type); 308 auto screenId = rsInterfaces->GetDefaultScreenId(); variable 309 EXPECT_NE(screenId, INVALID_SCREEN_ID); 311 auto supportedScreenModes = rsInterfaces->GetScreenSupportedModes(screenId); 339 auto screenId = rsInterfaces->GetDefaultScreenId(); variable [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/ |
D | hdi_device_impl.cpp | 97 int32_t HdiDeviceImpl::RegScreenVBlankCallback(uint32_t screenId, VBlankCallback callback, void *da… in RegScreenVBlankCallback() argument 100 return g_composer->RegDisplayVBlankCallback(screenId, callback, data); in RegScreenVBlankCallback() 103 int32_t HdiDeviceImpl::SetScreenVsyncEnabled(uint32_t screenId, bool enabled) in SetScreenVsyncEnabled() argument 106 return g_composer->SetDisplayVsyncEnabled(screenId, enabled); in SetScreenVsyncEnabled() 109 int32_t HdiDeviceImpl::GetScreenCapability(uint32_t screenId, GraphicDisplayCapability &info) in GetScreenCapability() argument 113 int32_t ret = g_composer->GetDisplayCapability(screenId, hdiInfo); in GetScreenCapability() 137 int32_t HdiDeviceImpl::GetScreenSupportedModes(uint32_t screenId, std::vector<GraphicDisplayModeInf… in GetScreenSupportedModes() argument 141 int32_t ret = g_composer->GetDisplaySupportedModes(screenId, hdiModes); in GetScreenSupportedModes() 161 int32_t HdiDeviceImpl::GetScreenMode(uint32_t screenId, uint32_t &modeId) in GetScreenMode() argument 164 return g_composer->GetDisplayMode(screenId, modeId); in GetScreenMode() [all …]
|
D | hdi_backend.cpp | 174 .screenId = output->GetScreenId(), in OnPrepareComplete() 193 void HdiBackend::OnHdiBackendHotPlugEvent(uint32_t screenId, bool connected, void *data) in OnHdiBackendHotPlugEvent() argument 195 HLOGI("HotPlugEvent, screenId is %{public}u, connected is %{public}u", screenId, connected); in OnHdiBackendHotPlugEvent() 203 hdiBackend->OnHdiBackendConnected(screenId, connected); in OnHdiBackendHotPlugEvent() 206 void HdiBackend::OnHdiBackendConnected(uint32_t screenId, bool connected) in OnHdiBackendConnected() argument 209 CreateHdiOutput(screenId); in OnHdiBackendConnected() 212 OnScreenHotplug(screenId, connected); in OnHdiBackendConnected() 215 void HdiBackend::CreateHdiOutput(uint32_t screenId) in CreateHdiOutput() argument 217 OutputPtr newOutput = HdiOutput::CreateHdiOutput(screenId); in CreateHdiOutput() 219 outputs_.emplace(screenId, newOutput); in CreateHdiOutput() [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdidevice_fuzzer/ |
D | hdidevice_fuzzer.cpp | 56 uint32_t screenId = GetData<uint32_t>(); in HdiDeviceFuzzTest3() local 67 device->SetLayerMetaData(screenId, layerId, metaDatas); in HdiDeviceFuzzTest3() 69 device->SetLayerMetaDataSet(screenId, layerId, key, metaDatas2); in HdiDeviceFuzzTest3() 70 device->SetLayerTunnelHandle(screenId, layerId, nullptr); in HdiDeviceFuzzTest3() 71 device->GetPresentTimestamp(screenId, layerId, timestamp); in HdiDeviceFuzzTest3() 72 device->SetLayerMaskInfo(screenId, layerId, maskInfo); in HdiDeviceFuzzTest3() 79 uint32_t screenId = GetData<uint32_t>(); in HdiDeviceFuzzTest2() local 106 device->GetScreenColorGamut(screenId, gamut); in HdiDeviceFuzzTest2() 107 device->SetLayerAlpha(screenId, layerId, alpha); in HdiDeviceFuzzTest2() 108 device->SetLayerSize(screenId, layerId, layerRect); in HdiDeviceFuzzTest2() [all …]
|
/foundation/window/window_manager/dmserver/src/ |
D | display_manager_service.cpp | 43 #define CHECK_SCREEN_AND_RETURN(screenId, ret) \ argument 45 if ((screenId) == SCREEN_ID_INVALID) { \ 212 sptr<DisplayInfo> DisplayManagerService::GetDisplayInfoByScreen(ScreenId screenId) in GetDisplayInfoByScreen() argument 214 … sptr<AbstractDisplay> display = abstractDisplayController_->GetAbstractDisplayByScreen(screenId); in GetDisplayInfoByScreen() 235 ScreenId screenId = abstractScreenController_->CreateVirtualScreen(option, displayManagerAgent); in CreateVirtualScreen() local 236 CHECK_SCREEN_AND_RETURN(screenId, SCREEN_ID_INVALID); in CreateVirtualScreen() 237 accessTokenIdMaps_.insert(std::pair(screenId, IPCSkeleton::GetCallingTokenID())); in CreateVirtualScreen() 238 return screenId; in CreateVirtualScreen() 241 DMError DisplayManagerService::DestroyVirtualScreen(ScreenId screenId) in DestroyVirtualScreen() argument 247 if (!accessTokenIdMaps_.isExistAndRemove(screenId, IPCSkeleton::GetCallingTokenID())) { in DestroyVirtualScreen() [all …]
|
D | display_manager_stub.cpp | 54 ScreenId screenId = data.ReadUint64(); in OnRemoteRequest() local 55 auto info = GetDisplayInfoByScreen(screenId); in OnRemoteRequest() 83 ScreenId screenId = CreateVirtualScreen(virScrOption, virtualScreenAgent); in OnRemoteRequest() local 84 reply.WriteUint64(static_cast<uint64_t>(screenId)); in OnRemoteRequest() 88 ScreenId screenId = static_cast<ScreenId>(data.ReadUint64()); in OnRemoteRequest() local 89 DMError result = DestroyVirtualScreen(screenId); in OnRemoteRequest() 94 ScreenId screenId = static_cast<ScreenId>(data.ReadUint64()); in OnRemoteRequest() local 101 DMError result = SetVirtualScreenSurface(screenId, bp); in OnRemoteRequest() 106 ScreenId screenId = static_cast<ScreenId>(data.ReadUint64()); in OnRemoteRequest() local 108 DMError ret = SetOrientation(screenId, orientation); in OnRemoteRequest() [all …]
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/common/src/ |
D | screen_manager_adapter.cpp | 71 uint64_t screenId = Rosen::ScreenManager::GetInstance().CreateVirtualScreen(option); in CreateVirtualScreen() local 72 DHLOGI("virtualScreen id is: %" PRIu64, screenId); in CreateVirtualScreen() 73 screenIdMap_.emplace(screenName, screenId); in CreateVirtualScreen() 74 return screenId; in CreateVirtualScreen() 117 void ScreenMgrAdapter::RemoveScreenFromGroup(uint64_t screenId) in RemoveScreenFromGroup() argument 119 DHLOGI("remove screen from group, screenId: %" PRIu64, screenId); in RemoveScreenFromGroup() 121 screenIds.push_back(screenId); in RemoveScreenFromGroup() 125 int32_t ScreenMgrAdapter::RemoveVirtualScreen(uint64_t screenId) in RemoveVirtualScreen() argument 127 DHLOGI("remove virtual screen, screenId: %" PRIu64, screenId); in RemoveVirtualScreen() 128 Rosen::DMError err = Rosen::ScreenManager::GetInstance().DestroyVirtualScreen(screenId); in RemoveVirtualScreen() [all …]
|
/foundation/window/window_manager/test/fuzztest/dms/screenmanager_fuzzer/ |
D | screenmanager_fuzzer.cpp | 31 virtual void OnConnect(ScreenId screenId) override in OnConnect() argument 35 virtual void OnDisconnect(ScreenId screenId) override in OnDisconnect() argument 39 virtual void OnChange(ScreenId screenId) override in OnChange() argument 118 ScreenId screenId = screenManager.CreateVirtualScreen(option); in MakeMirrorWithVirtualScreenFuzzTest() local 120 screenManager.SetVirtualScreenSurface(screenId, nullptr); in MakeMirrorWithVirtualScreenFuzzTest() 124 screenManager.MakeMirror(0, { screenId }, groupId); in MakeMirrorWithVirtualScreenFuzzTest() 126 screenManager.DestroyVirtualScreen(screenId); in MakeMirrorWithVirtualScreenFuzzTest() 130 screenManager.DestroyVirtualScreen(screenId); in MakeMirrorWithVirtualScreenFuzzTest() 159 ScreenId screenId = screenManager.CreateVirtualScreen(option); in MakeExpandWithVirtualScreenFuzzTest() local 161 screenManager.SetVirtualScreenSurface(screenId, nullptr); in MakeExpandWithVirtualScreenFuzzTest() [all …]
|
/foundation/window/window_manager/window_scene/session_manager/src/zidl/ |
D | screen_session_manager_stub.cpp | 110 ScreenId screenId = data.ReadUint64(); in OnRemoteRequest() local 111 auto info = GetDisplayInfoByScreen(screenId); in OnRemoteRequest() 121 ScreenId screenId = static_cast<ScreenId>(data.ReadUint64()); in OnRemoteRequest() local 122 auto screenInfo = GetScreenInfoById(screenId); in OnRemoteRequest() 136 ScreenId screenId = static_cast<ScreenId>(data.ReadUint64()); in OnRemoteRequest() local 138 DMError ret = GetScreenSupportedColorGamuts(screenId, colorGamuts); in OnRemoteRequest() 174 ScreenId screenId = CreateVirtualScreen(virScrOption, virtualScreenAgent); in OnRemoteRequest() local 175 reply.WriteUint64(static_cast<uint64_t>(screenId)); in OnRemoteRequest() 179 ScreenId screenId = static_cast<ScreenId>(data.ReadUint64()); in OnRemoteRequest() local 186 DMError result = SetVirtualScreenSurface(screenId, bp); in OnRemoteRequest() [all …]
|
/foundation/window/window_manager/test/common/mock/ |
D | mock_display_manager_adapter.h | 32 MOCK_METHOD1(GetDisplayInfoByScreenId, sptr<DisplayInfo>(ScreenId screenId)); 53 MOCK_METHOD2(RequestRotation, bool(ScreenId screenId, Rotation rotation)); 56 MOCK_METHOD1(DestroyVirtualScreen, DMError(ScreenId screenId)); 57 MOCK_METHOD2(SetVirtualScreenSurface, DMError(ScreenId screenId, sptr<Surface> surface)); 58 MOCK_METHOD1(GetScreenGroupInfoById, sptr<ScreenGroupInfo>(ScreenId screenId)); 62 MOCK_METHOD3(MakeExpand, DMError(std::vector<ScreenId> screenId, std::vector<Point> startPoint, 64 MOCK_METHOD2(SetScreenActiveMode, DMError(ScreenId screenId, uint32_t modeId)); 65 MOCK_METHOD1(GetScreenInfo, sptr<ScreenInfo>(ScreenId screenId)); 69 …MOCK_METHOD2(GetScreenSupportedColorGamuts, DMError(ScreenId screenId, std::vector<ScreenColorGamu… 70 MOCK_METHOD2(GetScreenColorGamut, DMError(ScreenId screenId, ScreenColorGamut& colorGamut)); [all …]
|
/foundation/window/window_manager/dmserver/include/ |
D | display_manager_proxy.h | 36 sptr<DisplayInfo> GetDisplayInfoByScreen(ScreenId screenId) override; 41 DMError DestroyVirtualScreen(ScreenId screenId) override; 42 DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) override; 43 DMError SetOrientation(ScreenId screenId, Orientation orientation) override; 50 …DMError GetScreenSupportedColorGamuts(ScreenId screenId, std::vector<ScreenColorGamut>& colorGamut… 51 DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) override; 52 DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) override; 53 DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) override; 54 DMError SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) override; 55 DMError SetScreenColorTransform(ScreenId screenId) override; [all …]
|
D | display_manager_service.h | 51 DMError DestroyVirtualScreen(ScreenId screenId) override; 52 DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) override; 58 sptr<DisplayInfo> GetDisplayInfoByScreen(ScreenId screenId) override; 60 DMError SetOrientation(ScreenId screenId, Orientation orientation) override; 61 … DMError SetOrientationFromWindow(ScreenId screenId, Orientation orientation, bool withAnimation); 62 bool SetRotationFromWindow(ScreenId screenId, Rotation targetRotation, bool withAnimation); 67 …DMError GetScreenSupportedColorGamuts(ScreenId screenId, std::vector<ScreenColorGamut>& colorGamut… 68 DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) override; 69 DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) override; 70 DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) override; [all …]
|
D | display_manager_interface.h | 96 virtual sptr<DisplayInfo> GetDisplayInfoByScreen(ScreenId screenId) = 0; 101 virtual DMError DestroyVirtualScreen(ScreenId screenId) = 0; 102 virtual DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) = 0; 103 virtual DMError SetOrientation(ScreenId screenId, Orientation orientation) = 0; 110 …virtual DMError GetScreenSupportedColorGamuts(ScreenId screenId, std::vector<ScreenColorGamut>& co… 111 virtual DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) = 0; 112 virtual DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) = 0; 113 virtual DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) = 0; 114 virtual DMError SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) = 0; 115 virtual DMError SetScreenColorTransform(ScreenId screenId) = 0; [all …]
|
/foundation/window/window_manager/dm/src/ |
D | display_manager_adapter.cpp | 57 sptr<DisplayInfo> DisplayManagerAdapter::GetDisplayInfoByScreenId(ScreenId screenId) in GetDisplayInfoByScreenId() argument 61 return displayManagerServiceProxy_->GetDisplayInfoByScreen(screenId); in GetDisplayInfoByScreenId() 71 DMError ScreenManagerAdapter::GetScreenSupportedColorGamuts(ScreenId screenId, in GetScreenSupportedColorGamuts() argument 76 return displayManagerServiceProxy_->GetScreenSupportedColorGamuts(screenId, colorGamuts); in GetScreenSupportedColorGamuts() 79 DMError ScreenManagerAdapter::GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) in GetScreenColorGamut() argument 83 return displayManagerServiceProxy_->GetScreenColorGamut(screenId, colorGamut); in GetScreenColorGamut() 86 DMError ScreenManagerAdapter::SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) in SetScreenColorGamut() argument 90 return displayManagerServiceProxy_->SetScreenColorGamut(screenId, colorGamutIdx); in SetScreenColorGamut() 93 DMError ScreenManagerAdapter::GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) in GetScreenGamutMap() argument 97 return displayManagerServiceProxy_->GetScreenGamutMap(screenId, gamutMap); in GetScreenGamutMap() [all …]
|
/foundation/graphic/graphic_2d/rosen/samples/composer/ |
D | hello_composer.cpp | 141 uint32_t screenId = CreatePhysicalScreen(); in CreateShowLayers() local 143 …LOGI("Create screen[%{public}d], and created a total of %{public}zu screens", screenId, screensMap… in CreateShowLayers() 145 InitLayers(screenId); in CreateShowLayers() 153 void HelloComposer::InitLayers(uint32_t screenId) in InitLayers() argument 155 LOGI("Init layers, screenId is %{public}d", screenId); in InitLayers() 156 uint32_t displayWidth = displayWidthsMap_[screenId]; in InitLayers() 157 uint32_t displayHeight = displayHeightsMap_[screenId]; in InitLayers() 159 std::vector<std::unique_ptr<LayerContext>> &drawLayers = drawLayersMap_[screenId]; in InitLayers() 242 uint32_t screenId = iter->first; in Draw() local 243 std::vector<std::unique_ptr<LayerContext>> &drawLayers = drawLayersMap_[screenId]; in Draw() [all …]
|
/foundation/window/window_manager/window_scene/session_manager/include/zidl/ |
D | screen_session_manager_proxy.h | 33 virtual DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId) override; 34 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override; 36 virtual DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) override; 37 virtual DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) override; 38 virtual DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) override; 39 virtual DMError SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) override; 40 virtual DMError SetScreenColorTransform(ScreenId screenId) override; 60 virtual DMError DestroyVirtualScreen(ScreenId screenId) override; 62 …virtual DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) override; 67 virtual sptr<ScreenGroupInfo> GetScreenGroupInfoById(ScreenId screenId) override; [all …]
|
D | screen_session_manager_interface.h | 31 virtual sptr<DisplayInfo> GetDisplayInfoByScreen(ScreenId screenId) override {return nullptr; } in GetDisplayInfoByScreen() argument 36 virtual DMError DestroyVirtualScreen(ScreenId screenId) override { return DMError::DM_OK; } in DestroyVirtualScreen() argument 37 … virtual DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) override in SetVirtualScreenSurface() argument 41 …virtual DMError SetOrientation(ScreenId screenId, Orientation orientation) override { return DMErr… in SetOrientation() argument 48 virtual DMError GetScreenSupportedColorGamuts(ScreenId screenId, in GetScreenSupportedColorGamuts() argument 53 virtual DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) override in GetScreenColorGamut() argument 57 …virtual DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) override { return DM… in SetScreenColorGamut() argument 58 …virtual DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) override { return D… in GetScreenGamutMap() argument 59 …virtual DMError SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) override { return DM… in SetScreenGamutMap() argument 60 virtual DMError SetScreenColorTransform(ScreenId screenId) override { return DMError::DM_OK; } in SetScreenColorTransform() argument [all …]
|
/foundation/window/window_manager/dm/include/ |
D | display_manager_adapter.h | 60 virtual sptr<DisplayInfo> GetDisplayInfoByScreenId(ScreenId screenId); 96 virtual DMError DestroyVirtualScreen(ScreenId screenId); 97 virtual DMError SetVirtualScreenSurface(ScreenId screenId, sptr<Surface> surface); 100 virtual DMError SetOrientation(ScreenId screenId, Orientation orientation); 101 virtual sptr<ScreenGroupInfo> GetScreenGroupInfoById(ScreenId screenId); 104 …virtual DMError MakeExpand(std::vector<ScreenId> screenId, std::vector<Point> startPoint, ScreenId… 108 virtual DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId); 109 virtual sptr<ScreenInfo> GetScreenInfo(ScreenId screenId); 110 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio); 115 …virtual DMError GetScreenSupportedColorGamuts(ScreenId screenId, std::vector<ScreenColorGamut>& co… [all …]
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/ |
D | drawing_sample.cpp | 104 uint32_t screenId = CreatePhysicalScreen(); in CreateShowLayers() local 108 InitLayers(screenId); in CreateShowLayers() 116 void DrawingSample::InitLayers(uint32_t screenId) in InitLayers() argument 118 LOGI("Init layers, screenId is %{public}d", screenId); in InitLayers() 119 uint32_t displayWidth = displayWidthsMap_[screenId]; in InitLayers() 120 uint32_t displayHeight = displayHeightsMap_[screenId]; in InitLayers() 122 std::unique_ptr<LayerContext>& drawLayer = drawLayersMap_[screenId]; in InitLayers() 147 uint32_t screenId = iter->first; in Draw() local 148 std::unique_ptr<LayerContext>& drawLayer = drawLayersMap_[screenId]; in Draw() 158 curOutput_ = outputMap_[screenId]; in Draw() [all …]
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
D | screen_session_manager.cpp | 200 … [this](ScreenId screenId, ScreenEvent screenEvent) { OnScreenChange(screenId, screenEvent); }); in RegisterScreenChangeListener() argument 207 void ScreenSessionManager::OnScreenChange(ScreenId screenId, ScreenEvent screenEvent) in OnScreenChange() argument 209 … WLOGFI("SCB: On screen change. ScreenId: %{public}" PRIu64 ", ScreenEvent: %{public}d", screenId, in OnScreenChange() 211 auto screenSession = GetOrCreateScreenSession(screenId); in OnScreenChange() 227 screenSessionMap_.erase(screenId); in OnScreenChange() 231 sptr<ScreenSession> ScreenSessionManager::GetScreenSession(ScreenId screenId) const in GetScreenSession() 234 auto iter = screenSessionMap_.find(screenId); in GetScreenSession() 236 WLOGFE("Error found screen session with id: %{public}" PRIu64, screenId); in GetScreenSession() 275 sptr<DisplayInfo> ScreenSessionManager::GetDisplayInfoByScreen(ScreenId screenId) in GetDisplayInfoByScreen() argument 281 if (screenId == displayInfo->GetScreenId()) { in GetDisplayInfoByScreen() [all …]
|
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
D | hyper_graphic_manager_test.cpp | 104 ScreenId screenId = 2; variable 105 auto addScreen = instance.AddScreen(screenId, 0); 129 ScreenId screenId = 3; variable 133 auto addScreen = instance5.AddScreen(screenId, 0); 140 screen = instance5.GetScreen(screenId); 159 ScreenId screenId = 4; variable 163 auto addScreen = instance6.AddScreen(screenId, 0); 170 auto screen = instance6.GetScreen(screenId); 175 addMode = instance6.AddScreen(screenId, addMode); 195 ScreenId screenId = 6; variable [all …]
|
/foundation/window/window_manager/window_scene/session_manager/include/ |
D | screen_session_manager.h | 46 sptr<ScreenSession> GetScreenSession(ScreenId screenId) const; 50 DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId) override; 51 DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override; 54 DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) override; 55 DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) override; 56 DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) override; 57 DMError SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) override; 58 DMError SetScreenColorTransform(ScreenId screenId) override; 78 ScreenPowerState GetScreenPower(ScreenId screenId) override; 87 …virtual DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) override; [all …]
|