Home
last modified time | relevance | path

Searched refs:health_info (Results 1 – 10 of 10) sorted by relevance

/device/google/cuttlefish/guest/hals/health/
Dhealth-aidl.cpp59 void UpdateHealthInfo(HealthInfo* health_info) override;
62 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
63 health_info->chargerAcOnline = true; in UpdateHealthInfo()
64 health_info->chargerUsbOnline = true; in UpdateHealthInfo()
65 health_info->chargerWirelessOnline = false; in UpdateHealthInfo()
66 health_info->maxChargingCurrentMicroamps = 500000; in UpdateHealthInfo()
67 health_info->maxChargingVoltageMicrovolts = 5000000; in UpdateHealthInfo()
68 health_info->batteryStatus = BatteryStatus::CHARGING; in UpdateHealthInfo()
69 health_info->batteryHealth = BatteryHealth::GOOD; in UpdateHealthInfo()
70 health_info->batteryPresent = true; in UpdateHealthInfo()
[all …]
Dhealth-hidl.cpp54 void UpdateHealthInfo(HealthInfo* health_info) override;
57 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
58 auto* battery_props = &health_info->legacy.legacy; in UpdateHealthInfo()
/device/google/gs201/health/
DHealth.cpp143 int private_healthd_board_battery_update(HealthInfo *health_info) { in private_healthd_board_battery_update() argument
145 deviceHealth.update(health_info); in private_healthd_board_battery_update()
146 battMetricsLogger.logBatteryProperties(*health_info); in private_healthd_board_battery_update()
147 shutdownMetrics.logShutdownVoltage(*health_info); in private_healthd_board_battery_update()
149 ChargerDetect::onlineUpdate(health_info); in private_healthd_board_battery_update()
150 battDefender.update(health_info); in private_healthd_board_battery_update()
152 …batt_level = (health_info->batteryStatus == ::aidl::android::hardware::health::BatteryStatus::FULL… in private_healthd_board_battery_update()
208 void UpdateHealthInfo(HealthInfo* health_info) override;
212 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
213 private_healthd_board_battery_update(health_info); in UpdateHealthInfo()
/device/google/gs101/health/
DHealth.cpp142 int private_healthd_board_battery_update(HealthInfo *health_info) { in private_healthd_board_battery_update() argument
143 deviceHealth.update(health_info); in private_healthd_board_battery_update()
144 battMetricsLogger.logBatteryProperties(*health_info); in private_healthd_board_battery_update()
145 shutdownMetrics.logShutdownVoltage(*health_info); in private_healthd_board_battery_update()
147 ChargerDetect::onlineUpdate(health_info); in private_healthd_board_battery_update()
148 battDefender.update(health_info); in private_healthd_board_battery_update()
151 !android::base::WriteStringToFile(std::to_string(health_info->batteryLevel), kWlcCapacity)) in private_healthd_board_battery_update()
205 void UpdateHealthInfo(HealthInfo* health_info) override;
209 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
210 private_healthd_board_battery_update(health_info); in UpdateHealthInfo()
/device/google/zuma/health/
DHealth.cpp143 int private_healthd_board_battery_update(HealthInfo *health_info) { in private_healthd_board_battery_update() argument
144 deviceHealth.update(health_info); in private_healthd_board_battery_update()
145 battMetricsLogger.logBatteryProperties(*health_info); in private_healthd_board_battery_update()
146 shutdownMetrics.logShutdownVoltage(*health_info); in private_healthd_board_battery_update()
148 ChargerDetect::onlineUpdate(health_info); in private_healthd_board_battery_update()
149 battDefender.update(health_info); in private_healthd_board_battery_update()
152 !android::base::WriteStringToFile(std::to_string(health_info->batteryLevel), kWlcCapacity)) in private_healthd_board_battery_update()
206 void UpdateHealthInfo(HealthInfo* health_info) override;
210 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
211 private_healthd_board_battery_update(health_info); in UpdateHealthInfo()
/device/google/zumapro/health/
DHealth.cpp143 int private_healthd_board_battery_update(HealthInfo *health_info) { in private_healthd_board_battery_update() argument
144 deviceHealth.update(health_info); in private_healthd_board_battery_update()
145 battMetricsLogger.logBatteryProperties(*health_info); in private_healthd_board_battery_update()
146 shutdownMetrics.logShutdownVoltage(*health_info); in private_healthd_board_battery_update()
148 ChargerDetect::onlineUpdate(health_info); in private_healthd_board_battery_update()
149 battDefender.update(health_info); in private_healthd_board_battery_update()
152 !android::base::WriteStringToFile(std::to_string(health_info->batteryLevel), kWlcCapacity)) in private_healthd_board_battery_update()
206 void UpdateHealthInfo(HealthInfo* health_info) override;
210 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
211 private_healthd_board_battery_update(health_info); in UpdateHealthInfo()
/device/generic/car/hals/health/
DHealthImpl.cpp51 void UpdateHealthInfo(HealthInfo* health_info) override;
84 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
85 health_info->chargerAcOnline = true; in UpdateHealthInfo()
86 health_info->batteryStatus = BatteryStatus::CHARGING; in UpdateHealthInfo()
87 health_info->batteryLevel = 100; in UpdateHealthInfo()
88 health_info->batteryChargeTimeToFullNowSeconds = 0; in UpdateHealthInfo()
/device/google/sunfish/health/
DHealth.cpp157 void UpdateHealthInfo(HealthInfo* health_info) override;
161 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
163 convertFromHealthInfo(health_info->legacy.legacy, &props); in UpdateHealthInfo()
165 convertToHealthInfo(&props, health_info->legacy.legacy); in UpdateHealthInfo()
/device/google/redbull/health/
DHealth.cpp182 void UpdateHealthInfo(HealthInfo* health_info) override;
186 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
188 convertFromHealthInfo(health_info->legacy.legacy, &props); in UpdateHealthInfo()
190 convertToHealthInfo(&props, health_info->legacy.legacy); in UpdateHealthInfo()
/device/google/coral/health/
DHealth.cpp192 void UpdateHealthInfo(HealthInfo* health_info) override;
196 void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) { in UpdateHealthInfo() argument
198 convertFromHealthInfo(health_info->legacy.legacy, &props); in UpdateHealthInfo()
200 convertToHealthInfo(&props, health_info->legacy.legacy); in UpdateHealthInfo()