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 <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #include <aidl/android/hardware/confirmationui/IConfirmationResultCallback.h>
18 #include <aidl/android/hardware/confirmationui/UIOption.h>
19 #include <aidl/android/hardware/security/keymint/HardwareAuthToken.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl::android::hardware::confirmationui {
25 class IConfirmationResultCallback;
26 }  // namespace aidl::android::hardware::confirmationui
27 namespace aidl::android::hardware::security::keymint {
28 class HardwareAuthToken;
29 }  // namespace aidl::android::hardware::security::keymint
30 namespace aidl {
31 namespace android {
32 namespace hardware {
33 namespace confirmationui {
34 class IConfirmationUIDelegator;
35 
36 class IConfirmationUI : public ::ndk::ICInterface {
37 public:
38   typedef IConfirmationUIDelegator DefaultDelegator;
39   static const char* descriptor;
40   IConfirmationUI();
41   virtual ~IConfirmationUI();
42 
43   enum : int32_t { OK = 0 };
44   enum : int32_t { CANCELED = 1 };
45   enum : int32_t { ABORTED = 2 };
46   enum : int32_t { OPERATION_PENDING = 3 };
47   enum : int32_t { IGNORED = 4 };
48   enum : int32_t { SYSTEM_ERROR = 5 };
49   enum : int32_t { UNIMPLEMENTED = 6 };
50   enum : int32_t { UNEXPECTED = 7 };
51   enum : int32_t { UI_ERROR = 65536 };
52   enum : int32_t { UI_ERROR_MISSING_GLYPH = 65537 };
53   enum : int32_t { UI_ERROR_MESSAGE_TOO_LONG = 65538 };
54   enum : int32_t { UI_ERROR_MALFORMED_UTF8ENCODING = 65539 };
55   enum : int32_t { TEST_KEY_BYTE = 165 };
56   enum : int32_t { MAX_MESSAGE_SIZE = 6144 };
57   static inline const int32_t version = 1;
58   static inline const std::string hash = "4ae5a11c7bcce793ed8db5333483cc4296d3367e";
59   static constexpr uint32_t TRANSACTION_abort = FIRST_CALL_TRANSACTION + 0;
60   static constexpr uint32_t TRANSACTION_deliverSecureInputEvent = FIRST_CALL_TRANSACTION + 1;
61   static constexpr uint32_t TRANSACTION_promptUserConfirmation = FIRST_CALL_TRANSACTION + 2;
62 
63   static std::shared_ptr<IConfirmationUI> fromBinder(const ::ndk::SpAIBinder& binder);
64   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IConfirmationUI>& instance);
65   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IConfirmationUI>* instance);
66   static bool setDefaultImpl(const std::shared_ptr<IConfirmationUI>& impl);
67   static const std::shared_ptr<IConfirmationUI>& getDefaultImpl();
68   virtual ::ndk::ScopedAStatus abort() = 0;
69   virtual ::ndk::ScopedAStatus deliverSecureInputEvent(const ::aidl::android::hardware::security::keymint::HardwareAuthToken& in_secureInputToken) = 0;
70   virtual ::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) = 0;
71   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
72   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
73 private:
74   static std::shared_ptr<IConfirmationUI> default_impl;
75 };
76 class IConfirmationUIDefault : public IConfirmationUI {
77 public:
78   ::ndk::ScopedAStatus abort() override;
79   ::ndk::ScopedAStatus deliverSecureInputEvent(const ::aidl::android::hardware::security::keymint::HardwareAuthToken& in_secureInputToken) override;
80   ::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;
81   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
82   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
83   ::ndk::SpAIBinder asBinder() override;
84   bool isRemote() override;
85 };
86 }  // namespace confirmationui
87 }  // namespace hardware
88 }  // namespace android
89 }  // namespace aidl
90