Home
last modified time | relevance | path

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

1234

/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/av/media/libaudiohal/impl/
DConversionHelperAidl.cpp34 const VendorParametersRecipient& recipient, in parseAndGetVendorParameters() argument
47 ParameterScope(recipient.index()), in parseAndGetVendorParameters()
52 if (recipient.index() == static_cast<int>(ParameterScope::MODULE)) { in parseAndGetVendorParameters()
53 auto module = std::get<static_cast<int>(ParameterScope::MODULE)>(recipient); in parseAndGetVendorParameters()
56 } else if (recipient.index() == static_cast<int>(ParameterScope::STREAM)) { in parseAndGetVendorParameters()
57 auto stream = std::get<static_cast<int>(ParameterScope::STREAM)>(recipient); in parseAndGetVendorParameters()
62 __func__, recipient.index()); in parseAndGetVendorParameters()
67 ParameterScope(recipient.index()), in parseAndGetVendorParameters()
83 const VendorParametersRecipient& recipient, in parseAndSetVendorParameters() argument
95 ParameterScope(recipient.index()), in parseAndSetVendorParameters()
[all …]
/frameworks/av/services/camera/libcameraservice/aidl/
DDeathPipe.h45 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient, void* cookie,
47 status_t unlinkToDeath(const wp<IBinder::DeathRecipient>& recipient,
66 wp<IBinder::DeathRecipient> recipient; // NDK death recipient member
76 Obituary(const wp<IBinder::DeathRecipient>& recipient, void* cookie, in Obituary()
78 recipient(recipient), cookie(cookie), flags(flags), in Obituary()
84 sp<IBinder::DeathRecipient> r = recipient.promote(); in onDeath()
102 return recipient == rhs.recipient &&
DDeathPipe.cpp32 status_t DeathPipe::linkToDeath(const sp<IBinder::DeathRecipient>& recipient, in linkToDeath() argument
34 LOG_ALWAYS_FATAL_IF(recipient == nullptr, "%s: recipient must be non-nullptr", __FUNCTION__); in linkToDeath()
39 std::shared_ptr<Obituary> obituary = std::make_shared<Obituary>(recipient, cookie, in linkToDeath()
56 status_t DeathPipe::unlinkToDeath(const wp<IBinder::DeathRecipient>& recipient, in unlinkToDeath() argument
61 std::shared_ptr<Obituary> inObituary = std::make_shared<Obituary>(recipient, cookie, in unlinkToDeath()
66 *outRecipient = (*it)->recipient; in unlinkToDeath()
DAidlCameraServiceListener.cpp61 status_t AidlCameraServiceListener::linkToDeath(const sp<DeathRecipient>& recipient, void* cookie, in linkToDeath() argument
63 return mDeathPipe.linkToDeath(recipient, cookie, flags); in linkToDeath()
65 status_t AidlCameraServiceListener::unlinkToDeath(const wp<DeathRecipient>& recipient, void* cookie, in unlinkToDeath() argument
68 return mDeathPipe.unlinkToDeath(recipient, cookie, flags, outRecipient); in unlinkToDeath()
/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.cpp135 for (auto& recipient : buf->recipients) { in erase() local
136 sp<ErasedRecipient> erasedRecipient = recipient.promote(); in erase()
145 for (auto& recipient : pendingErase) { in erase() local
146 recipient->bufferErased(cacheId); in erase()
164 const wp<ErasedRecipient>& recipient) { in registerErasedRecipient() argument
172 buf->recipients.insert(recipient); in registerErasedRecipient()
177 const wp<ErasedRecipient>& recipient) { in unregisterErasedRecipient() argument
186 buf->recipients.erase(recipient); in unregisterErasedRecipient()
205 for (auto& recipient : clientCacheBuffer.recipients) { in removeProcess() local
206 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.java148 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
150 mToken.linkToDeath(recipient, 0); in linkToDeath()
159 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
160 mToken.unlinkToDeath(recipient, 0); in unlinkToDeath()
/frameworks/native/libs/binder/ndk/
Dibinder.cpp407 sp<AIBinder_DeathRecipient> recipient = mParentRecipient.promote(); in binderDied() local
411 if (recipient != nullptr && strongWho != nullptr) { in binderDied()
412 status_t result = recipient->unlinkToDeath(strongWho, mCookie); in binderDied()
439 sp<TransferDeathRecipient> recipient = in linkToDeath() local
442 status_t status = binder->linkToDeath(recipient, cookie, 0 /*flags*/); in linkToDeath()
449 mDeathRecipients.push_back(recipient); in linkToDeath()
461 sp<TransferDeathRecipient> recipient = *it; in unlinkToDeath() local
463 if (recipient->getCookie() == cookie && recipient->getWho() == binder) { in unlinkToDeath()
466 status_t status = binder->unlinkToDeath(recipient, cookie, 0 /*flags*/); in unlinkToDeath()
548 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.rs379 fn link_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in link_to_death()
393 recipient.as_native_mut(), in link_to_death()
394 recipient.new_cookie(), in link_to_death()
399 fn unlink_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in unlink_to_death()
409 recipient.as_native_mut(), in unlink_to_death()
410 recipient.get_cookie(), in unlink_to_death()
577 recipient: *mut sys::AIBinder_DeathRecipient, field
609 let recipient = unsafe { in new() localVariable
623 recipient, in new()
628 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);
/frameworks/native/libs/binder/
DBpBinder.cpp387 const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) in linkToDeath() argument
410 ob.recipient = recipient; in linkToDeath()
414 LOG_ALWAYS_FATAL_IF(recipient == nullptr, in linkToDeath()
446 const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, in unlinkToDeath() argument
463 if ((obit.recipient == recipient in unlinkToDeath()
464 || (recipient == nullptr && obit.cookie == cookie)) in unlinkToDeath()
467 *outRecipient = mObituaries->itemAt(i).recipient; in unlinkToDeath()
533 sp<DeathRecipient> recipient = obit.recipient.promote(); in reportOneDeath() local
534 ALOGV("Reporting death to recipient: %p\n", recipient.get()); in reportOneDeath()
535 if (recipient == nullptr) return; in reportOneDeath()
[all …]
DActivityManager.cpp152 status_t ActivityManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in linkToDeath() argument
155 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
160 status_t ActivityManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in unlinkToDeath() argument
163 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/voiceinteraction/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()
DSoundTriggerDuplicateModelHandler.java163 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
164 mDelegate.linkToDeath(recipient); in linkToDeath()
168 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
169 mDelegate.unlinkToDeath(recipient); in unlinkToDeath()
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_ibinder.h343 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
368 binder_status_t AIBinder_unlinkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
652 void AIBinder_DeathRecipient_setOnUnlinked(AIBinder_DeathRecipient* recipient,
668 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/native/libs/sensorprivacy/include/sensorprivacy/
DSensorPrivacyManager.h55 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient);
56 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient);

1234