commit | d5e7f30141e16f488d5424df144c7333b66538de | [log] [tgz] |
---|---|---|
author | Zhomart Mukhamejanov <zhomart@google.com> | Tue Nov 26 10:18:39 2019 -0800 |
committer | Zhomart Mukhamejanov <zhomart@google.com> | Fri Dec 13 16:47:19 2019 -0800 |
tree | 15f00011060f5ad0e9ecbab61aac85d461318c4d | |
parent | e7ec052ee37bc0821a48efca1cbf1bca4ec84037 [diff] |
[RESTRICT AUTOMERGE] Show add audio dialog for SILENT bugreports. - Add Status#STATUS_AUDIO_PENDING. Now BugReportService will set this status when finishes collecting bugreport for SILENT bugreports and show "add audio dialog" right away. - "Bug report in progress dialog" shows "Show Bug Reports" button. - Allow adding audio message to SILENT bugreports from: BugReportInfoActivity (by default shows the dialog right after collecting). - When adding audio to SILENT bugreport: if user cancels the dialog, it deletes the zipfile and sets USER_CANCELED status. - App shows "bugreport started" toast message after 3 seconds, because hardware button doesn't give feedback when bugreport is started (e.g. phones vibrate). - User can cancel bugreport from notification, see BugReportActivity#ACTION_CANCEL_BUGREPORT. - Upload pending bugreports are stored in old directory, "bug_reports_pending/". Now bug report in sqlite3 contains bugreport_filename and audio_filename. - Start SILENT bugreport using BugReportService, because activity changes the UI state. Difference from Pi.car cherry pick: - Modified copying to USB (Q uses documents UI) - Added permission SYSTEM_ALERT_WINDOW - Implemented BugStorageProvider#getType() - needed when copying to USB Bug: 145310854 Test: a hawk rig Test: tested uploading and copying to USB Test: atest tests/ Change-Id: I90faa3693d70c7da45dbb2db6f2630f4b7f9bec3
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.