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/ChannelSoundingSingleSideData.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/ChannelSoundingSingleSideData.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 #include <aidl/android/hardware/bluetooth/ranging/Nadm.h> 21 #include <aidl/android/hardware/bluetooth/ranging/StepTonePct.h> 22 #ifdef BINDER_STABILITY_SUPPORT 23 #include <android/binder_stability.h> 24 #endif // BINDER_STABILITY_SUPPORT 25 26 namespace aidl::android::hardware::bluetooth::ranging { 27 class ComplexNumber; 28 class StepTonePct; 29 } // namespace aidl::android::hardware::bluetooth::ranging 30 namespace aidl { 31 namespace android { 32 namespace hardware { 33 namespace bluetooth { 34 namespace ranging { 35 class __attribute__((deprecated("use ChannelSoundingProcedureData"))) ChannelSoundingSingleSideData { 36 public: 37 typedef std::false_type fixed_size; 38 static const char* descriptor; 39 40 std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::StepTonePct>>> stepTonePcts; 41 std::optional<std::vector<uint8_t>> packetQuality; 42 std::optional<std::vector<uint8_t>> packetRssiDbm; 43 std::optional<std::vector<::aidl::android::hardware::bluetooth::ranging::Nadm>> packetNadm; 44 std::optional<std::vector<int32_t>> measuredFreqOffset; 45 std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::ComplexNumber>>> packetPct1; 46 std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::ComplexNumber>>> packetPct2; 47 int8_t referencePowerDbm = 0; 48 std::optional<std::vector<uint8_t>> vendorSpecificCsSingleSidedata; 49 50 binder_status_t readFromParcel(const AParcel* parcel); 51 binder_status_t writeToParcel(AParcel* parcel) const; 52 53 inline bool operator==(const ChannelSoundingSingleSideData& _rhs) const { 54 return std::tie(stepTonePcts, packetQuality, packetRssiDbm, packetNadm, measuredFreqOffset, packetPct1, packetPct2, referencePowerDbm, vendorSpecificCsSingleSidedata) == std::tie(_rhs.stepTonePcts, _rhs.packetQuality, _rhs.packetRssiDbm, _rhs.packetNadm, _rhs.measuredFreqOffset, _rhs.packetPct1, _rhs.packetPct2, _rhs.referencePowerDbm, _rhs.vendorSpecificCsSingleSidedata); 55 } 56 inline bool operator<(const ChannelSoundingSingleSideData& _rhs) const { 57 return std::tie(stepTonePcts, packetQuality, packetRssiDbm, packetNadm, measuredFreqOffset, packetPct1, packetPct2, referencePowerDbm, vendorSpecificCsSingleSidedata) < std::tie(_rhs.stepTonePcts, _rhs.packetQuality, _rhs.packetRssiDbm, _rhs.packetNadm, _rhs.measuredFreqOffset, _rhs.packetPct1, _rhs.packetPct2, _rhs.referencePowerDbm, _rhs.vendorSpecificCsSingleSidedata); 58 } 59 inline bool operator!=(const ChannelSoundingSingleSideData& _rhs) const { 60 return !(*this == _rhs); 61 } 62 inline bool operator>(const ChannelSoundingSingleSideData& _rhs) const { 63 return _rhs < *this; 64 } 65 inline bool operator>=(const ChannelSoundingSingleSideData& _rhs) const { 66 return !(*this < _rhs); 67 } 68 inline bool operator<=(const ChannelSoundingSingleSideData& _rhs) const { 69 return !(_rhs < *this); 70 } 71 72 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()73 inline std::string toString() const { 74 std::ostringstream _aidl_os; 75 _aidl_os << "ChannelSoundingSingleSideData{"; 76 _aidl_os << "stepTonePcts: " << ::android::internal::ToString(stepTonePcts); 77 _aidl_os << ", packetQuality: " << ::android::internal::ToString(packetQuality); 78 _aidl_os << ", packetRssiDbm: " << ::android::internal::ToString(packetRssiDbm); 79 _aidl_os << ", packetNadm: " << ::android::internal::ToString(packetNadm); 80 _aidl_os << ", measuredFreqOffset: " << ::android::internal::ToString(measuredFreqOffset); 81 _aidl_os << ", packetPct1: " << ::android::internal::ToString(packetPct1); 82 _aidl_os << ", packetPct2: " << ::android::internal::ToString(packetPct2); 83 _aidl_os << ", referencePowerDbm: " << ::android::internal::ToString(referencePowerDbm); 84 _aidl_os << ", vendorSpecificCsSingleSidedata: " << ::android::internal::ToString(vendorSpecificCsSingleSidedata); 85 _aidl_os << "}"; 86 return _aidl_os.str(); 87 } 88 }; 89 } // namespace ranging 90 } // namespace bluetooth 91 } // namespace hardware 92 } // namespace android 93 } // namespace aidl 94