mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-20 20:20:13 -04:00
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user