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
This commit is contained in:
Jooyung Han
2021-04-27 18:33:17 +09:00
parent 3a966323ef
commit 9c3ebfc83f
4 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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: