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 "aidl/android/hardware/biometrics/fingerprint/IFingerprint.h"
12 
13 #include <android/binder_ibinder.h>
14 #include <cassert>
15 
16 #ifndef __BIONIC__
17 #ifndef __assert2
18 #define __assert2(a,b,c,d) ((void)0)
19 #endif
20 #endif
21 
22 namespace aidl {
23 namespace android {
24 namespace hardware {
25 namespace biometrics {
26 namespace fingerprint {
27 class BnFingerprint : public ::ndk::BnCInterface<IFingerprint> {
28 public:
29   BnFingerprint();
30   virtual ~BnFingerprint();
31   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final;
32   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final;
33 protected:
34   ::ndk::SpAIBinder createBinder() override;
35 private:
36 };
37 class IFingerprintDelegator : public BnFingerprint {
38 public:
IFingerprintDelegator(const std::shared_ptr<IFingerprint> & impl)39   explicit IFingerprintDelegator(const std::shared_ptr<IFingerprint> &impl) : _impl(impl) {
40      int32_t _impl_ver = 0;
41      if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {;
42         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation.");
43      }
44      if (_impl_ver != IFingerprint::version) {
45         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
46      }
47   }
48 
getSensorProps(std::vector<::aidl::android::hardware::biometrics::fingerprint::SensorProps> * _aidl_return)49   ::ndk::ScopedAStatus getSensorProps(std::vector<::aidl::android::hardware::biometrics::fingerprint::SensorProps>* _aidl_return) override {
50     return _impl->getSensorProps(_aidl_return);
51   }
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)52   ::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 {
53     return _impl->createSession(in_sensorId, in_userId, in_cb, _aidl_return);
54   }
55 protected:
56 private:
57   std::shared_ptr<IFingerprint> _impl;
58 };
59 
60 }  // namespace fingerprint
61 }  // namespace biometrics
62 }  // namespace hardware
63 }  // namespace android
64 }  // namespace aidl
65