summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2017-07-17 12:41:53 -0700
committerAndreas Gampe <agampe@google.com>2017-11-20 10:01:08 -0800
commit7e37d48b0a58aa5414c59c4c3a9c1a455932de90 (patch)
treebe89125f34246d74d453fecd3d2c94fc312a0bd2 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2610ad0556e49979d3bf88d51d89ef2065f5bbf3 (diff)
Make SharedPreferences check with higher precision
When two processes modify shared preferences we use the timestamp to figure out if the file was changes underneath. Do this with the highest precision available (instead of sec) as before. It would be possible to make the check more reliable by writing a unique id to the shared pref file, but this would make this check much more expensive in the common case that nothing changed. Considering that this has not been a problem and we don't officially give any guarantee for this sounds like a good middle-ground. (cherry picked from commit ffe74357aec5330098795000e131e8d581b8b274) Merged-In: I04c96b6a946618d5599c26410c88d7cd654d31fb Change-Id: I04c96b6a946618d5599c26410c88d7cd654d31fb Test: SharedPreferencesTest Fixes: 62949739
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions