1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash 41a730a7a6b5aa9cebebce70ee5b5e509b0af6fb -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/keymaster/aidl/android.hardware.keymaster_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/biometrics/fingerprint/aidl/android.hardware.biometrics.fingerprint-V4-ndk-source/gen/staging/android/hardware/biometrics/fingerprint/SensorProps.cpp.d -h out/soong/.intermediates/hardware/interfaces/biometrics/fingerprint/aidl/android.hardware.biometrics.fingerprint-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/biometrics/fingerprint/aidl/android.hardware.biometrics.fingerprint-V4-ndk-source/gen/staging -Nhardware/interfaces/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/4 hardware/interfaces/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/4/android/hardware/biometrics/fingerprint/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/fingerprint/FingerprintSensorType.h> 21 #include <aidl/android/hardware/biometrics/fingerprint/SensorLocation.h> 22 #include <aidl/android/hardware/biometrics/fingerprint/TouchDetectionParameters.h> 23 #ifdef BINDER_STABILITY_SUPPORT 24 #include <android/binder_stability.h> 25 #endif // BINDER_STABILITY_SUPPORT 26 27 namespace aidl::android::hardware::biometrics::common { 28 class CommonProps; 29 } // namespace aidl::android::hardware::biometrics::common 30 namespace aidl::android::hardware::biometrics::fingerprint { 31 class SensorLocation; 32 class TouchDetectionParameters; 33 } // namespace aidl::android::hardware::biometrics::fingerprint 34 namespace aidl { 35 namespace android { 36 namespace hardware { 37 namespace biometrics { 38 namespace fingerprint { 39 class SensorProps { 40 public: 41 typedef std::false_type fixed_size; 42 static const char* descriptor; 43 44 ::aidl::android::hardware::biometrics::common::CommonProps commonProps; 45 ::aidl::android::hardware::biometrics::fingerprint::FingerprintSensorType sensorType = ::aidl::android::hardware::biometrics::fingerprint::FingerprintSensorType::UNKNOWN; 46 std::vector<::aidl::android::hardware::biometrics::fingerprint::SensorLocation> sensorLocations; 47 bool supportsNavigationGestures = false; 48 bool supportsDetectInteraction = false; 49 bool halHandlesDisplayTouches = false; 50 bool halControlsIllumination = false; 51 std::optional<::aidl::android::hardware::biometrics::fingerprint::TouchDetectionParameters> touchDetectionParameters; 52 53 binder_status_t readFromParcel(const AParcel* parcel); 54 binder_status_t writeToParcel(AParcel* parcel) const; 55 56 inline bool operator==(const SensorProps& _rhs) const { 57 return std::tie(commonProps, sensorType, sensorLocations, supportsNavigationGestures, supportsDetectInteraction, halHandlesDisplayTouches, halControlsIllumination, touchDetectionParameters) == std::tie(_rhs.commonProps, _rhs.sensorType, _rhs.sensorLocations, _rhs.supportsNavigationGestures, _rhs.supportsDetectInteraction, _rhs.halHandlesDisplayTouches, _rhs.halControlsIllumination, _rhs.touchDetectionParameters); 58 } 59 inline bool operator<(const SensorProps& _rhs) const { 60 return std::tie(commonProps, sensorType, sensorLocations, supportsNavigationGestures, supportsDetectInteraction, halHandlesDisplayTouches, halControlsIllumination, touchDetectionParameters) < std::tie(_rhs.commonProps, _rhs.sensorType, _rhs.sensorLocations, _rhs.supportsNavigationGestures, _rhs.supportsDetectInteraction, _rhs.halHandlesDisplayTouches, _rhs.halControlsIllumination, _rhs.touchDetectionParameters); 61 } 62 inline bool operator!=(const SensorProps& _rhs) const { 63 return !(*this == _rhs); 64 } 65 inline bool operator>(const SensorProps& _rhs) const { 66 return _rhs < *this; 67 } 68 inline bool operator>=(const SensorProps& _rhs) const { 69 return !(*this < _rhs); 70 } 71 inline bool operator<=(const SensorProps& _rhs) const { 72 return !(_rhs < *this); 73 } 74 75 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()76 inline std::string toString() const { 77 std::ostringstream _aidl_os; 78 _aidl_os << "SensorProps{"; 79 _aidl_os << "commonProps: " << ::android::internal::ToString(commonProps); 80 _aidl_os << ", sensorType: " << ::android::internal::ToString(sensorType); 81 _aidl_os << ", sensorLocations: " << ::android::internal::ToString(sensorLocations); 82 _aidl_os << ", supportsNavigationGestures: " << ::android::internal::ToString(supportsNavigationGestures); 83 _aidl_os << ", supportsDetectInteraction: " << ::android::internal::ToString(supportsDetectInteraction); 84 _aidl_os << ", halHandlesDisplayTouches: " << ::android::internal::ToString(halHandlesDisplayTouches); 85 _aidl_os << ", halControlsIllumination: " << ::android::internal::ToString(halControlsIllumination); 86 _aidl_os << ", touchDetectionParameters: " << ::android::internal::ToString(touchDetectionParameters); 87 _aidl_os << "}"; 88 return _aidl_os.str(); 89 } 90 }; 91 } // namespace fingerprint 92 } // namespace biometrics 93 } // namespace hardware 94 } // namespace android 95 } // namespace aidl 96