1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=cpp -Weverything -Wno-missing-permission-annotation -t --min_sdk_version current --ninja -d out/soong/.intermediates/frameworks/base/core/java/android.security.rkp_aidl-cpp-source/gen/staging/android/security/rkp/IRegistration.cpp.d -h out/soong/.intermediates/frameworks/base/core/java/android.security.rkp_aidl-cpp-source/gen/include/staging -o out/soong/.intermediates/frameworks/base/core/java/android.security.rkp_aidl-cpp-source/gen/staging -Nframeworks/base/core/java frameworks/base/core/java/android/security/rkp/IRegistration.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 <binder/IInterface.h> 12 #include <android/security/rkp/IRegistration.h> 13 #include <android/security/rkp/BnGetKeyCallback.h> 14 #include <android/security/rkp/BnRegistration.h> 15 #include <android/security/rkp/BnStoreUpgradedKeyCallback.h> 16 #include <binder/Delegate.h> 17 18 19 namespace android { 20 namespace security { 21 namespace rkp { 22 class LIBBINDER_EXPORTED BnRegistration : public ::android::BnInterface<IRegistration> { 23 public: 24 static constexpr uint32_t TRANSACTION_getKey = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; 25 static constexpr uint32_t TRANSACTION_cancelGetKey = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; 26 static constexpr uint32_t TRANSACTION_storeUpgradedKeyAsync = ::android::IBinder::FIRST_CALL_TRANSACTION + 2; 27 explicit BnRegistration(); 28 ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; 29 }; // class BnRegistration 30 31 class LIBBINDER_EXPORTED IRegistrationDelegator : public BnRegistration { 32 public: IRegistrationDelegator(const::android::sp<IRegistration> & impl)33 explicit IRegistrationDelegator(const ::android::sp<IRegistration> &impl) : _aidl_delegate(impl) {} 34 getImpl()35 ::android::sp<IRegistration> getImpl() { return _aidl_delegate; } getKey(int32_t keyId,const::android::sp<::android::security::rkp::IGetKeyCallback> & callback)36 ::android::binder::Status getKey(int32_t keyId, const ::android::sp<::android::security::rkp::IGetKeyCallback>& callback) override { 37 ::android::sp<::android::security::rkp::IGetKeyCallbackDelegator> _callback; 38 if (callback) { 39 _callback = ::android::sp<::android::security::rkp::IGetKeyCallbackDelegator>::cast(delegate(callback)); 40 } 41 return _aidl_delegate->getKey(keyId, _callback); 42 } cancelGetKey(const::android::sp<::android::security::rkp::IGetKeyCallback> & callback)43 ::android::binder::Status cancelGetKey(const ::android::sp<::android::security::rkp::IGetKeyCallback>& callback) override { 44 ::android::sp<::android::security::rkp::IGetKeyCallbackDelegator> _callback; 45 if (callback) { 46 _callback = ::android::sp<::android::security::rkp::IGetKeyCallbackDelegator>::cast(delegate(callback)); 47 } 48 return _aidl_delegate->cancelGetKey(_callback); 49 } storeUpgradedKeyAsync(const::std::vector<uint8_t> & oldKeyBlob,const::std::vector<uint8_t> & newKeyBlob,const::android::sp<::android::security::rkp::IStoreUpgradedKeyCallback> & callback)50 ::android::binder::Status storeUpgradedKeyAsync(const ::std::vector<uint8_t>& oldKeyBlob, const ::std::vector<uint8_t>& newKeyBlob, const ::android::sp<::android::security::rkp::IStoreUpgradedKeyCallback>& callback) override { 51 ::android::sp<::android::security::rkp::IStoreUpgradedKeyCallbackDelegator> _callback; 52 if (callback) { 53 _callback = ::android::sp<::android::security::rkp::IStoreUpgradedKeyCallbackDelegator>::cast(delegate(callback)); 54 } 55 return _aidl_delegate->storeUpgradedKeyAsync(oldKeyBlob, newKeyBlob, _callback); 56 } 57 private: 58 ::android::sp<IRegistration> _aidl_delegate; 59 }; // class IRegistrationDelegator 60 } // namespace rkp 61 } // namespace security 62 } // namespace android 63