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