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 2 --hash notfrozen -t --stability vintf --min_sdk_version 33 --previous_api_dir=hardware/interfaces/bluetooth/ranging/aidl/aidl_api/android.hardware.bluetooth.ranging/1 --previous_hash d257bb74ef61a4cbb5854f4663604dd491b4a7bf --ninja -d out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging/android/hardware/bluetooth/ranging/ModeTwoData.cpp.d -h out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging -Nhardware/interfaces/bluetooth/ranging/aidl hardware/interfaces/bluetooth/ranging/aidl/android/hardware/bluetooth/ranging/ModeTwoData.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/bluetooth/ranging/PctIQSample.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl::android::hardware::bluetooth::ranging {
25 class PctIQSample;
26 }  // namespace aidl::android::hardware::bluetooth::ranging
27 namespace aidl {
28 namespace android {
29 namespace hardware {
30 namespace bluetooth {
31 namespace ranging {
32 class ModeTwoData {
33 public:
34   typedef std::false_type fixed_size;
35   static const char* descriptor;
36 
37   int8_t antennaPermutationIndex = 0;
38   std::vector<::aidl::android::hardware::bluetooth::ranging::PctIQSample> tonePctIQSamples;
39   std::vector<uint8_t> toneQualityIndicators;
40 
41   binder_status_t readFromParcel(const AParcel* parcel);
42   binder_status_t writeToParcel(AParcel* parcel) const;
43 
44   inline bool operator==(const ModeTwoData& _rhs) const {
45     return std::tie(antennaPermutationIndex, tonePctIQSamples, toneQualityIndicators) == std::tie(_rhs.antennaPermutationIndex, _rhs.tonePctIQSamples, _rhs.toneQualityIndicators);
46   }
47   inline bool operator<(const ModeTwoData& _rhs) const {
48     return std::tie(antennaPermutationIndex, tonePctIQSamples, toneQualityIndicators) < std::tie(_rhs.antennaPermutationIndex, _rhs.tonePctIQSamples, _rhs.toneQualityIndicators);
49   }
50   inline bool operator!=(const ModeTwoData& _rhs) const {
51     return !(*this == _rhs);
52   }
53   inline bool operator>(const ModeTwoData& _rhs) const {
54     return _rhs < *this;
55   }
56   inline bool operator>=(const ModeTwoData& _rhs) const {
57     return !(*this < _rhs);
58   }
59   inline bool operator<=(const ModeTwoData& _rhs) const {
60     return !(_rhs < *this);
61   }
62 
63   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
64   enum : int32_t { TONE_QUALITY_HIGH = 0 };
65   enum : int32_t { TONE_QUALITY_MEDIUM = 1 };
66   enum : int32_t { TONE_QUALITY_LOW = 2 };
67   enum : int32_t { TONE_QUALITY_UNAVAILABLE = 3 };
68   enum : int32_t { EXTENSION_SLOT_NONE = 0 };
69   enum : int32_t { EXTENSION_SLOT_TONE_NOT_EXPECTED_TO_BE_PRESENT = 1 };
70   enum : int32_t { EXTENSION_SLOT_TONE_EXPECTED_TO_BE_PRESENT = 2 };
71   enum : int32_t { EXTENSION_SLOT_SHIFT = 4 };
toString()72   inline std::string toString() const {
73     std::ostringstream _aidl_os;
74     _aidl_os << "ModeTwoData{";
75     _aidl_os << "antennaPermutationIndex: " << ::android::internal::ToString(antennaPermutationIndex);
76     _aidl_os << ", tonePctIQSamples: " << ::android::internal::ToString(tonePctIQSamples);
77     _aidl_os << ", toneQualityIndicators: " << ::android::internal::ToString(toneQualityIndicators);
78     _aidl_os << "}";
79     return _aidl_os.str();
80   }
81 };
82 }  // namespace ranging
83 }  // namespace bluetooth
84 }  // namespace hardware
85 }  // namespace android
86 }  // namespace aidl
87