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