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 "aidl/android/hardware/thermal/IThermal.h" 12 13 #include <android/binder_ibinder.h> 14 #include <cassert> 15 16 #ifndef __BIONIC__ 17 #ifndef __assert2 18 #define __assert2(a,b,c,d) ((void)0) 19 #endif 20 #endif 21 22 namespace aidl { 23 namespace android { 24 namespace hardware { 25 namespace thermal { 26 class BnThermal : public ::ndk::BnCInterface<IThermal> { 27 public: 28 BnThermal(); 29 virtual ~BnThermal(); 30 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final; 31 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final; 32 protected: 33 ::ndk::SpAIBinder createBinder() override; 34 private: 35 }; 36 class IThermalDelegator : public BnThermal { 37 public: IThermalDelegator(const std::shared_ptr<IThermal> & impl)38 explicit IThermalDelegator(const std::shared_ptr<IThermal> &impl) : _impl(impl) { 39 int32_t _impl_ver = 0; 40 if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {; 41 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation."); 42 } 43 if (_impl_ver != IThermal::version) { 44 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 45 } 46 } 47 getCoolingDevices(std::vector<::aidl::android::hardware::thermal::CoolingDevice> * _aidl_return)48 ::ndk::ScopedAStatus getCoolingDevices(std::vector<::aidl::android::hardware::thermal::CoolingDevice>* _aidl_return) override { 49 return _impl->getCoolingDevices(_aidl_return); 50 } getCoolingDevicesWithType(::aidl::android::hardware::thermal::CoolingType in_type,std::vector<::aidl::android::hardware::thermal::CoolingDevice> * _aidl_return)51 ::ndk::ScopedAStatus getCoolingDevicesWithType(::aidl::android::hardware::thermal::CoolingType in_type, std::vector<::aidl::android::hardware::thermal::CoolingDevice>* _aidl_return) override { 52 return _impl->getCoolingDevicesWithType(in_type, _aidl_return); 53 } getTemperatures(std::vector<::aidl::android::hardware::thermal::Temperature> * _aidl_return)54 ::ndk::ScopedAStatus getTemperatures(std::vector<::aidl::android::hardware::thermal::Temperature>* _aidl_return) override { 55 return _impl->getTemperatures(_aidl_return); 56 } getTemperaturesWithType(::aidl::android::hardware::thermal::TemperatureType in_type,std::vector<::aidl::android::hardware::thermal::Temperature> * _aidl_return)57 ::ndk::ScopedAStatus getTemperaturesWithType(::aidl::android::hardware::thermal::TemperatureType in_type, std::vector<::aidl::android::hardware::thermal::Temperature>* _aidl_return) override { 58 return _impl->getTemperaturesWithType(in_type, _aidl_return); 59 } getTemperatureThresholds(std::vector<::aidl::android::hardware::thermal::TemperatureThreshold> * _aidl_return)60 ::ndk::ScopedAStatus getTemperatureThresholds(std::vector<::aidl::android::hardware::thermal::TemperatureThreshold>* _aidl_return) override { 61 return _impl->getTemperatureThresholds(_aidl_return); 62 } getTemperatureThresholdsWithType(::aidl::android::hardware::thermal::TemperatureType in_type,std::vector<::aidl::android::hardware::thermal::TemperatureThreshold> * _aidl_return)63 ::ndk::ScopedAStatus getTemperatureThresholdsWithType(::aidl::android::hardware::thermal::TemperatureType in_type, std::vector<::aidl::android::hardware::thermal::TemperatureThreshold>* _aidl_return) override { 64 return _impl->getTemperatureThresholdsWithType(in_type, _aidl_return); 65 } registerThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback> & in_callback)66 ::ndk::ScopedAStatus registerThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback) override { 67 return _impl->registerThermalChangedCallback(in_callback); 68 } registerThermalChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback> & in_callback,::aidl::android::hardware::thermal::TemperatureType in_type)69 ::ndk::ScopedAStatus registerThermalChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback, ::aidl::android::hardware::thermal::TemperatureType in_type) override { 70 return _impl->registerThermalChangedCallbackWithType(in_callback, in_type); 71 } unregisterThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback> & in_callback)72 ::ndk::ScopedAStatus unregisterThermalChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::IThermalChangedCallback>& in_callback) override { 73 return _impl->unregisterThermalChangedCallback(in_callback); 74 } registerCoolingDeviceChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback> & in_callback,::aidl::android::hardware::thermal::CoolingType in_type)75 ::ndk::ScopedAStatus registerCoolingDeviceChangedCallbackWithType(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback>& in_callback, ::aidl::android::hardware::thermal::CoolingType in_type) override { 76 return _impl->registerCoolingDeviceChangedCallbackWithType(in_callback, in_type); 77 } unregisterCoolingDeviceChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback> & in_callback)78 ::ndk::ScopedAStatus unregisterCoolingDeviceChangedCallback(const std::shared_ptr<::aidl::android::hardware::thermal::ICoolingDeviceChangedCallback>& in_callback) override { 79 return _impl->unregisterCoolingDeviceChangedCallback(in_callback); 80 } forecastSkinTemperature(int32_t in_forecastSeconds,float * _aidl_return)81 ::ndk::ScopedAStatus forecastSkinTemperature(int32_t in_forecastSeconds, float* _aidl_return) override { 82 return _impl->forecastSkinTemperature(in_forecastSeconds, _aidl_return); 83 } 84 protected: 85 private: 86 std::shared_ptr<IThermal> _impl; 87 }; 88 89 } // namespace thermal 90 } // namespace hardware 91 } // namespace android 92 } // namespace aidl 93