Lines Matching refs:recipient

282         sp<AIBinder_DeathRecipient> strongRecip = recip.recipient.promote();  in ~ABpBinder()
326 void ABpBinder::addDeathRecipient(const ::android::sp<AIBinder_DeathRecipient>& recipient, in addDeathRecipient() argument
329 mDeathRecipients.emplace_back(recipient, cookie); in addDeathRecipient()
438 sp<AIBinder_DeathRecipient> recipient = mParentRecipient.promote(); in binderDied() local
442 if (recipient != nullptr && strongWho != nullptr) { in binderDied()
443 status_t result = recipient->unlinkToDeath(strongWho, mCookie); in binderDied()
483 [&cookie](android::sp<TransferDeathRecipient> recipient) { in linkToDeath() argument
484 return recipient->getCookie() == cookie; in linkToDeath()
496 sp<TransferDeathRecipient> recipient = in linkToDeath() local
499 status_t status = binder->linkToDeath(recipient, cookie, 0 /*flags*/); in linkToDeath()
506 mDeathRecipients.push_back(recipient); in linkToDeath()
518 sp<TransferDeathRecipient> recipient = *it; in unlinkToDeath() local
520 if (recipient->getCookie() == cookie && recipient->getWho() == binder) { in unlinkToDeath()
523 status_t status = binder->unlinkToDeath(recipient, cookie, 0 /*flags*/); in unlinkToDeath()
604 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, in AIBinder_linkToDeath() argument
606 if (binder == nullptr || recipient == nullptr) { in AIBinder_linkToDeath()
607 ALOGE("%s: Must provide binder (%p) and recipient (%p)", __func__, binder, recipient); in AIBinder_linkToDeath()
611 binder_status_t ret = recipient->linkToDeath(binder->getBinder(), cookie); in AIBinder_linkToDeath()
613 binder->addDeathRecipient(recipient, cookie); in AIBinder_linkToDeath()
618 binder_status_t AIBinder_unlinkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, in AIBinder_unlinkToDeath() argument
620 if (binder == nullptr || recipient == nullptr) { in AIBinder_unlinkToDeath()
621 ALOGE("%s: Must provide binder (%p) and recipient (%p)", __func__, binder, recipient); in AIBinder_unlinkToDeath()
626 return recipient->unlinkToDeath(binder->getBinder(), cookie); in AIBinder_unlinkToDeath()
795 void AIBinder_DeathRecipient_setOnUnlinked(AIBinder_DeathRecipient* recipient, in AIBinder_DeathRecipient_setOnUnlinked() argument
797 if (recipient == nullptr) { in AIBinder_DeathRecipient_setOnUnlinked()
801 recipient->setOnUnlinked(onUnlinked); in AIBinder_DeathRecipient_setOnUnlinked()
804 void AIBinder_DeathRecipient_delete(AIBinder_DeathRecipient* recipient) { in AIBinder_DeathRecipient_delete() argument
805 if (recipient == nullptr) { in AIBinder_DeathRecipient_delete()
809 recipient->decStrong(nullptr); in AIBinder_DeathRecipient_delete()