/frameworks/av/services/camera/libcameraservice/hidl/ |
D | CameraHybridInterface.h | 43 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/ |
D | BinderCacheManagerTest.java | 70 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/ |
D | ClientCache.cpp | 130 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/ |
D | HwRemoteBinder.java | 48 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()
|
D | IHwBinder.java | 63 public boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument 69 public boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath() argument
|
D | ExternalVibration.java | 144 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/ |
D | ibinder.cpp | 399 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/ |
D | IMediaDeathNotifier.cpp | 62 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/ |
D | proxy.rs | 370 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/ |
D | android_os_HwRemoteBinder.cpp | 193 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 …]
|
D | android_os_HwRemoteBinder.h | 47 void add(const sp<HwBinderDeathRecipient>& recipient); 48 void remove(const sp<HwBinderDeathRecipient>& recipient); 51 sp<HwBinderDeathRecipient> find(jobject recipient);
|
D | android_util_Binder.cpp | 547 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/ |
D | BpBinder.cpp | 327 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 …]
|
D | ActivityManager.cpp | 118 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/ |
D | BinderDeathDispatcher.java | 95 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/ |
D | SoundTriggerHalMaxModelLimiter.java | 150 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()
|
D | SoundTriggerHalWatchdog.java | 126 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()
|
D | SoundTriggerHalConcurrentCaptureHandler.java | 221 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()
|
D | SoundTriggerHw3Compat.java | 170 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/ |
D | binder_ibinder.h | 338 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/ |
D | SensorPrivacyManager.cpp | 161 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/ |
D | IMediaDeathNotifier.h | 39 static void addObitRecipient(const wp<IMediaDeathNotifier>& recipient); 40 static void removeObitRecipient(const wp<IMediaDeathNotifier>& recipient);
|
/frameworks/base/core/java/android/database/ |
D | CursorToBulkCursorAdaptor.java | 65 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/ |
D | SensorPrivacyManager.h | 55 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient); 56 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient);
|
/frameworks/native/libs/binder/ndk/tests/ |
D | libbinder_ndk_unit_test.cpp | 440 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 …]
|