Searched refs:health_info (Results 1 – 9 of 9) sorted by relevance
/hardware/interfaces/health/utils/libhealth2impl/ |
D | HalHealthLoop.cpp | 67 service_->getHealthInfo_2_1([this](auto res, const auto& health_info) { in ScheduleBatteryUpdate() argument 71 this->OnHealthInfoChanged(health_info); in ScheduleBatteryUpdate() 79 void HalHealthLoop::OnHealthInfoChanged(const HealthInfo& health_info) { in OnHealthInfoChanged() argument 80 set_charger_online(health_info); in OnHealthInfoChanged() 84 void HalHealthLoop::set_charger_online(const HealthInfo& health_info) { in set_charger_online() argument 85 const auto& props = health_info.legacy.legacy; in set_charger_online()
|
D | BinderHealth.cpp | 74 getHealthInfo_2_1([&](auto res, const auto& health_info) { in registerCallback() argument 79 auto ret = wrapped->Notify(health_info); in registerCallback() 117 getHealthInfo_2_1([&](auto res, const auto& health_info) { in update() argument 122 OnHealthInfoChanged(health_info); in update() 131 void BinderHealth::OnHealthInfoChanged(const HealthInfo& health_info) { in OnHealthInfoChanged() argument 135 auto ret = (*it)->Notify(health_info); in OnHealthInfoChanged() 145 HalHealthLoop::OnHealthInfoChanged(health_info); in OnHealthInfoChanged()
|
D | Health.cpp | 176 [&](auto res, const auto& health_info) { _hidl_cb(res, health_info.legacy); }); in getHealthInfo() argument 182 HealthInfo health_info = battery_monitor_.getHealthInfo_2_1(); in getHealthInfo_2_1() local 185 GetHealthInfoField(this, &Health::getStorageInfo, &health_info.legacy.storageInfos); in getHealthInfo_2_1() 186 GetHealthInfoField(this, &Health::getDiskStats, &health_info.legacy.diskStats); in getHealthInfo_2_1() 189 UpdateHealthInfo(&health_info); in getHealthInfo_2_1() 191 _hidl_cb(Result::SUCCESS, health_info); in getHealthInfo_2_1() 233 getHealthInfo_2_1([&](auto res, const auto& health_info) { in shouldKeepScreenOn() argument 238 V1_0::hal_conversion::convertFromHealthInfo(health_info.legacy.legacy, &props); in shouldKeepScreenOn()
|
/hardware/interfaces/health/utils/libhealth2impl/include/health2impl/ |
D | HalHealthLoop.h | 48 virtual void OnHealthInfoChanged(const HealthInfo& health_info); 55 void set_charger_online(const HealthInfo& health_info);
|
D | Health.h | 74 virtual void UpdateHealthInfo(HealthInfo* health_info);
|
D | BinderHealth.h | 92 void OnHealthInfoChanged(const HealthInfo& health_info) override;
|
/hardware/interfaces/health/2.0/vts/functional/ |
D | VtsHalHealthV2_0TargetTest.cpp | 215 bool verifyHealthInfo(const HealthInfo& health_info) { in verifyHealthInfo() argument 216 if (!verifyStorageInfo(health_info.storageInfos)) { in verifyHealthInfo() 223 if (!((health_info.legacy.batteryCurrent != INT32_MIN) && in verifyHealthInfo() 224 (0 <= health_info.legacy.batteryLevel && health_info.legacy.batteryLevel <= 100) && in verifyHealthInfo() 225 verifyEnum<BatteryHealth>(health_info.legacy.batteryHealth) && in verifyHealthInfo() 226 verifyEnum<BatteryStatus>(health_info.legacy.batteryStatus))) { in verifyHealthInfo() 230 if (health_info.legacy.batteryPresent) { in verifyHealthInfo() 232 if (!((health_info.legacy.batteryChargeCounter > 0) && in verifyHealthInfo() 233 (health_info.legacy.batteryStatus != BatteryStatus::UNKNOWN))) { in verifyHealthInfo()
|
/hardware/interfaces/health/2.1/ |
D | README.md | 68 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { 70 convertFromHealthInfo(health_info->legacy.legacy, &props); 72 convertToHealthInfo(&props, health_info->legacy.legacy); 76 `HealthImpl::UpdateHealthInfo` and modify `health_info` directly to avoid 241 // void UpdateHealthInfo(HealthInfo* health_info) override;
|
/hardware/interfaces/health/2.0/default/ |
D | Health.cpp | 156 const HealthInfo_1_0& health_info = battery_monitor_->getHealthInfo_1_0(); in update() local 158 convertFromHealthInfo(health_info, &props); in update()
|