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

ReceiverList

public class ReceiverList extends ArrayList implements IBinder.DeathRecipient
A receiver object that has registered for one or more broadcasts. The ArrayList holds BroadcastFilter objects.

Fields Summary
final ActivityManagerService
owner
public final android.app.IIntentReceiver
receiver
public final ProcessRecord
app
public final int
pid
public final int
uid
BroadcastRecord
curBroadcast
boolean
linkedToDeath
Constructors Summary
ReceiverList(ActivityManagerService _owner, ProcessRecord _app, int _pid, int _uid, android.app.IIntentReceiver _receiver)


       
                  
        owner = _owner;
        receiver = _receiver;
        app = _app;
        pid = _pid;
        uid = _uid;
    
Methods Summary
public voidbinderDied()

        linkedToDeath = false;
        owner.unregisterReceiver(receiver);
    
voiddump(java.io.PrintWriter pw, java.lang.String prefix)

        pw.println(prefix + this);
        dumpLocal(pw, prefix);
        String p2 = prefix + "  ";
        final int N = size();
        for (int i=0; i<N; i++) {
            BroadcastFilter bf = get(i);
            pw.println(prefix + "Filter #" + i + ": " + bf);
            bf.dump(pw, p2);
        }
    
voiddumpLocal(java.io.PrintWriter pw, java.lang.String prefix)

        pw.println(prefix + "receiver=IBinder "
                + Integer.toHexString(System.identityHashCode(receiver.asBinder())));
        pw.println(prefix + "app=" + app + " pid=" + pid + " uid=" + uid);
        pw.println(prefix + "curBroadcast=" + curBroadcast
                + " linkedToDeath=" + linkedToDeath);
    
public booleanequals(java.lang.Object o)

        return this == o;
    
public inthashCode()

        return System.identityHashCode(this);
    
public java.lang.StringtoString()

        return "ReceiverList{"
            + Integer.toHexString(System.identityHashCode(this))
            + " " + pid + " " + (app != null ? app.processName : "(unknown name)")
            + "/" + uid + " client "
            + Integer.toHexString(System.identityHashCode(receiver.asBinder()))
            + "}";