Lines Matching refs:DMError
154 DMError DisplayManagerService::HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow)
158 return DMError::DM_ERROR_NOT_SYSTEM_APP;
164 return DMError::DM_ERROR_INVALID_PARAM;
168 return DMError::DM_OK;
170 return DMError::DM_ERROR_NULLPTR;
241 DMError DisplayManagerService::DestroyVirtualScreen(ScreenId screenId)
245 return DMError::DM_ERROR_NOT_SYSTEM_APP;
248 return DMError::DM_ERROR_INVALID_CALLING;
252 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
258 DMError DisplayManagerService::SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface)
261 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
268 return DMError::DM_ERROR_INVALID_CALLING;
271 DMError DisplayManagerService::SetOrientation(ScreenId screenId, Orientation orientation)
275 return DMError::DM_ERROR_NOT_SYSTEM_APP;
279 return DMError::DM_ERROR_INVALID_PARAM;
285 DMError DisplayManagerService::SetOrientationFromWindow(ScreenId screenId, Orientation orientation, bool withAnimation)
313 DMError DisplayManagerService::GetScreenSupportedColorGamuts(ScreenId screenId,
317 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
321 DMError DisplayManagerService::GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut)
324 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
328 DMError DisplayManagerService::SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx)
331 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
335 DMError DisplayManagerService::GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap)
338 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
342 DMError DisplayManagerService::SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap)
346 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
350 DMError DisplayManagerService::SetScreenColorTransform(ScreenId screenId)
353 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM);
362 DMError DisplayManagerService::RegisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
368 return DMError::DM_ERROR_NOT_SYSTEM_APP;
372 return DMError::DM_ERROR_NULLPTR;
377 DMError DisplayManagerService::UnregisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
383 return DMError::DM_ERROR_NOT_SYSTEM_APP;
387 return DMError::DM_ERROR_NULLPTR;
527 DMError DisplayManagerService::MakeMirror(ScreenId mainScreenId, std::vector<ScreenId> mirrorScreenIds,
532 return DMError::DM_ERROR_NOT_SYSTEM_APP;
544 return DMError::DM_ERROR_INVALID_PARAM;
547 DMError ret = abstractScreenController_->MakeMirror(mainScreenId, allMirrorScreenIds);
548 if (ret != DMError::DM_OK) {
554 return DMError::DM_ERROR_NULLPTR;
557 return DMError::DM_OK;
560 DMError DisplayManagerService::StopMirror(const std::vector<ScreenId>& mirrorScreenIds)
564 return DMError::DM_ERROR_NOT_SYSTEM_APP;
570 return DMError::DM_OK;
573 DMError ret = abstractScreenController_->StopScreens(allMirrorScreenIds, ScreenCombination::SCREEN_MIRROR);
574 if (ret != DMError::DM_OK) {
579 return DMError::DM_OK;
599 DMError DisplayManagerService::AddSurfaceNodeToDisplay(DisplayId displayId,
605 return DMError::DM_ERROR_NULLPTR;
611 DMError DisplayManagerService::RemoveSurfaceNodeFromDisplay(DisplayId displayId,
617 return DMError::DM_ERROR_NULLPTR;
658 DMError DisplayManagerService::GetAllScreenInfos(std::vector<sptr<ScreenInfo>>& screenInfos)
662 return DMError::DM_ERROR_NOT_SYSTEM_APP;
673 return DMError::DM_OK;
676 DMError DisplayManagerService::MakeExpand(std::vector<ScreenId> expandScreenIds, std::vector<Point> startPoints,
681 return DMError::DM_ERROR_NOT_SYSTEM_APP;
687 return DMError::DM_ERROR_INVALID_PARAM;
706 return DMError::DM_ERROR_NULLPTR;
721 return DMError::DM_ERROR_NULLPTR;
726 return DMError::DM_ERROR_NULLPTR;
729 return DMError::DM_OK;
732 DMError DisplayManagerService::StopExpand(const std::vector<ScreenId>& expandScreenIds)
736 return DMError::DM_ERROR_NOT_SYSTEM_APP;
741 return DMError::DM_OK;
744 DMError ret = abstractScreenController_->StopScreens(allExpandScreenIds, ScreenCombination::SCREEN_EXPAND);
745 if (ret != DMError::DM_OK) {
750 return DMError::DM_OK;
753 DMError DisplayManagerService::SetScreenActiveMode(ScreenId screenId, uint32_t modeId)
757 return DMError::DM_ERROR_NOT_SYSTEM_APP;
763 DMError DisplayManagerService::SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio)
767 return DMError::DM_ERROR_NOT_SYSTEM_APP;
774 DMError DisplayManagerService::IsScreenRotationLocked(bool& isLocked)
778 return DMError::DM_ERROR_NOT_SYSTEM_APP;
781 return DMError::DM_OK;
784 DMError DisplayManagerService::SetScreenRotationLocked(bool isLocked)
788 return DMError::DM_ERROR_NOT_SYSTEM_APP;
793 DMError DisplayManagerService::SetScreenRotationLockedFromJs(bool isLocked)
797 return DMError::DM_ERROR_NOT_SYSTEM_APP;