Home
last modified time | relevance | path

Searched refs:BatteryService (Results 1 – 14 of 14) sorted by relevance

/base/powermgr/battery_manager/services/native/src/
Dbattery_service.cpp54 sptr<BatteryService> g_service;
61 std::atomic_bool BatteryService::isBootCompleted_ = false;
64 DelayedSpSingleton<BatteryService>::GetInstance().GetRefPtr());
66 BatteryService::BatteryService() in BatteryService() function in OHOS::PowerMgr::BatteryService
71 BatteryService::~BatteryService() {} in ~BatteryService()
83 void BatteryService::OnStart() in OnStart()
102 bool BatteryService::Init() in Init()
112 void BatteryService::RegisterBootCompletedCallback() in RegisterBootCompletedCallback()
120 void BatteryService::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId) in OnAddSystemAbility()
128 bool BatteryService::RegisterBatteryHdiCallback() in RegisterBatteryHdiCallback()
[all …]
Dbattery_dump.cpp58 bool BatteryDump::GetBatteryInfo(int32_t fd, sptr<BatteryService> &service, const std::vector<std::… in GetBatteryInfo()
98 bool BatteryDump::MockUnplugged(int32_t fd, sptr<BatteryService>& service, const std::vector<std::u… in MockUnplugged()
109 bool BatteryDump::Reset(int32_t fd, sptr<BatteryService>& service, const std::vector<std::u16string… in Reset()
120 bool BatteryDump::MockCapacity(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u1… in MockCapacity()
Dbattery_notify.cpp147 sptr<BatteryService> batterySrv = DelayedSpSingleton<BatteryService>::GetInstance(); in PublishChangedEvent()
/base/powermgr/battery_manager/services/native/include/
Dbattery_dump.h34 …bool GetBatteryInfo(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &…
35 …bool MockUnplugged(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &a…
36 bool Reset(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &args);
37 …bool MockCapacity(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &ar…
Dbattery_service.h45 class BatteryService final : public SystemAbility,
47 DECLARE_SYSTEM_ABILITY(BatteryService)
49 DECLARE_DELAYED_SP_SINGLETON(BatteryService);
/base/powermgr/battery_lite/services/include/
Dbattery_manage_service.h30 typedef struct BatteryService { struct
33 } BatteryService; typedef
/base/powermgr/battery_lite/services/src/
Dbattery_manage_service.c39 static BatteryService *BatteryGetInstance(void);
43 BatteryService *batterService = BatteryGetInstance(); in Initialize()
86 static BatteryService g_batteryService = {
94 static BatteryService *BatteryGetInstance(void) in BatteryGetInstance()
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_callback_test.cpp27 sptr<BatteryService> g_service;
37 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase()
Dbattery_srv_stub_test.cpp34 sptr<BatteryService> g_service;
42 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase()
Dbattery_dump_test.cpp32 sptr<BatteryService> g_service;
36 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase()
Dbattery_plugged_wakeup_test.cpp34 static sptr<BatteryService> g_service;
40 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in SetUpTestCase()
Dbattery_service_test.cpp44 sptr<BatteryService> g_service;
64 g_service = DelayedSpSingleton<BatteryService>::GetInstance();
68 g_service = DelayedSpSingleton<BatteryService>::GetInstance();
/base/powermgr/battery_manager/test/fuzztest/battery_fuzzer/
Dbattery_fuzzer_test.cpp116 datas.WriteInterfaceToken(BatteryService::GetDescriptor()); in TestBatteryServiceStub()
121 DelayedSpSingleton<BatteryService>::GetInstance()->OnRemoteRequest(code, datas, reply, option); in TestBatteryServiceStub()
/base/powermgr/battery_manager/services/zidl/
Dibattery_srv.zidl18 /* the function about BatteryService */