diff options
| author | Aaron Huang <huangaaron@google.com> | 2022-06-16 23:56:35 +0800 |
|---|---|---|
| committer | Aaron Huang <huangaaron@google.com> | 2022-06-17 15:23:24 +0800 |
| commit | 692baa7d713907a3002c1bb7cb6dea5466dd586b (patch) | |
| tree | 06d0c126fc93d5c896537d768ef80441c13dcd23 /framework-t/src/android/net/IpSecAlgorithm.java | |
| parent | ab3e14471b9340d1f8312c14aa9bbc4c66cb9508 (diff) | |
Add wipeOnError flag to NetworkStatsRecorder
If reading data happens exception while doing data migration,
the file will be deleted by legacy recorders. This would cause
legacy persistent data being lost and cannot be retrieved by
any method. To avoid the files being deleted, add a wipeOnError
flag to recorder which indicates this recorder will wipe on
error or not . If the flag is set to true then deletes all files
when it throws, otherwise keeps all files.
Ignore-AOSP-First: urgent fix and will cherry-pick immediately after.
Bug: 233828210
Test: FrameworksNetTests:NetworkStatsRecorderTest
Change-Id: Id7a3d8bebf8a00d814f9e84bf4c10d927e6ff749
Diffstat (limited to 'framework-t/src/android/net/IpSecAlgorithm.java')
0 files changed, 0 insertions, 0 deletions
