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 4 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common_interface/6/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/drm/common/aidl/android.hardware.drm.common_interface/1/preprocessed.aidl --previous_api_dir=hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/3 --previous_hash d24fcd9648b8b2e7287f9238eee9180244612c10 --ninja -d out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/staging/android/hardware/graphics/composer3/IComposerCallback.cpp.d -h out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/staging -Nhardware/interfaces/graphics/composer/aidl hardware/interfaces/graphics/composer/aidl/android/hardware/graphics/composer3/IComposerCallback.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/drm/HdcpLevels.h>
18 #include <aidl/android/hardware/graphics/common/DisplayHotplugEvent.h>
19 #include <aidl/android/hardware/graphics/composer3/RefreshRateChangedDebugData.h>
20 #include <aidl/android/hardware/graphics/composer3/VsyncPeriodChangeTimeline.h>
21 #ifdef BINDER_STABILITY_SUPPORT
22 #include <android/binder_stability.h>
23 #endif  // BINDER_STABILITY_SUPPORT
24 
25 namespace aidl::android::hardware::drm {
26 class HdcpLevels;
27 }  // namespace aidl::android::hardware::drm
28 namespace aidl::android::hardware::graphics::composer3 {
29 class RefreshRateChangedDebugData;
30 class VsyncPeriodChangeTimeline;
31 }  // namespace aidl::android::hardware::graphics::composer3
32 namespace aidl {
33 namespace android {
34 namespace hardware {
35 namespace graphics {
36 namespace composer3 {
37 class IComposerCallbackDelegator;
38 
39 class IComposerCallback : public ::ndk::ICInterface {
40 public:
41   typedef IComposerCallbackDelegator DefaultDelegator;
42   static const char* descriptor;
43   IComposerCallback();
44   virtual ~IComposerCallback();
45 
46   static inline const int32_t version = true ? 3 : 4;
47   static inline const std::string hash = true ? "d24fcd9648b8b2e7287f9238eee9180244612c10" : "notfrozen";
48   static constexpr uint32_t TRANSACTION_onHotplug = FIRST_CALL_TRANSACTION + 0;
49   static constexpr uint32_t TRANSACTION_onRefresh = FIRST_CALL_TRANSACTION + 1;
50   static constexpr uint32_t TRANSACTION_onSeamlessPossible = FIRST_CALL_TRANSACTION + 2;
51   static constexpr uint32_t TRANSACTION_onVsync = FIRST_CALL_TRANSACTION + 3;
52   static constexpr uint32_t TRANSACTION_onVsyncPeriodTimingChanged = FIRST_CALL_TRANSACTION + 4;
53   static constexpr uint32_t TRANSACTION_onVsyncIdle = FIRST_CALL_TRANSACTION + 5;
54   static constexpr uint32_t TRANSACTION_onRefreshRateChangedDebug = FIRST_CALL_TRANSACTION + 6;
55   static constexpr uint32_t TRANSACTION_onHotplugEvent = FIRST_CALL_TRANSACTION + 7;
56   static constexpr uint32_t TRANSACTION_onHdcpLevelsChanged = FIRST_CALL_TRANSACTION + 8;
57 
58   static std::shared_ptr<IComposerCallback> fromBinder(const ::ndk::SpAIBinder& binder);
59   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IComposerCallback>& instance);
60   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IComposerCallback>* instance);
61   static bool setDefaultImpl(const std::shared_ptr<IComposerCallback>& impl);
62   static const std::shared_ptr<IComposerCallback>& getDefaultImpl();
63   virtual ::ndk::ScopedAStatus onHotplug(int64_t in_display, bool in_connected) __attribute__((deprecated(": Use instead onHotplugEvent"))) = 0;
64   virtual ::ndk::ScopedAStatus onRefresh(int64_t in_display) = 0;
65   virtual ::ndk::ScopedAStatus onSeamlessPossible(int64_t in_display) = 0;
66   virtual ::ndk::ScopedAStatus onVsync(int64_t in_display, int64_t in_timestamp, int32_t in_vsyncPeriodNanos) = 0;
67   virtual ::ndk::ScopedAStatus onVsyncPeriodTimingChanged(int64_t in_display, const ::aidl::android::hardware::graphics::composer3::VsyncPeriodChangeTimeline& in_updatedTimeline) = 0;
68   virtual ::ndk::ScopedAStatus onVsyncIdle(int64_t in_display) = 0;
69   virtual ::ndk::ScopedAStatus onRefreshRateChangedDebug(const ::aidl::android::hardware::graphics::composer3::RefreshRateChangedDebugData& in_data) = 0;
70   virtual ::ndk::ScopedAStatus onHotplugEvent(int64_t in_display, ::aidl::android::hardware::graphics::common::DisplayHotplugEvent in_event) = 0;
71   virtual ::ndk::ScopedAStatus onHdcpLevelsChanged(int64_t in_display, const ::aidl::android::hardware::drm::HdcpLevels& in_levels) = 0;
72   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
73   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
74 private:
75   static std::shared_ptr<IComposerCallback> default_impl;
76 };
77 class IComposerCallbackDefault : public IComposerCallback {
78 public:
79   ::ndk::ScopedAStatus onHotplug(int64_t in_display, bool in_connected) override __attribute__((deprecated(": Use instead onHotplugEvent")));
80   ::ndk::ScopedAStatus onRefresh(int64_t in_display) override;
81   ::ndk::ScopedAStatus onSeamlessPossible(int64_t in_display) override;
82   ::ndk::ScopedAStatus onVsync(int64_t in_display, int64_t in_timestamp, int32_t in_vsyncPeriodNanos) override;
83   ::ndk::ScopedAStatus onVsyncPeriodTimingChanged(int64_t in_display, const ::aidl::android::hardware::graphics::composer3::VsyncPeriodChangeTimeline& in_updatedTimeline) override;
84   ::ndk::ScopedAStatus onVsyncIdle(int64_t in_display) override;
85   ::ndk::ScopedAStatus onRefreshRateChangedDebug(const ::aidl::android::hardware::graphics::composer3::RefreshRateChangedDebugData& in_data) override;
86   ::ndk::ScopedAStatus onHotplugEvent(int64_t in_display, ::aidl::android::hardware::graphics::common::DisplayHotplugEvent in_event) override;
87   ::ndk::ScopedAStatus onHdcpLevelsChanged(int64_t in_display, const ::aidl::android::hardware::drm::HdcpLevels& in_levels) override;
88   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
89   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
90   ::ndk::SpAIBinder asBinder() override;
91   bool isRemote() override;
92 };
93 }  // namespace composer3
94 }  // namespace graphics
95 }  // namespace hardware
96 }  // namespace android
97 }  // namespace aidl
98