Home
last modified time | relevance | path

Searched refs:isScreenOn (Results 1 – 9 of 9) sorted by relevance

/base/powermgr/power_manager/interfaces/kits/js/
D@ohos.power.d.ts85 function isScreenOn(callback: AsyncCallback<boolean>): void;
86 function isScreenOn(): Promise<boolean>;
95 function isScreenOn(): boolean;
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_monitor.cpp95 bool isScreenOn = want.GetAction() == CommonEventSupport::COMMON_EVENT_SCREEN_ON; in HandleScreenStateChanged() local
96 POWER_HILOGD(COMP_SVC, "Screen is %{public}s", isScreenOn ? "on" : "off"); in HandleScreenStateChanged()
97 …pSingleton<PowerMgrService>::GetInstance()->GetPowerStateMachine()->ReceiveScreenEvent(isScreenOn); in HandleScreenStateChanged()
Dpower_mgr_service.cpp624 auto isScreenOn = powerStateMachine_->IsScreenOn(); in IsScreenOn() local
625 POWER_HILOGI(COMP_SVC, "isScreenOn: %{public}d", isScreenOn); in IsScreenOn()
626 return isScreenOn; in IsScreenOn()
Dpower_state_machine.cpp336 void PowerStateMachine::ReceiveScreenEvent(bool isScreenOn) in ReceiveScreenEvent() argument
341 if (isScreenOn) { in ReceiveScreenEvent()
347 NotifyPowerStateChanged(isScreenOn ? PowerState::AWAKE : PowerState::INACTIVE); in ReceiveScreenEvent()
/base/telephony/core_service/services/network_search/include/
Ddevice_state_handler.h32 void ProcessScreenDisplay(bool isScreenOn);
/base/telephony/core_service/services/network_search/src/
Ddevice_state_handler.cpp51 void DeviceStateHandler::ProcessScreenDisplay(bool isScreenOn) in ProcessScreenDisplay() argument
53 isScreenOn_ = isScreenOn; in ProcessScreenDisplay()
/base/powermgr/display_manager/service/native/src/
Dscreen_controller.cpp262 bool isScreenOn = IsScreenOn(); in CanSetBrightness() local
266 isScreenOn, isOverridden, isBoosted); in CanSetBrightness()
267 return isScreenOn && !isOverridden && !isBoosted; in CanSetBrightness()
/base/powermgr/power_manager/services/native/include/
Dpower_state_machine.h84 void ReceiveScreenEvent(bool isScreenOn);
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_fw_module_test.cpp421 void PublishCommonEventScreenStatus(bool isScreenOn) in PublishCommonEventScreenStatus() argument
425 if (isScreenOn) { in PublishCommonEventScreenStatus()
434 void SetDistributedScreenStatus(bool isScreenOn) in SetDistributedScreenStatus() argument
442 DistributedKv::Value value(isScreenOn ? "on" : "off"); in SetDistributedScreenStatus()