/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/native/services/surfaceflinger/ |
D | ClientCache.cpp | 115 for (auto& recipient : buf->recipients) { in erase() local 116 sp<ErasedRecipient> erasedRecipient = recipient.promote(); in erase() 125 for (auto& recipient : pendingErase) { in erase() local 126 recipient->bufferErased(cacheId); in erase() 143 const wp<ErasedRecipient>& recipient) { in registerErasedRecipient() argument 151 buf->recipients.insert(recipient); in registerErasedRecipient() 155 const wp<ErasedRecipient>& recipient) { in unregisterErasedRecipient() argument 164 buf->recipients.erase(recipient); in unregisterErasedRecipient() 183 for (auto& recipient : clientCacheBuffer.recipients) { in removeProcess() local 184 sp<ErasedRecipient> erasedRecipient = recipient.promote(); in removeProcess() [all …]
|
D | ClientCache.h | 52 const wp<ErasedRecipient>& recipient); 54 const wp<ErasedRecipient>& recipient);
|
/frameworks/native/libs/binder/ndk/test/ |
D | main_client.cpp | 82 AIBinder_DeathRecipient* recipient = AIBinder_DeathRecipient_new(LambdaOnDeath); in TEST() local 84 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, static_cast<void*>(&onDeath))); in TEST() 97 AIBinder_DeathRecipient_delete(recipient); in TEST() 118 AIBinder_DeathRecipient* recipient = AIBinder_DeathRecipient_new(OnBinderDeath); in TEST() local 119 ASSERT_NE(nullptr, recipient); in TEST() 121 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, nullptr)); in TEST() 122 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, nullptr)); in TEST() 123 EXPECT_EQ(STATUS_OK, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST() 124 EXPECT_EQ(STATUS_OK, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST() 125 EXPECT_EQ(STATUS_NAME_NOT_FOUND, AIBinder_unlinkToDeath(binder, recipient, nullptr)); in TEST() [all …]
|
/frameworks/native/libs/binder/ndk/ |
D | ibinder.cpp | 273 sp<AIBinder_DeathRecipient> recipient = mParentRecipient.promote(); in binderDied() local 277 if (recipient != nullptr && strongWho != nullptr) { in binderDied() 278 status_t result = recipient->unlinkToDeath(strongWho, mCookie); in binderDied() 305 sp<TransferDeathRecipient> recipient = in linkToDeath() local 308 status_t status = binder->linkToDeath(recipient, cookie, 0 /*flags*/); in linkToDeath() 313 mDeathRecipients.push_back(recipient); in linkToDeath() 325 sp<TransferDeathRecipient> recipient = *it; in unlinkToDeath() local 327 if (recipient->getCookie() == cookie && recipient->getWho() == binder) { in unlinkToDeath() 330 status_t status = binder->unlinkToDeath(recipient, cookie, 0 /*flags*/); in unlinkToDeath() 407 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, in AIBinder_linkToDeath() argument [all …]
|
/frameworks/base/core/java/android/os/ |
D | HwRemoteBinder.java | 47 public native boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument 48 public native boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath() argument 63 private static final void sendDeathNotice(DeathRecipient recipient, long cookie) { in sendDeathNotice() argument 64 recipient.serviceDied(cookie); in sendDeathNotice()
|
D | ExternalVibration.java | 120 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument 122 mToken.linkToDeath(recipient, 0); in linkToDeath() 131 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument 132 mToken.unlinkToDeath(recipient, 0); in unlinkToDeath()
|
D | IHwBinder.java | 65 public boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument 71 public boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath() argument
|
D | IBinder.java | 293 public void linkToDeath(@NonNull DeathRecipient recipient, int flags) in linkToDeath() argument 314 public boolean unlinkToDeath(@NonNull DeathRecipient recipient, int flags); in unlinkToDeath() argument
|
/frameworks/native/libs/binder/ |
D | BpBinder.cpp | 226 const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) in linkToDeath() argument 229 ob.recipient = recipient; in linkToDeath() 233 LOG_ALWAYS_FATAL_IF(recipient == nullptr, in linkToDeath() 261 const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, in unlinkToDeath() argument 273 if ((obit.recipient == recipient in unlinkToDeath() 274 || (recipient == nullptr && obit.cookie == cookie)) in unlinkToDeath() 277 *outRecipient = mObituaries->itemAt(i).recipient; in unlinkToDeath() 330 sp<DeathRecipient> recipient = obit.recipient.promote(); in reportOneDeath() local 331 ALOGV("Reporting death to recipient: %p\n", recipient.get()); in reportOneDeath() 332 if (recipient == nullptr) return; in reportOneDeath() [all …]
|
D | ActivityManager.cpp | 101 status_t ActivityManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in linkToDeath() argument 104 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath() 109 status_t ActivityManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in unlinkToDeath() argument 112 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()
|
/frameworks/native/libs/sensorprivacy/ |
D | SensorPrivacyManager.cpp | 88 status_t SensorPrivacyManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) in linkToDeath() argument 92 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath() 97 status_t SensorPrivacyManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) in unlinkToDeath() argument 101 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() 354 jobject recipient, jlong cookie) in JHwRemoteBinder_linkToDeath() argument 356 if (recipient == NULL) { in JHwRemoteBinder_linkToDeath() 366 sp<HwBinderDeathRecipient> jdr = new HwBinderDeathRecipient(env, recipient, cookie, list); in JHwRemoteBinder_linkToDeath() 380 jobject recipient) in JHwRemoteBinder_unlinkToDeath() argument [all …]
|
D | android_os_HwRemoteBinder.h | 43 void add(const sp<HwBinderDeathRecipient>& recipient); 44 void remove(const sp<HwBinderDeathRecipient>& recipient); 47 sp<HwBinderDeathRecipient> find(jobject recipient);
|
D | android_util_Binder.cpp | 464 void add(const sp<JavaDeathRecipient>& recipient); 465 void remove(const sp<JavaDeathRecipient>& recipient); 466 sp<JavaDeathRecipient> find(jobject recipient); 603 void DeathRecipientList::add(const sp<JavaDeathRecipient>& recipient) { in add() argument 606 LOGDEATH("DRL @ %p : add JDR %p", this, recipient.get()); in add() 607 mList.push_back(recipient); in add() 610 void DeathRecipientList::remove(const sp<JavaDeathRecipient>& recipient) { in remove() argument 615 if (*iter == recipient) { in remove() 616 LOGDEATH("DRL @ %p : remove JDR %p", this, recipient.get()); in remove() 623 sp<JavaDeathRecipient> DeathRecipientList::find(jobject recipient) { in find() argument [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BinderDeathDispatcher.java | 92 public int linkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in linkToDeath() argument 107 info.mRecipients.add(recipient); in linkToDeath() 112 public void unlinkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in unlinkToDeath() argument 120 if (info.mRecipients.remove(recipient) && info.mRecipients.size() == 0) { in unlinkToDeath()
|
/frameworks/base/core/java/android/database/ |
D | CursorToBulkCursorAdaptor.java | 58 public ContentObserverProxy(IContentObserver remoteObserver, DeathRecipient recipient) { in ContentObserverProxy() argument 62 remoteObserver.asBinder().linkToDeath(recipient, 0); in ContentObserverProxy() 68 public boolean unlinkToDeath(DeathRecipient recipient) { in unlinkToDeath() argument 69 return mRemote.asBinder().unlinkToDeath(recipient, 0); in unlinkToDeath()
|
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/ |
D | SensorPrivacyManager.h | 37 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient); 38 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient);
|
/frameworks/native/libs/binder/ndk/include_ndk/android/ |
D | binder_ibinder.h | 296 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, 315 binder_status_t AIBinder_unlinkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, 510 void AIBinder_DeathRecipient_delete(AIBinder_DeathRecipient* recipient) __INTRODUCED_IN(29);
|
/frameworks/av/include/media/ |
D | IMediaDeathNotifier.h | 39 static void addObitRecipient(const wp<IMediaDeathNotifier>& recipient); 40 static void removeObitRecipient(const wp<IMediaDeathNotifier>& recipient);
|
/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/binder/include/binder/ |
D | BpBinder.h | 51 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient, 56 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient, 121 wp<DeathRecipient> recipient; member
|
D | ActivityManager.h | 82 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient); 83 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient);
|
/frameworks/base/media/apex/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()
|