[RESTRICT AUTOMERGE] Add moving bugreport to the USB flash drive.

NOTE: This is a cherry pick from ag/9592769, but
starting Q, android doesn't allow copying to USB
directly, forces using SOF. The original CL contains
many small improvements, this CL contains those changes.

- If system property "android.car.bugreport.disableautoupload"
  set false (meaning auto-upload to GCS is on), hide
  Upload/Move buttons.
- BugInfoAdapter (for RecyclerView) now handles dataset
  changes properly.
- UI: removed repeating info - User and Timestamp.
- Update utils/bugreport_app_tester.py script to wait for
  STATUS_PENDING_USER_ACTION too.
- Allow BugStorageUtils.setBugReportStatus() to set empty
  message - it's needed to clear status message.
- BugStorageProvider#delete() now supports deleting only
  zip file; and also deletes zip file when it's called.
- Force sync to bugreports to disk (e.g. USB).
  Otherwise OS doesn't sync and when USB flash is taken out
  faster it contains an empty file.

Bug: 143168760
Change-Id: Ib929a59723a6678d6629ce7d5823033c78b3d494
Test: tested on a hawk bench
(cherry picked from commit 905732f189e1abd458839f44ba59039e5d24b768)
(cherry picked from commit e142f398611632d2b198f629f56402558e199551)
11 files changed
tree: 975b3f592309b6387c1b7c1eee731de22e528de6
  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. computepipe/
  10. EncryptionRunner/
  11. evs/
  12. experimental/
  13. FrameworkPackageStubs/
  14. obd2-lib/
  15. procfs-inspector/
  16. service/
  17. tests/
  18. tools/
  19. user/
  20. vehicle-hal-support-lib/
  21. watchdog/
  22. .clang-format
  23. .gitignore
  24. Android.mk
  25. CleanSpec.mk
  26. OWNERS
  27. PREUPLOAD.cfg
  28. 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.