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

IntentBindRecord

public class IntentBindRecord extends Object
A particular Intent that has been bound to a Service.

Fields Summary
final ServiceRecord
service
The running service.
final Intent.FilterComparison
intent
The intent that is bound.
final HashMap
apps
All apps that have bound to this Intent.
android.os.IBinder
binder
Binder published from service.
boolean
requested
Set when we have initiated a request for this binder.
boolean
received
Set when we have received the requested binder.
boolean
hasBound
Set when we still need to tell the service all clients are unbound.
boolean
doRebind
Set when the service's onUnbind() has asked to be told about new clients.
Constructors Summary
IntentBindRecord(ServiceRecord _service, Intent.FilterComparison _intent)

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

    
         
        pw.println(prefix + this);
        pw.println(prefix + "service=" + service);
        pw.println(prefix + "intent=" + intent.getIntent());
        pw.println(prefix + "binder=" + binder
                + " requested=" + requested
                + " received=" + received
                + " hasBound=" + hasBound
                + " doRebind=" + doRebind);
        if (apps.size() > 0) {
            pw.println(prefix + "Application Bindings:");
            Iterator<AppBindRecord> it = apps.values().iterator();
            while (it.hasNext()) {
                AppBindRecord a = it.next();
                pw.println(prefix + "Client " + a.client);
                a.dump(pw, prefix + "  ");
            }
        }
    
public java.lang.StringtoString()

        return "IntentBindRecord{"
            + Integer.toHexString(System.identityHashCode(this))
            + " " + service.name.toShortString()
            + ":" + intent + "}";