diff options
author | Yifan Hong <elsk@google.com> | 2019-10-03 16:26:13 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-10-14 15:24:21 -0700 |
commit | 50c9e25251cfabb53c44bf6486b6aa606d71852a (patch) | |
tree | 116a723a4a12a3c600d0c0e6a06adc300c7d3ce5 /identity/support/src/cppbor_parse.cpp | |
parent | c04b0a3e207d738e96599ab7a2052c29a4658e98 (diff) |
[REFACTOR] health 2.0: healthd_common -> libhealthloop
This change converts the original healthd_common.cpp to a
C++ class, HealthLoop, that manages the infinite loop in health-related
modules (charger, health HAL, healthd, etc.). By doing so, the global
static variables (including FDs and healthd_mode_ops) are cleaned up.
This helps us implement health HAL 2.1.
In order to support legacy modules (namely, healthd, charger, health HAL
2.0, which all depends on android.hardware.health@2.0-impl), a
healthd_common_adapter.cpp file is added to
android.hardware.health@2.0-impl, so that the following functions
in healthd/healthd.h continues to be implemented using the global
healthd_mode_ops:
- healthd_register_event
- healthd_battery_update_internal
Test: boot up the device and run VTS test on health HAL.
Bug: 137670450
Bug: 142260281
Change-Id: Iadcfc1315155404a3600f0e1219b5bc370d96409
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions