From 212a6da42c62b349e37dd484515384a4750be144 Mon Sep 17 00:00:00 2001 From: Devin Moore Date: Wed, 22 Mar 2023 19:52:23 +0000 Subject: [PATCH] Specify @throws for secure_element AIDL reset() method This was expected to return an error in the HIDL version, so we explicitly say which it should return on failure. Brought up in ANAPIC review in ag/21108335 Test: none Bug: none Change-Id: I6f183a490f91aca5e08b5ae83017e707b63268ea --- .../aidl/android/hardware/secure_element/ISecureElement.aidl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/secure_element/aidl/android/hardware/secure_element/ISecureElement.aidl b/secure_element/aidl/android/hardware/secure_element/ISecureElement.aidl index 8c0dd6dfa0..800494a293 100644 --- a/secure_element/aidl/android/hardware/secure_element/ISecureElement.aidl +++ b/secure_element/aidl/android/hardware/secure_element/ISecureElement.aidl @@ -117,6 +117,9 @@ interface ISecureElement { * closed by this operation. * HAL service must send onStateChange() with connected equal to true * after resetting and all the re-initialization has been successfully completed. + * + * @throws ServiceSpecificException on error with the following code: + * - FAILED if the service was unable to reset the secure element. */ void reset();