/system/libhidl/transport/base/1.0/ |
H A D | IBase.hal | 80 * Registers a death recipient, to be called when the process hosting this 83 * @param recipient a hidl_death_recipient callback object 85 * @return success whether the death recipient was registered successfully. 87 linkToDeath(death_recipient recipient, uint64_t cookie) generates (bool success); 90 * Unregisters a previously registered death recipient. 91 * @param recipient a previously registered hidl_death_recipient callback 92 * @return success whether the death recipient was unregistered successfully. 94 unlinkToDeath(death_recipient recipient) generates (bool success);
|
/system/libhwbinder/ |
H A D | BpHwBinder.cpp | 117 const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) 120 ob.recipient = recipient; 124 LOG_ALWAYS_FATAL_IF(recipient == NULL, 125 "linkToDeath(): recipient must be non-NULL"); 151 const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, 163 if ((obit.recipient == recipient 164 || (recipient == NULL && obit.cookie == cookie)) 167 *outRecipient = mObituaries->itemAt(i).recipient; 116 linkToDeath( const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) argument 150 unlinkToDeath( const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, wp<DeathRecipient>* outRecipient) argument 220 sp<DeathRecipient> recipient = obit.recipient.promote(); local [all...] |
/system/libhidl/transport/token/1.0/utils/include/hidl/ |
H A D | HybridInterface.h | 127 const sp<IBinder::DeathRecipient>& recipient, 131 const wp<IBinder::DeathRecipient>& recipient, 139 wp<IBinder::DeathRecipient> recipient; member in struct:android::H2BConverter::Obituary 147 recipient(r), cookie(c), flags(f), who(w) { 150 recipient(o.recipient), 156 recipient = o.recipient; 163 sp<IBinder::DeathRecipient> dr = recipient.promote(); 263 const sp<IBinder::DeathRecipient>& recipient, 262 linkToDeath( const sp<IBinder::DeathRecipient>& recipient, void* cookie, uint32_t flags) argument 283 unlinkToDeath( const wp<IBinder::DeathRecipient>& recipient, void* cookie, uint32_t flags, wp<IBinder::DeathRecipient>* outRecipient) argument [all...] |
/system/libhwbinder/include/hwbinder/ |
H A D | BpHwBinder.h | 41 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient, 44 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient, 100 wp<DeathRecipient> recipient; member in struct:android::hardware::BpHwBinder::Obituary
|
H A D | IBinder.h | 67 * Register the @a recipient for a notification if this binder 81 * @note This link always holds a weak reference to its recipient. 88 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient, 94 * The @a recipient will no longer be called if this object 96 * supply a NULL @a recipient, and the recipient previously 99 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient,
|
H A D | Binder.h | 39 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient, 43 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient,
|
/system/core/libbinderwrapper/ |
H A D | real_binder_wrapper.cc | 27 // Class that handles binder death notifications. libbinder wants the recipient 28 // to be wrapped in sp<>, so registering RealBinderWrapper as a recipient would 89 sp<DeathRecipient> recipient(new DeathRecipient(callback)); 90 if (binder->linkToDeath(recipient) != OK) { 95 death_recipients_[binder] = recipient;
|
/system/libhidl/transport/ |
H A D | HidlBinderSupport.cpp | 31 hidl_binder_death_recipient::hidl_binder_death_recipient(const sp<hidl_death_recipient> &recipient, argument 33 mRecipient(recipient), mCookie(cookie), mBase(base) { 37 sp<hidl_death_recipient> recipient = mRecipient.promote(); local 38 if (recipient != nullptr && mBase != nullptr) { 39 recipient->serviceDied(mCookie, mBase);
|
/system/tools/hidl/test/ |
H A D | hidl_test_client.cpp | 1465 sp<HidlDeathRecipient> recipient = new HidlDeathRecipient(); local 1468 EXPECT_TRUE(dyingBaz->linkToDeath(recipient, 0x1481)); 1475 // the same recipient twice). 1485 std::unique_lock<std::mutex> lock(recipient->mutex); 1486 recipient->condition.wait_for(lock, std::chrono::milliseconds(100), [&recipient]() { 1487 return recipient->fired; 1489 EXPECT_TRUE(recipient->fired); 1490 EXPECT_EQ(recipient->cookie, 0x1481u); 1491 EXPECT_EQ(recipient [all...] |
/system/libhidl/transport/include/hidl/ |
H A D | HidlBinderSupport.h | 42 hidl_binder_death_recipient(const sp<hidl_death_recipient> &recipient,
|