commit | 991665073002defb18d45a042c57c1be1d8e2795 | [log] [tgz] |
---|---|---|
author | Zhomart Mukhamejanov <zhomart@google.com> | Fri Jan 17 14:36:05 2020 -0800 |
committer | Zhomart Mukhamejanov <zhomart@google.com> | Fri Mar 06 17:48:55 2020 +0000 |
tree | 4ab31d712ef7610fd9cb6bb2ab4276eeb8b34c8a | |
parent | 97a40a16d4bda4069a24a781083dcdab1b7a191e [diff] |
Add expiring old bugreports from devices. - BugReport TTL (time-to-live) points is initially 50. it's decremented every boot, and when it's reached 0, ExpireOldBugReportsJob will delete zip file associated with the bugreport. It counts only hard reboots (sleep/wakeup is not counted) - This CL adds tests for BugStorageUtils.getUnexpiredBugReportsWithZipFile(), which is used both both TtlPointDecremental and ExpireOldBugreportsJob. Test: atest packages/services/Car/tests/BugReportApp/tests Test: on an hawk bench Bug: 144523228 Change-Id: I2d3158cd4435b39e24cf3d3a542b94d8d23705ce
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.