FileDocCategorySizeDatePackage
BridgeContentResolver.javaAPI DocAndroid 5.1 API3151Thu Mar 12 22:22:44 GMT 2015com.android.layoutlib.bridge.android

BridgeContentResolver

public class BridgeContentResolver extends android.content.ContentResolver
A mock content resolver for the LayoutLib Bridge.

It won't serve any actual data but it's good enough for all the widgets which expect to have a content resolver available via {@link BridgeContext#getContentResolver()}.

Fields Summary
private BridgeContentProvider
mProvider
Constructors Summary
public BridgeContentResolver(android.content.Context context)


       
        super(context);
    
Methods Summary
public android.content.IContentProvideracquireExistingProvider(android.content.Context c, java.lang.String name)

        if (mProvider == null) {
            mProvider = new BridgeContentProvider();
        }

        return mProvider;
    
public android.content.IContentProvideracquireProvider(android.content.Context c, java.lang.String name)

        if (mProvider == null) {
            mProvider = new BridgeContentProvider();
        }

        return mProvider;
    
protected android.content.IContentProvideracquireUnstableProvider(android.content.Context c, java.lang.String name)

        return acquireProvider(c, name);
    
public voidcancelSync(android.net.Uri uri)
Stub for the layoutlib bridge content resolver.

        // pass
    
public voidnotifyChange(android.net.Uri uri, android.database.ContentObserver observer, boolean syncToNetwork)
Stub for the layoutlib bridge content resolver.

        // pass
    
public voidregisterContentObserver(android.net.Uri uri, boolean notifyForDescendents, android.database.ContentObserver observer)
Stub for the layoutlib bridge content resolver.

        // pass
    
public booleanreleaseProvider(android.content.IContentProvider icp)

        // ignore
        return false;
    
public booleanreleaseUnstableProvider(android.content.IContentProvider icp)

        return releaseProvider(icp);
    
public voidstartSync(android.net.Uri uri, android.os.Bundle extras)
Stub for the layoutlib bridge content resolver.

        // pass
    
public voidunregisterContentObserver(android.database.ContentObserver observer)
Stub for the layoutlib bridge content resolver.

        // pass
    
public voidunstableProviderDied(android.content.IContentProvider icp)

hide