diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-10-07 10:16:12 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-10-07 14:19:13 -0700 |
commit | 85f5f8132015d8a5043ea4413702420d0d157c9f (patch) | |
tree | 08493f51fca4a3ebd4eaf584e8c0fa03b373be9c /test-runner/src | |
parent | ca25db0cb3d6b9686a42c9cb99d90dc095f20cd8 (diff) | |
download | frameworks_base-85f5f8132015d8a5043ea4413702420d0d157c9f.zip frameworks_base-85f5f8132015d8a5043ea4413702420d0d157c9f.tar.gz frameworks_base-85f5f8132015d8a5043ea4413702420d0d157c9f.tar.bz2 |
Add <intent-filter> support to <provider>.
For the new documents work, we're only interested in the subset of
ContentProviders that actually implement DocumentsContract. Instead
of returning all providers, add <intent-filter> support to make it
easier to limit the set of returned ProviderInfo.
Define a well-known action for DocumentsProviders, and start using it
when querying for roots. Continue supporting the old <meta-data>
approach until all apps have been updated.
Bug: 8599233
Change-Id: I05f049bba21311f5421738002f99ee214447c909
Diffstat (limited to 'test-runner/src')
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 5f944f6..661bd41 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -282,6 +282,18 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } + /** @hide */ + @Override + public List<ResolveInfo> queryIntentContentProvidersAsUser( + Intent intent, int flags, int userId) { + throw new UnsupportedOperationException(); + } + + @Override + public List<ResolveInfo> queryIntentContentProviders(Intent intent, int flags) { + throw new UnsupportedOperationException(); + } + @Override public ProviderInfo resolveContentProvider(String name, int flags) { throw new UnsupportedOperationException(); |