1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl-cpp -dout/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out/android/security/identity/ICredentialStoreFactory.cpp.d --ninja -Isystem/security/identity/binder -t --min_sdk_version=platform_apis -Isystem/security/identity/binder/ system/security/identity/binder/android/security/identity/ICredentialStoreFactory.aidl out/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out out/soong/.temp/sbox/10ece8c3f2676d939c6532d9928a7335ddf2c032/out/android/security/identity/ICredentialStoreFactory.cpp
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 <binder/IInterface.h>
12 #include <android/security/identity/ICredentialStoreFactory.h>
13 #include <android/security/identity/BnCredentialStore.h>
14 #include <android/security/identity/BnCredentialStoreFactory.h>
15 #include <binder/Delegate.h>
16 
17 
18 namespace android {
19 namespace security {
20 namespace identity {
21 class LIBBINDER_EXPORTED BnCredentialStoreFactory : public ::android::BnInterface<ICredentialStoreFactory> {
22 public:
23   static constexpr uint32_t TRANSACTION_getCredentialStore = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
24   explicit BnCredentialStoreFactory();
25   ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override;
26 };  // class BnCredentialStoreFactory
27 
28 class LIBBINDER_EXPORTED ICredentialStoreFactoryDelegator : public BnCredentialStoreFactory {
29 public:
ICredentialStoreFactoryDelegator(const::android::sp<ICredentialStoreFactory> & impl)30   explicit ICredentialStoreFactoryDelegator(const ::android::sp<ICredentialStoreFactory> &impl) : _aidl_delegate(impl) {}
31 
getImpl()32   ::android::sp<ICredentialStoreFactory> getImpl() { return _aidl_delegate; }
getCredentialStore(int32_t credentialStoreType,::android::sp<::android::security::identity::ICredentialStore> * _aidl_return)33   ::android::binder::Status getCredentialStore(int32_t credentialStoreType, ::android::sp<::android::security::identity::ICredentialStore>* _aidl_return) override {
34     auto _status = _aidl_delegate->getCredentialStore(credentialStoreType, _aidl_return);
35     if (*_aidl_return) {
36       *_aidl_return = ::android::sp<::android::security::identity::ICredentialStoreDelegator>::cast(delegate(*_aidl_return));
37     }
38     return _status;
39   }
40 private:
41   ::android::sp<ICredentialStoreFactory> _aidl_delegate;
42 };  // class ICredentialStoreFactoryDelegator
43 }  // namespace identity
44 }  // namespace security
45 }  // namespace android
46