Home
last modified time | relevance | path

Searched refs:PowerSupplyProvider (Results 1 - 7 of 7) sorted by relevance

/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dpower_supply_provider.cpp72 PowerSupplyProvider::PowerSupplyProvider() in PowerSupplyProvider() function in OHOS::HDI::Battery::V2_0::PowerSupplyProvider
78 PowerSupplyProvider::~PowerSupplyProvider() in ~PowerSupplyProvider()
89 inline int32_t PowerSupplyProvider::ParseInt(const char* str) in ParseInt()
94 inline void PowerSupplyProvider::Trim(char* str) in Trim()
108 inline void PowerSupplyProvider::CapacityAssigner(const char* str, struct BatterydInfo* info) in CapacityAssigner()
113 inline void PowerSupplyProvider::TotalEnergyAssigner(const char* str, struct BatterydInfo* info) in TotalEnergyAssigner()
118 inline void PowerSupplyProvider::RemainEnergyAssigner(const char* str, struct BatterydInfo* info) in RemainEnergyAssigner()
123 inline void PowerSupplyProvider
[all...]
H A Dbattery_thread.cpp106 if ((chargeState != PowerSupplyProvider::CHARGE_STATE_NONE) && in UpdateEpollInterval()
107 (chargeState != PowerSupplyProvider::CHARGE_STATE_RESERVED)) { in UpdateEpollInterval()
138 provider_ = std::make_unique<PowerSupplyProvider>(); in Init()
H A Dbattery_interface_impl.cpp48 powerSupplyProvider_ = std::make_unique<OHOS::HDI::Battery::V2_0::PowerSupplyProvider>(); in Init()
50 BATTERY_HILOGE(COMP_HDI, "make_unique PowerSupplyProvider error"); in Init()
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/
H A Dhdi_service_test.cpp51 std::unique_ptr<PowerSupplyProvider> giver_ = nullptr;
55 giver_ = std::make_unique<PowerSupplyProvider>(); in SetUpTestCase()
57 BATTERY_HILOGI(LABEL_TEST, "Failed to get PowerSupplyProvider"); in SetUpTestCase()
483 {"Good", PowerSupplyProvider::BATTERY_HEALTH_GOOD }, in HealthStateEnumConverter()
484 {"Cold", PowerSupplyProvider::BATTERY_HEALTH_COLD }, in HealthStateEnumConverter()
485 {"Warm", PowerSupplyProvider::BATTERY_HEALTH_GOOD }, // JEITA specification in HealthStateEnumConverter()
486 {"Cool", PowerSupplyProvider::BATTERY_HEALTH_GOOD }, // JEITA specification in HealthStateEnumConverter()
487 {"Hot", PowerSupplyProvider::BATTERY_HEALTH_OVERHEAT }, // JEITA specification in HealthStateEnumConverter()
488 {"Overheat", PowerSupplyProvider::BATTERY_HEALTH_OVERHEAT }, in HealthStateEnumConverter()
489 {"Over voltage", PowerSupplyProvider in HealthStateEnumConverter()
[all...]
/drivers/peripheral/battery/interfaces/hdi_service/include/
H A Dpower_supply_provider.h32 class PowerSupplyProvider { class
74 PowerSupplyProvider();
75 virtual ~PowerSupplyProvider();
H A Dbattery_thread.h66 std::unique_ptr<PowerSupplyProvider> provider_ = nullptr;
H A Dbattery_interface_impl.h68 std::unique_ptr<OHOS::HDI::Battery::V2_0::PowerSupplyProvider> powerSupplyProvider_ = nullptr;

Completed in 7 milliseconds