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/OperationContext.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/OperationContext.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/AuthenticateReason.h> 20 #include <aidl/android/hardware/biometrics/common/DisplayState.h> 21 #include <aidl/android/hardware/biometrics/common/FoldState.h> 22 #include <aidl/android/hardware/biometrics/common/OperationReason.h> 23 #include <aidl/android/hardware/biometrics/common/OperationState.h> 24 #include <aidl/android/hardware/biometrics/common/WakeReason.h> 25 #ifdef BINDER_STABILITY_SUPPORT 26 #include <android/binder_stability.h> 27 #endif // BINDER_STABILITY_SUPPORT 28 29 namespace aidl { 30 namespace android { 31 namespace hardware { 32 namespace biometrics { 33 namespace common { 34 #pragma clang diagnostic push 35 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 36 class OperationContext { 37 public: 38 typedef std::false_type fixed_size; 39 static const char* descriptor; 40 41 int32_t id = 0; 42 ::aidl::android::hardware::biometrics::common::OperationReason reason = ::aidl::android::hardware::biometrics::common::OperationReason::UNKNOWN; 43 bool __attribute__((deprecated("use displayState instead."))) isAod = false; 44 bool isCrypto = false; 45 ::aidl::android::hardware::biometrics::common::WakeReason wakeReason = ::aidl::android::hardware::biometrics::common::WakeReason::UNKNOWN; 46 ::aidl::android::hardware::biometrics::common::DisplayState displayState = ::aidl::android::hardware::biometrics::common::DisplayState::UNKNOWN; 47 std::optional<::aidl::android::hardware::biometrics::common::AuthenticateReason> authenticateReason; 48 ::aidl::android::hardware::biometrics::common::FoldState foldState = ::aidl::android::hardware::biometrics::common::FoldState::UNKNOWN; 49 std::optional<::aidl::android::hardware::biometrics::common::OperationState> operationState; 50 51 binder_status_t readFromParcel(const AParcel* parcel); 52 binder_status_t writeToParcel(AParcel* parcel) const; 53 54 inline bool operator==(const OperationContext& _rhs) const { 55 return std::tie(id, reason, isAod, isCrypto, wakeReason, displayState, authenticateReason, foldState, operationState) == std::tie(_rhs.id, _rhs.reason, _rhs.isAod, _rhs.isCrypto, _rhs.wakeReason, _rhs.displayState, _rhs.authenticateReason, _rhs.foldState, _rhs.operationState); 56 } 57 inline bool operator<(const OperationContext& _rhs) const { 58 return std::tie(id, reason, isAod, isCrypto, wakeReason, displayState, authenticateReason, foldState, operationState) < std::tie(_rhs.id, _rhs.reason, _rhs.isAod, _rhs.isCrypto, _rhs.wakeReason, _rhs.displayState, _rhs.authenticateReason, _rhs.foldState, _rhs.operationState); 59 } 60 inline bool operator!=(const OperationContext& _rhs) const { 61 return !(*this == _rhs); 62 } 63 inline bool operator>(const OperationContext& _rhs) const { 64 return _rhs < *this; 65 } 66 inline bool operator>=(const OperationContext& _rhs) const { 67 return !(*this < _rhs); 68 } 69 inline bool operator<=(const OperationContext& _rhs) const { 70 return !(_rhs < *this); 71 } 72 73 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()74 inline std::string toString() const { 75 std::ostringstream _aidl_os; 76 _aidl_os << "OperationContext{"; 77 _aidl_os << "id: " << ::android::internal::ToString(id); 78 _aidl_os << ", reason: " << ::android::internal::ToString(reason); 79 _aidl_os << ", isAod: " << ::android::internal::ToString(isAod); 80 _aidl_os << ", isCrypto: " << ::android::internal::ToString(isCrypto); 81 _aidl_os << ", wakeReason: " << ::android::internal::ToString(wakeReason); 82 _aidl_os << ", displayState: " << ::android::internal::ToString(displayState); 83 _aidl_os << ", authenticateReason: " << ::android::internal::ToString(authenticateReason); 84 _aidl_os << ", foldState: " << ::android::internal::ToString(foldState); 85 _aidl_os << ", operationState: " << ::android::internal::ToString(operationState); 86 _aidl_os << "}"; 87 return _aidl_os.str(); 88 } 89 }; 90 #pragma clang diagnostic pop 91 } // namespace common 92 } // namespace biometrics 93 } // namespace hardware 94 } // namespace android 95 } // namespace aidl 96