FileDocCategorySizeDatePackage
ContentProviderConnection.javaAPI DocAndroid 5.1 API2858Thu Mar 12 22:22:42 GMT 2015com.android.server.am

ContentProviderConnection

public final class ContentProviderConnection extends android.os.Binder
Represents a link between a content provider and client.

Fields Summary
public final ContentProviderRecord
provider
public final ProcessRecord
client
public final long
createTime
public int
stableCount
public int
unstableCount
public boolean
waiting
public boolean
dead
public int
numStableIncs
public int
numUnstableIncs
Constructors Summary
public ContentProviderConnection(ContentProviderRecord _provider, ProcessRecord _client)

        provider = _provider;
        client = _client;
        createTime = SystemClock.elapsedRealtime();
    
Methods Summary
public java.lang.StringtoClientString()

        StringBuilder sb = new StringBuilder(128);
        toClientString(sb);
        return sb.toString();
    
public voidtoClientString(java.lang.StringBuilder sb)

        sb.append(client.toShortString());
        sb.append(" s");
        sb.append(stableCount);
        sb.append("/");
        sb.append(numStableIncs);
        sb.append(" u");
        sb.append(unstableCount);
        sb.append("/");
        sb.append(numUnstableIncs);
        if (waiting) {
            sb.append(" WAITING");
        }
        if (dead) {
            sb.append(" DEAD");
        }
        long nowReal = SystemClock.elapsedRealtime();
        sb.append(" ");
        TimeUtils.formatDuration(nowReal-createTime, sb);
    
public java.lang.StringtoShortString()

        StringBuilder sb = new StringBuilder(128);
        toShortString(sb);
        return sb.toString();
    
public voidtoShortString(java.lang.StringBuilder sb)

        sb.append(provider.toShortString());
        sb.append("->");
        toClientString(sb);
    
public java.lang.StringtoString()

        StringBuilder sb = new StringBuilder(128);
        sb.append("ContentProviderConnection{");
        toShortString(sb);
        sb.append('}");
        return sb.toString();