OSDN Git Service

Make SettingsShadowResources Thread Safe
authorjeffreyhuang <jeffreyhuang@google.com>
Fri, 27 Oct 2017 22:33:26 +0000 (15:33 -0700)
committerjeffreyhuang <jeffreyhuang@google.com>
Fri, 27 Oct 2017 23:39:32 +0000 (16:39 -0700)
commitc68276617625cbe6149fa1ebea14b0135de30004
tree50743f58a276ce50ae90990ec0f8356d3540b692
parent9e1570c5f367ab5b5961db7d8217599741dda016
Make SettingsShadowResources Thread Safe

 - Add synchronization locks to data structures in
 SettingsShadowResources to avoid ConcurrentModificationException
 - Make temporary variables final variables

Change-Id: I39a894c67d0b5e5b21bc0b9aa89180ba6989f01d
Fixes: 67850343
Test: make RunSettingsRoboTests -j40
tests/robotests/src/com/android/settings/testutils/shadow/SettingsShadowResources.java