ProvisionedKey only cares about millisecond accuracy

Since the key objects are serialized to/from a database, millisecond
accuracy is all we get from the timestamps. Update the comparison
and hash operators to truncate timestamps to the millisecond to avoid
letting units like nanoseconds mess with object comparisons.

Test: RkpdAppUnitTests
Change-Id: I6bfb9d109beafc076fa5580eb6f2506ff389a446
2 files changed
tree: 5f52e794d5f4a00fb535a8bfcc21292c15a06bf5
  1. apex/
  2. app/
  3. system-server/
  4. OWNERS
  5. PREUPLOAD.cfg