Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderDeathDispatcherTest.java28 import android.os.IBinder.DeathRecipient;
48 public DeathRecipient mRecipient;
94 public void linkToDeath(DeathRecipient recipient, int flags) throws RemoteException { in linkToDeath()
107 public boolean unlinkToDeath(DeathRecipient recipient, int flags) { in unlinkToDeath()
142 DeathRecipient r1 = mock(DeathRecipient.class); in testRegisterAndUnregister()
143 DeathRecipient r2 = mock(DeathRecipient.class); in testRegisterAndUnregister()
144 DeathRecipient r3 = mock(DeathRecipient.class); in testRegisterAndUnregister()
145 DeathRecipient r4 = mock(DeathRecipient.class); in testRegisterAndUnregister()
146 DeathRecipient r5 = mock(DeathRecipient.class); in testRegisterAndUnregister()
205 DeathRecipient r1 = mock(DeathRecipient.class); in testRegisterAndKill()
[all …]
/frameworks/native/libs/binder/tests/unit_fuzzers/
DBpBinderFuzzFunctions.h48 const sp<IBinder::DeathRecipient>&)>>
51 const sp<IBinder::DeathRecipient>& s_recipient) -> void {
53 wp<IBinder::DeathRecipient> outRecipient(nullptr);
64 const sp<IBinder::DeathRecipient>&) -> void {
65 wp<IBinder::DeathRecipient> out_recipient(nullptr);
72 const sp<IBinder::DeathRecipient>&) -> void { bpbinder->remoteBinder(); },
74 const sp<IBinder::DeathRecipient>&) -> void {
78 const sp<IBinder::DeathRecipient>&) -> void {
83 const sp<IBinder::DeathRecipient>&) -> void { bpbinder->enableCountByUid(); },
85 const sp<IBinder::DeathRecipient>&) -> void { bpbinder->disableCountByUid(); },
[all …]
/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.h71 status_t linkToDeath(const sp<DeathRecipient>& recipient, void* cookie,
73 status_t unlinkToDeath(const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags,
74 wp<DeathRecipient>* outRecipient) override;
DAidlCameraServiceListener.cpp61 status_t AidlCameraServiceListener::linkToDeath(const sp<DeathRecipient>& recipient, void* cookie, in linkToDeath()
65 status_t AidlCameraServiceListener::unlinkToDeath(const wp<DeathRecipient>& recipient, void* cookie, in unlinkToDeath()
67 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()
/frameworks/av/media/libmediaplayerservice/
DDeathNotifier.cpp25 class DeathNotifier::DeathRecipient : class in android::DeathNotifier
26 public IBinder::DeathRecipient,
31 DeathRecipient(Notify const& notify): mNotify{notify} { in DeathRecipient() function in android::DeathNotifier::DeathRecipient
48 mDeathRecipient{new DeathRecipient(notify)} {
54 mDeathRecipient{new DeathRecipient(notify)} {
DDeathNotifier.h41 class DeathRecipient; variable
42 sp<DeathRecipient> mDeathRecipient;
/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;
48 class RecipientsInfo implements DeathRecipient {
57 ArraySet<DeathRecipient> mRecipients = new ArraySet<>();
69 final ArraySet<DeathRecipient> copy; in binderDied()
95 public int linkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in linkToDeath()
115 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.java310 public interface DeathRecipient { interface
342 public void linkToDeath(@NonNull DeathRecipient recipient, int flags) in linkToDeath()
363 public boolean unlinkToDeath(@NonNull DeathRecipient recipient, int flags); in unlinkToDeath()
/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/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/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/base/core/tests/coretests/src/android/os/
DBinderDeathRecipientTest.java65 private Set<Pair<IBinder, IBinder.DeathRecipient>> mLinkedDeathRecipients = new ArraySet<>();
99 final IBinder.DeathRecipient simpleDeathRecipient = in binderDied_noArgs()
116 final IBinder.DeathRecipient sameDeathRecipient = new IBinder.DeathRecipient() { in binderDied_iBinderArg()
158 for (Pair<IBinder, IBinder.DeathRecipient> linkedPair : mLinkedDeathRecipients) { in tearDown()
/frameworks/native/libs/binder/rust/src/
Dproxy.rs379 fn link_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in link_to_death()
399 fn unlink_to_death(&mut self, recipient: &mut DeathRecipient) -> Result<()> { in unlink_to_death()
576 pub struct DeathRecipient { struct
592 unsafe impl Send for DeathRecipient {} implementation
599 unsafe impl Sync for DeathRecipient {} implementation
601 impl DeathRecipient { implementation
604 pub fn new<F>(callback: F) -> DeathRecipient in new()
627 DeathRecipient { in new()
706 unsafe impl AsNative<sys::AIBinder_DeathRecipient> for DeathRecipient { implementation
716 impl Drop for DeathRecipient { implementation
/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.cpp58 std::map<uintptr_t, std::shared_ptr<ResourceObserverService::DeathRecipient> >
61 struct ResourceObserverService::DeathRecipient { struct in android::ResourceObserverService
62 DeathRecipient(ResourceObserverService* _service, in DeathRecipient() function
65 ~DeathRecipient() {} in ~DeathRecipient() argument
83 std::shared_ptr<DeathRecipient> recipient; in BinderDiedCallback()
208 cookie, std::make_shared<DeathRecipient>(this, in_observer)); in registerObserver()

12345678910>>...15