Verify Device ID attestation data in key management test.

Extract the device identifiers from Keymaster's attestation record and
validate them against expected values from android.os.Build class.

Prior to this change, the AuthorizationList class did not have code for
parsing tags related to device identifiers, which are only included in
the attestation record if Device ID attestation was requested.

This change parses all of those tags in the AuthorizationList class and
uses the parsed value to test correctness of the generated attestation
record in KeyManagementTest.

Bug: 72061509
Test: cts-tradefed run commandAndExit cts-dev -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ifcb139cebd9cf8f0b75514707549e31ff794ba9a
3 files changed