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 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl --previous_api_dir=hardware/interfaces/tv/tuner/aidl/aidl_api/android.hardware.tv.tuner/2 --previous_hash f8d74c149f04e76b6d622db2bd8e465dae24b08c --ninja -d out/soong/.intermediates/hardware/interfaces/tv/tuner/aidl/android.hardware.tv.tuner-V3-ndk-source/gen/staging/android/hardware/tv/tuner/ILnb.cpp.d -h out/soong/.intermediates/hardware/interfaces/tv/tuner/aidl/android.hardware.tv.tuner-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/tv/tuner/aidl/android.hardware.tv.tuner-V3-ndk-source/gen/staging -Nhardware/interfaces/tv/tuner/aidl hardware/interfaces/tv/tuner/aidl/android/hardware/tv/tuner/ILnb.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/tv/tuner/ILnbCallback.h>
18 #include <aidl/android/hardware/tv/tuner/LnbPosition.h>
19 #include <aidl/android/hardware/tv/tuner/LnbTone.h>
20 #include <aidl/android/hardware/tv/tuner/LnbVoltage.h>
21 #ifdef BINDER_STABILITY_SUPPORT
22 #include <android/binder_stability.h>
23 #endif  // BINDER_STABILITY_SUPPORT
24 
25 namespace aidl::android::hardware::tv::tuner {
26 class ILnbCallback;
27 }  // namespace aidl::android::hardware::tv::tuner
28 namespace aidl {
29 namespace android {
30 namespace hardware {
31 namespace tv {
32 namespace tuner {
33 class ILnbDelegator;
34 
35 class ILnb : public ::ndk::ICInterface {
36 public:
37   typedef ILnbDelegator DefaultDelegator;
38   static const char* descriptor;
39   ILnb();
40   virtual ~ILnb();
41 
42   static inline const int32_t version = true ? 2 : 3;
43   static inline const std::string hash = true ? "f8d74c149f04e76b6d622db2bd8e465dae24b08c" : "notfrozen";
44   static constexpr uint32_t TRANSACTION_setCallback = FIRST_CALL_TRANSACTION + 0;
45   static constexpr uint32_t TRANSACTION_setVoltage = FIRST_CALL_TRANSACTION + 1;
46   static constexpr uint32_t TRANSACTION_setTone = FIRST_CALL_TRANSACTION + 2;
47   static constexpr uint32_t TRANSACTION_setSatellitePosition = FIRST_CALL_TRANSACTION + 3;
48   static constexpr uint32_t TRANSACTION_sendDiseqcMessage = FIRST_CALL_TRANSACTION + 4;
49   static constexpr uint32_t TRANSACTION_close = FIRST_CALL_TRANSACTION + 5;
50 
51   static std::shared_ptr<ILnb> fromBinder(const ::ndk::SpAIBinder& binder);
52   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<ILnb>& instance);
53   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<ILnb>* instance);
54   static bool setDefaultImpl(const std::shared_ptr<ILnb>& impl);
55   static const std::shared_ptr<ILnb>& getDefaultImpl();
56   virtual ::ndk::ScopedAStatus setCallback(const std::shared_ptr<::aidl::android::hardware::tv::tuner::ILnbCallback>& in_callback) = 0;
57   virtual ::ndk::ScopedAStatus setVoltage(::aidl::android::hardware::tv::tuner::LnbVoltage in_voltage) = 0;
58   virtual ::ndk::ScopedAStatus setTone(::aidl::android::hardware::tv::tuner::LnbTone in_tone) = 0;
59   virtual ::ndk::ScopedAStatus setSatellitePosition(::aidl::android::hardware::tv::tuner::LnbPosition in_position) = 0;
60   virtual ::ndk::ScopedAStatus sendDiseqcMessage(const std::vector<uint8_t>& in_diseqcMessage) = 0;
61   virtual ::ndk::ScopedAStatus close() = 0;
62   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
63   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
64 private:
65   static std::shared_ptr<ILnb> default_impl;
66 };
67 class ILnbDefault : public ILnb {
68 public:
69   ::ndk::ScopedAStatus setCallback(const std::shared_ptr<::aidl::android::hardware::tv::tuner::ILnbCallback>& in_callback) override;
70   ::ndk::ScopedAStatus setVoltage(::aidl::android::hardware::tv::tuner::LnbVoltage in_voltage) override;
71   ::ndk::ScopedAStatus setTone(::aidl::android::hardware::tv::tuner::LnbTone in_tone) override;
72   ::ndk::ScopedAStatus setSatellitePosition(::aidl::android::hardware::tv::tuner::LnbPosition in_position) override;
73   ::ndk::ScopedAStatus sendDiseqcMessage(const std::vector<uint8_t>& in_diseqcMessage) override;
74   ::ndk::ScopedAStatus close() override;
75   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
76   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
77   ::ndk::SpAIBinder asBinder() override;
78   bool isRemote() override;
79 };
80 }  // namespace tuner
81 }  // namespace tv
82 }  // namespace hardware
83 }  // namespace android
84 }  // namespace aidl
85