Home
last modified time | relevance | path

Searched refs:pms (Results 1 – 25 of 35) sorted by relevance

12

/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_st_mock_test.cpp78 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
79 if (pms == nullptr) {
84 pms->RebootDevice(std::string("test"));
102 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
103 if (pms == nullptr) {
108 pms->ShutDownDevice(std::string("test"));
126 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
127 if (pms == nullptr) {
133 EXPECT_EQ(pms->ForceSuspendDevice(0), true);
150 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
[all …]
Dpower_mgr_st_suspend_test.cpp64 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
65 if (pms == nullptr) {
69 pms->WakeupDevice(0, WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON, std::string("test"));
70 pms->SuspendControllerInit();
71 auto suspendController = pms->GetSuspendController();
73 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
88 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
89 if (pms == nullptr) {
93 pms->WakeupDevice(0, WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON, std::string("test"));
94 auto powerStateMachine = pms->GetPowerStateMachine();
[all …]
Dpower_mgr_mock_system_test.cpp74 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
75 if (pms == nullptr) {
81 pms->CreateRunningLock(token, info);
82 pms->SetDisplaySuspend(true);
83 pms->Lock(token, 0);
84 EXPECT_EQ(pms->IsUsed(token), true);
85 pms->MockProximity(RunningLockMgr::PROXIMITY_CLOSE);
86 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
Dpower_level_event_system_test_off.cpp52 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetUpTestCase() local
53 pms->OnStart(); in SetUpTestCase()
54 SystemAbility::MakeAndRegisterAbility(pms.GetRefPtr()); in SetUpTestCase()
Dpower_level_event_system_test_on.cpp52 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetUpTestCase() local
53 pms->OnStart(); in SetUpTestCase()
54 SystemAbility::MakeAndRegisterAbility(pms.GetRefPtr()); in SetUpTestCase()
/base/usb/usb_manager/services/native/src/
Dusb_service_subscriber.cpp38 auto pms = DelayedSpSingleton<UsbService>::GetInstance(); in PortChangedEvent() local
39 if (pms == nullptr) { in PortChangedEvent()
56 pms->UpdateUsbPort(info.portId, info.powerRole, info.dataRole, info.mode); in PortChangedEvent()
71 auto pms = DelayedSpSingleton<UsbService>::GetInstance(); in DeviceEvent() local
72 if (pms == nullptr) { in DeviceEvent()
78 pms->UpdateDeviceState(status); in DeviceEvent()
79 pms->UnLoadSelf(UsbService::UnLoadSaType::UNLOAD_SA_DELAY); in DeviceEvent()
87 pms->AddDevice(busNum, devAddr); in DeviceEvent()
90 pms->DelDevice(busNum, devAddr); in DeviceEvent()
92 pms->UnLoadSelf(UsbService::UnLoadSaType::UNLOAD_SA_DELAY); in DeviceEvent()
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_dumper.cpp40 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in Dump() local
41 if (pms == nullptr) { in Dump()
45 pms->GetShutdownDialog().ConnectSystemUi(); in Dump()
49 pms->GetShutdownDialog().KeyMonitorInit(); in Dump()
54 auto runningLockMgr = pms->GetRunningLockMgr(); in Dump()
60 auto stateMachine = pms->GetPowerStateMachine(); in Dump()
67 auto stateMachine = pms->GetPowerStateMachine(); in Dump()
72 auto runningLockMgr = pms->GetRunningLockMgr(); in Dump()
Drunning_lock_mgr.cpp86 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in InitLocksTypeScreen() local
87 if (pms == nullptr) { in InitLocksTypeScreen()
90 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeScreen()
122 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in InitLocksTypeBackground() local
123 if (pms == nullptr) { in InitLocksTypeBackground()
126 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeBackground()
153 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in InitLocksTypeProximity() local
154 if (pms == nullptr) { in InitLocksTypeProximity()
157 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeProximity()
674 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in OnRemoteDied() local
[all …]
Dpower_state_machine.cpp35 PowerStateMachine::PowerStateMachine(const wptr<PowerMgrService>& pms) : pms_(pms), currentState_(P… in PowerStateMachine() argument
214 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in onWakeup() local
215 if (pms == nullptr) { in onWakeup()
218 FFRTTask task = [&pms] { in onWakeup()
219 pms->GetPowerStateMachine()->HandleSystemWakeup(); in onWakeup()
544 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SendEventToPowerMgrNotify() local
545 if (pms == nullptr) { in SendEventToPowerMgrNotify()
549 auto notify = pms->GetPowerMgrNotify(); in SendEventToPowerMgrNotify()
568 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in OnRemoteDied() local
569 if (pms == nullptr) { in OnRemoteDied()
[all …]
Dpower_mgr_service.cpp52 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
53 const bool G_REGISTER_RESULT = SystemAbility::MakeAndRegisterAbility(pms.GetRefPtr());
92 runningLockMgr_ = std::make_shared<RunningLockMgr>(pms); in Init()
140 powerStateMachine_ = std::make_shared<PowerStateMachine>(pms); in PowerStateMachineInit()
213 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in HallSensorCallback()
219 std::shared_ptr<WakeupController> wakeupController = pms->GetWakeupController(); in HallSensorCallback()
266 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in SwitchSubscriberInit()
271 std::shared_ptr<WakeupController> wakeupController = pms->GetWakeupController(); in SwitchSubscriberInit()
862 pms->CreateRunningLock(token_->AsObject(), info); in Create()
870 pms->Lock(token_->AsObject(), TIMEOUT); in Lock()
[all …]
Dpower_mode_module.cpp237 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetDisplayOffTime() local
239 pms->GetPowerStateMachine()->SetDisplayOffTime(static_cast<int64_t>(time)); in SetDisplayOffTime()
246 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetSleepTime() local
248 pms->GetPowerStateMachine()->SetSleepTime(static_cast<int64_t>(time)); in SetSleepTime()
/base/powermgr/power_manager/test/unittest/src/
Dpower_mgr_fail_check_test.cpp73 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
74 if (pms == nullptr) {
81 pms->SuspendDevice(0, SuspendDeviceType::SUSPEND_DEVICE_REASON_POWER_KEY, false);
86 std::string dumpInfo = pms->ShellDump(args, args.size());
105 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
106 if (pms == nullptr) {
110 pms->SuspendDevice(0, SuspendDeviceType::SUSPEND_DEVICE_REASON_POWER_KEY, false);
114 pms->WakeupDevice(0, WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON, std::string("test"));
119 std::string dumpInfo = pms->ShellDump(args, args.size());
Dpower_mgr_mock_test.cpp75 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
76 if (pms == nullptr) {
81 pms->RebootDeviceForDeprecated(std::string("test"));
Dpower_mgr_powerdialog_test.cpp42 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetUpTestCase() local
43 pms->OnStart(); in SetUpTestCase()
47 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in TearDownTestCase() local
48 pms->OnStop(); in TearDownTestCase()
Dpower_service_mock_test.cpp77 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in Init() local
78 if (pms == nullptr) { in Init()
81 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in Init()
/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_controller.cpp154 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in Wakeup() local
155 if (pms == nullptr) { in Wakeup()
159 auto suspendController = pms->GetSuspendController(); in Wakeup()
174 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in ControlListener() local
175 if (pms == nullptr) { in ControlListener()
179 if (pms->IsScreenOn()) { in ControlListener()
222 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in OnInputEvent() local
223 if (pms == nullptr) { in OnInputEvent()
228 pms->RefreshActivity(now, UserActivityType::USER_ACTIVITY_TYPE_BUTTON, false); in OnInputEvent()
230 PowerState state = pms->GetState(); in OnInputEvent()
[all …]
/base/powermgr/powermgr_lite/services/src/
Dpower_manage_service.c59 PowerMgrService *pms = (PowerMgrService *)(service); in Initialize() local
60 pms->identity = identity; in Initialize()
/base/security/permission_lite/services/pms_base/src/
Dpermission_service.c59 PermissionService *pms = (PermissionService *)service; in Initialize() local
60 pms->identity = identity; in Initialize()
/base/security/permission_lite/services/
DBUILD.gn22 "pms:pms_target",
32 features = [ "pms:pms_target_static" ]
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.cpp220 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in ControlListener() local
221 if (pms == nullptr) { in ControlListener()
225 if (pms->CheckDialogAndShuttingDown()) { in ControlListener()
229 if (!pms->IsScreenOn()) { in ControlListener()
400 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in Init() local
401 if (pms == nullptr) { in Init()
404 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in Init()
/base/powermgr/power_manager/services/native/src/shutdown/
Dshutdown_dialog.cpp168 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in OnAbilityConnectDone() local
169 if (pms == nullptr) { in OnAbilityConnectDone()
172 pms->RefreshActivity( in OnAbilityConnectDone()
/base/security/permission_lite/services/unittest/pms/
DBUILD.gn29 "../../pms/include",
37 "../../pms:pms_target",
/base/powermgr/display_manager/service/native/src/
Ddisplay_power_mgr_service.cpp567 auto pms = DelayedSpSingleton<DisplayPowerMgrService>::GetInstance(); in AmbientLightCallback() local
568 if (pms == nullptr) { in AmbientLightCallback()
572 uint32_t mainDispId = pms->GetMainDisplayId(); in AmbientLightCallback()
573 auto mainDisp = pms->controllerMap_.find(mainDispId); in AmbientLightCallback()
574 if (mainDisp == pms->controllerMap_.end()) { in AmbientLightCallback()
585 if (pms->CalculateBrightness(data->intensity, brightness, changeBrightness)) { in AmbientLightCallback()
588 pms->AdjustBrightness(mainDispId, brightness, gradualDuration); in AmbientLightCallback()
719 auto pms = DelayedSpSingleton<DisplayPowerMgrService>::GetInstance(); in OnRemoteDied() local
720 if (pms == nullptr) { in OnRemoteDied()
726 pms->callback_ = nullptr; in OnRemoteDied()
/base/powermgr/thermal_manager/services/native/src/thermal_observer/
Dthermal_observer.cpp341 auto pms = DelayedSpSingleton<ThermalService>::GetInstance(); in OnRemoteDied() local
342 if (pms == nullptr) { in OnRemoteDied()
346 FFRTTask task = std::bind(&ThermalService::UnSubscribeThermalTempCallback, pms, callback); in OnRemoteDied()
357 auto pms = DelayedSpSingleton<ThermalService>::GetInstance(); in OnRemoteDied() local
358 if (pms == nullptr) { in OnRemoteDied()
362 FFRTTask task = std::bind(&ThermalService::UnSubscribeThermalActionCallback, pms, callback); in OnRemoteDied()
/base/security/permission_lite/services/unittest/
DBUILD.gn18 deps = [ "pms:unittest" ]

12