Home
last modified time | relevance | path

Searched refs:recipient (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/av/services/camera/libcameraservice/hidl/
DCameraHybridInterface.h43 const sp<IBinder::DeathRecipient>& recipient,
47 const wp<IBinder::DeathRecipient>& recipient,
55 wp<IBinder::DeathRecipient> recipient; member
63 recipient(r), cookie(c), flags(f), who(w) { in Obituary()
66 recipient(o.recipient), in Obituary()
72 recipient = o.recipient;
79 sp<IBinder::DeathRecipient> dr = recipient.promote(); in serviceDied()
95 const sp<IBinder::DeathRecipient>& recipient, in linkToDeath() argument
97 LOG_ALWAYS_FATAL_IF(recipient == nullptr, in linkToDeath()
101 mObituaries.push_back(new Obituary(recipient, cookie, flags, this)); in linkToDeath()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/
DBinderCacheManagerTest.java70 IBinder.DeathRecipient recipient = populateCacheCaptureDeathRecipent(); in testAddListenerAndDie() local
74 recipient.binderDied(); in testAddListenerAndDie()
80 verify(mIBinder).unlinkToDeath(eq(recipient), anyInt()); in testAddListenerAndDie()
86 IBinder.DeathRecipient recipient = populateCacheCaptureDeathRecipent(); in testListenerNotCalledAfterRemoved() local
91 recipient.binderDied(); in testListenerNotCalledAfterRemoved()
99 IBinder.DeathRecipient recipient = populateCacheCaptureDeathRecipent(); in testAddListenerAlreadyDead() local
101 recipient.binderDied(); in testAddListenerAlreadyDead()
119 IBinder.DeathRecipient recipient = captor.getValue(); in populateCacheCaptureDeathRecipent() local
120 assertNotNull(recipient); in populateCacheCaptureDeathRecipent()
121 return recipient; in populateCacheCaptureDeathRecipent()
/frameworks/native/services/surfaceflinger/
DClientCache.cpp130 for (auto& recipient : buf->recipients) { in erase() local
131 sp<ErasedRecipient> erasedRecipient = recipient.promote(); in erase()
140 for (auto& recipient : pendingErase) { in erase() local
141 recipient->bufferErased(cacheId); in erase()
158 const wp<ErasedRecipient>& recipient) { in registerErasedRecipient() argument
166 buf->recipients.insert(recipient); in registerErasedRecipient()
171 const wp<ErasedRecipient>& recipient) { in unregisterErasedRecipient() argument
180 buf->recipients.erase(recipient); in unregisterErasedRecipient()
199 for (auto& recipient : clientCacheBuffer.recipients) { in removeProcess() local
200 sp<ErasedRecipient> erasedRecipient = recipient.promote(); in removeProcess()
[all …]
/frameworks/base/core/java/android/os/
DHwRemoteBinder.java48 public native boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument
49 public native boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath() argument
64 private static final void sendDeathNotice(DeathRecipient recipient, long cookie) { in sendDeathNotice() argument
65 recipient.serviceDied(cookie); in sendDeathNotice()
DIHwBinder.java63 public boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument
69 public boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath() argument
DExternalVibration.java144 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
146 mToken.linkToDeath(recipient, 0); in linkToDeath()
155 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
156 mToken.unlinkToDeath(recipient, 0); in unlinkToDeath()
/frameworks/native/libs/binder/ndk/
Dibinder.cpp399 sp<AIBinder_DeathRecipient> recipient = mParentRecipient.promote(); in binderDied() local
403 if (recipient != nullptr && strongWho != nullptr) { in binderDied()
404 status_t result = recipient->unlinkToDeath(strongWho, mCookie); in binderDied()
431 sp<TransferDeathRecipient> recipient = in linkToDeath() local
434 status_t status = binder->linkToDeath(recipient, cookie, 0 /*flags*/); in linkToDeath()
441 mDeathRecipients.push_back(recipient); in linkToDeath()
453 sp<TransferDeathRecipient> recipient = *it; in unlinkToDeath() local
455 if (recipient->getCookie() == cookie && recipient->getWho() == binder) { in unlinkToDeath()
458 status_t status = binder->unlinkToDeath(recipient, cookie, 0 /*flags*/); in unlinkToDeath()
539 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, in AIBinder_linkToDeath() argument
[all …]
/frameworks/av/media/libmedia/
DIMediaDeathNotifier.cpp62 IMediaDeathNotifier::addObitRecipient(const wp<IMediaDeathNotifier>& recipient) in addObitRecipient() argument
66 sObitRecipients.add(recipient); in addObitRecipient()
70 IMediaDeathNotifier::removeObitRecipient(const wp<IMediaDeathNotifier>& recipient) in removeObitRecipient() argument
74 sObitRecipients.remove(recipient); in removeObitRecipient()
/frameworks/native/libs/binder/rust/src/
Dproxy.rs370 fn link_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in link_to_death()
384 recipient.as_native_mut(), in link_to_death()
385 recipient.new_cookie(), in link_to_death()
390 fn unlink_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in unlink_to_death()
400 recipient.as_native_mut(), in unlink_to_death()
401 recipient.get_cookie(), in unlink_to_death()
568 recipient: *mut sys::AIBinder_DeathRecipient, field
600 let recipient = unsafe { in new() localVariable
613 … sys::AIBinder_DeathRecipient_setOnUnlinked(recipient, Some(Self::cookie_decr_refcount::<F>)); in new()
616 recipient, in new()
[all …]
/frameworks/base/core/jni/
Dandroid_os_HwRemoteBinder.cpp193 void HwBinderDeathRecipientList::add(const sp<HwBinderDeathRecipient>& recipient) { in add() argument
196 mList.push_back(recipient); in add()
199 void HwBinderDeathRecipientList::remove(const sp<HwBinderDeathRecipient>& recipient) { in remove() argument
203 if (*iter == recipient) { in remove()
210 sp<HwBinderDeathRecipient> HwBinderDeathRecipientList::find(jobject recipient) { in find() argument
214 if ((*iter)->matchesLocked(recipient)) { in find()
351 jobject recipient, jlong cookie) in JHwRemoteBinder_linkToDeath() argument
353 if (recipient == NULL) { in JHwRemoteBinder_linkToDeath()
363 sp<HwBinderDeathRecipient> jdr = new HwBinderDeathRecipient(env, recipient, cookie, list); in JHwRemoteBinder_linkToDeath()
377 jobject recipient) in JHwRemoteBinder_unlinkToDeath() argument
[all …]
Dandroid_os_HwRemoteBinder.h47 void add(const sp<HwBinderDeathRecipient>& recipient);
48 void remove(const sp<HwBinderDeathRecipient>& recipient);
51 sp<HwBinderDeathRecipient> find(jobject recipient);
Dandroid_util_Binder.cpp547 void add(const sp<JavaDeathRecipient>& recipient);
548 void remove(const sp<JavaDeathRecipient>& recipient);
549 sp<JavaDeathRecipient> find(jobject recipient);
687 void DeathRecipientList::add(const sp<JavaDeathRecipient>& recipient) { in add() argument
690 LOGDEATH("DRL @ %p : add JDR %p", this, recipient.get()); in add()
691 mList.push_back(recipient); in add()
694 void DeathRecipientList::remove(const sp<JavaDeathRecipient>& recipient) { in remove() argument
699 if (*iter == recipient) { in remove()
700 LOGDEATH("DRL @ %p : remove JDR %p", this, recipient.get()); in remove()
707 sp<JavaDeathRecipient> DeathRecipientList::find(jobject recipient) { in find() argument
[all …]
/frameworks/native/libs/binder/
DBpBinder.cpp327 const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) in linkToDeath() argument
332 ob.recipient = recipient; in linkToDeath()
336 LOG_ALWAYS_FATAL_IF(recipient == nullptr, in linkToDeath()
364 const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, in unlinkToDeath() argument
378 if ((obit.recipient == recipient in unlinkToDeath()
379 || (recipient == nullptr && obit.cookie == cookie)) in unlinkToDeath()
382 *outRecipient = mObituaries->itemAt(i).recipient; in unlinkToDeath()
437 sp<DeathRecipient> recipient = obit.recipient.promote(); in reportOneDeath() local
438 ALOGV("Reporting death to recipient: %p\n", recipient.get()); in reportOneDeath()
439 if (recipient == nullptr) return; in reportOneDeath()
[all …]
DActivityManager.cpp118 status_t ActivityManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in linkToDeath() argument
121 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
126 status_t ActivityManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in unlinkToDeath() argument
129 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()
/frameworks/base/core/java/com/android/internal/os/
DBinderDeathDispatcher.java95 public int linkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in linkToDeath() argument
110 info.mRecipients.add(recipient); in linkToDeath()
115 public void unlinkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in unlinkToDeath() argument
123 if (info.mRecipients.remove(recipient) && info.mRecipients.size() == 0) { in unlinkToDeath()
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DSoundTriggerHalMaxModelLimiter.java150 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
151 mDelegate.linkToDeath(recipient); in linkToDeath()
155 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
156 mDelegate.unlinkToDeath(recipient); in unlinkToDeath()
DSoundTriggerHalWatchdog.java126 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
127 mUnderlying.linkToDeath(recipient); in linkToDeath()
131 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
132 mUnderlying.unlinkToDeath(recipient); in unlinkToDeath()
DSoundTriggerHalConcurrentCaptureHandler.java221 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
222 IBinder.DeathRecipient wrapper = () -> mCallbackThread.push(recipient::binderDied); in linkToDeath()
224 mDeathRecipientMap.put(recipient, wrapper); in linkToDeath()
228 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
229 mDelegate.unlinkToDeath(mDeathRecipientMap.remove(recipient)); in unlinkToDeath()
DSoundTriggerHw3Compat.java170 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
172 mDriver.asBinder().linkToDeath(recipient, 0); in linkToDeath()
179 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
180 mDriver.asBinder().unlinkToDeath(recipient, 0); in unlinkToDeath()
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_ibinder.h338 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
363 binder_status_t AIBinder_unlinkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
640 void AIBinder_DeathRecipient_setOnUnlinked(AIBinder_DeathRecipient* recipient,
656 void AIBinder_DeathRecipient_delete(AIBinder_DeathRecipient* recipient) __INTRODUCED_IN(29);
/frameworks/native/libs/sensorprivacy/
DSensorPrivacyManager.cpp161 status_t SensorPrivacyManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) in linkToDeath() argument
165 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
170 status_t SensorPrivacyManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) in unlinkToDeath() argument
174 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()
/frameworks/av/media/libmedia/include/media/
DIMediaDeathNotifier.h39 static void addObitRecipient(const wp<IMediaDeathNotifier>& recipient);
40 static void removeObitRecipient(const wp<IMediaDeathNotifier>& recipient);
/frameworks/base/core/java/android/database/
DCursorToBulkCursorAdaptor.java65 public ContentObserverProxy(IContentObserver remoteObserver, DeathRecipient recipient) { in ContentObserverProxy() argument
69 remoteObserver.asBinder().linkToDeath(recipient, 0); in ContentObserverProxy()
75 public boolean unlinkToDeath(DeathRecipient recipient) { in unlinkToDeath() argument
76 return mRemote.asBinder().unlinkToDeath(recipient, 0); in unlinkToDeath()
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/
DSensorPrivacyManager.h55 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient);
56 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient);
/frameworks/native/libs/binder/ndk/tests/
Dlibbinder_ndk_unit_test.cpp440 AIBinder_DeathRecipient* recipient = AIBinder_DeathRecipient_new(LambdaOnDeath); in TEST() local
441 AIBinder_DeathRecipient_setOnUnlinked(recipient, LambdaOnUnlink); in TEST()
443 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, static_cast<void*>(&cookie))); in TEST()
459 AIBinder_DeathRecipient_delete(recipient); in TEST()
482 AIBinder_DeathRecipient* recipient = AIBinder_DeathRecipient_new(OnBinderDeath); in TEST() local
483 ASSERT_NE(nullptr, recipient); in TEST()
485 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, nullptr)); in TEST()
486 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, nullptr)); in TEST()
487 EXPECT_EQ(STATUS_OK, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST()
488 EXPECT_EQ(STATUS_OK, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST()
[all …]

123