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/ISession.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/ISession.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/common/ICancellationSignal.h>
18 #include <aidl/android/hardware/biometrics/common/OperationContext.h>
19 #include <aidl/android/hardware/biometrics/face/EnrollmentStageConfig.h>
20 #include <aidl/android/hardware/biometrics/face/EnrollmentType.h>
21 #include <aidl/android/hardware/biometrics/face/FaceEnrollOptions.h>
22 #include <aidl/android/hardware/biometrics/face/Feature.h>
23 #include <aidl/android/hardware/common/NativeHandle.h>
24 #include <aidl/android/hardware/keymaster/HardwareAuthToken.h>
25 #ifdef BINDER_STABILITY_SUPPORT
26 #include <android/binder_stability.h>
27 #endif  // BINDER_STABILITY_SUPPORT
28 
29 namespace aidl::android::hardware::biometrics::common {
30 class ICancellationSignal;
31 class OperationContext;
32 }  // namespace aidl::android::hardware::biometrics::common
33 namespace aidl::android::hardware::biometrics::face {
34 class EnrollmentStageConfig;
35 class FaceEnrollOptions;
36 }  // namespace aidl::android::hardware::biometrics::face
37 namespace aidl::android::hardware::common {
38 class NativeHandle;
39 }  // namespace aidl::android::hardware::common
40 namespace aidl::android::hardware::keymaster {
41 class HardwareAuthToken;
42 }  // namespace aidl::android::hardware::keymaster
43 namespace aidl {
44 namespace android {
45 namespace hardware {
46 namespace biometrics {
47 namespace face {
48 class ISessionDelegator;
49 
50 class ISession : public ::ndk::ICInterface {
51 public:
52   typedef ISessionDelegator DefaultDelegator;
53   static const char* descriptor;
54   ISession();
55   virtual ~ISession();
56 
57   static inline const int32_t version = 4;
58   static inline const std::string hash = "c43fbb9be4a662cc9ace640dba21cccdb84c6c21";
59   static constexpr uint32_t TRANSACTION_generateChallenge = FIRST_CALL_TRANSACTION + 0;
60   static constexpr uint32_t TRANSACTION_revokeChallenge = FIRST_CALL_TRANSACTION + 1;
61   static constexpr uint32_t TRANSACTION_getEnrollmentConfig = FIRST_CALL_TRANSACTION + 2;
62   static constexpr uint32_t TRANSACTION_enroll = FIRST_CALL_TRANSACTION + 3;
63   static constexpr uint32_t TRANSACTION_authenticate = FIRST_CALL_TRANSACTION + 4;
64   static constexpr uint32_t TRANSACTION_detectInteraction = FIRST_CALL_TRANSACTION + 5;
65   static constexpr uint32_t TRANSACTION_enumerateEnrollments = FIRST_CALL_TRANSACTION + 6;
66   static constexpr uint32_t TRANSACTION_removeEnrollments = FIRST_CALL_TRANSACTION + 7;
67   static constexpr uint32_t TRANSACTION_getFeatures = FIRST_CALL_TRANSACTION + 8;
68   static constexpr uint32_t TRANSACTION_setFeature = FIRST_CALL_TRANSACTION + 9;
69   static constexpr uint32_t TRANSACTION_getAuthenticatorId = FIRST_CALL_TRANSACTION + 10;
70   static constexpr uint32_t TRANSACTION_invalidateAuthenticatorId = FIRST_CALL_TRANSACTION + 11;
71   static constexpr uint32_t TRANSACTION_resetLockout = FIRST_CALL_TRANSACTION + 12;
72   static constexpr uint32_t TRANSACTION_close = FIRST_CALL_TRANSACTION + 13;
73   static constexpr uint32_t TRANSACTION_authenticateWithContext = FIRST_CALL_TRANSACTION + 14;
74   static constexpr uint32_t TRANSACTION_enrollWithContext = FIRST_CALL_TRANSACTION + 15;
75   static constexpr uint32_t TRANSACTION_detectInteractionWithContext = FIRST_CALL_TRANSACTION + 16;
76   static constexpr uint32_t TRANSACTION_onContextChanged = FIRST_CALL_TRANSACTION + 17;
77   static constexpr uint32_t TRANSACTION_enrollWithOptions = FIRST_CALL_TRANSACTION + 18;
78 
79   static std::shared_ptr<ISession> fromBinder(const ::ndk::SpAIBinder& binder);
80   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<ISession>& instance);
81   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<ISession>* instance);
82   static bool setDefaultImpl(const std::shared_ptr<ISession>& impl);
83   static const std::shared_ptr<ISession>& getDefaultImpl();
84   virtual ::ndk::ScopedAStatus generateChallenge() = 0;
85   virtual ::ndk::ScopedAStatus revokeChallenge(int64_t in_challenge) = 0;
86   virtual ::ndk::ScopedAStatus getEnrollmentConfig(::aidl::android::hardware::biometrics::face::EnrollmentType in_enrollmentType, std::vector<::aidl::android::hardware::biometrics::face::EnrollmentStageConfig>* _aidl_return) = 0;
87   virtual ::ndk::ScopedAStatus enroll(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat, ::aidl::android::hardware::biometrics::face::EnrollmentType in_type, const std::vector<::aidl::android::hardware::biometrics::face::Feature>& in_features, const std::optional<::aidl::android::hardware::common::NativeHandle>& in_previewSurface, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) __attribute__((deprecated("use {@link enrollWithOptions} instead."))) = 0;
88   virtual ::ndk::ScopedAStatus authenticate(int64_t in_operationId, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) = 0;
89   virtual ::ndk::ScopedAStatus detectInteraction(std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) = 0;
90   virtual ::ndk::ScopedAStatus enumerateEnrollments() = 0;
91   virtual ::ndk::ScopedAStatus removeEnrollments(const std::vector<int32_t>& in_enrollmentIds) = 0;
92   virtual ::ndk::ScopedAStatus getFeatures() = 0;
93   virtual ::ndk::ScopedAStatus setFeature(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat, ::aidl::android::hardware::biometrics::face::Feature in_feature, bool in_enabled) = 0;
94   virtual ::ndk::ScopedAStatus getAuthenticatorId() = 0;
95   virtual ::ndk::ScopedAStatus invalidateAuthenticatorId() = 0;
96   virtual ::ndk::ScopedAStatus resetLockout(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat) = 0;
97   virtual ::ndk::ScopedAStatus close() = 0;
98   virtual ::ndk::ScopedAStatus authenticateWithContext(int64_t in_operationId, const ::aidl::android::hardware::biometrics::common::OperationContext& in_context, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) = 0;
99   virtual ::ndk::ScopedAStatus enrollWithContext(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat, ::aidl::android::hardware::biometrics::face::EnrollmentType in_type, const std::vector<::aidl::android::hardware::biometrics::face::Feature>& in_features, const std::optional<::aidl::android::hardware::common::NativeHandle>& in_previewSurface, const ::aidl::android::hardware::biometrics::common::OperationContext& in_context, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) __attribute__((deprecated("use {@link enrollWithOptions} instead."))) = 0;
100   virtual ::ndk::ScopedAStatus detectInteractionWithContext(const ::aidl::android::hardware::biometrics::common::OperationContext& in_context, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) = 0;
101   virtual ::ndk::ScopedAStatus onContextChanged(const ::aidl::android::hardware::biometrics::common::OperationContext& in_context) = 0;
102   virtual ::ndk::ScopedAStatus enrollWithOptions(const ::aidl::android::hardware::biometrics::face::FaceEnrollOptions& in_options, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) = 0;
103   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
104   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
105 private:
106   static std::shared_ptr<ISession> default_impl;
107 };
108 class ISessionDefault : public ISession {
109 public:
110   ::ndk::ScopedAStatus generateChallenge() override;
111   ::ndk::ScopedAStatus revokeChallenge(int64_t in_challenge) override;
112   ::ndk::ScopedAStatus getEnrollmentConfig(::aidl::android::hardware::biometrics::face::EnrollmentType in_enrollmentType, std::vector<::aidl::android::hardware::biometrics::face::EnrollmentStageConfig>* _aidl_return) override;
113   ::ndk::ScopedAStatus enroll(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat, ::aidl::android::hardware::biometrics::face::EnrollmentType in_type, const std::vector<::aidl::android::hardware::biometrics::face::Feature>& in_features, const std::optional<::aidl::android::hardware::common::NativeHandle>& in_previewSurface, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) override __attribute__((deprecated("use {@link enrollWithOptions} instead.")));
114   ::ndk::ScopedAStatus authenticate(int64_t in_operationId, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) override;
115   ::ndk::ScopedAStatus detectInteraction(std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) override;
116   ::ndk::ScopedAStatus enumerateEnrollments() override;
117   ::ndk::ScopedAStatus removeEnrollments(const std::vector<int32_t>& in_enrollmentIds) override;
118   ::ndk::ScopedAStatus getFeatures() override;
119   ::ndk::ScopedAStatus setFeature(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat, ::aidl::android::hardware::biometrics::face::Feature in_feature, bool in_enabled) override;
120   ::ndk::ScopedAStatus getAuthenticatorId() override;
121   ::ndk::ScopedAStatus invalidateAuthenticatorId() override;
122   ::ndk::ScopedAStatus resetLockout(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat) override;
123   ::ndk::ScopedAStatus close() override;
124   ::ndk::ScopedAStatus authenticateWithContext(int64_t in_operationId, const ::aidl::android::hardware::biometrics::common::OperationContext& in_context, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) override;
125   ::ndk::ScopedAStatus enrollWithContext(const ::aidl::android::hardware::keymaster::HardwareAuthToken& in_hat, ::aidl::android::hardware::biometrics::face::EnrollmentType in_type, const std::vector<::aidl::android::hardware::biometrics::face::Feature>& in_features, const std::optional<::aidl::android::hardware::common::NativeHandle>& in_previewSurface, const ::aidl::android::hardware::biometrics::common::OperationContext& in_context, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) override __attribute__((deprecated("use {@link enrollWithOptions} instead.")));
126   ::ndk::ScopedAStatus detectInteractionWithContext(const ::aidl::android::hardware::biometrics::common::OperationContext& in_context, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) override;
127   ::ndk::ScopedAStatus onContextChanged(const ::aidl::android::hardware::biometrics::common::OperationContext& in_context) override;
128   ::ndk::ScopedAStatus enrollWithOptions(const ::aidl::android::hardware::biometrics::face::FaceEnrollOptions& in_options, std::shared_ptr<::aidl::android::hardware::biometrics::common::ICancellationSignal>* _aidl_return) override;
129   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
130   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
131   ::ndk::SpAIBinder asBinder() override;
132   bool isRemote() override;
133 };
134 }  // namespace face
135 }  // namespace biometrics
136 }  // namespace hardware
137 }  // namespace android
138 }  // namespace aidl
139