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/AudioPreselection.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/AudioPreselection.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/tv/tuner/AudioPreselectionLabel.h>
20 #include <aidl/android/hardware/tv/tuner/AudioPreselectionRenderingIndicationType.h>
21 #ifdef BINDER_STABILITY_SUPPORT
22 #include <android/binder_stability.h>
23 #endif  // BINDER_STABILITY_SUPPORT
24 
25 namespace aidl::android::hardware::tv::tuner {
26 class AudioPreselectionLabel;
27 }  // namespace aidl::android::hardware::tv::tuner
28 namespace aidl {
29 namespace android {
30 namespace hardware {
31 namespace tv {
32 namespace tuner {
33 class AudioPreselection {
34 public:
35   typedef std::false_type fixed_size;
36   static const char* descriptor;
37 
38   int32_t preselectionId = 0;
39   std::vector<::aidl::android::hardware::tv::tuner::AudioPreselectionLabel> labels;
40   std::string language;
41   ::aidl::android::hardware::tv::tuner::AudioPreselectionRenderingIndicationType renderingIndication = ::aidl::android::hardware::tv::tuner::AudioPreselectionRenderingIndicationType(0);
42   bool hasAudioDescription = false;
43   bool hasSpokenSubtitles = false;
44   bool hasDialogueEnhancement = false;
45 
46   binder_status_t readFromParcel(const AParcel* parcel);
47   binder_status_t writeToParcel(AParcel* parcel) const;
48 
49   inline bool operator==(const AudioPreselection& _rhs) const {
50     return std::tie(preselectionId, labels, language, renderingIndication, hasAudioDescription, hasSpokenSubtitles, hasDialogueEnhancement) == std::tie(_rhs.preselectionId, _rhs.labels, _rhs.language, _rhs.renderingIndication, _rhs.hasAudioDescription, _rhs.hasSpokenSubtitles, _rhs.hasDialogueEnhancement);
51   }
52   inline bool operator<(const AudioPreselection& _rhs) const {
53     return std::tie(preselectionId, labels, language, renderingIndication, hasAudioDescription, hasSpokenSubtitles, hasDialogueEnhancement) < std::tie(_rhs.preselectionId, _rhs.labels, _rhs.language, _rhs.renderingIndication, _rhs.hasAudioDescription, _rhs.hasSpokenSubtitles, _rhs.hasDialogueEnhancement);
54   }
55   inline bool operator!=(const AudioPreselection& _rhs) const {
56     return !(*this == _rhs);
57   }
58   inline bool operator>(const AudioPreselection& _rhs) const {
59     return _rhs < *this;
60   }
61   inline bool operator>=(const AudioPreselection& _rhs) const {
62     return !(*this < _rhs);
63   }
64   inline bool operator<=(const AudioPreselection& _rhs) const {
65     return !(_rhs < *this);
66   }
67 
68   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()69   inline std::string toString() const {
70     std::ostringstream _aidl_os;
71     _aidl_os << "AudioPreselection{";
72     _aidl_os << "preselectionId: " << ::android::internal::ToString(preselectionId);
73     _aidl_os << ", labels: " << ::android::internal::ToString(labels);
74     _aidl_os << ", language: " << ::android::internal::ToString(language);
75     _aidl_os << ", renderingIndication: " << ::android::internal::ToString(renderingIndication);
76     _aidl_os << ", hasAudioDescription: " << ::android::internal::ToString(hasAudioDescription);
77     _aidl_os << ", hasSpokenSubtitles: " << ::android::internal::ToString(hasSpokenSubtitles);
78     _aidl_os << ", hasDialogueEnhancement: " << ::android::internal::ToString(hasDialogueEnhancement);
79     _aidl_os << "}";
80     return _aidl_os.str();
81   }
82 };
83 }  // namespace tuner
84 }  // namespace tv
85 }  // namespace hardware
86 }  // namespace android
87 }  // namespace aidl
88