1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash d4c3897135ef9475dee2021ac39a41ae79c7690e -t --stability vintf --min_sdk_version 30 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/media/bufferpool/aidl/android.hardware.media.bufferpool2_interface/2/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/media/c2/aidl/android.hardware.media.c2-V1-ndk-source/gen/staging/android/hardware/media/c2/IConfigurable.cpp.d -h out/soong/.intermediates/hardware/interfaces/media/c2/aidl/android.hardware.media.c2-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/media/c2/aidl/android.hardware.media.c2-V1-ndk-source/gen/staging -Iframeworks/native/aidl/gui -Iframeworks/base/core/java -Nhardware/interfaces/media/c2/aidl/aidl_api/android.hardware.media.c2/1 hardware/interfaces/media/c2/aidl/aidl_api/android.hardware.media.c2/1/android/hardware/media/c2/IConfigurable.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 <android/binder_parcelable_utils.h>
18 #include <android/binder_to_string.h>
19 #include <aidl/android/hardware/media/c2/FieldSupportedValuesQuery.h>
20 #include <aidl/android/hardware/media/c2/FieldSupportedValuesQueryResult.h>
21 #include <aidl/android/hardware/media/c2/IConfigurable.h>
22 #include <aidl/android/hardware/media/c2/ParamDescriptor.h>
23 #include <aidl/android/hardware/media/c2/Params.h>
24 #include <aidl/android/hardware/media/c2/SettingResult.h>
25 #include <aidl/android/hardware/media/c2/Status.h>
26 #ifdef BINDER_STABILITY_SUPPORT
27 #include <android/binder_stability.h>
28 #endif  // BINDER_STABILITY_SUPPORT
29 
30 namespace aidl::android::hardware::media::c2 {
31 class FieldSupportedValuesQuery;
32 class FieldSupportedValuesQueryResult;
33 class ParamDescriptor;
34 class Params;
35 class SettingResult;
36 class Status;
37 }  // namespace aidl::android::hardware::media::c2
38 namespace aidl {
39 namespace android {
40 namespace hardware {
41 namespace media {
42 namespace c2 {
43 class IConfigurableDelegator;
44 
45 class IConfigurable : public ::ndk::ICInterface {
46 public:
47   typedef IConfigurableDelegator DefaultDelegator;
48   static const char* descriptor;
49   IConfigurable();
50   virtual ~IConfigurable();
51 
52   class ConfigResult {
53   public:
54     typedef std::false_type fixed_size;
55     static const char* descriptor;
56 
57     ::aidl::android::hardware::media::c2::Params params;
58     std::vector<::aidl::android::hardware::media::c2::SettingResult> failures;
59     ::aidl::android::hardware::media::c2::Status status;
60 
61     binder_status_t readFromParcel(const AParcel* parcel);
62     binder_status_t writeToParcel(AParcel* parcel) const;
63 
64     inline bool operator==(const ConfigResult& _rhs) const {
65       return std::tie(params, failures, status) == std::tie(_rhs.params, _rhs.failures, _rhs.status);
66     }
67     inline bool operator<(const ConfigResult& _rhs) const {
68       return std::tie(params, failures, status) < std::tie(_rhs.params, _rhs.failures, _rhs.status);
69     }
70     inline bool operator!=(const ConfigResult& _rhs) const {
71       return !(*this == _rhs);
72     }
73     inline bool operator>(const ConfigResult& _rhs) const {
74       return _rhs < *this;
75     }
76     inline bool operator>=(const ConfigResult& _rhs) const {
77       return !(*this < _rhs);
78     }
79     inline bool operator<=(const ConfigResult& _rhs) const {
80       return !(_rhs < *this);
81     }
82 
83     static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()84     inline std::string toString() const {
85       std::ostringstream _aidl_os;
86       _aidl_os << "ConfigResult{";
87       _aidl_os << "params: " << ::android::internal::ToString(params);
88       _aidl_os << ", failures: " << ::android::internal::ToString(failures);
89       _aidl_os << ", status: " << ::android::internal::ToString(status);
90       _aidl_os << "}";
91       return _aidl_os.str();
92     }
93   };
94   class QueryResult {
95   public:
96     typedef std::false_type fixed_size;
97     static const char* descriptor;
98 
99     ::aidl::android::hardware::media::c2::Params params;
100     ::aidl::android::hardware::media::c2::Status status;
101 
102     binder_status_t readFromParcel(const AParcel* parcel);
103     binder_status_t writeToParcel(AParcel* parcel) const;
104 
105     inline bool operator==(const QueryResult& _rhs) const {
106       return std::tie(params, status) == std::tie(_rhs.params, _rhs.status);
107     }
108     inline bool operator<(const QueryResult& _rhs) const {
109       return std::tie(params, status) < std::tie(_rhs.params, _rhs.status);
110     }
111     inline bool operator!=(const QueryResult& _rhs) const {
112       return !(*this == _rhs);
113     }
114     inline bool operator>(const QueryResult& _rhs) const {
115       return _rhs < *this;
116     }
117     inline bool operator>=(const QueryResult& _rhs) const {
118       return !(*this < _rhs);
119     }
120     inline bool operator<=(const QueryResult& _rhs) const {
121       return !(_rhs < *this);
122     }
123 
124     static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()125     inline std::string toString() const {
126       std::ostringstream _aidl_os;
127       _aidl_os << "QueryResult{";
128       _aidl_os << "params: " << ::android::internal::ToString(params);
129       _aidl_os << ", status: " << ::android::internal::ToString(status);
130       _aidl_os << "}";
131       return _aidl_os.str();
132     }
133   };
134   class QuerySupportedValuesResult {
135   public:
136     typedef std::false_type fixed_size;
137     static const char* descriptor;
138 
139     std::vector<::aidl::android::hardware::media::c2::FieldSupportedValuesQueryResult> values;
140     ::aidl::android::hardware::media::c2::Status status;
141 
142     binder_status_t readFromParcel(const AParcel* parcel);
143     binder_status_t writeToParcel(AParcel* parcel) const;
144 
145     inline bool operator==(const QuerySupportedValuesResult& _rhs) const {
146       return std::tie(values, status) == std::tie(_rhs.values, _rhs.status);
147     }
148     inline bool operator<(const QuerySupportedValuesResult& _rhs) const {
149       return std::tie(values, status) < std::tie(_rhs.values, _rhs.status);
150     }
151     inline bool operator!=(const QuerySupportedValuesResult& _rhs) const {
152       return !(*this == _rhs);
153     }
154     inline bool operator>(const QuerySupportedValuesResult& _rhs) const {
155       return _rhs < *this;
156     }
157     inline bool operator>=(const QuerySupportedValuesResult& _rhs) const {
158       return !(*this < _rhs);
159     }
160     inline bool operator<=(const QuerySupportedValuesResult& _rhs) const {
161       return !(_rhs < *this);
162     }
163 
164     static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()165     inline std::string toString() const {
166       std::ostringstream _aidl_os;
167       _aidl_os << "QuerySupportedValuesResult{";
168       _aidl_os << "values: " << ::android::internal::ToString(values);
169       _aidl_os << ", status: " << ::android::internal::ToString(status);
170       _aidl_os << "}";
171       return _aidl_os.str();
172     }
173   };
174   static inline const int32_t version = 1;
175   static inline const std::string hash = "d4c3897135ef9475dee2021ac39a41ae79c7690e";
176   static constexpr uint32_t TRANSACTION_config = FIRST_CALL_TRANSACTION + 0;
177   static constexpr uint32_t TRANSACTION_getId = FIRST_CALL_TRANSACTION + 1;
178   static constexpr uint32_t TRANSACTION_getName = FIRST_CALL_TRANSACTION + 2;
179   static constexpr uint32_t TRANSACTION_query = FIRST_CALL_TRANSACTION + 3;
180   static constexpr uint32_t TRANSACTION_querySupportedParams = FIRST_CALL_TRANSACTION + 4;
181   static constexpr uint32_t TRANSACTION_querySupportedValues = FIRST_CALL_TRANSACTION + 5;
182 
183   static std::shared_ptr<IConfigurable> fromBinder(const ::ndk::SpAIBinder& binder);
184   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IConfigurable>& instance);
185   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IConfigurable>* instance);
186   static bool setDefaultImpl(const std::shared_ptr<IConfigurable>& impl);
187   static const std::shared_ptr<IConfigurable>& getDefaultImpl();
188   virtual ::ndk::ScopedAStatus config(const ::aidl::android::hardware::media::c2::Params& in_inParams, bool in_mayBlock, ::aidl::android::hardware::media::c2::IConfigurable::ConfigResult* _aidl_return) = 0;
189   virtual ::ndk::ScopedAStatus getId(int32_t* _aidl_return) = 0;
190   virtual ::ndk::ScopedAStatus getName(std::string* _aidl_return) = 0;
191   virtual ::ndk::ScopedAStatus query(const std::vector<int32_t>& in_indices, bool in_mayBlock, ::aidl::android::hardware::media::c2::IConfigurable::QueryResult* _aidl_return) = 0;
192   virtual ::ndk::ScopedAStatus querySupportedParams(int32_t in_start, int32_t in_count, std::vector<::aidl::android::hardware::media::c2::ParamDescriptor>* _aidl_return) = 0;
193   virtual ::ndk::ScopedAStatus querySupportedValues(const std::vector<::aidl::android::hardware::media::c2::FieldSupportedValuesQuery>& in_inFields, bool in_mayBlock, ::aidl::android::hardware::media::c2::IConfigurable::QuerySupportedValuesResult* _aidl_return) = 0;
194   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
195   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
196 private:
197   static std::shared_ptr<IConfigurable> default_impl;
198 };
199 class IConfigurableDefault : public IConfigurable {
200 public:
201   ::ndk::ScopedAStatus config(const ::aidl::android::hardware::media::c2::Params& in_inParams, bool in_mayBlock, ::aidl::android::hardware::media::c2::IConfigurable::ConfigResult* _aidl_return) override;
202   ::ndk::ScopedAStatus getId(int32_t* _aidl_return) override;
203   ::ndk::ScopedAStatus getName(std::string* _aidl_return) override;
204   ::ndk::ScopedAStatus query(const std::vector<int32_t>& in_indices, bool in_mayBlock, ::aidl::android::hardware::media::c2::IConfigurable::QueryResult* _aidl_return) override;
205   ::ndk::ScopedAStatus querySupportedParams(int32_t in_start, int32_t in_count, std::vector<::aidl::android::hardware::media::c2::ParamDescriptor>* _aidl_return) override;
206   ::ndk::ScopedAStatus querySupportedValues(const std::vector<::aidl::android::hardware::media::c2::FieldSupportedValuesQuery>& in_inFields, bool in_mayBlock, ::aidl::android::hardware::media::c2::IConfigurable::QuerySupportedValuesResult* _aidl_return) override;
207   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
208   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
209   ::ndk::SpAIBinder asBinder() override;
210   bool isRemote() override;
211 };
212 }  // namespace c2
213 }  // namespace media
214 }  // namespace hardware
215 }  // namespace android
216 }  // namespace aidl
217