Sandeep Patil | c7a5ff7 | 2016-11-08 16:35:04 -0800 | [diff] [blame] | 1 | #ifndef HIDL_GENERATED_android_hardware_health_V1_0_Health_H_ |
| 2 | #define HIDL_GENERATED_android_hardware_health_V1_0_Health_H_ |
| 3 | |
| 4 | #include <android/hardware/health/1.0/IHealth.h> |
| 5 | #include <hidl/Status.h> |
| 6 | #include <hidl/MQDescriptor.h> |
| 7 | #include <healthd/healthd.h> |
| 8 | #include <utils/String8.h> |
| 9 | |
| 10 | namespace android { |
| 11 | namespace hardware { |
| 12 | namespace health { |
| 13 | namespace V1_0 { |
| 14 | namespace implementation { |
| 15 | |
| 16 | using ::android::hardware::health::V1_0::HealthInfo; |
| 17 | using ::android::hardware::health::V1_0::HealthConfig; |
| 18 | using ::android::hardware::health::V1_0::IHealth; |
| 19 | using ::android::hardware::Return; |
| 20 | using ::android::hardware::Void; |
| 21 | using ::android::hardware::hidl_vec; |
| 22 | using ::android::hardware::hidl_string; |
| 23 | using ::android::sp; |
| 24 | |
| 25 | struct Health : public IHealth { |
| 26 | // Methods from ::android::hardware::health::V1_0::IHealth follow. |
| 27 | Return<void> init(const HealthConfig& config, init_cb _hidl_cb) override; |
| 28 | Return<void> update(const HealthInfo& info, update_cb _hidl_cb) override; |
| 29 | Return<void> energyCounter(energyCounter_cb _hidl_cb) override; |
| 30 | private: |
| 31 | std::function<int(int64_t *)> mGetEnergyCounter; |
| 32 | }; |
| 33 | |
| 34 | extern "C" IHealth* HIDL_FETCH_IHealth(const char* name); |
| 35 | |
| 36 | } // namespace implementation |
| 37 | } // namespace V1_0 |
| 38 | } // namespace health |
| 39 | } // namespace hardware |
| 40 | } // namespace android |
| 41 | |
| 42 | #endif // HIDL_GENERATED_android_hardware_health_V1_0_Health_H_ |