1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.secure_element@1.2;
18
19import @1.1::ISecureElementHalCallback;
20import @1.1::ISecureElement;
21import @1.0::SecureElementStatus;
22
23interface ISecureElement extends @1.1::ISecureElement {
24    /**
25     * Reset the Secure Element.
26     *
27     * HAL should trigger reset to the secure element. It could hardware power cycle or
28     * a soft reset depends on hardware design.
29     * HAL service must send onStateChange() with connected equal to true
30     * after resetting and all the re-initialization has been successfully completed.
31     *
32     * @return SecureElementStatus::SUCCESS on success and SecureElementStatus::FAILED on error.
33     */
34    reset() generates (SecureElementStatus status);
35};
36