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