Home
last modified time | relevance | path

Searched refs:recipient (Results 1 – 25 of 63) 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.cpp125 for (auto& recipient : buf->recipients) { in erase() local
126 sp<ErasedRecipient> erasedRecipient = recipient.promote(); in erase()
135 for (auto& recipient : pendingErase) { in erase() local
136 recipient->bufferErased(cacheId); in erase()
153 const wp<ErasedRecipient>& recipient) { in registerErasedRecipient() argument
161 buf->recipients.insert(recipient); in registerErasedRecipient()
166 const wp<ErasedRecipient>& recipient) { in unregisterErasedRecipient() argument
175 buf->recipients.erase(recipient); in unregisterErasedRecipient()
194 for (auto& recipient : clientCacheBuffer.recipients) { in removeProcess() local
195 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.java125 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
127 mToken.linkToDeath(recipient, 0); in linkToDeath()
136 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
137 mToken.unlinkToDeath(recipient, 0); in unlinkToDeath()
/frameworks/native/libs/binder/rust/src/
Dproxy.rs356 fn link_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in link_to_death()
366 recipient.as_native_mut(), in link_to_death()
367 recipient.get_cookie(), in link_to_death()
372 fn unlink_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in unlink_to_death()
382 recipient.as_native_mut(), in unlink_to_death()
383 recipient.get_cookie(), in unlink_to_death()
537 recipient: *mut sys::AIBinder_DeathRecipient, field
549 let recipient = unsafe { in new() localVariable
558 recipient, in new()
594 self.recipient in as_native()
[all …]
/frameworks/native/libs/binder/ndk/
Dibinder.cpp371 sp<AIBinder_DeathRecipient> recipient = mParentRecipient.promote(); in binderDied() local
375 if (recipient != nullptr && strongWho != nullptr) { in binderDied()
376 status_t result = recipient->unlinkToDeath(strongWho, mCookie); in binderDied()
403 sp<TransferDeathRecipient> recipient = in linkToDeath() local
406 status_t status = binder->linkToDeath(recipient, cookie, 0 /*flags*/); in linkToDeath()
411 mDeathRecipients.push_back(recipient); in linkToDeath()
423 sp<TransferDeathRecipient> recipient = *it; in unlinkToDeath() local
425 if (recipient->getCookie() == cookie && recipient->getWho() == binder) { in unlinkToDeath()
428 status_t status = binder->unlinkToDeath(recipient, cookie, 0 /*flags*/); in unlinkToDeath()
505 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, in AIBinder_linkToDeath() argument
[all …]
/frameworks/native/libs/binder/
DBpBinder.cpp291 const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) in linkToDeath() argument
296 ob.recipient = recipient; in linkToDeath()
300 LOG_ALWAYS_FATAL_IF(recipient == nullptr, in linkToDeath()
328 const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, in unlinkToDeath() argument
342 if ((obit.recipient == recipient in unlinkToDeath()
343 || (recipient == nullptr && obit.cookie == cookie)) in unlinkToDeath()
346 *outRecipient = mObituaries->itemAt(i).recipient; in unlinkToDeath()
401 sp<DeathRecipient> recipient = obit.recipient.promote(); in reportOneDeath() local
402 ALOGV("Reporting death to recipient: %p\n", recipient.get()); in reportOneDeath()
403 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/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/base/core/jni/
Dandroid_os_HwRemoteBinder.cpp183 void HwBinderDeathRecipientList::add(const sp<HwBinderDeathRecipient>& recipient) { in add() argument
186 mList.push_back(recipient); in add()
189 void HwBinderDeathRecipientList::remove(const sp<HwBinderDeathRecipient>& recipient) { in remove() argument
193 if (*iter == recipient) { in remove()
200 sp<HwBinderDeathRecipient> HwBinderDeathRecipientList::find(jobject recipient) { in find() argument
204 if ((*iter)->matches(recipient)) { in find()
341 jobject recipient, jlong cookie) in JHwRemoteBinder_linkToDeath() argument
343 if (recipient == NULL) { in JHwRemoteBinder_linkToDeath()
353 sp<HwBinderDeathRecipient> jdr = new HwBinderDeathRecipient(env, recipient, cookie, list); in JHwRemoteBinder_linkToDeath()
367 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.cpp544 void add(const sp<JavaDeathRecipient>& recipient);
545 void remove(const sp<JavaDeathRecipient>& recipient);
546 sp<JavaDeathRecipient> find(jobject recipient);
684 void DeathRecipientList::add(const sp<JavaDeathRecipient>& recipient) { in add() argument
687 LOGDEATH("DRL @ %p : add JDR %p", this, recipient.get()); in add()
688 mList.push_back(recipient); in add()
691 void DeathRecipientList::remove(const sp<JavaDeathRecipient>& recipient) { in remove() argument
696 if (*iter == recipient) { in remove()
697 LOGDEATH("DRL @ %p : remove JDR %p", this, recipient.get()); in remove()
704 sp<JavaDeathRecipient> DeathRecipientList::find(jobject recipient) { in find() argument
[all …]
/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/native/libs/sensorprivacy/
DSensorPrivacyManager.cpp149 status_t SensorPrivacyManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) in linkToDeath() argument
153 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
158 status_t SensorPrivacyManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) in unlinkToDeath() argument
162 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DSoundTriggerHw2Watchdog.java132 public boolean linkToDeath(IHwBinder.DeathRecipient recipient, long cookie) { in linkToDeath() argument
133 return mUnderlying.linkToDeath(recipient, cookie); in linkToDeath()
137 public boolean unlinkToDeath(IHwBinder.DeathRecipient recipient) { in unlinkToDeath() argument
138 return mUnderlying.unlinkToDeath(recipient); in unlinkToDeath()
DSoundTriggerHw2Enforcer.java183 public boolean linkToDeath(IHwBinder.DeathRecipient recipient, long cookie) { in linkToDeath() argument
184 return mUnderlying.linkToDeath(recipient, cookie); in linkToDeath()
188 public boolean unlinkToDeath(IHwBinder.DeathRecipient recipient) { in unlinkToDeath() argument
189 return mUnderlying.unlinkToDeath(recipient); in unlinkToDeath()
DISoundTriggerHw2.java129 boolean linkToDeath(IHwBinder.DeathRecipient recipient, long cookie); in linkToDeath() argument
134 boolean unlinkToDeath(IHwBinder.DeathRecipient recipient); in unlinkToDeath() argument
/frameworks/av/media/libmedia/include/media/
DIMediaDeathNotifier.h39 static void addObitRecipient(const wp<IMediaDeathNotifier>& recipient);
40 static void removeObitRecipient(const wp<IMediaDeathNotifier>& recipient);
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/
DSensorPrivacyManager.h51 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient);
52 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& 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/binder/ndk/tests/
Dlibbinder_ndk_unit_test.cpp387 AIBinder_DeathRecipient* recipient = AIBinder_DeathRecipient_new(LambdaOnDeath); in TEST() local
389 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, static_cast<void*>(&onDeath))); in TEST()
400 AIBinder_DeathRecipient_delete(recipient); in TEST()
423 AIBinder_DeathRecipient* recipient = AIBinder_DeathRecipient_new(OnBinderDeath); in TEST() local
424 ASSERT_NE(nullptr, recipient); in TEST()
426 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, nullptr)); in TEST()
427 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, nullptr)); in TEST()
428 EXPECT_EQ(STATUS_OK, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST()
429 EXPECT_EQ(STATUS_OK, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST()
430 EXPECT_EQ(STATUS_NAME_NOT_FOUND, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST()
[all …]
/frameworks/base/apex/media/framework/java/android/media/
DSession2Link.java91 public void linkToDeath(@NonNull IBinder.DeathRecipient recipient, int flags) { in linkToDeath() argument
94 mISession.asBinder().linkToDeath(recipient, flags); in linkToDeath()
104 public boolean unlinkToDeath(@NonNull IBinder.DeathRecipient recipient, int flags) { in unlinkToDeath() argument
106 return mISession.asBinder().unlinkToDeath(recipient, flags); in unlinkToDeath()
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_ibinder.h323 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
344 binder_status_t AIBinder_unlinkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
575 void AIBinder_DeathRecipient_delete(AIBinder_DeathRecipient* recipient) __INTRODUCED_IN(29);

123