Janis Danisevskis | a0c33ea | 2017-11-09 14:58:36 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 25 | namespace android { |
| 26 | namespace hardware { |
| 27 | namespace confirmationui { |
| 28 | namespace V1_0 { |
| 29 | namespace implementation { |
| 30 | |
| 31 | using ::android::hardware::hidl_array; |
| 32 | using ::android::hardware::hidl_memory; |
| 33 | using ::android::hardware::hidl_string; |
| 34 | using ::android::hardware::hidl_vec; |
| 35 | using ::android::hardware::Return; |
| 36 | using ::android::hardware::Void; |
| 37 | using ::android::sp; |
| 38 | |
| 39 | struct 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 |