diff options
author | Lee Shombert <shombert@google.com> | 2020-11-03 16:51:20 -0800 |
---|---|---|
committer | Lee Shombert <shombert@google.com> | 2020-11-04 14:28:23 -0800 |
commit | 1c22ad153b9e5c12bae03f92b328f2a35fea6059 (patch) | |
tree | 81d7a66cf873f7ad58aa12cb73c7310398367eb5 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 67dd9ce1301f431c4b4a213eabf028aba241c83c (diff) |
Watcher/Watchable classes for PackageManagerService
Bug: 161323622
The Watcher and Watchable classes provide Observer/Observable
functionality for PackageManagerService. Watchers register with
Watchables to be notified when the Watchable changes.
WatchedArrayMap and WatchedSparseArray provide ArrayMap and
SparseArray functionality, respectively. Each is a Watchable that
automatically watches any Watchables that are stored in it. It is
important that the arrays watch stored elements only if the array
itself is being watched.
WatchedSparseBooleanArray is a simple Watchable version of
SparseBooleanArray.
This CL adds the new classes and a test class but does not use them
otherwise.
Test: atest
* FrameworksServicesTests:WatcherTest
Change-Id: I381595c075b74099c52e9e17a9a2c32f87db563d
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions