diff options
| author | 2022-07-07 19:00:51 +0000 | |
|---|---|---|
| committer | 2022-07-07 19:00:51 +0000 | |
| commit | 2515cd5c161e7fd3686b16c9e04596892272cb1f (patch) | |
| tree | 7a7dbc953a0f4628643e8193ec8ed9f16b4b5789 /libs/androidfw/StringPool.cpp | |
| parent | 01a1f52fb4b5ca6e0ffffbed1f6fdd5b12dd32c1 (diff) | |
Clean up the LockSettingsStorage file methods
For file paths, consistently use File instead of String, and don't use
ambiguous variable names like 'name' and 'key'. Remove unnecessary
conversions to absolute paths, as the paths are all absolute already.
Consistently use 'data' when referring to a file's data, instead of
'hash', 'stored', or 'value'.
Don't catch exceptions from deleteFile(), as it doesn't throw
exceptions.
Remove the DEBUG field, as it's hardcoded to false, and it only enabled
the printing of two messages which were redundant with each other.
Test: atest com.android.server.locksettings
Change-Id: If0dd16d8c16015d129bda75e93600e60a1341f82
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions