1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash d877e8a1608a00fd9068bcd7e69ea480a7ea17f0 -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/security/keymint/aidl/android.hardware.security.keymint_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/gatekeeper/aidl/android.hardware.gatekeeper-V1-ndk-source/gen/staging/android/hardware/gatekeeper/IGatekeeper.cpp.d -h out/soong/.intermediates/hardware/interfaces/gatekeeper/aidl/android.hardware.gatekeeper-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/gatekeeper/aidl/android.hardware.gatekeeper-V1-ndk-source/gen/staging -Nhardware/interfaces/gatekeeper/aidl/aidl_api/android.hardware.gatekeeper/1 hardware/interfaces/gatekeeper/aidl/aidl_api/android.hardware.gatekeeper/1/android/hardware/gatekeeper/IGatekeeper.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/gatekeeper/IGatekeeper.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 gatekeeper { 26 class BnGatekeeper : public ::ndk::BnCInterface<IGatekeeper> { 27 public: 28 BnGatekeeper(); 29 virtual ~BnGatekeeper(); 30 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final; 31 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final; 32 protected: 33 ::ndk::SpAIBinder createBinder() override; 34 private: 35 }; 36 class IGatekeeperDelegator : public BnGatekeeper { 37 public: IGatekeeperDelegator(const std::shared_ptr<IGatekeeper> & impl)38 explicit IGatekeeperDelegator(const std::shared_ptr<IGatekeeper> &impl) : _impl(impl) { 39 int32_t _impl_ver = 0; 40 if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {; 41 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation."); 42 } 43 if (_impl_ver != IGatekeeper::version) { 44 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 45 } 46 } 47 deleteAllUsers()48 ::ndk::ScopedAStatus deleteAllUsers() override { 49 return _impl->deleteAllUsers(); 50 } deleteUser(int32_t in_uid)51 ::ndk::ScopedAStatus deleteUser(int32_t in_uid) override { 52 return _impl->deleteUser(in_uid); 53 } enroll(int32_t in_uid,const std::vector<uint8_t> & in_currentPasswordHandle,const std::vector<uint8_t> & in_currentPassword,const std::vector<uint8_t> & in_desiredPassword,::aidl::android::hardware::gatekeeper::GatekeeperEnrollResponse * _aidl_return)54 ::ndk::ScopedAStatus enroll(int32_t in_uid, const std::vector<uint8_t>& in_currentPasswordHandle, const std::vector<uint8_t>& in_currentPassword, const std::vector<uint8_t>& in_desiredPassword, ::aidl::android::hardware::gatekeeper::GatekeeperEnrollResponse* _aidl_return) override { 55 return _impl->enroll(in_uid, in_currentPasswordHandle, in_currentPassword, in_desiredPassword, _aidl_return); 56 } verify(int32_t in_uid,int64_t in_challenge,const std::vector<uint8_t> & in_enrolledPasswordHandle,const std::vector<uint8_t> & in_providedPassword,::aidl::android::hardware::gatekeeper::GatekeeperVerifyResponse * _aidl_return)57 ::ndk::ScopedAStatus verify(int32_t in_uid, int64_t in_challenge, const std::vector<uint8_t>& in_enrolledPasswordHandle, const std::vector<uint8_t>& in_providedPassword, ::aidl::android::hardware::gatekeeper::GatekeeperVerifyResponse* _aidl_return) override { 58 return _impl->verify(in_uid, in_challenge, in_enrolledPasswordHandle, in_providedPassword, _aidl_return); 59 } 60 protected: 61 private: 62 std::shared_ptr<IGatekeeper> _impl; 63 }; 64 65 } // namespace gatekeeper 66 } // namespace hardware 67 } // namespace android 68 } // namespace aidl 69