1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash 4ae5a11c7bcce793ed8db5333483cc4296d3367e -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/security/keymint/aidl/android.hardware.security.keymint_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/confirmationui/aidl/android.hardware.confirmationui-V1-ndk-source/gen/staging/android/hardware/confirmationui/IConfirmationUI.cpp.d -h out/soong/.intermediates/hardware/interfaces/confirmationui/aidl/android.hardware.confirmationui-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/confirmationui/aidl/android.hardware.confirmationui-V1-ndk-source/gen/staging -Nhardware/interfaces/confirmationui/aidl/aidl_api/android.hardware.confirmationui/1 hardware/interfaces/confirmationui/aidl/aidl_api/android.hardware.confirmationui/1/android/hardware/confirmationui/IConfirmationUI.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 "aidl/android/hardware/confirmationui/IConfirmationUI.h"
12 
13 #include <android/binder_ibinder.h>
14 #include <cassert>
15 
16 #ifndef __BIONIC__
17 #ifndef __assert2
18 #define __assert2(a,b,c,d) ((void)0)
19 #endif
20 #endif
21 
22 namespace aidl {
23 namespace android {
24 namespace hardware {
25 namespace confirmationui {
26 class BnConfirmationUI : public ::ndk::BnCInterface<IConfirmationUI> {
27 public:
28   BnConfirmationUI();
29   virtual ~BnConfirmationUI();
30   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final;
31   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final;
32 protected:
33   ::ndk::SpAIBinder createBinder() override;
34 private:
35 };
36 class IConfirmationUIDelegator : public BnConfirmationUI {
37 public:
IConfirmationUIDelegator(const std::shared_ptr<IConfirmationUI> & impl)38   explicit IConfirmationUIDelegator(const std::shared_ptr<IConfirmationUI> &impl) : _impl(impl) {
39      int32_t _impl_ver = 0;
40      if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {;
41         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation.");
42      }
43      if (_impl_ver != IConfirmationUI::version) {
44         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
45      }
46   }
47 
abort()48   ::ndk::ScopedAStatus abort() override {
49     return _impl->abort();
50   }
deliverSecureInputEvent(const::aidl::android::hardware::security::keymint::HardwareAuthToken & in_secureInputToken)51   ::ndk::ScopedAStatus deliverSecureInputEvent(const ::aidl::android::hardware::security::keymint::HardwareAuthToken& in_secureInputToken) override {
52     return _impl->deliverSecureInputEvent(in_secureInputToken);
53   }
promptUserConfirmation(const std::shared_ptr<::aidl::android::hardware::confirmationui::IConfirmationResultCallback> & in_resultCB,const std::vector<uint8_t> & in_promptText,const std::vector<uint8_t> & in_extraData,const std::string & in_locale,const std::vector<::aidl::android::hardware::confirmationui::UIOption> & in_uiOptions)54   ::ndk::ScopedAStatus promptUserConfirmation(const std::shared_ptr<::aidl::android::hardware::confirmationui::IConfirmationResultCallback>& in_resultCB, const std::vector<uint8_t>& in_promptText, const std::vector<uint8_t>& in_extraData, const std::string& in_locale, const std::vector<::aidl::android::hardware::confirmationui::UIOption>& in_uiOptions) override {
55     return _impl->promptUserConfirmation(in_resultCB, in_promptText, in_extraData, in_locale, in_uiOptions);
56   }
57 protected:
58 private:
59   std::shared_ptr<IConfirmationUI> _impl;
60 };
61 
62 }  // namespace confirmationui
63 }  // namespace hardware
64 }  // namespace android
65 }  // namespace aidl
66