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/StepTonePct.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/StepTonePct.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/ComplexNumber.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 ComplexNumber;
26 }  // namespace aidl::android::hardware::bluetooth::ranging
27 namespace aidl {
28 namespace android {
29 namespace hardware {
30 namespace bluetooth {
31 namespace ranging {
32 class __attribute__((deprecated("use ModeTwoData"))) StepTonePct {
33 public:
34   typedef std::false_type fixed_size;
35   static const char* descriptor;
36 
37   std::vector<::aidl::android::hardware::bluetooth::ranging::ComplexNumber> tonePcts;
38   std::vector<uint8_t> toneQualityIndicator;
39   int8_t toneExtensionAntennaIndex = 0;
40 
41   binder_status_t readFromParcel(const AParcel* parcel);
42   binder_status_t writeToParcel(AParcel* parcel) const;
43 
44   inline bool operator==(const StepTonePct& _rhs) const {
45     return std::tie(tonePcts, toneQualityIndicator, toneExtensionAntennaIndex) == std::tie(_rhs.tonePcts, _rhs.toneQualityIndicator, _rhs.toneExtensionAntennaIndex);
46   }
47   inline bool operator<(const StepTonePct& _rhs) const {
48     return std::tie(tonePcts, toneQualityIndicator, toneExtensionAntennaIndex) < std::tie(_rhs.tonePcts, _rhs.toneQualityIndicator, _rhs.toneExtensionAntennaIndex);
49   }
50   inline bool operator!=(const StepTonePct& _rhs) const {
51     return !(*this == _rhs);
52   }
53   inline bool operator>(const StepTonePct& _rhs) const {
54     return _rhs < *this;
55   }
56   inline bool operator>=(const StepTonePct& _rhs) const {
57     return !(*this < _rhs);
58   }
59   inline bool operator<=(const StepTonePct& _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_GOOD = 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_AMOUNT = 4 };
72   enum : int8_t { TONE_EXTENSION_ANTENNA_1 = 0 };
73   enum : int8_t { TONE_EXTENSION_ANTENNA_2 = 1 };
74   enum : int8_t { TONE_EXTENSION_ANTENNA_3 = 2 };
75   enum : int8_t { TONE_EXTENSION_ANTENNA_4 = 3 };
76   enum : int8_t { TONE_EXTENSION_UNUSED = -1 };
toString()77   inline std::string toString() const {
78     std::ostringstream _aidl_os;
79     _aidl_os << "StepTonePct{";
80     _aidl_os << "tonePcts: " << ::android::internal::ToString(tonePcts);
81     _aidl_os << ", toneQualityIndicator: " << ::android::internal::ToString(toneQualityIndicator);
82     _aidl_os << ", toneExtensionAntennaIndex: " << ::android::internal::ToString(toneExtensionAntennaIndex);
83     _aidl_os << "}";
84     return _aidl_os.str();
85   }
86 };
87 }  // namespace ranging
88 }  // namespace bluetooth
89 }  // namespace hardware
90 }  // namespace android
91 }  // namespace aidl
92