Home
last modified time | relevance | path

Searched refs:recipient (Results 1 – 25 of 85) 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
43 ParameterScope(recipient.index()), in parseAndGetVendorParameters()
48 if (recipient.index() == static_cast<int>(ParameterScope::MODULE)) { in parseAndGetVendorParameters()
49 auto module = std::get<static_cast<int>(ParameterScope::MODULE)>(recipient); in parseAndGetVendorParameters()
52 } else if (recipient.index() == static_cast<int>(ParameterScope::STREAM)) { in parseAndGetVendorParameters()
53 auto stream = std::get<static_cast<int>(ParameterScope::STREAM)>(recipient); in parseAndGetVendorParameters()
58 __func__, recipient.index()); in parseAndGetVendorParameters()
63 ParameterScope(recipient.index()), in parseAndGetVendorParameters()
79 const VendorParametersRecipient& recipient, in parseAndSetVendorParameters() argument
87 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.cpp67 status_t AidlCameraServiceListener::linkToDeath(const sp<DeathRecipient>& recipient, void* cookie, in linkToDeath() argument
69 return mDeathPipe.linkToDeath(recipient, cookie, flags); in linkToDeath()
72 status_t AidlCameraServiceListener::unlinkToDeath(const wp<DeathRecipient>& recipient, void* cookie, in unlinkToDeath() argument
75 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/native/libs/binder/ndk/
Dibinder.cpp282 sp<AIBinder_DeathRecipient> strongRecip = recip.recipient.promote(); in ~ABpBinder()
326 void ABpBinder::addDeathRecipient(const ::android::sp<AIBinder_DeathRecipient>& recipient, in addDeathRecipient() argument
329 mDeathRecipients.emplace_back(recipient, cookie); in addDeathRecipient()
438 sp<AIBinder_DeathRecipient> recipient = mParentRecipient.promote(); in binderDied() local
442 if (recipient != nullptr && strongWho != nullptr) { in binderDied()
443 status_t result = recipient->unlinkToDeath(strongWho, mCookie); in binderDied()
483 [&cookie](android::sp<TransferDeathRecipient> recipient) { in linkToDeath() argument
484 return recipient->getCookie() == cookie; in linkToDeath()
496 sp<TransferDeathRecipient> recipient = in linkToDeath() local
499 status_t status = binder->linkToDeath(recipient, cookie, 0 /*flags*/); in linkToDeath()
[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
DBinderProxy.java629 public void linkToDeath(DeathRecipient recipient, int flags) in linkToDeath() argument
631 linkToDeathNative(recipient, flags); in linkToDeath()
632 mDeathRecipients.add(recipient); in linkToDeath()
638 public boolean unlinkToDeath(DeathRecipient recipient, int flags) { in unlinkToDeath() argument
639 mDeathRecipients.remove(recipient); in unlinkToDeath()
640 return unlinkToDeathNative(recipient, flags); in unlinkToDeath()
643 private native void linkToDeathNative(DeathRecipient recipient, int flags) in linkToDeathNative() argument
646 private native boolean unlinkToDeathNative(DeathRecipient recipient, int flags); in unlinkToDeathNative() argument
721 private static void sendDeathNotice(DeathRecipient recipient, IBinder binderProxy) { in sendDeathNotice() argument
723 Log.v("JavaBinder", "sendDeathNotice to " + recipient + " for " + binderProxy); in sendDeathNotice()
[all …]
DExternalVibration.java150 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
152 mToken.linkToDeath(recipient, 0); in linkToDeath()
161 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
163 mToken.unlinkToDeath(recipient, 0); in unlinkToDeath()
/frameworks/native/libs/binder/rust/src/
Dproxy.rs355 fn link_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in link_to_death()
369 recipient.as_native_mut(), in link_to_death()
370 recipient.new_cookie(), in link_to_death()
375 fn unlink_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in unlink_to_death()
385 recipient.as_native_mut(), in unlink_to_death()
386 recipient.get_cookie(), in unlink_to_death()
547 recipient: *mut sys::AIBinder_DeathRecipient, field
580 let recipient = unsafe { sys::AIBinder_DeathRecipient_new(Some(Self::binder_died::<F>)) }; in new() localVariable
587 recipient, in new()
592 recipient, in new()
[all …]
/frameworks/base/services/tests/vibrator/utils/com/android/server/vibrator/
DFakeVibratorController.java79 public void linkToDeath(@NonNull DeathRecipient recipient, int flags) { in linkToDeath() argument
80 super.linkToDeath(recipient, flags); in linkToDeath()
85 public boolean unlinkToDeath(@NonNull DeathRecipient recipient, int flags) { in unlinkToDeath() argument
87 return super.unlinkToDeath(recipient, flags); in unlinkToDeath()
/frameworks/av/media/libmedia/
DIMediaDeathNotifier.cpp56 IMediaDeathNotifier::addObitRecipient(const wp<IMediaDeathNotifier>& recipient) in addObitRecipient() argument
60 sObitRecipients.add(recipient); in addObitRecipient()
64 IMediaDeathNotifier::removeObitRecipient(const wp<IMediaDeathNotifier>& recipient) in removeObitRecipient() argument
68 sObitRecipients.remove(recipient); in removeObitRecipient()
/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/base/core/java/com/android/internal/os/
DBinderDeathDispatcher.java96 public int linkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in linkToDeath() argument
111 info.mRecipients.add(recipient); in linkToDeath()
116 public void unlinkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in unlinkToDeath() argument
124 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()
/frameworks/native/libs/binder/
DBpBinder.cpp416 const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) in linkToDeath() argument
439 ob.recipient = recipient; in linkToDeath()
443 LOG_ALWAYS_FATAL_IF(recipient == nullptr, in linkToDeath()
475 const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, in unlinkToDeath() argument
492 if ((obit.recipient == recipient in unlinkToDeath()
493 || (recipient == nullptr && obit.cookie == cookie)) in unlinkToDeath()
496 *outRecipient = mObituaries->itemAt(i).recipient; in unlinkToDeath()
562 sp<DeathRecipient> recipient = obit.recipient.promote(); in reportOneDeath() local
563 ALOGV("Reporting death to recipient: %p\n", recipient.get()); in reportOneDeath()
564 if (recipient == nullptr) return; in reportOneDeath()
[all …]
/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,
658 void AIBinder_DeathRecipient_setOnUnlinked(AIBinder_DeathRecipient* recipient,
674 void AIBinder_DeathRecipient_delete(AIBinder_DeathRecipient* recipient) __INTRODUCED_IN(29);
/frameworks/av/media/libaaudio/tests/
Dtest_multiple_close_simultaneously.cpp62 sp<IAAudioService> getAAudioService(const sp<IBinder::DeathRecipient>& recipient) { in getAAudioService() argument
75 if (binder->linkToDeath(recipient) != NO_ERROR) { in getAAudioService()
148 const auto recipient = sp<AAudioServiceDeathRecipient>::make(); in TEST() local
149 auto aaudioService = getAAudioService(recipient); in TEST()
/frameworks/native/libs/binder/ndk/tests/
Dlibbinder_ndk_unit_test.cpp560 AIBinder_DeathRecipient* recipient = AIBinder_DeathRecipient_new(LambdaOnDeath); in TEST() local
561 AIBinder_DeathRecipient_setOnUnlinked(recipient, LambdaOnUnlink); in TEST()
563 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient, static_cast<void*>(cookie))); in TEST()
578 AIBinder_DeathRecipient_delete(recipient); in TEST()
611 ndk::ScopedAIBinder_DeathRecipient recipient(AIBinder_DeathRecipient_new(LambdaOnDeath)); in TEST() local
612 AIBinder_DeathRecipient_setOnUnlinked(recipient.get(), LambdaOnUnlink); in TEST()
623 AIBinder_linkToDeath(binder, recipient.get(), static_cast<void*>(cookie))); in TEST()
674 ndk::ScopedAIBinder_DeathRecipient recipient(AIBinder_DeathRecipient_new(LambdaOnDeath)); in TEST() local
675 AIBinder_DeathRecipient_setOnUnlinked(recipient.get(), LambdaOnUnlink); in TEST()
682 EXPECT_EQ(STATUS_OK, AIBinder_linkToDeath(binder, recipient.get(), static_cast<void*>(cookie))); in TEST()
[all …]
/frameworks/native/libs/sensorprivacy/
DSensorPrivacyManager.cpp178 status_t SensorPrivacyManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) in linkToDeath() argument
182 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
187 status_t SensorPrivacyManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) in unlinkToDeath() argument
191 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()

1234