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/IThermalChangedCallback.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/IThermalChangedCallback.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/Temperature.h> 18 #include <aidl/android/hardware/thermal/TemperatureThreshold.h> 19 #ifdef BINDER_STABILITY_SUPPORT 20 #include <android/binder_stability.h> 21 #endif // BINDER_STABILITY_SUPPORT 22 23 namespace aidl::android::hardware::thermal { 24 class Temperature; 25 class TemperatureThreshold; 26 } // namespace aidl::android::hardware::thermal 27 namespace aidl { 28 namespace android { 29 namespace hardware { 30 namespace thermal { 31 class IThermalChangedCallbackDelegator; 32 33 class IThermalChangedCallback : public ::ndk::ICInterface { 34 public: 35 typedef IThermalChangedCallbackDelegator DefaultDelegator; 36 static const char* descriptor; 37 IThermalChangedCallback(); 38 virtual ~IThermalChangedCallback(); 39 40 static inline const int32_t version = true ? 2 : 3; 41 static inline const std::string hash = true ? "2f49c78011338b42b43d5d0e250d9b520850cc1f" : "notfrozen"; 42 static constexpr uint32_t TRANSACTION_notifyThrottling = FIRST_CALL_TRANSACTION + 0; 43 static constexpr uint32_t TRANSACTION_notifyThresholdChanged = FIRST_CALL_TRANSACTION + 1; 44 45 static std::shared_ptr<IThermalChangedCallback> fromBinder(const ::ndk::SpAIBinder& binder); 46 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IThermalChangedCallback>& instance); 47 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IThermalChangedCallback>* instance); 48 static bool setDefaultImpl(const std::shared_ptr<IThermalChangedCallback>& impl); 49 static const std::shared_ptr<IThermalChangedCallback>& getDefaultImpl(); 50 virtual ::ndk::ScopedAStatus notifyThrottling(const ::aidl::android::hardware::thermal::Temperature& in_temperature) = 0; 51 virtual ::ndk::ScopedAStatus notifyThresholdChanged(const ::aidl::android::hardware::thermal::TemperatureThreshold& in_threshold) = 0; 52 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 53 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 54 private: 55 static std::shared_ptr<IThermalChangedCallback> default_impl; 56 }; 57 class IThermalChangedCallbackDefault : public IThermalChangedCallback { 58 public: 59 ::ndk::ScopedAStatus notifyThrottling(const ::aidl::android::hardware::thermal::Temperature& in_temperature) override; 60 ::ndk::ScopedAStatus notifyThresholdChanged(const ::aidl::android::hardware::thermal::TemperatureThreshold& in_threshold) override; 61 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 62 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 63 ::ndk::SpAIBinder asBinder() override; 64 bool isRemote() override; 65 }; 66 } // namespace thermal 67 } // namespace hardware 68 } // namespace android 69 } // namespace aidl 70