!259 亮灭屏流程增加trace

Merge pull request !259 from 沁心/master
This commit is contained in:
openharmony_ci
2022-02-12 10:04:40 +00:00
committed by Gitee
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -255,6 +255,7 @@ bool DisplayManagerService::UnregisterDisplayManagerAgent(const sptr<IDisplayMan
bool DisplayManagerService::WakeUpBegin(PowerStateChangeReason reason)
{
WM_SCOPED_TRACE("dms:WakeUpBegin(%u)", reason);
return DisplayManagerAgentController::GetInstance().NotifyDisplayPowerEvent(DisplayPowerEvent::WAKE_UP,
EventStatus::BEGIN);
}
@@ -267,6 +268,7 @@ bool DisplayManagerService::WakeUpEnd()
bool DisplayManagerService::SuspendBegin(PowerStateChangeReason reason)
{
WM_SCOPED_TRACE("dms:SuspendBegin(%u)", reason);
displayPowerController_.SuspendBegin(reason);
return DisplayManagerAgentController::GetInstance().NotifyDisplayPowerEvent(DisplayPowerEvent::SLEEP,
EventStatus::BEGIN);
+1
View File
@@ -291,6 +291,7 @@ void WindowManagerService::OnWindowEvent(Event event, uint32_t windowId)
void WindowManagerService::NotifyDisplayStateChange(DisplayStateChangeType type)
{
WM_SCOPED_TRACE("wms:NotifyDisplayStateChange(%u)", type);
std::lock_guard<std::recursive_mutex> lock(mutex_);
return windowController_->NotifyDisplayStateChange(type);
}