blob: e9e7f993b88eafec496d76fe93b870c21ceeaba6 [file] [log] [blame]
Janis Danisevskisa0c33ea2017-11-09 14:58:36 -08001/*
2**
3** Copyright 2017, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9** http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17
18#ifndef ANDROID_HARDWARE_CONFIRMATIONUI_V1_0_CONFIRMATIONUI_H
19#define ANDROID_HARDWARE_CONFIRMATIONUI_V1_0_CONFIRMATIONUI_H
20
21#include <android/hardware/confirmationui/1.0/IConfirmationUI.h>
22#include <hidl/MQDescriptor.h>
23#include <hidl/Status.h>
24
25namespace android {
26namespace hardware {
27namespace confirmationui {
28namespace V1_0 {
29namespace implementation {
30
31using ::android::hardware::hidl_array;
32using ::android::hardware::hidl_memory;
33using ::android::hardware::hidl_string;
34using ::android::hardware::hidl_vec;
35using ::android::hardware::Return;
36using ::android::hardware::Void;
37using ::android::sp;
38
39struct ConfirmationUI : public IConfirmationUI {
40 // Methods from ::android::hardware::confirmationui::V1_0::IConfirmationUI follow.
41 Return<ResponseCode> promptUserConfirmation(const sp<IConfirmationResultCallback>& resultCB,
42 const hidl_string& promptText,
43 const hidl_vec<uint8_t>& extraData,
44 const hidl_string& locale,
45 const hidl_vec<UIOption>& uiOptions) override;
46 Return<ResponseCode> deliverSecureInputEvent(
47 const ::android::hardware::keymaster::V4_0::HardwareAuthToken& secureInputToken) override;
48 Return<void> abort() override;
49};
50
51} // namespace implementation
52} // namespace V1_0
53} // namespace confirmationui
54} // namespace hardware
55} // namespace android
56
57#endif // ANDROID_HARDWARE_CONFIRMATIONUI_V1_0_CONFIRMATIONUI_H