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/IFingerprint.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/IFingerprint.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/fingerprint/ISession.h>
18 #include <aidl/android/hardware/biometrics/fingerprint/ISessionCallback.h>
19 #include <aidl/android/hardware/biometrics/fingerprint/SensorProps.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl::android::hardware::biometrics::fingerprint {
25 class ISession;
26 class ISessionCallback;
27 class SensorProps;
28 }  // namespace aidl::android::hardware::biometrics::fingerprint
29 namespace aidl {
30 namespace android {
31 namespace hardware {
32 namespace biometrics {
33 namespace fingerprint {
34 class IFingerprintDelegator;
35 
36 class IFingerprint : public ::ndk::ICInterface {
37 public:
38   typedef IFingerprintDelegator DefaultDelegator;
39   static const char* descriptor;
40   IFingerprint();
41   virtual ~IFingerprint();
42 
43   static inline const int32_t version = 4;
44   static inline const std::string hash = "41a730a7a6b5aa9cebebce70ee5b5e509b0af6fb";
45   static constexpr uint32_t TRANSACTION_getSensorProps = FIRST_CALL_TRANSACTION + 0;
46   static constexpr uint32_t TRANSACTION_createSession = FIRST_CALL_TRANSACTION + 1;
47 
48   static std::shared_ptr<IFingerprint> fromBinder(const ::ndk::SpAIBinder& binder);
49   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IFingerprint>& instance);
50   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IFingerprint>* instance);
51   static bool setDefaultImpl(const std::shared_ptr<IFingerprint>& impl);
52   static const std::shared_ptr<IFingerprint>& getDefaultImpl();
53   virtual ::ndk::ScopedAStatus getSensorProps(std::vector<::aidl::android::hardware::biometrics::fingerprint::SensorProps>* _aidl_return) = 0;
54   virtual ::ndk::ScopedAStatus createSession(int32_t in_sensorId, int32_t in_userId, const std::shared_ptr<::aidl::android::hardware::biometrics::fingerprint::ISessionCallback>& in_cb, std::shared_ptr<::aidl::android::hardware::biometrics::fingerprint::ISession>* _aidl_return) = 0;
55   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
56   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
57 private:
58   static std::shared_ptr<IFingerprint> default_impl;
59 };
60 class IFingerprintDefault : public IFingerprint {
61 public:
62   ::ndk::ScopedAStatus getSensorProps(std::vector<::aidl::android::hardware::biometrics::fingerprint::SensorProps>* _aidl_return) override;
63   ::ndk::ScopedAStatus createSession(int32_t in_sensorId, int32_t in_userId, const std::shared_ptr<::aidl::android::hardware::biometrics::fingerprint::ISessionCallback>& in_cb, std::shared_ptr<::aidl::android::hardware::biometrics::fingerprint::ISession>* _aidl_return) override;
64   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
65   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
66   ::ndk::SpAIBinder asBinder() override;
67   bool isRemote() override;
68 };
69 }  // namespace fingerprint
70 }  // namespace biometrics
71 }  // namespace hardware
72 }  // namespace android
73 }  // namespace aidl
74