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/IStoreUpgradedKeyCallback.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/IStoreUpgradedKeyCallback.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/IStoreUpgradedKeyCallback.h>
13 #include <android/security/rkp/BnStoreUpgradedKeyCallback.h>
14 #include <binder/Delegate.h>
15 
16 
17 namespace android {
18 namespace security {
19 namespace rkp {
20 class LIBBINDER_EXPORTED BnStoreUpgradedKeyCallback : public ::android::BnInterface<IStoreUpgradedKeyCallback> {
21 public:
22   static constexpr uint32_t TRANSACTION_onSuccess = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
23   static constexpr uint32_t TRANSACTION_onError = ::android::IBinder::FIRST_CALL_TRANSACTION + 1;
24   explicit BnStoreUpgradedKeyCallback();
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 BnStoreUpgradedKeyCallback
27 
28 class LIBBINDER_EXPORTED IStoreUpgradedKeyCallbackDelegator : public BnStoreUpgradedKeyCallback {
29 public:
IStoreUpgradedKeyCallbackDelegator(const::android::sp<IStoreUpgradedKeyCallback> & impl)30   explicit IStoreUpgradedKeyCallbackDelegator(const ::android::sp<IStoreUpgradedKeyCallback> &impl) : _aidl_delegate(impl) {}
31 
getImpl()32   ::android::sp<IStoreUpgradedKeyCallback> getImpl() { return _aidl_delegate; }
onSuccess()33   ::android::binder::Status onSuccess() override {
34     return _aidl_delegate->onSuccess();
35   }
onError(const::android::String16 & error)36   ::android::binder::Status onError(const ::android::String16& error) override {
37     return _aidl_delegate->onError(error);
38   }
39 private:
40   ::android::sp<IStoreUpgradedKeyCallback> _aidl_delegate;
41 };  // class IStoreUpgradedKeyCallbackDelegator
42 }  // namespace rkp
43 }  // namespace security
44 }  // namespace android
45