Searched refs:isScreenOn (Results 1 – 9 of 9) sorted by relevance
85 function isScreenOn(callback: AsyncCallback<boolean>): void;86 function isScreenOn(): Promise<boolean>;95 function isScreenOn(): boolean;
95 bool isScreenOn = want.GetAction() == CommonEventSupport::COMMON_EVENT_SCREEN_ON; in HandleScreenStateChanged() local96 POWER_HILOGD(COMP_SVC, "Screen is %{public}s", isScreenOn ? "on" : "off"); in HandleScreenStateChanged()97 …pSingleton<PowerMgrService>::GetInstance()->GetPowerStateMachine()->ReceiveScreenEvent(isScreenOn); in HandleScreenStateChanged()
624 auto isScreenOn = powerStateMachine_->IsScreenOn(); in IsScreenOn() local625 POWER_HILOGI(COMP_SVC, "isScreenOn: %{public}d", isScreenOn); in IsScreenOn()626 return isScreenOn; in IsScreenOn()
336 void PowerStateMachine::ReceiveScreenEvent(bool isScreenOn) in ReceiveScreenEvent() argument341 if (isScreenOn) { in ReceiveScreenEvent()347 NotifyPowerStateChanged(isScreenOn ? PowerState::AWAKE : PowerState::INACTIVE); in ReceiveScreenEvent()
32 void ProcessScreenDisplay(bool isScreenOn);
51 void DeviceStateHandler::ProcessScreenDisplay(bool isScreenOn) in ProcessScreenDisplay() argument53 isScreenOn_ = isScreenOn; in ProcessScreenDisplay()
262 bool isScreenOn = IsScreenOn(); in CanSetBrightness() local266 isScreenOn, isOverridden, isBoosted); in CanSetBrightness()267 return isScreenOn && !isOverridden && !isBoosted; in CanSetBrightness()
84 void ReceiveScreenEvent(bool isScreenOn);
421 void PublishCommonEventScreenStatus(bool isScreenOn) in PublishCommonEventScreenStatus() argument425 if (isScreenOn) { in PublishCommonEventScreenStatus()434 void SetDistributedScreenStatus(bool isScreenOn) in SetDistributedScreenStatus() argument442 DistributedKv::Value value(isScreenOn ? "on" : "off"); in SetDistributedScreenStatus()