Home
last modified time | relevance | path

Searched refs:DeathRecipient (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/frameworks/native/libs/binder/tests/unit_fuzzers/
DBpBinderFuzzFunctions.h47 const sp<IBinder::DeathRecipient>&)>>
50 const sp<IBinder::DeathRecipient>& s_recipient) -> void {
52 wp<IBinder::DeathRecipient> outRecipient(nullptr);
63 const sp<IBinder::DeathRecipient>&) -> void {
64 wp<IBinder::DeathRecipient> out_recipient(nullptr);
71 const sp<IBinder::DeathRecipient>&) -> void { bpbinder->remoteBinder(); },
73 const sp<IBinder::DeathRecipient>&) -> void {
77 const sp<IBinder::DeathRecipient>&) -> void {
82 const sp<IBinder::DeathRecipient>&) -> void { bpbinder->enableCountByUid(); },
84 const sp<IBinder::DeathRecipient>&) -> void { bpbinder->disableCountByUid(); },
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderDeathDispatcherTest.java28 import android.os.IBinder.DeathRecipient;
54 public DeathRecipient mRecipient;
100 public void linkToDeath(DeathRecipient recipient, int flags) throws RemoteException { in linkToDeath()
113 public boolean unlinkToDeath(DeathRecipient recipient, int flags) { in unlinkToDeath()
148 DeathRecipient r1 = mock(DeathRecipient.class); in testRegisterAndUnregister()
149 DeathRecipient r2 = mock(DeathRecipient.class); in testRegisterAndUnregister()
150 DeathRecipient r3 = mock(DeathRecipient.class); in testRegisterAndUnregister()
151 DeathRecipient r4 = mock(DeathRecipient.class); in testRegisterAndUnregister()
152 DeathRecipient r5 = mock(DeathRecipient.class); in testRegisterAndUnregister()
212 DeathRecipient r1 = mock(DeathRecipient.class); in testRegisterAndKill()
[all …]
/frameworks/av/media/libmediaplayerservice/
DDeathNotifier.cpp29 static std::map<uintptr_t, wp<DeathNotifier::DeathRecipient>> sCookies;
32 class DeathNotifier::DeathRecipient : class in android::DeathNotifier
33 public IBinder::DeathRecipient,
38 DeathRecipient(Notify const& notify): mNotify{notify} { in DeathRecipient() function in android::DeathNotifier::DeathRecipient
56 sp<DeathRecipient> recipient = it->second.promote(); in OnBinderDied()
73 ~DeathRecipient() { in ~DeathRecipient()
88 mDeathRecipient{new DeathRecipient(notify)} {
94 mDeathRecipient{new DeathRecipient(notify)} {
100 mDeathRecipient{new DeathRecipient(notify)} {
DDeathNotifier.h40 class DeathRecipient; variable
45 sp<DeathRecipient> mDeathRecipient;
/frameworks/av/services/camera/libcameraservice/hidl/
DCameraHybridInterface.h43 const sp<IBinder::DeathRecipient>& recipient,
47 const wp<IBinder::DeathRecipient>& recipient,
50 wp<IBinder::DeathRecipient>* outRecipient = nullptr);
55 wp<IBinder::DeathRecipient> recipient;
60 const wp<IBinder::DeathRecipient>& r, in Obituary()
79 sp<IBinder::DeathRecipient> dr = recipient.promote(); in serviceDied()
95 const sp<IBinder::DeathRecipient>& recipient, in linkToDeath()
115 const wp<IBinder::DeathRecipient>& recipient, in unlinkToDeath()
117 wp<IBinder::DeathRecipient>* outRecipient) { in unlinkToDeath()
/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,
48 void* cookie, uint32_t flags, wp<IBinder::DeathRecipient>* outRecipient);
66 wp<IBinder::DeathRecipient> recipient; // NDK death recipient
76 Obituary(const wp<IBinder::DeathRecipient>& recipient, void* cookie, in Obituary()
84 sp<IBinder::DeathRecipient> r = recipient.promote(); in onDeath()
DAidlCameraServiceListener.cpp67 status_t AidlCameraServiceListener::linkToDeath(const sp<DeathRecipient>& recipient, void* cookie, in linkToDeath()
72 status_t AidlCameraServiceListener::unlinkToDeath(const wp<DeathRecipient>& recipient, void* cookie, in unlinkToDeath()
74 wp<DeathRecipient>* outRecipient) { in unlinkToDeath()
DDeathPipe.cpp32 status_t DeathPipe::linkToDeath(const sp<IBinder::DeathRecipient>& recipient, in linkToDeath()
56 status_t DeathPipe::unlinkToDeath(const wp<IBinder::DeathRecipient>& recipient, in unlinkToDeath()
58 wp<IBinder::DeathRecipient>* outRecipient) { in unlinkToDeath()
DAidlCameraServiceListener.h74 status_t linkToDeath(const sp<DeathRecipient>& recipient, void* cookie,
76 status_t unlinkToDeath(const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags,
77 wp<DeathRecipient>* outRecipient) override;
/frameworks/av/services/audiopolicy/service/
DBinderProxy.h45 : mServiceName(serviceName), mDeathRecipient(new DeathRecipient(this)) {} in BinderProxy()
75 sp<IBinder::DeathRecipient> mDeathRecipient;
77 class DeathRecipient : public IBinder::DeathRecipient {
79 DeathRecipient(BinderProxy* proxy) : mProxy(proxy) {} in DeathRecipient() function
DCaptureStateNotifier.cpp13 class CaptureStateNotifier::DeathRecipient : public IBinder::DeathRecipient { class in android::CaptureStateNotifier
15 DeathRecipient(CaptureStateNotifier* notifier) : mNotifier(notifier) {} in DeathRecipient() function in android::CaptureStateNotifier::DeathRecipient
26 : mDeathRecipient(new DeathRecipient(this)), mActive( in CaptureStateNotifier()
DCaptureStateNotifier.h67 sp<IBinder::DeathRecipient> mDeathRecipient;
70 class DeathRecipient; variable
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/
DBinderCacheManagerTest.java70 IBinder.DeathRecipient recipient = populateCacheCaptureDeathRecipent(); in testAddListenerAndDie()
86 IBinder.DeathRecipient recipient = populateCacheCaptureDeathRecipent(); in testListenerNotCalledAfterRemoved()
99 IBinder.DeathRecipient recipient = populateCacheCaptureDeathRecipent(); in testAddListenerAlreadyDead()
112 private IBinder.DeathRecipient populateCacheCaptureDeathRecipent() throws Exception { in populateCacheCaptureDeathRecipent()
116 ArgumentCaptor<IBinder.DeathRecipient> captor = ArgumentCaptor.forClass( in populateCacheCaptureDeathRecipent()
117 IBinder.DeathRecipient.class); in populateCacheCaptureDeathRecipent()
119 IBinder.DeathRecipient recipient = captor.getValue(); in populateCacheCaptureDeathRecipent()
/frameworks/base/core/java/com/android/internal/os/
DBinderDeathDispatcher.java22 import android.os.IBinder.DeathRecipient;
49 class RecipientsInfo implements DeathRecipient {
58 ArraySet<DeathRecipient> mRecipients = new ArraySet<>();
70 final ArraySet<DeathRecipient> copy; in binderDied()
96 public int linkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in linkToDeath()
116 public void unlinkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in unlinkToDeath()
/frameworks/base/core/java/android/os/
DIHwBinder.java47 public interface DeathRecipient { interface
63 public boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath()
69 public boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath()
DHwRemoteBinder.java48 public native boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath()
49 public native boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath()
64 private static final void sendDeathNotice(DeathRecipient recipient, long cookie) { in sendDeathNotice()
DIBinder.java311 public interface DeathRecipient { interface
356 public void linkToDeath(@NonNull DeathRecipient recipient, int flags) in linkToDeath()
377 public boolean unlinkToDeath(@NonNull DeathRecipient recipient, int flags); in unlinkToDeath()
/frameworks/native/libs/binder/rust/src/
Dproxy.rs355 fn link_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in link_to_death()
375 fn unlink_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in unlink_to_death()
546 pub struct DeathRecipient { struct
560 unsafe impl Send for DeathRecipient {} implementation
565 unsafe impl Sync for DeathRecipient {} implementation
567 impl DeathRecipient { implementation
570 pub fn new<F>(callback: F) -> DeathRecipient in new()
591 DeathRecipient { in new()
676 unsafe impl AsNative<sys::AIBinder_DeathRecipient> for DeathRecipient { implementation
686 impl Drop for DeathRecipient { implementation
/frameworks/base/telephony/java/android/telephony/mbms/vendor/
DMbmsDownloadServiceBase.java52 private final Map<IBinder, DeathRecipient> mDownloadCallbackDeathRecipients = new HashMap<>();
161 callback.asBinder().linkToDeath(new DeathRecipient() { in initialize()
300 DeathRecipient deathRecipient = new DeathRecipient() { in addStatusListener()
351 DeathRecipient deathRecipient = in removeStatusListener()
413 DeathRecipient deathRecipient = new DeathRecipient() { in addProgressListener()
464 DeathRecipient deathRecipient = in removeProgressListener()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DAnnouncementAggregator.java40 private final IBinder.DeathRecipient mDeathRecipient = new DeathRecipient();
76 private class DeathRecipient implements IBinder.DeathRecipient { class in AnnouncementAggregator
/frameworks/native/libs/binder/include/binder/
DIBinder.h195 class DeathRecipient : public virtual RefBase
232 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient,
247 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient,
250 wp<DeathRecipient>* outRecipient = nullptr) = 0;
/frameworks/native/include/binder/
DIBinder.h195 class DeathRecipient : public virtual RefBase
232 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient,
247 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient,
250 wp<DeathRecipient>* outRecipient = nullptr) = 0;
/frameworks/base/core/tests/coretests/src/android/os/
DBinderDeathRecipientTest.java72 private Set<Pair<IBinder, IBinder.DeathRecipient>> mLinkedDeathRecipients = new ArraySet<>();
106 final IBinder.DeathRecipient simpleDeathRecipient = in binderDied_noArgs()
123 final IBinder.DeathRecipient sameDeathRecipient = new IBinder.DeathRecipient() { in binderDied_iBinderArg()
165 for (Pair<IBinder, IBinder.DeathRecipient> linkedPair : mLinkedDeathRecipients) { in tearDown()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DSipTransportImplBaseTest.java117 ArgumentCaptor<IBinder.DeathRecipient> captor = in createDestroyDelegate()
118 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in createDestroyDelegate()
142 ArgumentCaptor<IBinder.DeathRecipient> captor = in testPhoneProcessCrash()
143 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in testPhoneProcessCrash()
146 IBinder.DeathRecipient recipient = captor.getValue(); in testPhoneProcessCrash()
/frameworks/av/services/mediaresourcemanager/
DResourceObserverService.cpp59 std::map<uintptr_t, std::shared_ptr<ResourceObserverService::DeathRecipient> >
62 struct ResourceObserverService::DeathRecipient { struct in android::ResourceObserverService
63 DeathRecipient(ResourceObserverService* _service, in DeathRecipient() argument
66 ~DeathRecipient() {} in ~DeathRecipient() argument
84 std::shared_ptr<DeathRecipient> recipient; in BinderDiedCallback()
209 cookie, std::make_shared<DeathRecipient>(this, in_observer)); in registerObserver()

12345678910>>...16