mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user