summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLee Shombert <shombert@google.com>2020-12-01 21:38:24 -0800
committerLee Shombert <shombert@google.com>2020-12-01 21:38:24 -0800
commite3c68fa8c249a1dfa6f30a06f184f18cd988d30d (patch)
treeadd7f74cd3033c12000e3078dd623a937454b0b4 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb9fa3af4acc666d7f81e43dd8548cb1484facb82 (diff)
PackageManager lock reduction utilities
Bug: 161323622 Define a Snapshotable interface that marks a class as supporting the snapshot() methods. A snapshot is an immutable copy of a class that supports read-only methods. Class attributes that are not required for read-only methods are not coiped into the snapshot. Watchable classes that are are Snapshotable exploit the Watchable machinery to throw an exception if code attempts to modify a snapshot. The Snapshotable functionality is tested in the existing WatcherTest unit test. Test: atest * FrameworksServicesTests:WatcherTest Change-Id: I279b378ddf71c3e753fcc4776e22fe859123bc14
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions