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/IGetKeyCallback.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/IGetKeyCallback.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/IGetKeyCallback.h>
13 #include <android/security/rkp/BnGetKeyCallback.h>
14 #include <binder/Delegate.h>
15 
16 
17 namespace android {
18 namespace security {
19 namespace rkp {
20 class LIBBINDER_EXPORTED BnGetKeyCallback : public ::android::BnInterface<IGetKeyCallback> {
21 public:
22   static constexpr uint32_t TRANSACTION_onSuccess = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
23   static constexpr uint32_t TRANSACTION_onCancel = ::android::IBinder::FIRST_CALL_TRANSACTION + 1;
24   static constexpr uint32_t TRANSACTION_onError = ::android::IBinder::FIRST_CALL_TRANSACTION + 2;
25   explicit BnGetKeyCallback();
26   ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override;
27 };  // class BnGetKeyCallback
28 
29 class LIBBINDER_EXPORTED IGetKeyCallbackDelegator : public BnGetKeyCallback {
30 public:
IGetKeyCallbackDelegator(const::android::sp<IGetKeyCallback> & impl)31   explicit IGetKeyCallbackDelegator(const ::android::sp<IGetKeyCallback> &impl) : _aidl_delegate(impl) {}
32 
getImpl()33   ::android::sp<IGetKeyCallback> getImpl() { return _aidl_delegate; }
onSuccess(const::android::security::rkp::RemotelyProvisionedKey & key)34   ::android::binder::Status onSuccess(const ::android::security::rkp::RemotelyProvisionedKey& key) override {
35     return _aidl_delegate->onSuccess(key);
36   }
onCancel()37   ::android::binder::Status onCancel() override {
38     return _aidl_delegate->onCancel();
39   }
onError(::android::security::rkp::IGetKeyCallback::ErrorCode error,const::android::String16 & description)40   ::android::binder::Status onError(::android::security::rkp::IGetKeyCallback::ErrorCode error, const ::android::String16& description) override {
41     return _aidl_delegate->onError(error, description);
42   }
43 private:
44   ::android::sp<IGetKeyCallback> _aidl_delegate;
45 };  // class IGetKeyCallbackDelegator
46 }  // namespace rkp
47 }  // namespace security
48 }  // namespace android
49