Home | History | Annotate | only in /hardware/interfaces/health/2.0/utils
Up to higher level directory
NameDateSize
libhealthhalutils/21-Aug-2018
libhealthservice/21-Aug-2018
libhealthstoragedefault/21-Aug-2018
README21-Aug-20181K

README

      1 * libhealthhalutils
      2 
      3 A convenience library for (hwbinder) clients of health HAL to choose between
      4 the "default" instance (served by vendor service) or "backup" instance (served
      5 by healthd). C++ clients of health HAL should use this library instead of
      6 calling IHealth::getService() directly.
      7 
      8 Its Java equivalent can be found in BatteryService.HealthServiceWrapper.
      9 
     10 * libhealthservice
     11 
     12 Common code for all (hwbinder) services of the health HAL, including healthd and
     13 vendor health service android.hardware.health (a] 2.0-service(.<vendor>). main() in
     14 those binaries calls health_service_main() directly.
     15 
     16 * libhealthstoragedefault
     17 
     18 Default implementation for storage related APIs for (hwbinder) services of the
     19 health HAL. If an implementation of the health HAL do not wish to provide any
     20 storage info, include this library. Otherwise, it should implement the following
     21 two functions:
     22 
     23 void get_storage_info(std::vector<struct StorageInfo>& info) {
     24     // ...
     25 }
     26 void get_disk_stats(std::vector<struct DiskStats>& stats) {
     27     // ...
     28 }
     29