1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash c43fbb9be4a662cc9ace640dba21cccdb84c6c21 -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common_interface/4/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/keymaster/aidl/android.hardware.keymaster_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/biometrics/face/aidl/android.hardware.biometrics.face-V4-ndk-source/gen/staging/android/hardware/biometrics/face/FaceEnrollOptions.cpp.d -h out/soong/.intermediates/hardware/interfaces/biometrics/face/aidl/android.hardware.biometrics.face-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/biometrics/face/aidl/android.hardware.biometrics.face-V4-ndk-source/gen/staging -Iframeworks/native/aidl/gui -Nhardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/4 hardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/4/android/hardware/biometrics/face/FaceEnrollOptions.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 <android/native_window_aidl.h> 20 #include <aidl/android/hardware/biometrics/common/OperationContext.h> 21 #include <aidl/android/hardware/biometrics/face/EnrollmentType.h> 22 #include <aidl/android/hardware/biometrics/face/Feature.h> 23 #include <aidl/android/hardware/common/NativeHandle.h> 24 #include <aidl/android/hardware/keymaster/HardwareAuthToken.h> 25 #ifdef BINDER_STABILITY_SUPPORT 26 #include <android/binder_stability.h> 27 #endif // BINDER_STABILITY_SUPPORT 28 29 namespace aidl::android::hardware::biometrics::common { 30 class OperationContext; 31 } // namespace aidl::android::hardware::biometrics::common 32 namespace aidl::android::hardware::common { 33 class NativeHandle; 34 } // namespace aidl::android::hardware::common 35 namespace aidl::android::hardware::keymaster { 36 class HardwareAuthToken; 37 } // namespace aidl::android::hardware::keymaster 38 namespace aidl { 39 namespace android { 40 namespace hardware { 41 namespace biometrics { 42 namespace face { 43 #pragma clang diagnostic push 44 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 45 class FaceEnrollOptions { 46 public: 47 typedef std::false_type fixed_size; 48 static const char* descriptor; 49 50 ::aidl::android::hardware::keymaster::HardwareAuthToken hardwareAuthToken; 51 ::aidl::android::hardware::biometrics::face::EnrollmentType enrollmentType = ::aidl::android::hardware::biometrics::face::EnrollmentType(0); 52 std::vector<::aidl::android::hardware::biometrics::face::Feature> features; 53 std::optional<::aidl::android::hardware::common::NativeHandle> __attribute__((deprecated("use {@link surfacePreview} instead {@link NativeHandle} a handle used to render content from the face HAL. Note that only one of [{@link surfacePreview}, {@link nativeHandlePreview}] should be set at one time."))) nativeHandlePreview; 54 std::optional<::aidl::android::view::Surface> surfacePreview; 55 std::optional<::aidl::android::hardware::biometrics::common::OperationContext> context; 56 57 binder_status_t readFromParcel(const AParcel* parcel); 58 binder_status_t writeToParcel(AParcel* parcel) const; 59 60 inline bool operator==(const FaceEnrollOptions& _rhs) const { 61 return std::tie(hardwareAuthToken, enrollmentType, features, nativeHandlePreview, surfacePreview, context) == std::tie(_rhs.hardwareAuthToken, _rhs.enrollmentType, _rhs.features, _rhs.nativeHandlePreview, _rhs.surfacePreview, _rhs.context); 62 } 63 inline bool operator<(const FaceEnrollOptions& _rhs) const { 64 return std::tie(hardwareAuthToken, enrollmentType, features, nativeHandlePreview, surfacePreview, context) < std::tie(_rhs.hardwareAuthToken, _rhs.enrollmentType, _rhs.features, _rhs.nativeHandlePreview, _rhs.surfacePreview, _rhs.context); 65 } 66 inline bool operator!=(const FaceEnrollOptions& _rhs) const { 67 return !(*this == _rhs); 68 } 69 inline bool operator>(const FaceEnrollOptions& _rhs) const { 70 return _rhs < *this; 71 } 72 inline bool operator>=(const FaceEnrollOptions& _rhs) const { 73 return !(*this < _rhs); 74 } 75 inline bool operator<=(const FaceEnrollOptions& _rhs) const { 76 return !(_rhs < *this); 77 } 78 79 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()80 inline std::string toString() const { 81 std::ostringstream _aidl_os; 82 _aidl_os << "FaceEnrollOptions{"; 83 _aidl_os << "hardwareAuthToken: " << ::android::internal::ToString(hardwareAuthToken); 84 _aidl_os << ", enrollmentType: " << ::android::internal::ToString(enrollmentType); 85 _aidl_os << ", features: " << ::android::internal::ToString(features); 86 _aidl_os << ", nativeHandlePreview: " << ::android::internal::ToString(nativeHandlePreview); 87 _aidl_os << ", surfacePreview: " << ::android::internal::ToString(surfacePreview); 88 _aidl_os << ", context: " << ::android::internal::ToString(context); 89 _aidl_os << "}"; 90 return _aidl_os.str(); 91 } 92 }; 93 #pragma clang diagnostic pop 94 } // namespace face 95 } // namespace biometrics 96 } // namespace hardware 97 } // namespace android 98 } // namespace aidl 99