Home
last modified time | relevance | path

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

1234

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java271 mAudioControlWrapperAidl.linkToDeath(null); in linkToDeath_callsBinder()
273 verify(mBinder).linkToDeath(any(DeathRecipient.class), eq(0)); in linkToDeath_callsBinder()
278 mAudioControlWrapperAidl.linkToDeath(null); in binderDied_fetchesNewBinder()
281 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_fetchesNewBinder()
291 mAudioControlWrapperAidl.linkToDeath(null); in binderDied_relinksToDeath()
294 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_relinksToDeath()
299 verify(mBinder, times(2)).linkToDeath(any(DeathRecipient.class), eq(0)); in binderDied_relinksToDeath()
304 mAudioControlWrapperAidl.linkToDeath(mDeathRecipient); in binderDied_callsDeathRecipient()
308 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_callsDeathRecipient()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperV1.java147 public void linkToDeath(@Nullable AudioControlDeathRecipient deathRecipient) { in linkToDeath() method in AudioControlWrapperV1
149 mAudioControlV1.linkToDeath(this::serviceDied, 0); in linkToDeath()
169 linkToDeath(mDeathRecipient); in serviceDied()
DAudioControlWrapperV2.java157 public void linkToDeath(@Nullable AudioControlDeathRecipient deathRecipient) { in linkToDeath() method in AudioControlWrapperV2
159 mAudioControlV2.linkToDeath(this::serviceDied, 0); in linkToDeath()
179 linkToDeath(mDeathRecipient); in serviceDied()
DAudioControlWrapperAidl.java178 public void linkToDeath(@Nullable AudioControlDeathRecipient deathRecipient) { in linkToDeath() method in AudioControlWrapperAidl
180 mBinder.linkToDeath(this::binderDied, 0); in linkToDeath()
198 linkToDeath(mDeathRecipient); in binderDied()
/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/server/tests/
DWatchdogServiceHelperTest.cpp120 EXPECT_CALL(*mMockCarWatchdogServiceForSystemBinder, linkToDeath(_, nullptr, 0)) in registerCarWatchdogService()
184 EXPECT_CALL(*mMockCarWatchdogServiceForSystemBinder, linkToDeath(_, nullptr, 0)) in TEST_F()
193 EXPECT_CALL(*mMockCarWatchdogServiceForSystemBinder, linkToDeath(_, nullptr, 0)).Times(0); in TEST_F()
202 EXPECT_CALL(*mMockCarWatchdogServiceForSystemBinder, linkToDeath(_, nullptr, 0)) in TEST_F()
212 EXPECT_CALL(*mMockCarWatchdogServiceForSystemBinder, linkToDeath(_, nullptr, 0)) in TEST_F()
DMockBinder.h32 EXPECT_CALL(*this, linkToDeath(::testing::_, nullptr, 0)) in MockBinder()
37 MOCK_METHOD(android::status_t, linkToDeath,
DWatchdogProcessServiceTest.cpp78 EXPECT_CALL(*binder, linkToDeath(_, nullptr, 0)).WillRepeatedly(Return(linkToDeathResult)); in createMockCarWatchdogClient()
87 EXPECT_CALL(*binder, linkToDeath(_, nullptr, 0)).WillRepeatedly(Return(linkToDeathResult)); in createMockCarWatchdogMonitor()
DMockResourceOveruseListener.h42 EXPECT_CALL(*mMockBinder, linkToDeath(::testing::_, nullptr, 0)) in injectLinkToDeathFailure()
/packages/services/Car/service/src/com/android/car/
DCarService.java94 linkToDeath(mVehicle, mVehicleDeathRecipient); in onCreate()
185 private static void linkToDeath(IVehicle vehicle, DeathRecipient recipient) { in linkToDeath() method in CarService
187 vehicle.linkToDeath(recipient, 0); in linkToDeath()
DBinderInterfaceContainer.java101 binder.linkToDeath(bInterface, 0); in addBinder()
142 binder.linkToDeath(bInterface, 0); in addBinderInterface()
DInputCaptureClientController.java133 private void linkToDeath() throws RemoteException { in linkToDeath() method in InputCaptureClientController.ClientInfoForDisplay
134 mCallback.asBinder().linkToDeath(this, 0); in linkToDeath()
316 newClient.linkToDeath(); in requestInputEventCapture()
/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()
DHostapdHalTest.java177 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()
728 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequence()
736 mInOrder.verify(mIHostapdMock).linkToDeath(mHostapdDeathCaptor.capture(), in executeAndValidateInitializationSequence()
740 mInOrder.verify(mIHostapdMock, never()).linkToDeath( in executeAndValidateInitializationSequence()
772 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_1()
779 mInOrder.verify(mIHostapdMock).linkToDeath(mHostapdDeathCaptor.capture(), anyLong()); in executeAndValidateInitializationSequenceV1_1()
812 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_2()
819 mInOrder.verify(mIHostapdMock).linkToDeath(mHostapdDeathCaptor.capture(), anyLong()); in executeAndValidateInitializationSequenceV1_2()
[all …]
DLocalOnlyHotspotRequestInfoTest.java71 verify(mAppBinder).linkToDeath(eq(mLOHSRequestInfo), eq(0)); in verifyBinderLinkToDeathIsCalled()
120 .linkToDeath(any(IBinder.DeathRecipient.class), eq(0)); in verifyRemoteExceptionTriggersCallback()
DSupplicantStaIfaceHalTest.java284 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
288 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
1788 }).when(mISupplicantMock).linkToDeath(any(IHwBinder.DeathRecipient.class), any(long.class)); in testTerminateV1_0()
1811 }).when(mISupplicantMock).linkToDeath(any(IHwBinder.DeathRecipient.class), any(long.class)); in testTerminateV1_1()
2461 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequence()
2470 mInOrder.verify(mISupplicantMock).linkToDeath(mSupplicantDeathCaptor.capture(), in executeAndValidateInitializationSequence()
2524 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_1()
2533 mInOrder.verify(mISupplicantMock).linkToDeath(mSupplicantDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_1()
2596 mInOrder.verify(mServiceManagerMock).linkToDeath(mServiceManagerDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_2()
2605 mInOrder.verify(mISupplicantMock).linkToDeath(mSupplicantDeathCaptor.capture(), in executeAndValidateInitializationSequenceV1_2()
[all …]
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java344 linkToDeath(); in makeBinderConnection()
351 private void linkToDeath() { in linkToDeath() method in CarWatchdogDaemonHelper
364 binder.linkToDeath(mDeathRecipient, 0); in linkToDeath()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DDppManager.java273 if (!linkToDeath(mDppRequestInfo)) { in startDppAsConfiguratorInitiator()
358 if (!linkToDeath(mDppRequestInfo)) { in startDppAsEnrolleeInitiator()
436 if (!linkToDeath(mDppRequestInfo)) { in startDppAsEnrolleeResponder()
917 private boolean linkToDeath(DppRequestInfo dppRequestInfo) { in linkToDeath() method in DppManager
935 dppRequestInfo.binder.linkToDeath(dppRequestInfo.dr, 0); in linkToDeath()
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp36 MOCK_METHOD(status_t, linkToDeath,
51 EXPECT_CALL(*mBinder, linkToDeath(_, nullptr, 0)).WillRepeatedly(Return(linkToDeathResult)); in expectLinkToDeathStatus()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogProcessHandler.java152 clientInfo.linkToDeath(); in registerClient()
424 private void linkToDeath() throws RemoteException { in linkToDeath() method in WatchdogProcessHandler.ClientInfo
425 client.asBinder().linkToDeath(this, 0); in linkToDeath()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.cpp197 status_t ret = binder->linkToDeath(mBinderDeathRecipient); in registerMonitor()
427 status_t status = clientInfo.linkToDeath(mBinderDeathRecipient); in registerClientLocked()
714 mVhalService->linkToDeath(mHidlDeathRecipient, /*cookie=*/0); in connectToVhalLocked()
849 status_t WatchdogProcessService::ClientInfo::linkToDeath( in linkToDeath() function in android::automotive::watchdog::WatchdogProcessService::ClientInfo
852 return BnCarWatchdogClient::asBinder(client)->linkToDeath(recipient); in linkToDeath()
/packages/services/Car/cpp/watchdog/vts/
DVtsAidlWatchdogTargetTest.cpp106 MOCK_METHOD(status_t, linkToDeath, (const sp<DeathRecipient>&, void*, uint32_t), (override));
119 EXPECT_CALL(*mMockBinder, linkToDeath(_, nullptr, 0)).WillRepeatedly(Return(OK)); in expectNormalBinder()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSystemUiProxy.java142 linkToDeath(); in setProxy()
180 private void linkToDeath() { in linkToDeath() method in SystemUiProxy
183 mSystemUiProxy.asBinder().linkToDeath(mSystemUiProxyDeathRecipient, 0 /* flags */); in linkToDeath()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java209 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()
337 }).when(mISupplicantMock).linkToDeath(any(IHwBinder.DeathRecipient.class), in testMisorderSupplicantDeathHandlingV1_1()
2800 mInOrder.verify(mServiceManagerMock).linkToDeath( in executeAndValidateInitializationSequence()
2806 mInOrder.verify(mISupplicantMock).linkToDeath( in executeAndValidateInitializationSequence()
2820 mInOrder.verify(mISupplicantP2pIfaceMock).linkToDeath( in executeAndValidateInitializationSequence()
2857 mInOrder.verify(mServiceManagerMock).linkToDeath( in executeAndValidateInitializationSequenceV1_1()
2863 mInOrder.verify(mISupplicantMock).linkToDeath( in executeAndValidateInitializationSequenceV1_1()
2876 mInOrder.verify(mISupplicantP2pIfaceMock).linkToDeath( in executeAndValidateInitializationSequenceV1_1()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java444 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListener()
480 verify(mockBinder).linkToDeath(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()
558 verify(mockBinder).linkToDeath(any(IBinder.DeathRecipient.class), anyInt()); in testResourceOveruseListenerForSystem()
1296 .linkToDeath(deathRecipientCaptor.capture(), anyInt()); in captureDaemonBinderDeathRecipient()
1310 }).when(mMockBinder).linkToDeath(any(), anyInt()); in restartWatchdogDaemonAndAwait()

1234