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/SensorLocation.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/SensorLocation.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/fingerprint/SensorShape.h> 20 #ifdef BINDER_STABILITY_SUPPORT 21 #include <android/binder_stability.h> 22 #endif // BINDER_STABILITY_SUPPORT 23 24 namespace aidl { 25 namespace android { 26 namespace hardware { 27 namespace biometrics { 28 namespace fingerprint { 29 #pragma clang diagnostic push 30 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 31 class SensorLocation { 32 public: 33 typedef std::false_type fixed_size; 34 static const char* descriptor; 35 36 int32_t __attribute__((deprecated("use the display field instead. This field was never used."))) displayId = 0; 37 int32_t sensorLocationX = 0; 38 int32_t sensorLocationY = 0; 39 int32_t sensorRadius = 0; 40 std::string display = ""; 41 ::aidl::android::hardware::biometrics::fingerprint::SensorShape sensorShape = ::aidl::android::hardware::biometrics::fingerprint::SensorShape::CIRCLE; 42 43 binder_status_t readFromParcel(const AParcel* parcel); 44 binder_status_t writeToParcel(AParcel* parcel) const; 45 46 inline bool operator==(const SensorLocation& _rhs) const { 47 return std::tie(displayId, sensorLocationX, sensorLocationY, sensorRadius, display, sensorShape) == std::tie(_rhs.displayId, _rhs.sensorLocationX, _rhs.sensorLocationY, _rhs.sensorRadius, _rhs.display, _rhs.sensorShape); 48 } 49 inline bool operator<(const SensorLocation& _rhs) const { 50 return std::tie(displayId, sensorLocationX, sensorLocationY, sensorRadius, display, sensorShape) < std::tie(_rhs.displayId, _rhs.sensorLocationX, _rhs.sensorLocationY, _rhs.sensorRadius, _rhs.display, _rhs.sensorShape); 51 } 52 inline bool operator!=(const SensorLocation& _rhs) const { 53 return !(*this == _rhs); 54 } 55 inline bool operator>(const SensorLocation& _rhs) const { 56 return _rhs < *this; 57 } 58 inline bool operator>=(const SensorLocation& _rhs) const { 59 return !(*this < _rhs); 60 } 61 inline bool operator<=(const SensorLocation& _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 << "SensorLocation{"; 69 _aidl_os << "displayId: " << ::android::internal::ToString(displayId); 70 _aidl_os << ", sensorLocationX: " << ::android::internal::ToString(sensorLocationX); 71 _aidl_os << ", sensorLocationY: " << ::android::internal::ToString(sensorLocationY); 72 _aidl_os << ", sensorRadius: " << ::android::internal::ToString(sensorRadius); 73 _aidl_os << ", display: " << ::android::internal::ToString(display); 74 _aidl_os << ", sensorShape: " << ::android::internal::ToString(sensorShape); 75 _aidl_os << "}"; 76 return _aidl_os.str(); 77 } 78 }; 79 #pragma clang diagnostic pop 80 } // namespace fingerprint 81 } // namespace biometrics 82 } // namespace hardware 83 } // namespace android 84 } // namespace aidl 85