Home
last modified time | relevance | path

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

1234

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java21 import static android.os.IBinder.DeathRecipient;
273 verify(mBinder).linkToDeath(any(DeathRecipient.class), eq(0)); in linkToDeath_callsBinder()
280 ArgumentCaptor<DeathRecipient> captor = ArgumentCaptor.forClass(DeathRecipient.class); in binderDied_fetchesNewBinder()
282 IBinder.DeathRecipient deathRecipient = captor.getValue(); in binderDied_fetchesNewBinder()
293 ArgumentCaptor<DeathRecipient> captor = ArgumentCaptor.forClass(DeathRecipient.class); in binderDied_relinksToDeath()
295 IBinder.DeathRecipient deathRecipient = captor.getValue(); in binderDied_relinksToDeath()
299 verify(mBinder, times(2)).linkToDeath(any(DeathRecipient.class), eq(0)); in binderDied_relinksToDeath()
306 ArgumentCaptor<DeathRecipient> captor = ArgumentCaptor.forClass( in binderDied_callsDeathRecipient()
307 IBinder.DeathRecipient.class); in binderDied_callsDeathRecipient()
309 IBinder.DeathRecipient deathRecipient = captor.getValue(); in binderDied_callsDeathRecipient()
/packages/services/Car/cpp/watchdog/server/tests/
DMockBinder.h38 (const android::sp<android::IBinder::DeathRecipient>&, void*, uint32_t),
41 (const android::wp<android::IBinder::DeathRecipient>&, void*, uint32_t,
42 android::wp<android::IBinder::DeathRecipient>*),
/packages/modules/Virtualization/vm/src/
Drun.rs24 BinderFeatures, DeathRecipient, IBinder, ParcelFileDescriptor, Strong,
79 fn wait_for_death(binder: &mut impl IBinder, dead: AtomicFlag) -> Result<DeathRecipient, Error> { in wait_for_death() argument
80 let mut death_recipient = DeathRecipient::new(move || { in wait_for_death()
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp37 (const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags), (override));
39 (const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags,
40 wp<DeathRecipient>* outRecipient),
/packages/services/Car/service/src/com/android/car/
DCarService.java27 import android.os.IHwBinder.DeathRecipient;
175 private class VehicleDeathRecipient implements DeathRecipient {
185 private static void linkToDeath(IVehicle vehicle, DeathRecipient recipient) { in linkToDeath()
DCarTestService.java103 DeathRecipient deathRecipient = mTokens.remove(token); in releaseToken()
114 private class TokenDeathRecipient implements DeathRecipient {
DCarProjectionService.java1002 public @Nullable DeathRecipient deathRecipient;
1030 private static class WirelessClientDeathRecipient implements DeathRecipient {
1053 private final DeathRecipient mDeathRecipient;
1056 ProjectionReceiverClient(DeathRecipient deathRecipient) { in ProjectionReceiverClient()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java341 ArgumentCaptor<IBinder.DeathRecipient> deathRecipient = ArgumentCaptor in testBinderDeath()
342 .forClass(IBinder.DeathRecipient.class); in testBinderDeath()
698 IBinder.DeathRecipient dr = getInternalStateDeathRecipient(clientId); in validateInternalStateCleanedUp()
776 private IBinder.DeathRecipient getInternalStateDeathRecipient(int clientId) throws Exception { in getInternalStateDeathRecipient()
780 SparseArray<IBinder.DeathRecipient> deathRecipientsByClientId = in getInternalStateDeathRecipient()
781 (SparseArray<IBinder.DeathRecipient>) field.get(mDut); in getInternalStateDeathRecipient()
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientInfo.java48 private final IBinder.DeathRecipient mDeathRecipient;
65 IBinder.DeathRecipient deathRecipient) { in VmsClientInfo()
89 IBinder.DeathRecipient getDeathRecipient() { in getDeathRecipient()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiTrafficPollerTest.java183 verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in registersForBinderDeathOnAddClient()
193 .when(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in addCallbackFailureOnLinkToDeath()
195 verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in addCallbackFailureOnLinkToDeath()
DWifiLockManagerTest.java124 ArgumentCaptor<IBinder.DeathRecipient> deathRecipient = in acquireWifiLockSuccessful()
125 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in acquireWifiLockSuccessful()
147 ArgumentCaptor<IBinder.DeathRecipient> deathRecipient = in releaseWifiLockSuccessful()
148 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in releaseWifiLockSuccessful()
157 ArgumentCaptor<IBinder.DeathRecipient> deathRecipient = in releaseWifiLockSuccessful_noBatteryStats()
158 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in releaseWifiLockSuccessful_noBatteryStats()
166 ArgumentCaptor<IBinder.DeathRecipient> deathRecipient = in releaseLowLatencyWifiLockSuccessful()
167 ArgumentCaptor.forClass(IBinder.DeathRecipient.class); in releaseLowLatencyWifiLockSuccessful()
DSupplicantStaIfaceHalTest.java184 private ArgumentCaptor<IHwBinder.DeathRecipient> mServiceManagerDeathCaptor =
185 ArgumentCaptor.forClass(IHwBinder.DeathRecipient.class);
186 private ArgumentCaptor<IHwBinder.DeathRecipient> mSupplicantDeathCaptor =
187 ArgumentCaptor.forClass(IHwBinder.DeathRecipient.class);
188 private ArgumentCaptor<IHwBinder.DeathRecipient> mSupplicantStaIfaceDeathCaptor =
189 ArgumentCaptor.forClass(IHwBinder.DeathRecipient.class);
284 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
288 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
1784 public boolean answer(IHwBinder.DeathRecipient cb, long cookie) throws RemoteException { in testTerminateV1_0()
1788 }).when(mISupplicantMock).linkToDeath(any(IHwBinder.DeathRecipient.class), any(long.class)); in testTerminateV1_0()
[all …]
DHostapdHalTest.java94 private ArgumentCaptor<IHwBinder.DeathRecipient> mServiceManagerDeathCaptor =
95 ArgumentCaptor.forClass(IHwBinder.DeathRecipient.class);
96 private ArgumentCaptor<IHwBinder.DeathRecipient> mHostapdDeathCaptor =
97 ArgumentCaptor.forClass(IHwBinder.DeathRecipient.class);
177 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
183 when(mIHostapdMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
185 when(mIHostapdMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
/packages/services/Car/cpp/watchdog/vts/
DVtsAidlWatchdogTargetTest.cpp106 MOCK_METHOD(status_t, linkToDeath, (const sp<DeathRecipient>&, void*, uint32_t), (override));
108 (const wp<DeathRecipient>&, void*, uint32_t, wp<DeathRecipient>* outRecipient),
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java134 private IBinder.DeathRecipient mCarWatchdogDaemonBinderDeathRecipient;
444 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListener()
456 verify(mockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListener()
480 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testDuplicateAddResourceOveruseListener()
485 verify(mockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testDuplicateAddResourceOveruseListener()
504 verify(firstMockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testAddMultipleResourceOveruseListeners()
505 verify(secondMockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testAddMultipleResourceOveruseListeners()
517 verify(firstMockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testAddMultipleResourceOveruseListeners()
529 verify(secondMockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testAddMultipleResourceOveruseListeners()
558 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListenerForSystem()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java75 private final SparseArray<IBinder.DeathRecipient> mDeathRecipientsByClientId =
233 IBinder.DeathRecipient dr = new IBinder.DeathRecipient() { in connect()
283 IBinder.DeathRecipient dr = mDeathRecipientsByClientId.get(clientId); in disconnect()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java97 private IHwBinder.DeathRecipient mDeathRecipient = null;
151 private ArgumentCaptor<IHwBinder.DeathRecipient> mDeathRecipientCaptor =
152 ArgumentCaptor.forClass(IHwBinder.DeathRecipient.class);
209 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
213 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
215 when(mISupplicantP2pIfaceMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
333 public boolean answer(IHwBinder.DeathRecipient cb, long cookie) throws RemoteException { in testMisorderSupplicantDeathHandlingV1_1()
337 }).when(mISupplicantMock).linkToDeath(any(IHwBinder.DeathRecipient.class), in testMisorderSupplicantDeathHandlingV1_1()
2801 any(IHwBinder.DeathRecipient.class), anyLong()); in executeAndValidateInitializationSequence()
2807 any(IHwBinder.DeathRecipient.class), anyLong()); in executeAndValidateInitializationSequence()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.h106 status_t linkToDeath(const android::sp<android::IBinder::DeathRecipient>& recipient) const;
108 const android::wp<android::IBinder::DeathRecipient>& recipient) const;
138 class BinderDeathRecipient : public android::IBinder::DeathRecipient {
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java71 private final IBinder.DeathRecipient mDeathRecipient = new IBinder.DeathRecipient() {
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DGridCustomizationsProvider.java21 import android.os.IBinder.DeathRecipient;
248 private class PreviewLifecycleObserver implements Handler.Callback, DeathRecipient {
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsObserversTest.java196 Mockito.verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testUnregister_knownRequest_releasesCaller()
201 Mockito.verify(mockBinder).unlinkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testUnregister_knownRequest_releasesCaller()
214 Mockito.verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testUnregister_knownRequest_invalidUid_doesNotUnregister()
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java97 private IBinder.DeathRecipient mDeathRecipient = new IBinder.DeathRecipient() {
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java84 private IBinder.DeathRecipient mDeathRecipient;
134 void linkToDeath(IBinder.DeathRecipient deathRecipient) { in linkToDeath()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DHostapdHal.java36 import android.os.IHwBinder.DeathRecipient;
104 private class ServiceManagerDeathRecipient implements DeathRecipient {
116 private class HostapdDeathRecipient implements DeathRecipient {
278 private boolean linkToHostapdDeath(DeathRecipient deathRecipient, long cookie) { in linkToHostapdDeath()
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java446 IBinder.DeathRecipient dr = new IBinder.DeathRecipient() { in startRanging()
679 IBinder.DeathRecipient dr, String callingPackage, String callingFeatureId, in queueRangingRequest()
1190 public IBinder.DeathRecipient dr;

1234