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

AppBindRecord

public final class AppBindRecord extends Object
An association between a service and one of its client applications.

Fields Summary
final ServiceRecord
service
final IntentBindRecord
intent
final ProcessRecord
client
final android.util.ArraySet
connections
Constructors Summary
AppBindRecord(ServiceRecord _service, IntentBindRecord _intent, ProcessRecord _client)

        service = _service;
        intent = _intent;
        client = _client;
    
Methods Summary
voiddump(java.io.PrintWriter pw, java.lang.String prefix)

                                    // All ConnectionRecord for this client.

         
        pw.println(prefix + "service=" + service);
        pw.println(prefix + "client=" + client);
        dumpInIntentBind(pw, prefix);
    
voiddumpInIntentBind(java.io.PrintWriter pw, java.lang.String prefix)

        final int N = connections.size();
        if (N > 0) {
            pw.println(prefix + "Per-process Connections:");
            for (int i=0; i<N; i++) {
                ConnectionRecord c = connections.valueAt(i);
                pw.println(prefix + "  " + c);
            }
        }
    
public java.lang.StringtoString()

        return "AppBindRecord{"
            + Integer.toHexString(System.identityHashCode(this))
            + " " + service.shortName + ":" + client.processName + "}";