Home
last modified time | relevance | path

Searched refs:GetReason (Results 1 – 12 of 12) sorted by relevance

/base/powermgr/power_manager/test/unittest/src/
Dpower_wakeup_parse_test.cpp66 if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON) { in TestPowerWakeup()
70 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_KEYBOARD) { in TestPowerWakeup()
74 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_TOUCH_SCREEN) { in TestPowerWakeup()
81 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_TOUCHPAD) { in TestPowerWakeup()
85 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_PEN) { in TestPowerWakeup()
89 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_LID) { in TestPowerWakeup()
93 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_SWITCH) { in TestPowerWakeup()
97 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_MOUSE) { in TestPowerWakeup()
Dpower_suspend_parse_test.cpp65 if (it->GetReason() == SuspendDeviceType::SUSPEND_DEVICE_REASON_POWER_KEY) { in TestPowerSuspend()
74 } else if (it->GetReason() == SuspendDeviceType::SUSPEND_DEVICE_REASON_TIMEOUT) { in TestPowerSuspend()
83 } else if (it->GetReason() == SuspendDeviceType::SUSPEND_DEVICE_REASON_LID) { in TestPowerSuspend()
92 } else if (it->GetReason() == SuspendDeviceType::SUSPEND_DEVICE_REASON_SWITCH) { in TestPowerSuspend()
/base/telephony/cellular_data/services/include/
Ddata_disconnect_params.h44 DisConnectionReason GetReason() const in GetReason() function
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.cpp86 (*source).GetReason(), (*source).GetAction(), (*source).GetDelay()); in Init()
89 POWER_HILOGI(FEATURE_SUSPEND, "register type=%{public}u", (*source).GetReason()); in Init()
93 monitorMap_.emplace(monitor->GetReason(), monitor); in Init()
144 monitorMap_.emplace(monitor->GetReason(), monitor); in RegisterSettingsObserver()
359 SuspendDeviceType reason = source.GetReason(); in CreateMonitor()
Dsuspend_controller.h95 SuspendDeviceType GetReason() const in GetReason() function
122 reason_ = source.GetReason(); in SuspendMonitor()
Dsuspend_sources.h48 SuspendDeviceType GetReason() const in GetReason() function
/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_controller.cpp84 POWER_HILOGI(FEATURE_WAKEUP, "registered type=%{public}u", (*source).GetReason()); in Init()
87 POWER_HILOGI(FEATURE_WAKEUP, "register type=%{public}u", (*source).GetReason()); in Init()
89 monitorMap_.emplace(monitor->GetReason(), monitor); in Init()
135 monitorMap_.emplace(monitor->GetReason(), monitor); in RegisterSettingsObserver()
341 WakeupDeviceType reason = source.GetReason(); in CreateMonitor()
Dwakeup_sources.h39 WakeupDeviceType GetReason() const in GetReason() function
Dwakeup_controller.h91 WakeupDeviceType GetReason() const in GetReason() function
109 reason_ = source.GetReason(); in WakeupMonitor()
/base/telephony/cellular_data/services/src/state_machine/
Dactive.cpp87 DisConnectionReason reason = object->GetReason(); in ProcessDisconnectDone()
104 DisConnectionReason reason = object->GetReason(); in ProcessDisconnectAllDone()
Dcellular_data_state_machine.cpp127 deactivateDataParam.reason = static_cast<int32_t>(params.GetReason()); in FreeConnection()
/base/telephony/cellular_data/services/src/
Dcellular_data_handler.cpp645 DisConnectionReason reason = object->GetReason(); in DisconnectDataComplete()