/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 | 125 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/ |
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 | 125 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/ |
D | proxy.rs | 356 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/ |
D | ibinder.cpp | 371 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/ |
D | BpBinder.cpp | 291 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 …]
|
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/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/base/core/jni/ |
D | android_os_HwRemoteBinder.cpp | 183 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 …]
|
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 | 544 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/ |
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/native/libs/sensorprivacy/ |
D | SensorPrivacyManager.cpp | 149 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/ |
D | SoundTriggerHw2Watchdog.java | 132 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()
|
D | SoundTriggerHw2Enforcer.java | 183 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()
|
D | ISoundTriggerHw2.java | 129 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/ |
D | IMediaDeathNotifier.h | 39 static void addObitRecipient(const wp<IMediaDeathNotifier>& recipient); 40 static void removeObitRecipient(const wp<IMediaDeathNotifier>& recipient);
|
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/ |
D | SensorPrivacyManager.h | 51 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient); 52 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& 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/binder/ndk/tests/ |
D | libbinder_ndk_unit_test.cpp | 387 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/ |
D | Session2Link.java | 91 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/ |
D | binder_ibinder.h | 323 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);
|