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/Config.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/Config.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/Ch3cShapeType.h> 20 #include <aidl/android/hardware/bluetooth/ranging/ChannelSelectionType.h> 21 #include <aidl/android/hardware/bluetooth/ranging/CsSyncPhyType.h> 22 #include <aidl/android/hardware/bluetooth/ranging/ModeType.h> 23 #include <aidl/android/hardware/bluetooth/ranging/Role.h> 24 #include <aidl/android/hardware/bluetooth/ranging/RttType.h> 25 #include <aidl/android/hardware/bluetooth/ranging/SubModeType.h> 26 #ifdef BINDER_STABILITY_SUPPORT 27 #include <android/binder_stability.h> 28 #endif // BINDER_STABILITY_SUPPORT 29 30 namespace aidl { 31 namespace android { 32 namespace hardware { 33 namespace bluetooth { 34 namespace ranging { 35 class Config { 36 public: 37 typedef std::false_type fixed_size; 38 static const char* descriptor; 39 40 ::aidl::android::hardware::bluetooth::ranging::ModeType modeType = ::aidl::android::hardware::bluetooth::ranging::ModeType(0); 41 ::aidl::android::hardware::bluetooth::ranging::SubModeType subModeType = ::aidl::android::hardware::bluetooth::ranging::SubModeType(0); 42 ::aidl::android::hardware::bluetooth::ranging::RttType rttType = ::aidl::android::hardware::bluetooth::ranging::RttType(0); 43 std::array<uint8_t, 10> channelMap = {{}}; 44 int32_t minMainModeSteps = 0; 45 int32_t maxMainModeSteps = 0; 46 int8_t mainModeRepetition = 0; 47 int8_t mode0Steps = 0; 48 ::aidl::android::hardware::bluetooth::ranging::Role role = ::aidl::android::hardware::bluetooth::ranging::Role(0); 49 ::aidl::android::hardware::bluetooth::ranging::CsSyncPhyType csSyncPhyType = ::aidl::android::hardware::bluetooth::ranging::CsSyncPhyType(0); 50 ::aidl::android::hardware::bluetooth::ranging::ChannelSelectionType channelSelectionType = ::aidl::android::hardware::bluetooth::ranging::ChannelSelectionType(0); 51 ::aidl::android::hardware::bluetooth::ranging::Ch3cShapeType ch3cShapeType = ::aidl::android::hardware::bluetooth::ranging::Ch3cShapeType(0); 52 int8_t ch3cJump = 0; 53 int32_t channelMapRepetition = 0; 54 int32_t tIp1TimeUs = 0; 55 int32_t tIp2TimeUs = 0; 56 int32_t tFcsTimeUs = 0; 57 int8_t tPmTimeUs = 0; 58 int8_t tSwTimeUsSupportedByLocal = 0; 59 int8_t tSwTimeUsSupportedByRemote = 0; 60 int32_t bleConnInterval = 0; 61 62 binder_status_t readFromParcel(const AParcel* parcel); 63 binder_status_t writeToParcel(AParcel* parcel) const; 64 65 inline bool operator==(const Config& _rhs) const { 66 return std::tie(modeType, subModeType, rttType, channelMap, minMainModeSteps, maxMainModeSteps, mainModeRepetition, mode0Steps, role, csSyncPhyType, channelSelectionType, ch3cShapeType, ch3cJump, channelMapRepetition, tIp1TimeUs, tIp2TimeUs, tFcsTimeUs, tPmTimeUs, tSwTimeUsSupportedByLocal, tSwTimeUsSupportedByRemote, bleConnInterval) == std::tie(_rhs.modeType, _rhs.subModeType, _rhs.rttType, _rhs.channelMap, _rhs.minMainModeSteps, _rhs.maxMainModeSteps, _rhs.mainModeRepetition, _rhs.mode0Steps, _rhs.role, _rhs.csSyncPhyType, _rhs.channelSelectionType, _rhs.ch3cShapeType, _rhs.ch3cJump, _rhs.channelMapRepetition, _rhs.tIp1TimeUs, _rhs.tIp2TimeUs, _rhs.tFcsTimeUs, _rhs.tPmTimeUs, _rhs.tSwTimeUsSupportedByLocal, _rhs.tSwTimeUsSupportedByRemote, _rhs.bleConnInterval); 67 } 68 inline bool operator<(const Config& _rhs) const { 69 return std::tie(modeType, subModeType, rttType, channelMap, minMainModeSteps, maxMainModeSteps, mainModeRepetition, mode0Steps, role, csSyncPhyType, channelSelectionType, ch3cShapeType, ch3cJump, channelMapRepetition, tIp1TimeUs, tIp2TimeUs, tFcsTimeUs, tPmTimeUs, tSwTimeUsSupportedByLocal, tSwTimeUsSupportedByRemote, bleConnInterval) < std::tie(_rhs.modeType, _rhs.subModeType, _rhs.rttType, _rhs.channelMap, _rhs.minMainModeSteps, _rhs.maxMainModeSteps, _rhs.mainModeRepetition, _rhs.mode0Steps, _rhs.role, _rhs.csSyncPhyType, _rhs.channelSelectionType, _rhs.ch3cShapeType, _rhs.ch3cJump, _rhs.channelMapRepetition, _rhs.tIp1TimeUs, _rhs.tIp2TimeUs, _rhs.tFcsTimeUs, _rhs.tPmTimeUs, _rhs.tSwTimeUsSupportedByLocal, _rhs.tSwTimeUsSupportedByRemote, _rhs.bleConnInterval); 70 } 71 inline bool operator!=(const Config& _rhs) const { 72 return !(*this == _rhs); 73 } 74 inline bool operator>(const Config& _rhs) const { 75 return _rhs < *this; 76 } 77 inline bool operator>=(const Config& _rhs) const { 78 return !(*this < _rhs); 79 } 80 inline bool operator<=(const Config& _rhs) const { 81 return !(_rhs < *this); 82 } 83 84 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; 85 enum : int32_t { BLE_CONN_INTERVAL_UNAVAILABLE = 0 }; toString()86 inline std::string toString() const { 87 std::ostringstream _aidl_os; 88 _aidl_os << "Config{"; 89 _aidl_os << "modeType: " << ::android::internal::ToString(modeType); 90 _aidl_os << ", subModeType: " << ::android::internal::ToString(subModeType); 91 _aidl_os << ", rttType: " << ::android::internal::ToString(rttType); 92 _aidl_os << ", channelMap: " << ::android::internal::ToString(channelMap); 93 _aidl_os << ", minMainModeSteps: " << ::android::internal::ToString(minMainModeSteps); 94 _aidl_os << ", maxMainModeSteps: " << ::android::internal::ToString(maxMainModeSteps); 95 _aidl_os << ", mainModeRepetition: " << ::android::internal::ToString(mainModeRepetition); 96 _aidl_os << ", mode0Steps: " << ::android::internal::ToString(mode0Steps); 97 _aidl_os << ", role: " << ::android::internal::ToString(role); 98 _aidl_os << ", csSyncPhyType: " << ::android::internal::ToString(csSyncPhyType); 99 _aidl_os << ", channelSelectionType: " << ::android::internal::ToString(channelSelectionType); 100 _aidl_os << ", ch3cShapeType: " << ::android::internal::ToString(ch3cShapeType); 101 _aidl_os << ", ch3cJump: " << ::android::internal::ToString(ch3cJump); 102 _aidl_os << ", channelMapRepetition: " << ::android::internal::ToString(channelMapRepetition); 103 _aidl_os << ", tIp1TimeUs: " << ::android::internal::ToString(tIp1TimeUs); 104 _aidl_os << ", tIp2TimeUs: " << ::android::internal::ToString(tIp2TimeUs); 105 _aidl_os << ", tFcsTimeUs: " << ::android::internal::ToString(tFcsTimeUs); 106 _aidl_os << ", tPmTimeUs: " << ::android::internal::ToString(tPmTimeUs); 107 _aidl_os << ", tSwTimeUsSupportedByLocal: " << ::android::internal::ToString(tSwTimeUsSupportedByLocal); 108 _aidl_os << ", tSwTimeUsSupportedByRemote: " << ::android::internal::ToString(tSwTimeUsSupportedByRemote); 109 _aidl_os << ", bleConnInterval: " << ::android::internal::ToString(bleConnInterval); 110 _aidl_os << "}"; 111 return _aidl_os.str(); 112 } 113 }; 114 } // namespace ranging 115 } // namespace bluetooth 116 } // namespace hardware 117 } // namespace android 118 } // namespace aidl 119