/base/powermgr/battery_manager/services/native/test/unittest/src/ |
D | battery_service_test.cpp | 39 sptr<BatteryService> g_service; variable 46 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase() 47 g_service->OnStart(); in SetUpTestCase() 59 EXPECT_TRUE(g_service->RegisterBatteryHdiCallback()); 72 EXPECT_TRUE(g_service->DestoryBatteryDialog()); 86 auto tempVoltage = g_service->GetVoltage(); 88 auto voltage = g_service->GetVoltage(); 92 auto voltage = g_service->GetVoltage(); 111 auto tempPresent = g_service->GetPresent(); 113 auto present = g_service->GetPresent(); [all …]
|
D | battery_plugged_wakeup_test.cpp | 34 static sptr<BatteryService> g_service; variable 40 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase() 41 g_service->OnStart(); in SetUpTestCase() 67 g_service->MockUnplugged(false); 74 g_service->MockUnplugged(false); 92 g_service->MockUnplugged(false); 98 g_service->MockUnplugged(false); 115 g_service->MockUnplugged(false); 122 g_service->MockUnplugged(false); 140 g_service->MockUnplugged(false); [all …]
|
D | battery_dump_test.cpp | 26 sptr<BatteryService> g_service; variable 30 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase() 45 EXPECT_EQ(g_service->Dump(fd, args), ERR_OK); 60 EXPECT_EQ(g_service->Dump(fd, args), ERR_OK); 75 EXPECT_EQ(g_service->Dump(fd, args), ERR_OK); 90 EXPECT_EQ(g_service->Dump(fd, args), ERR_OK); 105 EXPECT_EQ(g_service->Dump(fd, args), ERR_NO_INIT); 120 EXPECT_EQ(g_service->Dump(fd, args), ERR_NO_INIT); 133 g_service->Dump(fd, args); 147 EXPECT_FALSE(batteryDump.GetBatteryInfo(fd, g_service, args)); [all …]
|
D | battery_callback_test.cpp | 27 sptr<BatteryService> g_service; variable 37 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase() 42 g_service = nullptr; in TearDownTestCase()
|
/base/powermgr/battery_manager/test/systemtest/src/ |
D | battery_overtemperature_shutdown_test.cpp | 32 static sptr<BatteryService> g_service; variable 37 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase() 38 g_service->OnStart(); in SetUpTestCase() 43 g_service->OnStop(); in TearDownTestCase() 63 g_service->InitConfig(); 65 g_service->HandleTemperature(599); 77 g_service->InitConfig(); 79 g_service->HandleTemperature(600);
|
D | battery_undertemperature_shutdown_test.cpp | 32 static sptr<BatteryService> g_service; variable 37 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase() 38 g_service->OnStart(); in SetUpTestCase() 43 g_service->OnStop(); in TearDownTestCase() 63 g_service->InitConfig(); 65 g_service->HandleTemperature(-99); 77 g_service->InitConfig(); 79 g_service->HandleTemperature(-100);
|
D | battery_dialog_test.cpp | 25 static sptr<BatteryService> g_service; variable 30 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase() 31 g_service->OnStart(); in SetUpTestCase() 36 g_service->OnStop(); in TearDownTestCase() 56 EXPECT_TRUE(g_service->ShowBatteryDialog()); 67 EXPECT_TRUE(g_service->DestoryBatteryDialog());
|
/base/useriam/pin_auth/test/fuzztest/pinauthservice_fuzzer/ |
D | pin_auth_service_fuzzer.cpp | 54 auto g_service = PinAuthService::GetInstance(); variable 59 if (g_service != nullptr) { in FuzzOnStart() 60 g_service->OnStart(); in FuzzOnStart() 68 if (g_service != nullptr) { in FuzzOnStop() 69 g_service->OnStop(); in FuzzOnStop() 81 if (g_service != nullptr) { in FuzzRegisterInputer() 82 g_service->RegisterInputer(remoteInputer); in FuzzRegisterInputer() 90 if (g_service != nullptr) { in FuzzUnRegisterInputer() 91 g_service->UnRegisterInputer(); in FuzzUnRegisterInputer() 101 if (g_service != nullptr) { in FuzzCheckPermission() [all …]
|
/base/useriam/face_auth/test/fuzztest/faceauthservice_fuzzer/ |
D | face_auth_service_fuzzer.cpp | 41 auto g_service = FaceAuthService::GetInstance(); variable 46 if (g_service != nullptr) { in FuzzOnStart() 47 g_service->OnStart(); in FuzzOnStart() 55 if (g_service != nullptr) { in FuzzOnStop() 56 g_service->OnStop(); in FuzzOnStop() 73 if (g_service != nullptr) { in FuzzSetBufferProducer() 74 g_service->SetBufferProducer(bufferProducer); in FuzzSetBufferProducer()
|
/base/powermgr/thermal_manager/services/native/src/thermal_observer/state_machine/ |
D | scene_state_collection.cpp | 30 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 54 if ((!g_service->GetScene().empty()) && (g_service->GetScene() == value)) { in DecideState() 55 std::string scene = g_service->GetScene(); in DecideState()
|
D | screen_state_collection.cpp | 33 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 52 if (!g_service->GetFlag()) { in GetState() 62 if (g_service == nullptr) return false; in RegisterEvent() 63 auto receiver = g_service->GetStateMachineObj()->GetCommonEventReceiver(); in RegisterEvent()
|
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/action_soc/ |
D | action_cpu_lit.cpp | 29 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 58 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 60 std::string scene = g_service->GetScene(); in Execute() 67 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 89 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute() 99 if (!g_service->GetSimulationXml()) { in CpuRuquest() 104 auto thermalInterface = g_service->GetThermalInterface(); in CpuRuquest()
|
D | action_cpu_big.cpp | 29 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 58 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 60 std::string scene = g_service->GetScene(); in Execute() 67 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 89 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute() 99 if (!g_service->GetSimulationXml()) { in CpuRuquest() 104 auto thermalInterface = g_service->GetThermalInterface(); in CpuRuquest()
|
D | action_gpu.cpp | 29 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 57 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 59 std::string scene = g_service->GetScene(); in Execute() 66 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 88 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute() 98 if (!g_service->GetSimulationXml()) { in GpuRequest() 103 auto thermalInterface = g_service->GetThermalInterface(); in GpuRequest()
|
D | action_cpu_med.cpp | 29 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 58 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 60 std::string scene = g_service->GetScene(); in Execute() 67 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 89 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute() 99 if (!g_service->GetSimulationXml()) { in CpuRuquest() 104 auto thermalInterface = g_service->GetThermalInterface(); in CpuRuquest()
|
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/ |
D | action_shutdown.cpp | 35 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 68 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 69 std::string scene = g_service->GetScene(); in Execute() 73 if ((value != lastValue_) && (!g_service->GetSimulationXml())) { in Execute() 81 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 99 if (!g_service->GetFlag()) { in Execute() 105 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute() 141 auto handler = g_service->GetHandler(); in DelayShutdown() 145 auto runner = g_service->GetEventRunner(); in DelayShutdown()
|
D | action_display.cpp | 29 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 63 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 64 std::string scene = g_service->GetScene(); in Execute() 68 if ((value != lastValue_) && (!g_service->GetSimulationXml())) { in Execute() 76 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 93 if (!g_service->GetSimulationXml()) { in Execute() 99 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute()
|
D | action_volume.cpp | 30 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 65 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 67 std::string scene = g_service->GetScene(); in Execute() 71 if ((value != lastValue_) && (!g_service->GetSimulationXml())) { in Execute() 79 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 95 if (!g_service->GetSimulationXml()) { in Execute() 101 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute() 111 g_actionInfo = g_service->GetActionManagerObj()->GetActionItem(); in VolumeRequest()
|
D | action_charger.cpp | 29 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 67 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 68 std::string scene = g_service->GetScene(); in Execute() 71 THERMAL_HILOGD(COMP_SVC, "g_service->GetScene()=%{public}s", g_service->GetScene().c_str()); in Execute() 77 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 99 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute() 113 auto thermalInterface = g_service->GetThermalInterface(); in ChargerRequest()
|
D | action_popup.cpp | 33 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 67 THERMAL_RETURN_IF(g_service == nullptr); in Execute() 68 std::string scene = g_service->GetScene(); in Execute() 75 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 96 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute()
|
D | action_application_process.cpp | 39 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 82 THERMAL_RETURN_IF (g_service == nullptr); in Execute() 83 std::string scene = g_service->GetScene(); in Execute() 87 if ((value != lastValue_) && (!g_service->GetSimulationXml())) { in Execute() 95 g_service->GetObserver()->SetDecisionValue(actionName_, iter->second); in Execute() 113 if (!g_service->GetFlag()) { in Execute() 119 g_service->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); in Execute()
|
/base/powermgr/power_manager/test/systemtest/src/ |
D | power_mgr_mock_system_test.cpp | 24 static sptr<PowerMgrService> g_service; variable 37 g_service->EnableMock(g_powerState, g_shutdownState, g_powerAction, g_lockAction); in ResetMockAction() 43 g_service = DelayedSpSingleton<PowerMgrService>::GetInstance(); in SetUpTestCase() 44 g_service->OnStart(); in SetUpTestCase() 49 g_service->OnStop(); in TearDownTestCase()
|
/base/security/selinux/interfaces/tools/service_check/ |
D | test.cpp | 32 static std::unique_ptr<ServiceChecker> g_service = nullptr; variable 111 : g_service->AddServiceCheck(getpid(), serviceName)) in TestAddService() 118 : g_service->AddServiceCheck(getpid(), serName)) in TestAddService() 127 : g_service->GetServiceCheck(getpid(), serviceName)) in TestGetService() 134 : g_service->GetServiceCheck(getpid(), serName)) in TestGetService() 143 : g_service->GetRemoteServiceCheck(getpid(), serviceName)) in TestGetRemoteService() 149 …std::cout << GetErrStr(isHdf ? SELINUX_PERMISSION_DENY : g_service->GetRemoteServiceCheck(getpid()… in TestGetRemoteService() 156 …std::cout << GetErrStr(isHdf ? HdfListServiceCheck(getpid()) : g_service->ListServiceCheck(getpid(… in TestListService() 200 g_service = std::make_unique<ServiceChecker>(false); in main()
|
/base/powermgr/thermal_manager/services/native/src/thermal_observer/ |
D | thermal_service_subscriber.cpp | 30 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 36 historyCount_ = g_service->GetBaseinfoObj()->GetHistoryTempCount(); in Init() 56 g_service->GetSensorInfo()->SetTypeTempMap(typeTempMap_); in OnTemperatureChanged() 57 g_service->GetSensorInfo()->NotifyObserver(); in OnTemperatureChanged()
|
/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
D | thermal_policy.cpp | 32 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance(); variable 45 if (g_service == nullptr) { in Init() 48 handler_ = g_service->GetHandler(); in Init() 57 g_service->GetObserver()->SetRegisterCallback(callback); in RegisterObserver() 136 …ThermalActionManager::ThermalActionMap actionMap = g_service->GetActionManagerObj()->GetActionMap(… in ActionDecision() 166 if (g_service == nullptr) { in FindSubscribeActionValue() 170 if (g_service->GetObserver() ==nullptr) { in FindSubscribeActionValue() 175 g_service->GetObserver()->FindSubscribeActionValue(); in FindSubscribeActionValue() 184 …StateMachine::StateMachineMap stateMachineMap = g_service->GetStateMachineObj()->GetStateCollectio… in StateMachineDecision() 207 auto actionMgr = g_service->GetActionManagerObj(); in ActionExecution()
|