1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 2 --hash 4470ddfe78d3a0c44832ac08f46e8283fd090347 -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/1/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/tv/input/aidl/android.hardware.tv.input-V2-ndk-source/gen/staging/android/hardware/tv/input/ITvInputCallback.cpp.d -h out/soong/.intermediates/hardware/interfaces/tv/input/aidl/android.hardware.tv.input-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/tv/input/aidl/android.hardware.tv.input-V2-ndk-source/gen/staging -Nhardware/interfaces/tv/input/aidl/aidl_api/android.hardware.tv.input/2 hardware/interfaces/tv/input/aidl/aidl_api/android.hardware.tv.input/2/android/hardware/tv/input/ITvInputCallback.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/input/TvInputEvent.h>
18 #include <aidl/android/hardware/tv/input/TvMessageEvent.h>
19 #ifdef BINDER_STABILITY_SUPPORT
20 #include <android/binder_stability.h>
21 #endif  // BINDER_STABILITY_SUPPORT
22 
23 namespace aidl::android::hardware::tv::input {
24 class TvInputEvent;
25 class TvMessageEvent;
26 }  // namespace aidl::android::hardware::tv::input
27 namespace aidl {
28 namespace android {
29 namespace hardware {
30 namespace tv {
31 namespace input {
32 class ITvInputCallbackDelegator;
33 
34 class ITvInputCallback : public ::ndk::ICInterface {
35 public:
36   typedef ITvInputCallbackDelegator DefaultDelegator;
37   static const char* descriptor;
38   ITvInputCallback();
39   virtual ~ITvInputCallback();
40 
41   static inline const int32_t version = 2;
42   static inline const std::string hash = "4470ddfe78d3a0c44832ac08f46e8283fd090347";
43   static constexpr uint32_t TRANSACTION_notify = FIRST_CALL_TRANSACTION + 0;
44   static constexpr uint32_t TRANSACTION_notifyTvMessageEvent = FIRST_CALL_TRANSACTION + 1;
45 
46   static std::shared_ptr<ITvInputCallback> fromBinder(const ::ndk::SpAIBinder& binder);
47   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<ITvInputCallback>& instance);
48   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<ITvInputCallback>* instance);
49   static bool setDefaultImpl(const std::shared_ptr<ITvInputCallback>& impl);
50   static const std::shared_ptr<ITvInputCallback>& getDefaultImpl();
51   virtual ::ndk::ScopedAStatus notify(const ::aidl::android::hardware::tv::input::TvInputEvent& in_event) = 0;
52   virtual ::ndk::ScopedAStatus notifyTvMessageEvent(const ::aidl::android::hardware::tv::input::TvMessageEvent& in_event) = 0;
53   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
54   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
55 private:
56   static std::shared_ptr<ITvInputCallback> default_impl;
57 };
58 class ITvInputCallbackDefault : public ITvInputCallback {
59 public:
60   ::ndk::ScopedAStatus notify(const ::aidl::android::hardware::tv::input::TvInputEvent& in_event) override;
61   ::ndk::ScopedAStatus notifyTvMessageEvent(const ::aidl::android::hardware::tv::input::TvMessageEvent& in_event) override;
62   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
63   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
64   ::ndk::SpAIBinder asBinder() override;
65   bool isRemote() override;
66 };
67 }  // namespace input
68 }  // namespace tv
69 }  // namespace hardware
70 }  // namespace android
71 }  // namespace aidl
72