summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-05-09 18:18:40 -0700
committerDianne Hackborn <hackbod@google.com>2012-05-09 18:18:40 -0700
commit652b6d1e591f6684cda4b93d4712920f287991b4 (patch)
tree5ffe183aa2cbe66c8b8b89e8f3a809e4e7f4c603 /test-runner
parenta53de0629f3b94472c0f160f5bbe1090b020feab (diff)
downloadframeworks_base-652b6d1e591f6684cda4b93d4712920f287991b4.zip
frameworks_base-652b6d1e591f6684cda4b93d4712920f287991b4.tar.gz
frameworks_base-652b6d1e591f6684cda4b93d4712920f287991b4.tar.bz2
Add infrastructure for accessing "unstable" content providers.
We have an API and some stuff that purports to this, but no real implementation yet. Change-Id: I93555440014a50fdf79fa3f65318d90fb82265b4
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockContentResolver.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockContentResolver.java b/test-runner/src/android/test/mock/MockContentResolver.java
index 6c91f4e..65eb21b 100644
--- a/test-runner/src/android/test/mock/MockContentResolver.java
+++ b/test-runner/src/android/test/mock/MockContentResolver.java
@@ -106,6 +106,18 @@ public class MockContentResolver extends ContentResolver {
return true;
}
+ /** @hide */
+ @Override
+ protected IContentProvider acquireUnstableProvider(Context c, String name) {
+ return acquireProvider(c, name);
+ }
+
+ /** @hide */
+ @Override
+ public boolean releaseUnstableProvider(IContentProvider icp) {
+ return releaseProvider(icp);
+ }
+
/**
* Overrides {@link android.content.ContentResolver#notifyChange(Uri, ContentObserver, boolean)
* ContentResolver.notifChange(Uri, ContentObserver, boolean)}. All parameters are ignored.