Methods Summary |
---|
protected android.content.IContentProvider | acquireExistingProvider(android.content.Context context, java.lang.String name)
/*
* Gets the content provider from the local map
*/
final ContentProvider provider = mProviders.get(name);
if (provider != null) {
return provider.getIContentProvider();
} else {
return null;
}
|
protected android.content.IContentProvider | acquireProvider(android.content.Context context, java.lang.String name)
return acquireExistingProvider(context, name);
|
protected android.content.IContentProvider | acquireUnstableProvider(android.content.Context c, java.lang.String name)
return acquireProvider(c, name);
|
public void | addProvider(java.lang.String name, android.content.ContentProvider provider)Adds access to a provider based on its authority
/*
* Maps the authority to the provider locally.
*/
mProviders.put(name, provider);
|
public void | notifyChange(android.net.Uri uri, android.database.ContentObserver observer, boolean syncToNetwork)Overrides {@link android.content.ContentResolver#notifyChange(Uri, ContentObserver, boolean)
ContentResolver.notifChange(Uri, ContentObserver, boolean)}. All parameters are ignored.
The method hides providers linked to MockContentResolver from other observers in the system.
|
public boolean | releaseProvider(android.content.IContentProvider provider)
return true;
|
public boolean | releaseUnstableProvider(android.content.IContentProvider icp)
return releaseProvider(icp);
|
public void | unstableProviderDied(android.content.IContentProvider icp)
|