1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 15 --hash 638faa4a7decbe576465ac472371727d077aa246 -t --min_sdk_version 30 -pout/soong/.intermediates/packages/modules/Connectivity/staticlibs/netd/netd_event_listener_interface_interface/1/preprocessed.aidl --log --ninja -d out/soong/.intermediates/packages/modules/DnsResolver/dnsresolver_aidl_interface-V15-ndk-source/gen/staging/android/net/ResolverOptionsParcel.cpp.d -h out/soong/.intermediates/packages/modules/DnsResolver/dnsresolver_aidl_interface-V15-ndk-source/gen/include/staging -o out/soong/.intermediates/packages/modules/DnsResolver/dnsresolver_aidl_interface-V15-ndk-source/gen/staging -Npackages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/15 packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/15/android/net/ResolverOptionsParcel.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/net/ResolverHostsParcel.h> 20 #ifdef BINDER_STABILITY_SUPPORT 21 #include <android/binder_stability.h> 22 #endif // BINDER_STABILITY_SUPPORT 23 24 namespace aidl::android::net { 25 class ResolverHostsParcel; 26 } // namespace aidl::android::net 27 namespace aidl { 28 namespace android { 29 namespace net { 30 class ResolverOptionsParcel { 31 public: 32 typedef std::false_type fixed_size; 33 static const char* descriptor; 34 35 std::vector<::aidl::android::net::ResolverHostsParcel> hosts = {}; 36 int32_t tcMode = 0; 37 bool enforceDnsUid = false; 38 39 binder_status_t readFromParcel(const AParcel* parcel); 40 binder_status_t writeToParcel(AParcel* parcel) const; 41 42 inline bool operator==(const ResolverOptionsParcel& _rhs) const { 43 return std::tie(hosts, tcMode, enforceDnsUid) == std::tie(_rhs.hosts, _rhs.tcMode, _rhs.enforceDnsUid); 44 } 45 inline bool operator<(const ResolverOptionsParcel& _rhs) const { 46 return std::tie(hosts, tcMode, enforceDnsUid) < std::tie(_rhs.hosts, _rhs.tcMode, _rhs.enforceDnsUid); 47 } 48 inline bool operator!=(const ResolverOptionsParcel& _rhs) const { 49 return !(*this == _rhs); 50 } 51 inline bool operator>(const ResolverOptionsParcel& _rhs) const { 52 return _rhs < *this; 53 } 54 inline bool operator>=(const ResolverOptionsParcel& _rhs) const { 55 return !(*this < _rhs); 56 } 57 inline bool operator<=(const ResolverOptionsParcel& _rhs) const { 58 return !(_rhs < *this); 59 } 60 61 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_LOCAL; toString()62 inline std::string toString() const { 63 std::ostringstream _aidl_os; 64 _aidl_os << "ResolverOptionsParcel{"; 65 _aidl_os << "hosts: " << ::android::internal::ToString(hosts); 66 _aidl_os << ", tcMode: " << ::android::internal::ToString(tcMode); 67 _aidl_os << ", enforceDnsUid: " << ::android::internal::ToString(enforceDnsUid); 68 _aidl_os << "}"; 69 return _aidl_os.str(); 70 } 71 }; 72 } // namespace net 73 } // namespace android 74 } // namespace aidl 75