Steven Moreland | d6e4f03 | 2016-11-28 18:37:07 -0800 | [diff] [blame^] | 1 | #ifndef ANDROID_HARDWARE_THERMAL_V1_0_THERMAL_H |
| 2 | #define ANDROID_HARDWARE_THERMAL_V1_0_THERMAL_H |
Polina Bondarenko | 254e2fe | 2016-10-11 16:39:23 +0200 | [diff] [blame] | 3 | |
| 4 | #include <android/hardware/thermal/1.0/IThermal.h> |
| 5 | #include <hidl/Status.h> |
| 6 | #include <hardware/thermal.h> |
| 7 | |
| 8 | #include <hidl/MQDescriptor.h> |
| 9 | |
| 10 | namespace android { |
| 11 | namespace hardware { |
| 12 | namespace thermal { |
| 13 | namespace V1_0 { |
| 14 | namespace implementation { |
| 15 | |
| 16 | using ::android::hardware::thermal::V1_0::CoolingDevice; |
| 17 | using ::android::hardware::thermal::V1_0::CpuUsage; |
| 18 | using ::android::hardware::thermal::V1_0::IThermal; |
| 19 | using ::android::hardware::thermal::V1_0::Temperature; |
| 20 | using ::android::hardware::thermal::V1_0::ThermalStatus; |
| 21 | using ::android::hardware::Return; |
| 22 | using ::android::hardware::Void; |
| 23 | using ::android::hardware::hidl_vec; |
| 24 | using ::android::hardware::hidl_string; |
| 25 | using ::android::sp; |
| 26 | |
| 27 | struct Thermal : public IThermal { |
| 28 | Thermal(thermal_module_t* module); |
| 29 | // Methods from ::android::hardware::thermal::V1_0::IThermal follow. |
| 30 | Return<void> getTemperatures(getTemperatures_cb _hidl_cb) override; |
| 31 | Return<void> getCpuUsages(getCpuUsages_cb _hidl_cb) override; |
| 32 | Return<void> getCoolingDevices(getCoolingDevices_cb _hidl_cb) override; |
| 33 | private: |
| 34 | thermal_module_t* mModule; |
| 35 | }; |
| 36 | |
| 37 | extern "C" IThermal* HIDL_FETCH_IThermal(const char* name); |
| 38 | |
| 39 | } // namespace implementation |
| 40 | } // namespace V1_0 |
| 41 | } // namespace thermal |
| 42 | } // namespace hardware |
| 43 | } // namespace android |
| 44 | |
Steven Moreland | d6e4f03 | 2016-11-28 18:37:07 -0800 | [diff] [blame^] | 45 | #endif // ANDROID_HARDWARE_THERMAL_V1_0_THERMAL_H |