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/ISessionCallback.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/ISessionCallback.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 <aidl/android/hardware/biometrics/face/AuthenticationFrame.h> 18 #include <aidl/android/hardware/biometrics/face/EnrollmentFrame.h> 19 #include <aidl/android/hardware/biometrics/face/Error.h> 20 #include <aidl/android/hardware/biometrics/face/Feature.h> 21 #include <aidl/android/hardware/keymaster/HardwareAuthToken.h> 22 #ifdef BINDER_STABILITY_SUPPORT 23 #include <android/binder_stability.h> 24 #endif // BINDER_STABILITY_SUPPORT 25 26 namespace aidl::android::hardware::biometrics::face { 27 class AuthenticationFrame; 28 class EnrollmentFrame; 29 } // namespace aidl::android::hardware::biometrics::face 30 namespace aidl::android::hardware::keymaster { 31 class HardwareAuthToken; 32 } // namespace aidl::android::hardware::keymaster 33 namespace aidl { 34 namespace android { 35 namespace hardware { 36 namespace biometrics { 37 namespace face { 38 class ISessionCallbackDelegator; 39 40 class ISessionCallback : public ::ndk::ICInterface { 41 public: 42 typedef ISessionCallbackDelegator DefaultDelegator; 43 static const char* descriptor; 44 ISessionCallback(); 45 virtual ~ISessionCallback(); 46 47 static inline const int32_t version = 4; 48 static inline const std::string hash = "c43fbb9be4a662cc9ace640dba21cccdb84c6c21"; 49 static constexpr uint32_t TRANSACTION_onChallengeGenerated = FIRST_CALL_TRANSACTION + 0; 50 static constexpr uint32_t TRANSACTION_onChallengeRevoked = FIRST_CALL_TRANSACTION + 1; 51 static constexpr uint32_t TRANSACTION_onAuthenticationFrame = FIRST_CALL_TRANSACTION + 2; 52 static constexpr uint32_t TRANSACTION_onEnrollmentFrame = FIRST_CALL_TRANSACTION + 3; 53 static constexpr uint32_t TRANSACTION_onError = FIRST_CALL_TRANSACTION + 4; 54 static constexpr uint32_t TRANSACTION_onEnrollmentProgress = FIRST_CALL_TRANSACTION + 5; 55 static constexpr uint32_t TRANSACTION_onAuthenticationSucceeded = FIRST_CALL_TRANSACTION + 6; 56 static constexpr uint32_t TRANSACTION_onAuthenticationFailed = FIRST_CALL_TRANSACTION + 7; 57 static constexpr uint32_t TRANSACTION_onLockoutTimed = FIRST_CALL_TRANSACTION + 8; 58 static constexpr uint32_t TRANSACTION_onLockoutPermanent = FIRST_CALL_TRANSACTION + 9; 59 static constexpr uint32_t TRANSACTION_onLockoutCleared = FIRST_CALL_TRANSACTION + 10; 60 static constexpr uint32_t TRANSACTION_onInteractionDetected = FIRST_CALL_TRANSACTION + 11; 61 static constexpr uint32_t TRANSACTION_onEnrollmentsEnumerated = FIRST_CALL_TRANSACTION + 12; 62 static constexpr uint32_t TRANSACTION_onFeaturesRetrieved = FIRST_CALL_TRANSACTION + 13; 63 static constexpr uint32_t TRANSACTION_onFeatureSet = FIRST_CALL_TRANSACTION + 14; 64 static constexpr uint32_t TRANSACTION_onEnrollmentsRemoved = FIRST_CALL_TRANSACTION + 15; 65 static constexpr uint32_t TRANSACTION_onAuthenticatorIdRetrieved = FIRST_CALL_TRANSACTION + 16; 66 static constexpr uint32_t TRANSACTION_onAuthenticatorIdInvalidated = FIRST_CALL_TRANSACTION + 17; 67 static constexpr uint32_t TRANSACTION_onSessionClosed = FIRST_CALL_TRANSACTION + 18; 68 69 static std::shared_ptr<ISessionCallback> fromBinder(const ::ndk::SpAIBinder& binder); 70 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<ISessionCallback>& instance); 71 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<ISessionCallback>* instance); 72 static bool setDefaultImpl(const std::shared_ptr<ISessionCallback>& impl); 73 static const std::shared_ptr<ISessionCallback>& getDefaultImpl(); 74 virtual ::ndk::ScopedAStatus onChallengeGenerated(int64_t in_challenge) = 0; 75 virtual ::ndk::ScopedAStatus onChallengeRevoked(int64_t in_challenge) = 0; 76 virtual ::ndk::ScopedAStatus onAuthenticationFrame(const ::aidl::android::hardware::biometrics::face::AuthenticationFrame& in_frame) = 0; 77 virtual ::ndk::ScopedAStatus onEnrollmentFrame(const ::aidl::android::hardware::biometrics::face::EnrollmentFrame& in_frame) = 0; 78 virtual ::ndk::ScopedAStatus onError(::aidl::android::hardware::biometrics::face::Error in_error, int32_t in_vendorCode) = 0; 79 virtual ::ndk::ScopedAStatus onEnrollmentProgress(int32_t in_enrollmentId, int32_t in_remaining) = 0; 80 virtual ::ndk::ScopedAStatus onAuthenticationSucceeded(int32_t in_enrollmentId, const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat) = 0; 81 virtual ::ndk::ScopedAStatus onAuthenticationFailed() = 0; 82 virtual ::ndk::ScopedAStatus onLockoutTimed(int64_t in_durationMillis) = 0; 83 virtual ::ndk::ScopedAStatus onLockoutPermanent() = 0; 84 virtual ::ndk::ScopedAStatus onLockoutCleared() = 0; 85 virtual ::ndk::ScopedAStatus onInteractionDetected() = 0; 86 virtual ::ndk::ScopedAStatus onEnrollmentsEnumerated(const std::vector<int32_t>& in_enrollmentIds) = 0; 87 virtual ::ndk::ScopedAStatus onFeaturesRetrieved(const std::vector<::aidl::android::hardware::biometrics::face::Feature>& in_features) = 0; 88 virtual ::ndk::ScopedAStatus onFeatureSet(::aidl::android::hardware::biometrics::face::Feature in_feature) = 0; 89 virtual ::ndk::ScopedAStatus onEnrollmentsRemoved(const std::vector<int32_t>& in_enrollmentIds) = 0; 90 virtual ::ndk::ScopedAStatus onAuthenticatorIdRetrieved(int64_t in_authenticatorId) = 0; 91 virtual ::ndk::ScopedAStatus onAuthenticatorIdInvalidated(int64_t in_newAuthenticatorId) = 0; 92 virtual ::ndk::ScopedAStatus onSessionClosed() = 0; 93 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 94 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 95 private: 96 static std::shared_ptr<ISessionCallback> default_impl; 97 }; 98 class ISessionCallbackDefault : public ISessionCallback { 99 public: 100 ::ndk::ScopedAStatus onChallengeGenerated(int64_t in_challenge) override; 101 ::ndk::ScopedAStatus onChallengeRevoked(int64_t in_challenge) override; 102 ::ndk::ScopedAStatus onAuthenticationFrame(const ::aidl::android::hardware::biometrics::face::AuthenticationFrame& in_frame) override; 103 ::ndk::ScopedAStatus onEnrollmentFrame(const ::aidl::android::hardware::biometrics::face::EnrollmentFrame& in_frame) override; 104 ::ndk::ScopedAStatus onError(::aidl::android::hardware::biometrics::face::Error in_error, int32_t in_vendorCode) override; 105 ::ndk::ScopedAStatus onEnrollmentProgress(int32_t in_enrollmentId, int32_t in_remaining) override; 106 ::ndk::ScopedAStatus onAuthenticationSucceeded(int32_t in_enrollmentId, const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat) override; 107 ::ndk::ScopedAStatus onAuthenticationFailed() override; 108 ::ndk::ScopedAStatus onLockoutTimed(int64_t in_durationMillis) override; 109 ::ndk::ScopedAStatus onLockoutPermanent() override; 110 ::ndk::ScopedAStatus onLockoutCleared() override; 111 ::ndk::ScopedAStatus onInteractionDetected() override; 112 ::ndk::ScopedAStatus onEnrollmentsEnumerated(const std::vector<int32_t>& in_enrollmentIds) override; 113 ::ndk::ScopedAStatus onFeaturesRetrieved(const std::vector<::aidl::android::hardware::biometrics::face::Feature>& in_features) override; 114 ::ndk::ScopedAStatus onFeatureSet(::aidl::android::hardware::biometrics::face::Feature in_feature) override; 115 ::ndk::ScopedAStatus onEnrollmentsRemoved(const std::vector<int32_t>& in_enrollmentIds) override; 116 ::ndk::ScopedAStatus onAuthenticatorIdRetrieved(int64_t in_authenticatorId) override; 117 ::ndk::ScopedAStatus onAuthenticatorIdInvalidated(int64_t in_newAuthenticatorId) override; 118 ::ndk::ScopedAStatus onSessionClosed() override; 119 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 120 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 121 ::ndk::SpAIBinder asBinder() override; 122 bool isRemote() override; 123 }; 124 } // namespace face 125 } // namespace biometrics 126 } // namespace hardware 127 } // namespace android 128 } // namespace aidl 129