KeyChain: Verbose key generation failure reporting

Return various error codes, instead of an opaque success indicator, for
the generateKey and attestKey methods.

This allows distinguishing between failures that are related to
incorrect invocation of these methods, hardware not supporting a feature
(like Device ID attestation) and actual hardware failure.

Bug: 72642093
Bug: 73448533
Test: cts-tradefed run commandAndExit  cts-dev -s 127.0.0.1:50487 -a x86_64 -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: I73b561ba40498d0f80f66d2a736b5d9f5c436952
1 file changed
tree: 7829d21231a26c077a07325cf4d9aa61f82ce105
  1. res/
  2. robotests/
  3. src/
  4. support/
  5. tests/
  6. Android.mk
  7. AndroidManifest.xml