FileDocCategorySizeDatePackage
ContentProviderRecord.javaAPI DocAndroid 1.5 API2857Wed May 06 22:42:00 BST 2009com.android.server.am

ContentProviderRecord

public class ContentProviderRecord extends android.app.IActivityManager.ContentProviderHolder

Fields Summary
final HashSet
clients
final int
uid
final android.content.pm.ApplicationInfo
appInfo
int
externals
ProcessRecord
app
ProcessRecord
launchingApp
Constructors Summary
public ContentProviderRecord(android.content.pm.ProviderInfo _info, android.content.pm.ApplicationInfo ai)

 // if non-null, waiting for this app to be launched.

         
        super(_info);
        uid = ai.uid;
        appInfo = ai;
        noReleaseNeeded = uid == 0 || uid == Process.SYSTEM_UID;
    
public ContentProviderRecord(ContentProviderRecord cpr)

        super(cpr.info);
        uid = cpr.uid;
        appInfo = cpr.appInfo;
        noReleaseNeeded = cpr.noReleaseNeeded;
    
Methods Summary
public booleancanRunHere(ProcessRecord app)

        return (info.multiprocess || info.processName.equals(app.processName))
                && (uid == Process.SYSTEM_UID || uid == app.info.uid);
    
voiddump(java.io.PrintWriter pw, java.lang.String prefix)

        pw.println(prefix + this);
        pw.println(prefix + "package=" + info.applicationInfo.packageName
              + " process=" + info.processName);
        pw.println(prefix + "app=" + app);
        pw.println(prefix + "launchingApp=" + launchingApp);
        pw.println(prefix + "provider=" + provider);
        pw.println(prefix + "name=" + info.authority);
        pw.println(prefix + "isSyncable=" + info.isSyncable);
        pw.println(prefix + "multiprocess=" + info.multiprocess
              + " initOrder=" + info.initOrder
              + " uid=" + uid);
        pw.println(prefix + "clients=" + clients);
        pw.println(prefix + "externals=" + externals);
    
public java.lang.StringtoString()

        return "ContentProviderRecord{"
            + Integer.toHexString(System.identityHashCode(this))
            + " " + info.name + "}";