diff options
author | Lee Shombert <shombert@google.com> | 2020-12-01 21:38:24 -0800 |
---|---|---|
committer | Lee Shombert <shombert@google.com> | 2020-12-01 21:38:24 -0800 |
commit | e3c68fa8c249a1dfa6f30a06f184f18cd988d30d (patch) | |
tree | add7f74cd3033c12000e3078dd623a937454b0b4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | b9fa3af4acc666d7f81e43dd8548cb1484facb82 (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 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions