blob: 7280ee64fc3218c94963ea0d749a4fbdfa05fd5d [file] [log] [blame]
Steven Morelandd6e4f032016-11-28 18:37:07 -08001#ifndef ANDROID_HARDWARE_THERMAL_V1_0_THERMAL_H
2#define ANDROID_HARDWARE_THERMAL_V1_0_THERMAL_H
Polina Bondarenko254e2fe2016-10-11 16:39:23 +02003
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
10namespace android {
11namespace hardware {
12namespace thermal {
13namespace V1_0 {
14namespace implementation {
15
16using ::android::hardware::thermal::V1_0::CoolingDevice;
17using ::android::hardware::thermal::V1_0::CpuUsage;
18using ::android::hardware::thermal::V1_0::IThermal;
19using ::android::hardware::thermal::V1_0::Temperature;
20using ::android::hardware::thermal::V1_0::ThermalStatus;
21using ::android::hardware::Return;
22using ::android::hardware::Void;
23using ::android::hardware::hidl_vec;
24using ::android::hardware::hidl_string;
25using ::android::sp;
26
27struct 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
37extern "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 Morelandd6e4f032016-11-28 18:37:07 -080045#endif // ANDROID_HARDWARE_THERMAL_V1_0_THERMAL_H