1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash 53178f8de9b8861df391cf0593f6f3e08adad33d -t --stability vintf --min_sdk_version 30 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common_interface/6/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/staging/android/hardware/neuralnetworks/Model.cpp.d -h out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/staging -Nhardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4 hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/Model.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/neuralnetworks/ExtensionNameAndPrefix.h> 20 #include <aidl/android/hardware/neuralnetworks/Memory.h> 21 #include <aidl/android/hardware/neuralnetworks/Subgraph.h> 22 #ifdef BINDER_STABILITY_SUPPORT 23 #include <android/binder_stability.h> 24 #endif // BINDER_STABILITY_SUPPORT 25 26 namespace aidl::android::hardware::neuralnetworks { 27 class ExtensionNameAndPrefix; 28 class Subgraph; 29 } // namespace aidl::android::hardware::neuralnetworks 30 namespace aidl { 31 namespace android { 32 namespace hardware { 33 namespace neuralnetworks { 34 class Model { 35 public: 36 typedef std::false_type fixed_size; 37 static const char* descriptor; 38 39 ::aidl::android::hardware::neuralnetworks::Subgraph main; 40 std::vector<::aidl::android::hardware::neuralnetworks::Subgraph> referenced; 41 std::vector<uint8_t> operandValues; 42 std::vector<::aidl::android::hardware::neuralnetworks::Memory> pools; 43 bool relaxComputationFloat32toFloat16 = false; 44 std::vector<::aidl::android::hardware::neuralnetworks::ExtensionNameAndPrefix> extensionNameToPrefix; 45 46 binder_status_t readFromParcel(const AParcel* parcel); 47 binder_status_t writeToParcel(AParcel* parcel) const; 48 49 inline bool operator==(const Model& _rhs) const { 50 return std::tie(main, referenced, operandValues, pools, relaxComputationFloat32toFloat16, extensionNameToPrefix) == std::tie(_rhs.main, _rhs.referenced, _rhs.operandValues, _rhs.pools, _rhs.relaxComputationFloat32toFloat16, _rhs.extensionNameToPrefix); 51 } 52 inline bool operator<(const Model& _rhs) const { 53 return std::tie(main, referenced, operandValues, pools, relaxComputationFloat32toFloat16, extensionNameToPrefix) < std::tie(_rhs.main, _rhs.referenced, _rhs.operandValues, _rhs.pools, _rhs.relaxComputationFloat32toFloat16, _rhs.extensionNameToPrefix); 54 } 55 inline bool operator!=(const Model& _rhs) const { 56 return !(*this == _rhs); 57 } 58 inline bool operator>(const Model& _rhs) const { 59 return _rhs < *this; 60 } 61 inline bool operator>=(const Model& _rhs) const { 62 return !(*this < _rhs); 63 } 64 inline bool operator<=(const Model& _rhs) const { 65 return !(_rhs < *this); 66 } 67 68 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()69 inline std::string toString() const { 70 std::ostringstream _aidl_os; 71 _aidl_os << "Model{"; 72 _aidl_os << "main: " << ::android::internal::ToString(main); 73 _aidl_os << ", referenced: " << ::android::internal::ToString(referenced); 74 _aidl_os << ", operandValues: " << ::android::internal::ToString(operandValues); 75 _aidl_os << ", pools: " << ::android::internal::ToString(pools); 76 _aidl_os << ", relaxComputationFloat32toFloat16: " << ::android::internal::ToString(relaxComputationFloat32toFloat16); 77 _aidl_os << ", extensionNameToPrefix: " << ::android::internal::ToString(extensionNameToPrefix); 78 _aidl_os << "}"; 79 return _aidl_os.str(); 80 } 81 }; 82 } // namespace neuralnetworks 83 } // namespace hardware 84 } // namespace android 85 } // namespace aidl 86