Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2515cd5c authored by Eric Biggers's avatar Eric Biggers
Browse files

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
parent 01a1f52f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment