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/DeviceAddress.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/DeviceAddress.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/AddressType.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl {
25 namespace android {
26 namespace hardware {
27 namespace bluetooth {
28 namespace ranging {
29 class DeviceAddress {
30 public:
31   typedef std::false_type fixed_size;
32   static const char* descriptor;
33 
34   ::aidl::android::hardware::bluetooth::ranging::AddressType addressType = ::aidl::android::hardware::bluetooth::ranging::AddressType(0);
35   std::array<uint8_t, 6> address = {{}};
36 
37   binder_status_t readFromParcel(const AParcel* parcel);
38   binder_status_t writeToParcel(AParcel* parcel) const;
39 
40   inline bool operator==(const DeviceAddress& _rhs) const {
41     return std::tie(addressType, address) == std::tie(_rhs.addressType, _rhs.address);
42   }
43   inline bool operator<(const DeviceAddress& _rhs) const {
44     return std::tie(addressType, address) < std::tie(_rhs.addressType, _rhs.address);
45   }
46   inline bool operator!=(const DeviceAddress& _rhs) const {
47     return !(*this == _rhs);
48   }
49   inline bool operator>(const DeviceAddress& _rhs) const {
50     return _rhs < *this;
51   }
52   inline bool operator>=(const DeviceAddress& _rhs) const {
53     return !(*this < _rhs);
54   }
55   inline bool operator<=(const DeviceAddress& _rhs) const {
56     return !(_rhs < *this);
57   }
58 
59   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()60   inline std::string toString() const {
61     std::ostringstream _aidl_os;
62     _aidl_os << "DeviceAddress{";
63     _aidl_os << "addressType: " << ::android::internal::ToString(addressType);
64     _aidl_os << ", address: " << ::android::internal::ToString(address);
65     _aidl_os << "}";
66     return _aidl_os.str();
67   }
68 };
69 }  // namespace ranging
70 }  // namespace bluetooth
71 }  // namespace hardware
72 }  // namespace android
73 }  // namespace aidl
74