blob: c05751f1edf9f854cf9f55c1eadf3029845e92df [file] [log] [blame]
Sandeep Patilc7a5ff72016-11-08 16:35:04 -08001#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
10namespace android {
11namespace hardware {
12namespace health {
13namespace V1_0 {
14namespace implementation {
15
16using ::android::hardware::health::V1_0::HealthInfo;
17using ::android::hardware::health::V1_0::HealthConfig;
18using ::android::hardware::health::V1_0::IHealth;
19using ::android::hardware::Return;
20using ::android::hardware::Void;
21using ::android::hardware::hidl_vec;
22using ::android::hardware::hidl_string;
23using ::android::sp;
24
25struct 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;
30private:
31 std::function<int(int64_t *)> mGetEnergyCounter;
32};
33
34extern "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_