From 9c3ebfc83fa6be78d91e10e0acbc5b35bed9558b Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Tue, 27 Apr 2021 18:33:17 +0900 Subject: [PATCH] aidl: Set explicit default values This fixes warnings in AIDL files(-Wenum-explicit-default). No semantic changes. (Explicit values are all zero enumerators.) Fixes: 179853367 Test: mma in hardware/interfaces/keymaster Change-Id: If5a70da3efd05a344c39ef1d2e73b7ec2b894f33 --- .../current/android/hardware/keymaster/HardwareAuthToken.aidl | 2 +- .../current/android/hardware/keymaster/VerificationToken.aidl | 2 +- .../aidl/android/hardware/keymaster/HardwareAuthToken.aidl | 2 +- .../aidl/android/hardware/keymaster/VerificationToken.aidl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/HardwareAuthToken.aidl b/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/HardwareAuthToken.aidl index db1df2b050..4f21cba106 100644 --- a/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/HardwareAuthToken.aidl +++ b/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/HardwareAuthToken.aidl @@ -21,7 +21,7 @@ parcelable HardwareAuthToken { long challenge; long userId; long authenticatorId; - android.hardware.keymaster.HardwareAuthenticatorType authenticatorType; + android.hardware.keymaster.HardwareAuthenticatorType authenticatorType = android.hardware.keymaster.HardwareAuthenticatorType.NONE; android.hardware.keymaster.Timestamp timestamp; byte[] mac; } diff --git a/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/VerificationToken.aidl b/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/VerificationToken.aidl index 0633765cac..b116dac925 100644 --- a/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/VerificationToken.aidl +++ b/keymaster/aidl/aidl_api/android.hardware.keymaster/current/android/hardware/keymaster/VerificationToken.aidl @@ -20,6 +20,6 @@ package android.hardware.keymaster; parcelable VerificationToken { long challenge; android.hardware.keymaster.Timestamp timestamp; - android.hardware.keymaster.SecurityLevel securityLevel; + android.hardware.keymaster.SecurityLevel securityLevel = android.hardware.keymaster.SecurityLevel.SOFTWARE; byte[] mac; } diff --git a/keymaster/aidl/android/hardware/keymaster/HardwareAuthToken.aidl b/keymaster/aidl/android/hardware/keymaster/HardwareAuthToken.aidl index 58602aaa49..99b036aefe 100644 --- a/keymaster/aidl/android/hardware/keymaster/HardwareAuthToken.aidl +++ b/keymaster/aidl/android/hardware/keymaster/HardwareAuthToken.aidl @@ -55,7 +55,7 @@ parcelable HardwareAuthToken { * authenticatorType describes the type of authentication that took place, e.g. password or * fingerprint. */ - HardwareAuthenticatorType authenticatorType; + HardwareAuthenticatorType authenticatorType = HardwareAuthenticatorType.NONE; /** * timestamp indicates when the user authentication took place, in milliseconds since some diff --git a/keymaster/aidl/android/hardware/keymaster/VerificationToken.aidl b/keymaster/aidl/android/hardware/keymaster/VerificationToken.aidl index f0532543c2..5efd937f38 100644 --- a/keymaster/aidl/android/hardware/keymaster/VerificationToken.aidl +++ b/keymaster/aidl/android/hardware/keymaster/VerificationToken.aidl @@ -43,7 +43,7 @@ parcelable VerificationToken { /** * SecurityLevel of the secure environment that generated the token. */ - SecurityLevel securityLevel; + SecurityLevel securityLevel = SecurityLevel.SOFTWARE; /** * 32-byte HMAC-SHA256 of the above values, computed as: