Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderDeathDispatcherTest.java27 import android.os.IBinder.DeathRecipient;
47 public DeathRecipient mRecipient;
93 public void linkToDeath(DeathRecipient recipient, int flags) throws RemoteException { in linkToDeath()
106 public boolean unlinkToDeath(DeathRecipient recipient, int flags) { in unlinkToDeath()
141 DeathRecipient r1 = mock(DeathRecipient.class); in testRegisterAndUnregister()
142 DeathRecipient r2 = mock(DeathRecipient.class); in testRegisterAndUnregister()
143 DeathRecipient r3 = mock(DeathRecipient.class); in testRegisterAndUnregister()
144 DeathRecipient r4 = mock(DeathRecipient.class); in testRegisterAndUnregister()
145 DeathRecipient r5 = mock(DeathRecipient.class); in testRegisterAndUnregister()
204 DeathRecipient r1 = mock(DeathRecipient.class); in testRegisterAndKill()
[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/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/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<>();
66 final ArraySet<DeathRecipient> copy; in binderDied()
92 public int linkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in linkToDeath()
112 public void unlinkToDeath(@NonNull T target, @NonNull DeathRecipient recipient) { in unlinkToDeath()
/frameworks/base/core/java/android/os/
DIHwBinder.java49 public interface DeathRecipient { interface
65 public boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath()
71 public boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath()
DHwRemoteBinder.java47 public native boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath()
48 public native boolean unlinkToDeath(DeathRecipient recipient); in unlinkToDeath()
63 private static final void sendDeathNotice(DeathRecipient recipient, long cookie) { in sendDeathNotice()
DIBinder.java273 public interface DeathRecipient { interface
293 public void linkToDeath(@NonNull DeathRecipient recipient, int flags) in linkToDeath()
314 public boolean unlinkToDeath(@NonNull DeathRecipient recipient, int flags); in unlinkToDeath()
/frameworks/native/libs/binder/include/binder/
DIBinder.h103 class DeathRecipient : public virtual RefBase
136 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient,
151 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient,
154 wp<DeathRecipient>* outRecipient = nullptr) = 0;
DBpBinder.h51 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient,
56 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient,
59 wp<DeathRecipient>* outRecipient = nullptr);
121 wp<DeathRecipient> recipient;
DBinder.h44 virtual status_t linkToDeath(const sp<DeathRecipient>& recipient,
49 virtual status_t unlinkToDeath( const wp<DeathRecipient>& recipient,
52 wp<DeathRecipient>* outRecipient = nullptr);
DActivityManager.h82 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient);
83 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient);
/frameworks/base/telephony/java/android/telephony/mbms/vendor/
DMbmsDownloadServiceBase.java54 private final Map<IBinder, DeathRecipient> mDownloadCallbackDeathRecipients = new HashMap<>();
163 callback.asBinder().linkToDeath(new DeathRecipient() { in initialize()
279 DeathRecipient deathRecipient = new DeathRecipient() { in addStatusListener()
330 DeathRecipient deathRecipient = in removeStatusListener()
392 DeathRecipient deathRecipient = new DeathRecipient() { in addProgressListener()
443 DeathRecipient deathRecipient = in removeProgressListener()
/frameworks/base/services/core/java/com/android/server/
DSensorPrivacyService.java229 private final ArrayMap<ISensorPrivacyListener, DeathRecipient> mDeathRecipients;
248 DeathRecipient deathRecipient = new DeathRecipient(listener); in addListener()
256 DeathRecipient deathRecipient = mDeathRecipients.remove(listener); in removeListener()
278 private final class DeathRecipient implements IBinder.DeathRecipient { class in SensorPrivacyService
282 DeathRecipient(ISensorPrivacyListener listener) { in DeathRecipient() method in SensorPrivacyService.DeathRecipient
DDynamicSystemService.java26 import android.os.IBinder.DeathRecipient;
42 public class DynamicSystemService extends IDynamicSystemService.Stub implements DeathRecipient {
54 private static IGsiService connect(DeathRecipient recipient) throws RemoteException { in connect()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DAnnouncementAggregator.java40 private final IBinder.DeathRecipient mDeathRecipient = new DeathRecipient();
75 private class DeathRecipient implements IBinder.DeathRecipient { class in AnnouncementAggregator
DBroadcastRadioService.java30 import android.os.IHwBinder.DeathRecipient;
97 private DeathRecipient mDeathRecipient = new DeathRecipient() {
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/
DSensorPrivacyManager.h37 status_t linkToDeath(const sp<IBinder::DeathRecipient>& recipient);
38 status_t unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiTrafficPollerTest.java130 verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in registersForBinderDeathOnAddClient()
140 .when(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in addCallbackFailureOnLinkToDeath()
143 verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in addCallbackFailureOnLinkToDeath()
/frameworks/base/core/java/android/database/
DCursorToBulkCursorAdaptor.java35 implements IBinder.DeathRecipient {
58 public ContentObserverProxy(IContentObserver remoteObserver, DeathRecipient recipient) { in ContentObserverProxy()
68 public boolean unlinkToDeath(DeathRecipient recipient) { in unlinkToDeath()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java69 private final Map<IBinder, IBinder.DeathRecipient> mDeathEaters;
87 mDeathEaters = new ArrayMap<IBinder, IBinder.DeathRecipient>(); in MediaProjectionManagerService()
179 IBinder.DeathRecipient deathRecipient = new IBinder.DeathRecipient() { in addCallback()
199 IBinder.DeathRecipient deathRecipient) { in linkDeathRecipientLocked()
211 IBinder.DeathRecipient deathRecipient = mDeathEaters.remove(token); in unlinkDeathRecipientLocked()
405 private IBinder.DeathRecipient mDeathEater;
484 mDeathEater = new IBinder.DeathRecipient() { in start()
/frameworks/native/libs/sensorprivacy/
DSensorPrivacyManager.cpp88 status_t SensorPrivacyManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) in linkToDeath()
97 status_t SensorPrivacyManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) in unlinkToDeath()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DPinnedSliceStateTest.java27 import android.os.IBinder.DeathRecipient;
153 ArgumentCaptor<DeathRecipient> arg = ArgumentCaptor.forClass(DeathRecipient.class); in testListenerDeath()
/frameworks/native/libs/binder/
DActivityManager.cpp101 status_t ActivityManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in linkToDeath()
109 status_t ActivityManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in unlinkToDeath()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DExternalCallbackTrackerTest.java115 ArgumentCaptor<IBinder.DeathRecipient> deathCaptor = in testCallbackRemovalOnDeath()
116 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in testCallbackRemovalOnDeath()

1234567891011