Home
last modified time | relevance | path

Searched refs:linkToDeath (Results 1 – 25 of 182) sorted by relevance

12345678

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiHalHidlImplTest.java110 when(mIServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), anyLong())) in setUp()
116 when(mIWifiMock.linkToDeath(any(IHwBinder.DeathRecipient.class), anyLong())) in setUp()
134 verify(mIWifiMock, never()).linkToDeath(any(), anyLong()); in testServiceRegistrationAfterInitialize()
153 verify(mIWifiMock, times(2)).linkToDeath(any(), anyLong()); in testWifiDeathAndRegistration()
160 verify(mIServiceManagerMock).linkToDeath(any(), anyLong()); in executeAndValidateInitializationSequence()
166 verify(mIWifiMock).linkToDeath(mDeathRecipientCaptor.capture(), anyLong()); in executeAndValidateInitializationSequence()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperV1Test.java216 mAudioControlWrapperV1.linkToDeath(deathRecipient); in linkToDeath_succeeds()
218 verify(mAudioControlV1).linkToDeath(any(), eq(0L)); in linkToDeath_succeeds()
223 doThrow(new RemoteException()).when(mAudioControlV1).linkToDeath(any(), eq(0L)); in linkToDeath_throws()
228 () -> mAudioControlWrapperV1.linkToDeath(deathRecipient)); in linkToDeath_throws()
239 mAudioControlWrapperV1.linkToDeath(deathRecipient); in unlinkToDeath_succeeds()
251 mAudioControlWrapperV1.linkToDeath(deathRecipient); in unlinkToDeath_throws()
DAudioControlWrapperV2Test.java262 mAudioControlWrapperV2.linkToDeath(deathRecipient); in linkToDeath_succeeds()
264 verify(mAudioControlV2).linkToDeath(any(), eq(0L)); in linkToDeath_succeeds()
269 doThrow(new RemoteException()).when(mAudioControlV2).linkToDeath(any(), eq(0L)); in linkToDeath_throws()
274 () -> mAudioControlWrapperV2.linkToDeath(deathRecipient)); in linkToDeath_throws()
285 mAudioControlWrapperV2.linkToDeath(deathRecipient); in unlinkToDeath_succeeds()
297 mAudioControlWrapperV2.linkToDeath(deathRecipient); in unlinkToDeath_throws()
DAudioControlWrapperAidlTest.java471 mAudioControlWrapperAidl.linkToDeath(null); in linkToDeath_callsBinder()
473 verify(mBinder).linkToDeath(any(DeathRecipient.class), eq(0)); in linkToDeath_callsBinder()
479 .linkToDeath(any(DeathRecipient.class), anyInt()); in linkToDeath_throws()
482 () -> mAudioControlWrapperAidl.linkToDeath(null)); in linkToDeath_throws()
491 mAudioControlWrapperAidl.linkToDeath(null); in unlinkToDeath_callsBinder()
500 mAudioControlWrapperAidl.linkToDeath(null); in binderDied_fetchesNewBinder()
503 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_fetchesNewBinder()
513 mAudioControlWrapperAidl.linkToDeath(null); in binderDied_relinksToDeath()
516 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_relinksToDeath()
521 verify(mBinder, times(2)).linkToDeath(any(DeathRecipient.class), eq(0)); in binderDied_relinksToDeath()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DExternalPnoScanRequestManagerTest.java106 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testSetRequest_success()
133 doThrow(new RemoteException()).when(mIBinder).linkToDeath( in testSetRequest_linkToDeathFailed()
137 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testSetRequest_linkToDeathFailed()
153 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testRemoveRequest_explicit()
177 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testRemoveRequest_afterDelivery()
227 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testRemoveRequest_noDeliveryIfNoMatch()
261 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testKeepRequest_afterBinderDeath()
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()
DTwtManagerTest.java250 inOrderBinder.verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testSetupTwtSession()
262 inOrderBinder.verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testSetupTwtSession()
309 inOrderBinder.verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testTeardownTwtSession()
326 inOrderBinder.verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testTeardownTwtSession()
357 inOrderBinder.verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testGetStatsSession()
388 inOrderBinder.verify(mAppBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testDisconnect()
DLocalOnlyHotspotRequestInfoTest.java74 verify(mAppBinder).linkToDeath(eq(mLOHSRequestInfo), eq(0)); in verifyBinderLinkToDeathIsCalled()
124 .linkToDeath(any(IBinder.DeathRecipient.class), eq(0)); in verifyRemoteExceptionTriggersCallback()
DHostapdHalHidlImpTest.java179 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
185 when(mIHostapdMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
187 when(mIHostapdMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
730 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequence()
738 mInOrder.verify(mIHostapdMock).linkToDeath(mHostapdDeathCaptor.capture(), in executeAndValidateInitializationSequence()
742 mInOrder.verify(mIHostapdMock, never()).linkToDeath( in executeAndValidateInitializationSequence()
774 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_1()
781 mInOrder.verify(mIHostapdMock).linkToDeath(mHostapdDeathCaptor.capture(), anyLong()); in executeAndValidateInitializationSequenceV1_1()
814 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_2()
821 mInOrder.verify(mIHostapdMock).linkToDeath(mHostapdDeathCaptor.capture(), anyLong()); in executeAndValidateInitializationSequenceV1_2()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DAIBinderDeathRegistrationWrapper.h33 virtual ndk::ScopedAStatus linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
45 ndk::ScopedAStatus linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
DAIBinderDeathRegistrationWrapper.cpp25 ScopedAStatus AIBinderDeathRegistrationWrapper::linkToDeath(AIBinder* binder, in linkToDeath() function in android::automotive::watchdog::AIBinderDeathRegistrationWrapper
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperV1.java172 public void linkToDeath(@Nullable AudioControlDeathRecipient deathRecipient) { in linkToDeath() method in AudioControlWrapperV1
174 mAudioControlV1.linkToDeath(this::serviceDied, 0); in linkToDeath()
194 linkToDeath(mDeathRecipient); in serviceDied()
DAudioControlWrapperV2.java181 public void linkToDeath(@Nullable AudioControlDeathRecipient deathRecipient) { in linkToDeath() method in AudioControlWrapperV2
183 mAudioControlV2.linkToDeath(this::serviceDied, 0); in linkToDeath()
203 linkToDeath(mDeathRecipient); in serviceDied()
/packages/services/Car/cpp/watchdog/server/tests/
DMockAIBinderDeathRegistrationWrapper.h31 EXPECT_CALL(*this, linkToDeath(testing::_, testing::_, testing::_)) in MockAIBinderDeathRegistrationWrapper()
37 MOCK_METHOD(ndk::ScopedAStatus, linkToDeath, (AIBinder*, AIBinder_DeathRecipient*, void*),
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceRefcountedResourceTest.java114 verify(binderMock).linkToDeath(anyObject(), anyInt()); in testConstructor()
132 verify(binderMockChild).linkToDeath(anyObject(), anyInt()); in testConstructorWithChildren()
133 verify(binderMockParent).linkToDeath(anyObject(), anyInt()); in testConstructorWithChildren()
139 doThrow(new RemoteException()).when(binderMock).linkToDeath(anyObject(), anyInt()); in testFailLinkToDeath()
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java418 linkToDeath(); in makeBinderConnection()
425 private void linkToDeath() { in linkToDeath() method in CarWatchdogDaemonHelper
438 binder.linkToDeath(mDeathRecipient, 0); in linkToDeath()
/packages/services/Car/service/src/com/android/car/
DBinderInterfaceContainer.java101 binder.linkToDeath(bInterface, 0); in addBinder()
142 binder.linkToDeath(bInterface, 0); in addBinderInterface()
DVehicleStub.java218 public abstract void linkToDeath(DeathRecipient recipient) throws RemoteException; in linkToDeath() method in VehicleStub.VehicleStubCallbackInterface
308 public abstract void linkToDeath(IVehicleDeathRecipient recipient) throws IllegalStateException; in linkToDeath() method in VehicleStub
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/registration/
DBinderListenerRegistrationTest.java64 verify(binder, times(1)).linkToDeath(any(), anyInt()); in test_addAndRemove()
77 verify(binder2, times(1)).linkToDeath(any(), anyInt()); in test_addAndRemove()
/packages/modules/Media/apex/framework/java/android/media/
DSession2Link.java91 public void linkToDeath(@NonNull IBinder.DeathRecipient recipient, int flags) { in linkToDeath() method in Session2Link
94 mISession.asBinder().linkToDeath(recipient, flags); in linkToDeath()
/packages/services/Car/service/jni/evs/
DLinkUnlinkToDeathBase.h27 virtual binder_status_t linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
/packages/services/Car/service/jni/test-libs/
DMockEvsServiceFactory.cpp42 binder_status_t MockLinkUnlinkToDeath::linkToDeath(AIBinder*, AIBinder_DeathRecipient*, in linkToDeath() function in android::automotive::evs::MockLinkUnlinkToDeath
/packages/services/Car/car-lib/src/android/car/app/
DCarSystemUIProxyAidlWrapper.java52 client.asBinder().linkToDeath(clientDeathRecipient, /* flags= */ 0); in createCarTaskView()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DDppManager.java343 if (!linkToDeath(mDppRequestInfo)) { in startDppAsConfiguratorInitiator()
434 if (!linkToDeath(mDppRequestInfo)) { in startDppAsEnrolleeInitiator()
512 if (!linkToDeath(mDppRequestInfo)) { in startDppAsEnrolleeResponder()
1085 private boolean linkToDeath(DppRequestInfo dppRequestInfo) { in linkToDeath() method in DppManager
1115 dppRequestInfo.binder.linkToDeath(dppRequestInfo.dr, 0); in linkToDeath()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAidlVehicleStubUnitTest.java171 mAidlVehicleStub.linkToDeath(recipient); in testLinkToDeathAidl()
173 verify(mAidlBinder).linkToDeath(recipient, 0); in testLinkToDeathAidl()
179 doThrow(new RemoteException()).when(mAidlBinder).linkToDeath(recipient, 0); in testLinkToDeathRemoteException()
181 mAidlVehicleStub.linkToDeath(recipient); in testLinkToDeathRemoteException()
631 }).when(mAsyncCallback).linkToDeath(any()); in testGetAsyncAidlBinderDiedAfterRegisterCallback()
640 verify(mAsyncCallback).linkToDeath(any()); in testGetAsyncAidlBinderDiedAfterRegisterCallback()
667 }).when(mAsyncCallback).linkToDeath(any()); in testGetAsyncAidlBinderDiedWhileRegisterCallback()
676 verify(mAsyncCallback).linkToDeath(any()); in testGetAsyncAidlBinderDiedWhileRegisterCallback()
692 doThrow(new RemoteException()).when(mAsyncCallback).linkToDeath(any()); in testGetAsyncAidlBinderDiedBeforeRegisterCallback()

12345678