summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2017-11-21 15:34:19 -0800
committerAndreas Gampe <agampe@google.com>2017-11-21 15:59:02 -0800
commit70b600d45683b574104d10198da9bce49aa6be23 (patch)
treed505fd836b8fa0f20236d9727515f519e2aae072 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf78a51759be1af5fd715e808696c2479e1490d93 (diff)
Frameworks: Move SharedPreferencesImpl to Future
The asynchronous loading code is not safe wrt/ exceptions. Instead of adding a tri-state for loading, move the code to use a Future for the map. This encapsulates the required wait & synchronization, as well as propagating any exceptions. Bug: 67986472 Test: m Test: Device boots Test: m cts && cts-tradefed run commandAndExit cts-dev --module CtsContentTestCases -c android.content.cts.SharedPreferencesTest Change-Id: I6616e8a05e64eb1cfe024cc3239a05847dfe1fab
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions