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/SensorProps.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/SensorProps.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/CommonProps.h>
20 #include <aidl/android/hardware/biometrics/face/FaceSensorType.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 CommonProps;
27 }  // namespace aidl::android::hardware::biometrics::common
28 namespace aidl {
29 namespace android {
30 namespace hardware {
31 namespace biometrics {
32 namespace face {
33 class SensorProps {
34 public:
35   typedef std::false_type fixed_size;
36   static const char* descriptor;
37 
38   ::aidl::android::hardware::biometrics::common::CommonProps commonProps;
39   ::aidl::android::hardware::biometrics::face::FaceSensorType sensorType = ::aidl::android::hardware::biometrics::face::FaceSensorType::UNKNOWN;
40   bool halControlsPreview = false;
41   int32_t previewDisplayId = 0;
42   int32_t enrollPreviewWidth = 0;
43   int32_t enrollPreviewHeight = 0;
44   float enrollTranslationX = 0.000000f;
45   float enrollTranslationY = 0.000000f;
46   float enrollPreviewScale = 0.000000f;
47   bool supportsDetectInteraction = false;
48 
49   binder_status_t readFromParcel(const AParcel* parcel);
50   binder_status_t writeToParcel(AParcel* parcel) const;
51 
52   inline bool operator==(const SensorProps& _rhs) const {
53     return std::tie(commonProps, sensorType, halControlsPreview, previewDisplayId, enrollPreviewWidth, enrollPreviewHeight, enrollTranslationX, enrollTranslationY, enrollPreviewScale, supportsDetectInteraction) == std::tie(_rhs.commonProps, _rhs.sensorType, _rhs.halControlsPreview, _rhs.previewDisplayId, _rhs.enrollPreviewWidth, _rhs.enrollPreviewHeight, _rhs.enrollTranslationX, _rhs.enrollTranslationY, _rhs.enrollPreviewScale, _rhs.supportsDetectInteraction);
54   }
55   inline bool operator<(const SensorProps& _rhs) const {
56     return std::tie(commonProps, sensorType, halControlsPreview, previewDisplayId, enrollPreviewWidth, enrollPreviewHeight, enrollTranslationX, enrollTranslationY, enrollPreviewScale, supportsDetectInteraction) < std::tie(_rhs.commonProps, _rhs.sensorType, _rhs.halControlsPreview, _rhs.previewDisplayId, _rhs.enrollPreviewWidth, _rhs.enrollPreviewHeight, _rhs.enrollTranslationX, _rhs.enrollTranslationY, _rhs.enrollPreviewScale, _rhs.supportsDetectInteraction);
57   }
58   inline bool operator!=(const SensorProps& _rhs) const {
59     return !(*this == _rhs);
60   }
61   inline bool operator>(const SensorProps& _rhs) const {
62     return _rhs < *this;
63   }
64   inline bool operator>=(const SensorProps& _rhs) const {
65     return !(*this < _rhs);
66   }
67   inline bool operator<=(const SensorProps& _rhs) const {
68     return !(_rhs < *this);
69   }
70 
71   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()72   inline std::string toString() const {
73     std::ostringstream _aidl_os;
74     _aidl_os << "SensorProps{";
75     _aidl_os << "commonProps: " << ::android::internal::ToString(commonProps);
76     _aidl_os << ", sensorType: " << ::android::internal::ToString(sensorType);
77     _aidl_os << ", halControlsPreview: " << ::android::internal::ToString(halControlsPreview);
78     _aidl_os << ", previewDisplayId: " << ::android::internal::ToString(previewDisplayId);
79     _aidl_os << ", enrollPreviewWidth: " << ::android::internal::ToString(enrollPreviewWidth);
80     _aidl_os << ", enrollPreviewHeight: " << ::android::internal::ToString(enrollPreviewHeight);
81     _aidl_os << ", enrollTranslationX: " << ::android::internal::ToString(enrollTranslationX);
82     _aidl_os << ", enrollTranslationY: " << ::android::internal::ToString(enrollTranslationY);
83     _aidl_os << ", enrollPreviewScale: " << ::android::internal::ToString(enrollPreviewScale);
84     _aidl_os << ", supportsDetectInteraction: " << ::android::internal::ToString(supportsDetectInteraction);
85     _aidl_os << "}";
86     return _aidl_os.str();
87   }
88 };
89 }  // namespace face
90 }  // namespace biometrics
91 }  // namespace hardware
92 }  // namespace android
93 }  // namespace aidl
94