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/IBinder.h>
12 #include <binder/IInterface.h>
13 #include <binder/Status.h>
14 #include <binder/Trace.h>
15 #include <utils/String16.h>
16 #include <utils/StrongPointer.h>
17 
18 namespace android {
19 namespace security {
20 namespace rkp {
21 class LIBBINDER_EXPORTED IStoreUpgradedKeyCallbackDelegator;
22 
23 class LIBBINDER_EXPORTED IStoreUpgradedKeyCallback : public ::android::IInterface {
24 public:
25   typedef IStoreUpgradedKeyCallbackDelegator DefaultDelegator;
26   DECLARE_META_INTERFACE(StoreUpgradedKeyCallback)
27   virtual ::android::binder::Status onSuccess() = 0;
28   virtual ::android::binder::Status onError(const ::android::String16& error) = 0;
29 };  // class IStoreUpgradedKeyCallback
30 
31 class LIBBINDER_EXPORTED IStoreUpgradedKeyCallbackDefault : public IStoreUpgradedKeyCallback {
32 public:
onAsBinder()33   ::android::IBinder* onAsBinder() override {
34     return nullptr;
35   }
onSuccess()36   ::android::binder::Status onSuccess() override {
37     return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION);
38   }
onError(const::android::String16 &)39   ::android::binder::Status onError(const ::android::String16& /*error*/) override {
40     return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION);
41   }
42 };  // class IStoreUpgradedKeyCallbackDefault
43 }  // namespace rkp
44 }  // namespace security
45 }  // namespace android
46