platform_hardware_interfaces/health/2.0/utils
Yifan Hong 6ab518e0df libhealthhalutils is recovery_available
Test: build it with recovery
Bug: 80132328
Change-Id: I0728b9a900577cc41cb8acb3d70dd0afb507fb2a
2018-08-13 12:55:36 -07:00
..
libhealthhalutils libhealthhalutils is recovery_available 2018-08-13 12:55:36 -07:00
libhealthservice IWYU: healthd IPCThreadState 2018-08-01 01:23:53 +00:00
libhealthstoragedefault health: libhealthstoragedefault: recovery_available 2018-07-18 11:28:08 -07:00
README.md health: convert README to markdown format. 2018-08-08 11:06:51 -07:00

libhealthhalutils

A convenience library for (hwbinder) clients of health HAL to choose between the "default" instance (served by vendor service) or "backup" instance (served by healthd). C++ clients of health HAL should use this library instead of calling IHealth::getService() directly.

Its Java equivalent can be found in BatteryService.HealthServiceWrapper.

libhealthservice

Common code for all (hwbinder) services of the health HAL, including healthd and vendor health service android.hardware.health@2.0-service(.<vendor>). main() in those binaries calls health_service_main() directly.

libhealthstoragedefault

Default implementation for storage related APIs for (hwbinder) services of the health HAL. If an implementation of the health HAL do not wish to provide any storage info, include this library. Otherwise, it should implement the following two functions:

void get_storage_info(std::vector<struct StorageInfo>& info) {
    // ...
}
void get_disk_stats(std::vector<struct DiskStats>& stats) {
    // ...
}