FileDocCategorySizeDatePackage
BridgeContentResolver.javaAPI DocAndroid 1.5 API3377Wed May 06 22:42:02 BST 2009com.android.layoutlib.bridge

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
Constructors Summary
public BridgeContentResolver(android.content.Context context)

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

        // ignore
        return null;
    
public voidcancelSync(android.net.Uri uri)
Stub for the layoutlib bridge content resolver.

The super implementation accesses the {@link ContentServiceNative#getDefault()} which returns null and would make the call crash. Instead we do nothing.

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

The super implementation accesses the {@link ContentServiceNative#getDefault()} which returns null and would make the call crash. Instead we do nothing.

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

The super implementation accesses the {@link ContentServiceNative#getDefault()} which returns null and would make the call crash. Instead we do nothing.

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

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

The super implementation accesses the {@link ContentServiceNative#getDefault()} which returns null and would make the call crash. Instead we do nothing.

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

The super implementation accesses the {@link ContentServiceNative#getDefault()} which returns null and would make the call crash. Instead we do nothing.

        // pass