diff options
author | Jeff Sharkey <jsharkey@google.com> | 2023-11-30 11:16:40 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@google.com> | 2023-12-04 10:00:17 -0700 |
commit | 013400fab4a1f34cf3d58343d657cb1c6e1e08e4 (patch) | |
tree | dc222372c275d510be5d9e7b239fb366ef721e9c /ravenwood | |
parent | 7812cce9adbe283cf84b18584fdd52eb4d703958 (diff) | |
download | base-013400fab4a1f34cf3d58343d657cb1c6e1e08e4.tar.gz |
`PackageManager` info objects under Ravenwood.
Many tests across the OS are already writing tests where they "mock"
their own responses from `PackageManager`, primarily by filling in
the "info" objects that it returns.
Since these are simple data structures that primarily hold static
data, let's opt-in under Ravenwood, so that other tests can
construct for their own internal uses. Complex dynamic operations,
such as loading drawables, remain opted-out.
This change brings along relevant CTS, but ignores several tests that
currently depend on a fully-running PackageManager service. To
ensure we have solid coverage, new `testSimple` is added.
Bug: 292141694
Test: atest CtsContentTestCasesRavenwood
Change-Id: Ie9682184cb5250f649426947bcf353802918ce50
Diffstat (limited to 'ravenwood')
-rw-r--r-- | ravenwood/ravenwood-annotation-allowed-classes.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ravenwood/ravenwood-annotation-allowed-classes.txt b/ravenwood/ravenwood-annotation-allowed-classes.txt index 72e9ba367bc9..3033d9ae30ea 100644 --- a/ravenwood/ravenwood-annotation-allowed-classes.txt +++ b/ravenwood/ravenwood-annotation-allowed-classes.txt @@ -39,6 +39,17 @@ android.content.Intent android.content.IntentFilter android.content.UriMatcher +android.content.pm.PackageInfo +android.content.pm.ApplicationInfo +android.content.pm.PackageItemInfo +android.content.pm.ComponentInfo +android.content.pm.ActivityInfo +android.content.pm.ServiceInfo +android.content.pm.PathPermission +android.content.pm.ProviderInfo +android.content.pm.ResolveInfo +android.content.pm.Signature + android.database.AbstractCursor android.database.CharArrayBuffer android.database.ContentObservable |