[RESTRICT AUTOMERGE] Add tests and add AutoValue.

- Add BugStorageUtilsTest
- Migrate MetaBugReport pojo to AutoValue.
  This removed 40 lines of extra code.
  It is useful for testing and debugging,
  it automatically creates equals(), toString(),
  hash() methods.
- Add completeDelete - destructively deletes the bugreport from db.
- Add expire bugreport - set status to expired and
  delete zip file.

Test: atest packages/services/Car/tests/BugReportApp/tests
Test: manually on a hawk bench
Bug: 144523228
Change-Id: Ice23b105a71ed2021d28943d31e26ec5c839f637
(cherry picked from commit 08d0edea03bd94a9abcb79f947824b452a8b946a)
12 files changed
tree: 7a17e6120b9327ffedb4d4bd54c6f27f520d55f6
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-lib/
  4. car-maps-placeholder/
  5. car-systemtest-lib/
  6. car-test-lib/
  7. car-usb-handler/
  8. car_product/
  9. EncryptionRunner/
  10. evs/
  11. FrameworkPackageStubs/
  12. obd2-lib/
  13. procfs-inspector/
  14. service/
  15. tests/
  16. tools/
  17. user/
  18. vehicle-hal-support-lib/
  19. .clang-format
  20. .gitignore
  21. Android.mk
  22. CleanSpec.mk
  23. OWNERS
  24. PREUPLOAD.cfg
  25. README.md
README.md

Native (C++) code format is required to be compatible with .clang-format file. Run

git clang-format --style=file --extension='h,cpp,cc' HEAD~

Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.