Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f1178698 authored by Lee Shombert's avatar Lee Shombert
Browse files

New watchables for PackageManagerService

Bug: 161323622

Add WatchedArrayList, WatchedArraySet, and WatchedSparseIntArray to
the server utilities.  Test code is added to the frameworks test.

The watched "collections" offer some consistent APIs.  Every
collection includes a copy constructor for itself and for the
unwatched type.  Every collection offers a copyIn() from, and
copyOut() to, the unwatched type, to support runtime conversion.

Add the Watched annotation interface.  This annotation marks
attributes that are watched for change detection; generally, any
change invalidates a snapshot.  It is also generally true that Watched
attributes must be included in the snapshot.

A bug in Snapshots.java is also fixed.

Test: atest
 * FrameworksServicesTests:WatcherTest

Change-Id: I9b6ad0b3f6a901e77c342c5a3e45c86bed510db6
parent 677c97dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment