Lines Matching defs:recipient
365 // Per-IBinder death recipient bookkeeping. This is how we reconcile local jobject
366 // death recipient references passed in through JNI with the permanent corresponding
379 void add(const sp<JavaDeathRecipient>& recipient);
380 void remove(const sp<JavaDeathRecipient>& recipient);
381 sp<JavaDeathRecipient> find(jobject recipient);
452 // recipient on the VM side, but the list is being torn down.
461 "Releasing leaked death recipient: %s", nameUtf.c_str());
472 //ALOGI("Removing death ref: recipient=%p\n", mObject);
510 void DeathRecipientList::add(const sp<JavaDeathRecipient>& recipient) {
513 LOGDEATH("DRL @ %p : add JDR %p", this, recipient.get());
514 mList.push_back(recipient);
517 void DeathRecipientList::remove(const sp<JavaDeathRecipient>& recipient) {
522 if (*iter == recipient) {
523 LOGDEATH("DRL @ %p : remove JDR %p", this, recipient.get());
530 sp<JavaDeathRecipient> DeathRecipientList::find(jobject recipient) {
535 if ((*iter)->matches(recipient)) {
1100 jobject recipient, jint flags) // throws RemoteException
1102 if (recipient == NULL) {
1110 ALOGW("Binder has been finalized when calling linkToDeath() with recip=%p)\n", recipient);
1114 LOGDEATH("linkToDeath: binder=%p recipient=%p\n", target, recipient);
1119 sp<JavaDeathRecipient> jdr = new JavaDeathRecipient(env, recipient, list);
1122 // Failure adding the death recipient, so clear its reference
1131 jobject recipient, jint flags)
1134 if (recipient == NULL) {
1142 ALOGW("Binder has been finalized when calling linkToDeath() with recip=%p)\n", recipient);
1146 LOGDEATH("unlinkToDeath: binder=%p recipient=%p\n", target, recipient);
1151 // If we find the matching recipient, proceed to unlink using that
1154 sp<JavaDeathRecipient> origJDR = list->find(recipient);