1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation --structured --version 3 --hash notfrozen -t --stability vintf --min_sdk_version current --previous_api_dir=hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/2 --previous_hash 2f49c78011338b42b43d5d0e250d9b520850cc1f --ninja -d out/soong/.intermediates/hardware/interfaces/thermal/aidl/android.hardware.thermal-V3-ndk-source/gen/staging/android/hardware/thermal/IThermal.cpp.d -h out/soong/.intermediates/hardware/interfaces/thermal/aidl/android.hardware.thermal-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/thermal/aidl/android.hardware.thermal-V3-ndk-source/gen/staging -Nhardware/interfaces/thermal/aidl hardware/interfaces/thermal/aidl/android/hardware/thermal/IThermal.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #include <aidl/android/hardware/thermal/CoolingDevice.h>
18 #include <aidl/android/hardware/thermal/CoolingType.h>
19 #include <aidl/android/hardware/thermal/ICoolingDeviceChangedCallback.h>
20 #include <aidl/android/hardware/thermal/IThermalChangedCallback.h>
21 #include <aidl/android/hardware/thermal/Temperature.h>
22 #include <aidl/android/hardware/thermal/TemperatureThreshold.h>
23 #include <aidl/android/hardware/thermal/TemperatureType.h>
24 #ifdef BINDER_STABILITY_SUPPORT
25 #include <android/binder_stability.h>
26 #endif  // BINDER_STABILITY_SUPPORT
27 
28 namespace aidl::android::hardware::thermal {
29 class CoolingDevice;
30 class ICoolingDeviceChangedCallback;
31 class IThermalChangedCallback;
32 class Temperature;
33 class TemperatureThreshold;
34 }  // namespace aidl::android::hardware::thermal
35 namespace aidl {
36 namespace android {
37 namespace hardware {
38 namespace thermal {
39 class IThermalDelegator;
40 
41 class IThermal : public ::ndk::ICInterface {
42 public:
43   typedef IThermalDelegator DefaultDelegator;
44   static const char* descriptor;
45   IThermal();
46   virtual ~IThermal();
47 
48   static inline const int32_t version = true ? 2 : 3;
49   static inline const std::string hash = true ? "2f49c78011338b42b43d5d0e250d9b520850cc1f" : "notfrozen";
50   static constexpr uint32_t TRANSACTION_getCoolingDevices = FIRST_CALL_TRANSACTION + 0;
51   static constexpr uint32_t TRANSACTION_getCoolingDevicesWithType = FIRST_CALL_TRANSACTION + 1;
52   static constexpr uint32_t TRANSACTION_getTemperatures = FIRST_CALL_TRANSACTION + 2;
53   static constexpr uint32_t TRANSACTION_getTemperaturesWithType = FIRST_CALL_TRANSACTION + 3;
54   static constexpr uint32_t TRANSACTION_getTemperatureThresholds = FIRST_CALL_TRANSACTION + 4;
55   static constexpr uint32_t TRANSACTION_getTemperatureThresholdsWithType = FIRST_CALL_TRANSACTION + 5;
56   static constexpr uint32_t TRANSACTION_registerThermalChangedCallback = FIRST_CALL_TRANSACTION + 6;
57   static constexpr uint32_t TRANSACTION_registerThermalChangedCallbackWithType = FIRST_CALL_TRANSACTION + 7;
58   static constexpr uint32_t TRANSACTION_unregisterThermalChangedCallback = FIRST_CALL_TRANSACTION + 8;
59   static constexpr uint32_t TRANSACTION_registerCoolingDeviceChangedCallbackWithType = FIRST_CALL_TRANSACTION + 9;
60   static constexpr uint32_t TRANSACTION_unregisterCoolingDeviceChangedCallback = FIRST_CALL_TRANSACTION + 10;
61   static constexpr uint32_t TRANSACTION_forecastSkinTemperature = FIRST_CALL_TRANSACTION + 11;
62 
63   static std::shared_ptr<IThermal> fromBinder(const ::ndk::SpAIBinder& binder);
64   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IThermal>& instance);
65   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IThermal>* instance);
66   static bool setDefaultImpl(const std::shared_ptr<IThermal>& impl);
67   static const std::shared_ptr<IThermal>& getDefaultImpl();
68   virtual ::ndk::ScopedAStatus getCoolingDevices(std::vector<::aidl::android::hardware::thermal::CoolingDevice>* _aidl_return) = 0;
69   virtual ::ndk::ScopedAStatus getCoolingDevicesWithType(::aidl::android::hardware::thermal::CoolingType in_type, std::vector<::aidl::android::hardware::thermal::CoolingDevice>* _aidl_return) = 0;
70   virtual ::ndk::ScopedAStatus getTemperatures(std::vector<::aidl::android::hardware::thermal::Temperature>* _aidl_return) = 0;
71   virtual ::ndk::ScopedAStatus getTemperaturesWithType(::aidl::android::hardware::thermal::TemperatureType in_type, std::vector<::aidl::android::hardware::thermal::Temperature>* _aidl_return) = 0;
72   virtual ::ndk::ScopedAStatus getTemperatureThresholds(std::vector<::aidl::android::hardware::thermal::TemperatureThreshold>* _aidl_return) = 0;
73   virtual ::ndk::ScopedAStatus getTemperatureThresholdsWithType(::aidl::android::hardware::thermal::TemperatureType in_type, std::vector<::aidl::android::hardware::thermal::TemperatureThreshold>* _aidl_return) = 0;
74   virtual ::ndk::ScopedAStatus registerThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback) = 0;
75   virtual ::ndk::ScopedAStatus registerThermalChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback, ::aidl::android::hardware::thermal::TemperatureType in_type) = 0;
76   virtual ::ndk::ScopedAStatus unregisterThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback) = 0;
77   virtual ::ndk::ScopedAStatus registerCoolingDeviceChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback>& in_callback, ::aidl::android::hardware::thermal::CoolingType in_type) = 0;
78   virtual ::ndk::ScopedAStatus unregisterCoolingDeviceChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback>& in_callback) = 0;
79   virtual ::ndk::ScopedAStatus forecastSkinTemperature(int32_t in_forecastSeconds, float* _aidl_return) = 0;
80   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
81   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
82 private:
83   static std::shared_ptr<IThermal> default_impl;
84 };
85 class IThermalDefault : public IThermal {
86 public:
87   ::ndk::ScopedAStatus getCoolingDevices(std::vector<::aidl::android::hardware::thermal::CoolingDevice>* _aidl_return) override;
88   ::ndk::ScopedAStatus getCoolingDevicesWithType(::aidl::android::hardware::thermal::CoolingType in_type, std::vector<::aidl::android::hardware::thermal::CoolingDevice>* _aidl_return) override;
89   ::ndk::ScopedAStatus getTemperatures(std::vector<::aidl::android::hardware::thermal::Temperature>* _aidl_return) override;
90   ::ndk::ScopedAStatus getTemperaturesWithType(::aidl::android::hardware::thermal::TemperatureType in_type, std::vector<::aidl::android::hardware::thermal::Temperature>* _aidl_return) override;
91   ::ndk::ScopedAStatus getTemperatureThresholds(std::vector<::aidl::android::hardware::thermal::TemperatureThreshold>* _aidl_return) override;
92   ::ndk::ScopedAStatus getTemperatureThresholdsWithType(::aidl::android::hardware::thermal::TemperatureType in_type, std::vector<::aidl::android::hardware::thermal::TemperatureThreshold>* _aidl_return) override;
93   ::ndk::ScopedAStatus registerThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback) override;
94   ::ndk::ScopedAStatus registerThermalChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback, ::aidl::android::hardware::thermal::TemperatureType in_type) override;
95   ::ndk::ScopedAStatus unregisterThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback) override;
96   ::ndk::ScopedAStatus registerCoolingDeviceChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback>& in_callback, ::aidl::android::hardware::thermal::CoolingType in_type) override;
97   ::ndk::ScopedAStatus unregisterCoolingDeviceChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback>& in_callback) override;
98   ::ndk::ScopedAStatus forecastSkinTemperature(int32_t in_forecastSeconds, float* _aidl_return) override;
99   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
100   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
101   ::ndk::SpAIBinder asBinder() override;
102   bool isRemote() override;
103 };
104 }  // namespace thermal
105 }  // namespace hardware
106 }  // namespace android
107 }  // namespace aidl
108