commit | 02c339e4079c7488485cd4ef56da2c32619250b2 | [log] [tgz] |
---|---|---|
author | Zhomart Mukhamejanov <zhomart@google.com> | Mon Dec 16 17:59:03 2019 -0800 |
committer | Zhomart Mukhamejanov <zhomart@google.com> | Mon Dec 16 18:02:38 2019 -0800 |
tree | 975b3f592309b6387c1b7c1eee731de22e528de6 | |
parent | 8cb386bc5c659e6fcffbd0b263f99beb8c345e2f [diff] |
[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)
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.