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/BluetoothChannelSoundingParameters.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/BluetoothChannelSoundingParameters.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/Config.h> 20 #include <aidl/android/hardware/bluetooth/ranging/DeviceAddress.h> 21 #include <aidl/android/hardware/bluetooth/ranging/LocationType.h> 22 #include <aidl/android/hardware/bluetooth/ranging/Role.h> 23 #include <aidl/android/hardware/bluetooth/ranging/SessionType.h> 24 #include <aidl/android/hardware/bluetooth/ranging/SightType.h> 25 #include <aidl/android/hardware/bluetooth/ranging/VendorSpecificData.h> 26 #ifdef BINDER_STABILITY_SUPPORT 27 #include <android/binder_stability.h> 28 #endif // BINDER_STABILITY_SUPPORT 29 30 namespace aidl::android::hardware::bluetooth::ranging { 31 class Config; 32 class DeviceAddress; 33 class VendorSpecificData; 34 } // namespace aidl::android::hardware::bluetooth::ranging 35 namespace aidl { 36 namespace android { 37 namespace hardware { 38 namespace bluetooth { 39 namespace ranging { 40 #pragma clang diagnostic push 41 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 42 class BluetoothChannelSoundingParameters { 43 public: 44 typedef std::false_type fixed_size; 45 static const char* descriptor; 46 47 ::aidl::android::hardware::bluetooth::ranging::SessionType sessionType = ::aidl::android::hardware::bluetooth::ranging::SessionType(0); 48 int32_t aclHandle = 0; 49 int32_t l2capCid = 0; 50 int32_t realTimeProcedureDataAttHandle = 0; 51 ::aidl::android::hardware::bluetooth::ranging::Role __attribute__((deprecated("use the role in Config.aidl"))) role = ::aidl::android::hardware::bluetooth::ranging::Role(0); 52 bool localSupportsSoundingPhaseBasedRanging = false; 53 bool remoteSupportsSoundingPhaseBaseRanging = false; 54 ::aidl::android::hardware::bluetooth::ranging::Config config; 55 ::aidl::android::hardware::bluetooth::ranging::DeviceAddress address; 56 std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::VendorSpecificData>>> vendorSpecificData; 57 ::aidl::android::hardware::bluetooth::ranging::LocationType locationType = ::aidl::android::hardware::bluetooth::ranging::LocationType(0); 58 ::aidl::android::hardware::bluetooth::ranging::SightType sightType = ::aidl::android::hardware::bluetooth::ranging::SightType(0); 59 60 binder_status_t readFromParcel(const AParcel* parcel); 61 binder_status_t writeToParcel(AParcel* parcel) const; 62 63 inline bool operator==(const BluetoothChannelSoundingParameters& _rhs) const { 64 return std::tie(sessionType, aclHandle, l2capCid, realTimeProcedureDataAttHandle, role, localSupportsSoundingPhaseBasedRanging, remoteSupportsSoundingPhaseBaseRanging, config, address, vendorSpecificData, locationType, sightType) == std::tie(_rhs.sessionType, _rhs.aclHandle, _rhs.l2capCid, _rhs.realTimeProcedureDataAttHandle, _rhs.role, _rhs.localSupportsSoundingPhaseBasedRanging, _rhs.remoteSupportsSoundingPhaseBaseRanging, _rhs.config, _rhs.address, _rhs.vendorSpecificData, _rhs.locationType, _rhs.sightType); 65 } 66 inline bool operator<(const BluetoothChannelSoundingParameters& _rhs) const { 67 return std::tie(sessionType, aclHandle, l2capCid, realTimeProcedureDataAttHandle, role, localSupportsSoundingPhaseBasedRanging, remoteSupportsSoundingPhaseBaseRanging, config, address, vendorSpecificData, locationType, sightType) < std::tie(_rhs.sessionType, _rhs.aclHandle, _rhs.l2capCid, _rhs.realTimeProcedureDataAttHandle, _rhs.role, _rhs.localSupportsSoundingPhaseBasedRanging, _rhs.remoteSupportsSoundingPhaseBaseRanging, _rhs.config, _rhs.address, _rhs.vendorSpecificData, _rhs.locationType, _rhs.sightType); 68 } 69 inline bool operator!=(const BluetoothChannelSoundingParameters& _rhs) const { 70 return !(*this == _rhs); 71 } 72 inline bool operator>(const BluetoothChannelSoundingParameters& _rhs) const { 73 return _rhs < *this; 74 } 75 inline bool operator>=(const BluetoothChannelSoundingParameters& _rhs) const { 76 return !(*this < _rhs); 77 } 78 inline bool operator<=(const BluetoothChannelSoundingParameters& _rhs) const { 79 return !(_rhs < *this); 80 } 81 82 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()83 inline std::string toString() const { 84 std::ostringstream _aidl_os; 85 _aidl_os << "BluetoothChannelSoundingParameters{"; 86 _aidl_os << "sessionType: " << ::android::internal::ToString(sessionType); 87 _aidl_os << ", aclHandle: " << ::android::internal::ToString(aclHandle); 88 _aidl_os << ", l2capCid: " << ::android::internal::ToString(l2capCid); 89 _aidl_os << ", realTimeProcedureDataAttHandle: " << ::android::internal::ToString(realTimeProcedureDataAttHandle); 90 _aidl_os << ", role: " << ::android::internal::ToString(role); 91 _aidl_os << ", localSupportsSoundingPhaseBasedRanging: " << ::android::internal::ToString(localSupportsSoundingPhaseBasedRanging); 92 _aidl_os << ", remoteSupportsSoundingPhaseBaseRanging: " << ::android::internal::ToString(remoteSupportsSoundingPhaseBaseRanging); 93 _aidl_os << ", config: " << ::android::internal::ToString(config); 94 _aidl_os << ", address: " << ::android::internal::ToString(address); 95 _aidl_os << ", vendorSpecificData: " << ::android::internal::ToString(vendorSpecificData); 96 _aidl_os << ", locationType: " << ::android::internal::ToString(locationType); 97 _aidl_os << ", sightType: " << ::android::internal::ToString(sightType); 98 _aidl_os << "}"; 99 return _aidl_os.str(); 100 } 101 }; 102 #pragma clang diagnostic pop 103 } // namespace ranging 104 } // namespace bluetooth 105 } // namespace hardware 106 } // namespace android 107 } // namespace aidl 108