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