Home
last modified time | relevance | path

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

1234567891011

/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBinderDeathDispatcherTest.java142 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()
206 DeathRecipient r2 = mock(DeathRecipient.class); in testRegisterAndKill()
207 DeathRecipient r3 = mock(DeathRecipient.class); in testRegisterAndKill()
208 DeathRecipient r4 = mock(DeathRecipient.class); in testRegisterAndKill()
209 DeathRecipient r5 = mock(DeathRecipient.class); in testRegisterAndKill()
[all …]
/aosp14/system/core/libbinderwrapper/
H A Dreal_binder_wrapper.cc30 class RealBinderWrapper::DeathRecipient : public IBinder::DeathRecipient { class in android::RealBinderWrapper
32 explicit DeathRecipient(const ::base::Closure& callback) in DeathRecipient() function in android::RealBinderWrapper::DeathRecipient
34 ~DeathRecipient() = default;
45 DISALLOW_COPY_AND_ASSIGN(DeathRecipient);
89 sp<DeathRecipient> recipient(new DeathRecipient(callback)); in RegisterForDeathNotifications()
H A Dreal_binder_wrapper.h47 class DeathRecipient;
51 std::map<sp<IBinder>, sp<DeathRecipient>> death_recipients_;
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A 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()
/aosp14/frameworks/base/core/java/android/os/
H A DIHwBinder.java47 public interface DeathRecipient { interface
63 public boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath()
69 public boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath()
H A 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()
H A 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()
/aosp14/frameworks/base/telephony/java/android/telephony/mbms/vendor/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
H A DAnnouncementAggregator.java40 private final IBinder.DeathRecipient mDeathRecipient = new DeathRecipient();
76 private class DeathRecipient implements IBinder.DeathRecipient { class in AnnouncementAggregator
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
H A DAnnouncementAggregator.java47 private final IBinder.DeathRecipient mDeathRecipient = new DeathRecipient();
107 private class DeathRecipient implements IBinder.DeathRecipient { class in AnnouncementAggregator
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowContextListenerController.java203 private DeathRecipient mDeathRecipient;
218 final DeathRecipient deathRecipient = new DeathRecipient(); in WindowContextListenerImpl()
353 private class DeathRecipient implements IBinder.DeathRecipient { class in WindowContextListenerController.WindowContextListenerImpl
H A DTaskFpsCallbackController.java30 private final HashMap<IBinder, IBinder.DeathRecipient> mDeathRecipients;
51 final IBinder.DeathRecipient deathRecipient = () -> unregisterListener(callback); in registerListener()
H A DDisplayAreaOrganizerController.java56 private class DeathRecipient implements IBinder.DeathRecipient { class in DisplayAreaOrganizerController
60 DeathRecipient(IDisplayAreaOrganizer organizer, int feature) { in DeathRecipient() method in DisplayAreaOrganizerController.DeathRecipient
84 private final DeathRecipient mDeathRecipient;
88 mDeathRecipient = new DeathRecipient(organizer, feature); in DisplayAreaOrganizerState()
/aosp14/frameworks/base/services/core/java/com/android/server/location/listeners/
H A DBinderListenerRegistration.java20 import android.os.IBinder.DeathRecipient;
35 RemovableListenerRegistration<TKey, TListener> implements DeathRecipient {
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
H A DSoundTriggerHalConcurrentCaptureHandler.java116 @NonNull private final Map<IBinder.DeathRecipient, IBinder.DeathRecipient>
222 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath()
223 IBinder.DeathRecipient wrapper = () -> mCallbackThread.push(recipient::binderDied); in linkToDeath()
229 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath()
H A DISoundTriggerHal.java128 void linkToDeath(IBinder.DeathRecipient recipient); in linkToDeath()
133 void unlinkToDeath(IBinder.DeathRecipient recipient); in unlinkToDeath()
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/hal/gadget/
H A DUsbGadgetHidl.java81 final class DeathRecipient implements IHwBinder.DeathRecipient { class in UsbGadgetHidl
84 DeathRecipient(IndentingPrintWriter pw) { in DeathRecipient() method in UsbGadgetHidl.DeathRecipient
115 mGadgetProxy.linkToDeath(new DeathRecipient(pw), USB_GADGET_HAL_DEATH_COOKIE); in connectToProxy()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DSingleInstanceRemoteListener.java54 private final IBinder.DeathRecipient mListenerDeathRecipient =
55 new IBinder.DeathRecipient() {
/aosp14/frameworks/base/core/java/android/database/
H A DCursorToBulkCursorAdaptor.java42 implements IBinder.DeathRecipient {
65 public ContentObserverProxy(IContentObserver remoteObserver, DeathRecipient recipient) { in ContentObserverProxy()
75 public boolean unlinkToDeath(DeathRecipient recipient) { in unlinkToDeath()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DMockWindowMagnificationConnection.java55 private IBinder.DeathRecipient mDeathRecipient;
86 any(IBinder.DeathRecipient.class), eq(0)); in MockWindowMagnificationConnection()
165 IBinder.DeathRecipient getDeathRecipient() { in getDeathRecipient()
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
H A DAnnouncementAggregatorTest.java55 private IBinder.DeathRecipient mDeathRecipient;
67 ArgumentCaptor<IBinder.DeathRecipient> deathRecipientCaptor = in setUp()
68 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in setUp()
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
H A DAnnouncementAggregatorHidlTest.java56 private IBinder.DeathRecipient mDeathRecipient;
68 ArgumentCaptor<IBinder.DeathRecipient> deathRecipientCaptor = in setUp()
69 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in setUp()
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DWindowMagnificationConnectionWrapper.java22 import static android.os.IBinder.DeathRecipient;
53 void unlinkToDeath(@NonNull DeathRecipient deathRecipient) { in unlinkToDeath()
57 void linkToDeath(@NonNull DeathRecipient deathRecipient) throws RemoteException { in linkToDeath()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
H A DPinnedSliceStateTest.java30 import android.os.IBinder.DeathRecipient;
156 ArgumentCaptor<DeathRecipient> arg = ArgumentCaptor.forClass(DeathRecipient.class); in testListenerDeath()

1234567891011