Home
last modified time | relevance | path

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

12

/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_st_mock_test.cpp75 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
76 if (pms == nullptr) {
81 pms->RebootDevice(std::string("test"));
99 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
100 if (pms == nullptr) {
105 pms->ShutDownDevice(std::string("test"));
123 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
124 if (pms == nullptr) {
130 EXPECT_EQ(pms->ForceSuspendDevice(0), true);
147 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
[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, info, 0);
84 EXPECT_EQ(pms->IsUsed(token), true);
85 pms->MockProximity(RunningLockMgr::PROXIMITY_CLOSE);
86 EXPECT_EQ(PowerState::AWAKE, pms->GetState());
Dpower_mgr_powerdialog_test.cpp26 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetUpTestCase() local
27 pms->OnStart(); in SetUpTestCase()
28 SystemAbility::MakeAndRegisterAbility(pms.GetRefPtr()); in SetUpTestCase()
Dpower_mgr_powersavemode_test.cpp48 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetUpTestCase() local
49 pms->OnStart(); in SetUpTestCase()
50 SystemAbility::MakeAndRegisterAbility(pms.GetRefPtr()); in SetUpTestCase()
/base/powermgr/power_manager/services/native/test/unittest/src/
Dpower_mgr_mock_test.cpp77 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
78 if (pms == nullptr) {
83 pms->RebootDevice(std::string("test"));
104 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
105 if (pms == nullptr) {
111 pms->ShutDownDevice(std::string("test"));
132 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
133 if (pms == nullptr) {
144 pms->SuspendDevice(0, SuspendDeviceType::SUSPEND_DEVICE_REASON_APPLICATION, false);
162 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
[all …]
Dpower_mgr_fail_check_test.cpp77 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
78 if (pms == nullptr) {
85 pms->SuspendDevice(0, SuspendDeviceType::SUSPEND_DEVICE_REASON_POWER_BUTTON, false);
90 std::string dumpInfo = pms->ShellDump(args, args.size());
109 sptr<PowerMgrService> pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
110 if (pms == nullptr) {
114 pms->SuspendDevice(0, SuspendDeviceType::SUSPEND_DEVICE_REASON_POWER_BUTTON, false);
118 pms->WakeupDevice(0, WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON, std::string("test"));
123 std::string dumpInfo = pms->ShellDump(args, args.size());
/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->HandleShutdownRequest(); in Dump()
49 pms->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.cpp91 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in InitLocksTypeScreen() local
92 if (pms == nullptr) { in InitLocksTypeScreen()
95 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeScreen()
126 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in InitLocksTypeBackground() local
127 if (pms == nullptr) { in InitLocksTypeBackground()
130 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeBackground()
164 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in InitLocksTypeProximity() local
165 if (pms == nullptr) { in InitLocksTypeProximity()
168 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeProximity()
775 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in OnRemoteDied() local
[all …]
Dpower_state_machine.cpp32 PowerStateMachine::PowerStateMachine(const wptr<PowerMgrService>& pms) in PowerStateMachine() argument
33 : pms_(pms), currentState_(PowerState::UNKNOWN) in PowerStateMachine()
170 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in ActionCallback() local
171 if (pms == nullptr) { in ActionCallback()
174 pms->NotifyDisplayActionDone(event); in ActionCallback()
185 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in onWakeup() local
186 if (pms == nullptr) { in onWakeup()
189 auto handler = pms->GetHandler(); in onWakeup()
498 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SendEventToPowerMgrNotify() local
499 if (pms == nullptr) { in SendEventToPowerMgrNotify()
[all …]
Dpower_mgr_service.cpp48 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
49 const bool G_REGISTER_RESULT = SystemAbility::MakeAndRegisterAbility(pms.GetRefPtr());
93 handler_ = std::make_shared<PowermsEventHandler>(eventRunner_, pms); in Init()
99 runningLockMgr_ = std::make_shared<RunningLockMgr>(pms); in Init()
134 powerStateMachine_ = std::make_shared<PowerStateMachine>(pms); in PowerStateMachineInit()
156 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in OnInputEvent() local
157 if (pms == nullptr) { in OnInputEvent()
160 pms->HandleKeyEvent(keyEvent->GetKeyCode()); in OnInputEvent()
166 auto pms = DelayedSpSingleton<PowerMgrService>::GetInstance(); in OnInputEvent() local
167 if (pms == nullptr) { in OnInputEvent()
[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/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()
86 pms->AddDevice(busNum, devAddr); in DeviceEvent()
89 pms->DelDevice(busNum, devAddr); in DeviceEvent()
/base/security/permission_lite/services/pms/
DBUILD.gn22 "//base/security/permission_lite/services/pms/src/perm_operate.c",
23 "//base/security/permission_lite/services/pms/src/pms_impl.c",
24 "//base/security/permission_lite/services/pms/src/pms_inner.c",
25 "//base/security/permission_lite/services/pms/src/pms_server.c",
26 "//base/security/permission_lite/services/pms/src/pms_server_internal.c",
31 "//base/security/permission_lite/services/pms/include",
32 "//base/security/permission_lite/services/pms/include/hals",
56 "//base/security/permission_lite/services/pms/src/perm_operate.c",
57 "//base/security/permission_lite/services/pms/src/pms_impl.c",
62 "//base/security/permission_lite/services/pms/include",
[all …]
/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/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/
DBUILD.gn22 "pms:pms_target",
32 features = [ "pms:pms_target_static" ]
/base/powermgr/thermal_manager/services/native/src/thermal_observer/
Dthermal_observer.cpp340 auto pms = DelayedSpSingleton<ThermalService>::GetInstance(); in OnRemoteDied() local
341 if (pms == nullptr) { in OnRemoteDied()
345 auto handler = pms->GetHandler(); in OnRemoteDied()
350 …ion<void ()> unRegFunc = std::bind(&ThermalService::UnSubscribeThermalTempCallback, pms, callback); in OnRemoteDied()
361 auto pms = DelayedSpSingleton<ThermalService>::GetInstance(); in OnRemoteDied() local
362 if (pms == nullptr) { in OnRemoteDied()
366 auto handler = pms->GetHandler(); in OnRemoteDied()
371 …n<void ()> unRegFunc = std::bind(&ThermalService::UnSubscribeThermalActionCallback, pms, callback); in OnRemoteDied()
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_secure.cpp81 auto pms = sprintf_s(cmd, sizeof(cmd), "/bin/ps -u %d -o PID", uid); in CheckUidAndPid() local
82 if (pms <= 0) { in CheckUidAndPid()
/base/powermgr/display_manager/service/native/src/
Ddisplay_power_mgr_service.cpp558 auto pms = DelayedSpSingleton<DisplayPowerMgrService>::GetInstance(); in AmbientLightCallback() local
559 if (pms == nullptr) { in AmbientLightCallback()
563 uint32_t mainDispId = pms->GetMainDisplayId(); in AmbientLightCallback()
564 auto mainDisp = pms->controllerMap_.find(mainDispId); in AmbientLightCallback()
565 if (mainDisp == pms->controllerMap_.end()) { in AmbientLightCallback()
576 if (pms->CalculateBrightness(data->intensity, brightness, changeBrightness)) { in AmbientLightCallback()
579 pms->AdjustBrightness(mainDispId, brightness, gradualDuration); in AmbientLightCallback()
710 auto pms = DelayedSpSingleton<DisplayPowerMgrService>::GetInstance(); in OnRemoteDied() local
711 if (pms == nullptr) { in OnRemoteDied()
716 pms->callback_ = nullptr; in OnRemoteDied()
Dscreen_controller.cpp242 auto pms = DelayedSpSingleton<DisplayPowerMgrService>::GetInstance(); in OnStateChanged() local
243 if (pms == nullptr) { in OnStateChanged()
256 pms->NotifyStateChangeCallback(action_->GetDisplayId(), state); in OnStateChanged()
/base/security/permission_lite/services/unittest/pms/
DBUILD.gn32 "//base/security/permission_lite/services/pms/include",
39 "//base/security/permission_lite/services/pms:pms_target",
/base/security/permission_lite/services/unittest/
DBUILD.gn18 deps = [ "pms:unittest" ]
/base/powermgr/power_manager/services/native/include/
Drunning_lock_mgr.h50 explicit RunningLockMgr(const wptr<PowerMgrService>& pms) : pms_(pms) {} in RunningLockMgr() argument
Dpower_state_machine.h68 explicit PowerStateMachine(const wptr<PowerMgrService>& pms);
/base/security/permission_lite/services/pms_client/
DBUILD.gn25 "//base/security/permission_lite/services/pms/include",

12