Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/java/android/os/
H A 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()
H A DIHwBinder.java63 public boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument
69 public boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath() argument
H A 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()
H A DIBinder.java342 public void linkToDeath(@NonNull DeathRecipient recipient, int flags) in linkToDeath() argument
363 public boolean unlinkToDeath(@NonNull DeathRecipient recipient, int flags); in unlinkToDeath() argument
H A DBinderProxy.java619 public native void linkToDeath(DeathRecipient recipient, int flags) in linkToDeath() argument
624 public native boolean unlinkToDeath(DeathRecipient recipient, int flags); in unlinkToDeath() argument
699 private static void sendDeathNotice(DeathRecipient recipient, IBinder binderProxy) { in sendDeathNotice() argument
701 Log.v("JavaBinder", "sendDeathNotice to " + recipient + " for " + binderProxy); in sendDeathNotice()
704 recipient.binderDied(binderProxy); in sendDeathNotice()
/aosp14/frameworks/base/core/jni/
H A 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()
377 jobject recipient) in JHwRemoteBinder_unlinkToDeath() argument
380 if (recipient == NULL) { in JHwRemoteBinder_unlinkToDeath()
[all …]
H A Dandroid_os_HwRemoteBinder.h47 void add(const sp<HwBinderDeathRecipient>& recipient);
48 void remove(const sp<HwBinderDeathRecipient>& recipient);
51 sp<HwBinderDeathRecipient> find(jobject recipient);
H A Dandroid_util_Binder.cpp554 void add(const sp<JavaDeathRecipient>& recipient);
555 void remove(const sp<JavaDeathRecipient>& recipient);
556 sp<JavaDeathRecipient> find(jobject recipient);
697 LOGDEATH("DRL @ %p : add JDR %p", this, recipient.get()); in add()
698 mList.push_back(recipient); in add()
706 if (*iter == recipient) { in remove()
719 if ((*iter)->matches(recipient)) { in find()
1472 jobject recipient, jint flags) // throws RemoteException in android_os_BinderProxy_linkToDeath() argument
1474 if (recipient == NULL) { in android_os_BinderProxy_linkToDeath()
1501 if (recipient == NULL) { in android_os_BinderProxy_unlinkToDeath()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A 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()
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
H A 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()
H A 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()
H A 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()
H A DSoundTriggerHalConcurrentCaptureHandler.java222 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
223 IBinder.DeathRecipient wrapper = () -> mCallbackThread.push(recipient::binderDied); in linkToDeath()
225 mDeathRecipientMap.put(recipient, wrapper); in linkToDeath()
229 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
230 mDelegate.unlinkToDeath(mDeathRecipientMap.remove(recipient)); in unlinkToDeath()
H A DSoundTriggerHw3Compat.java173 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
175 mDriver.asBinder().linkToDeath(recipient, 0); in linkToDeath()
182 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
183 mDriver.asBinder().unlinkToDeath(recipient, 0); in unlinkToDeath()
H A DISoundTriggerHal.java128 void linkToDeath(IBinder.DeathRecipient recipient); in linkToDeath() argument
133 void unlinkToDeath(IBinder.DeathRecipient recipient); in unlinkToDeath() argument
H A DSoundTriggerHalEnforcer.java195 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
196 mUnderlying.linkToDeath(recipient); in linkToDeath()
200 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
201 mUnderlying.unlinkToDeath(recipient); in unlinkToDeath()
H A DSoundTriggerHw2Compat.java395 public void linkToDeath(IBinder.DeathRecipient recipient) { in linkToDeath() argument
396 IHwBinder.DeathRecipient wrapper = cookie -> recipient.binderDied(); in linkToDeath()
397 mDeathRecipientMap.put(recipient, wrapper); in linkToDeath()
402 public void unlinkToDeath(IBinder.DeathRecipient recipient) { in unlinkToDeath() argument
403 mBinder.unlinkToDeath(mDeathRecipientMap.remove(recipient)); in unlinkToDeath()
H A DFakeSoundTriggerHal.java357 public void linkToDeath(IBinder.DeathRecipient recipient, int flags) { in linkToDeath() argument
362 mDeathRecipient = recipient; in linkToDeath()
367 public boolean unlinkToDeath(IBinder.DeathRecipient recipient, int flags) { in unlinkToDeath() argument
370 if (mDeathRecipient != recipient) { in unlinkToDeath()
/aosp14/system/core/libbinderwrapper/
H A Dreal_binder_wrapper.cc89 sp<DeathRecipient> recipient(new DeathRecipient(callback)); in RegisterForDeathNotifications() local
90 if (binder->linkToDeath(recipient) != OK) { in RegisterForDeathNotifications()
95 death_recipients_[binder] = recipient; in RegisterForDeathNotifications()
/aosp14/frameworks/base/core/java/android/database/
H A DCursorToBulkCursorAdaptor.java65 public ContentObserverProxy(IContentObserver remoteObserver, DeathRecipient recipient) { in ContentObserverProxy() argument
69 remoteObserver.asBinder().linkToDeath(recipient, 0); in ContentObserverProxy()
75 public boolean unlinkToDeath(DeathRecipient recipient) { in unlinkToDeath() argument
76 return mRemote.asBinder().unlinkToDeath(recipient, 0); in unlinkToDeath()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBinderDeathDispatcherTest.java94 public void linkToDeath(DeathRecipient recipient, int flags) throws RemoteException { in linkToDeath() argument
103 mRecipient = recipient; in linkToDeath()
107 public boolean unlinkToDeath(DeathRecipient recipient, int flags) { in unlinkToDeath() argument
111 assertThat(mRecipient).isSameInstanceAs(recipient); in unlinkToDeath()
/aosp14/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
H A DSoundTriggerDuplicateModelHandlerTest.java264 var recipient = mock(IBinder.DeathRecipient.class); in testDelegation() local
265 mComponent.linkToDeath(recipient); in testDelegation()
266 inOrder.verify(mUnderlying).linkToDeath(eq(recipient)); in testDelegation()
267 mComponent.unlinkToDeath(recipient); in testDelegation()
268 inOrder.verify(mUnderlying).unlinkToDeath(eq(recipient)); in testDelegation()
/aosp14/frameworks/base/telephony/common/com/google/android/mms/pdu/
H A DPduComposer.java819 boolean recipient = false; in makeSendRetrievePdu()
823 recipient = true; in makeSendRetrievePdu()
828 recipient = true; in makeSendRetrievePdu()
833 recipient = true; in makeSendRetrievePdu()
837 if (false == recipient) { in makeSendRetrievePdu()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/nearby/
H A DNearbyMediaDevicesManagerTest.kt240 override fun linkToDeath(recipient: IBinder.DeathRecipient, flags: Int) {
241 deathRecipient = recipient
/aosp14/frameworks/base/core/java/android/hardware/camera2/impl/
H A DICameraDeviceUserWrapper.java61 public void unlinkToDeath(IBinder.DeathRecipient recipient, int flags) { in unlinkToDeath() argument
63 mRemoteDevice.asBinder().unlinkToDeath(recipient, flags); in unlinkToDeath()

12