Home
last modified time | relevance | path

Searched refs:asBinder (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DRegistrationBinderTest.java158 doReturn(new Binder()).when(callback).asBinder();
161 verify(callback, atLeastOnce()).asBinder();
173 doReturn(new Binder()).when(callback).asBinder();
176 verify(callback, atLeastOnce()).asBinder();
189 doReturn(new Binder()).when(callback).asBinder();
207 doReturn(new Binder()).when(callback).asBinder();
229 doReturn(new Binder()).when(callback).asBinder();
235 verify(callback, atLeastOnce()).asBinder();
246 doReturn(new Binder()).when(callback).asBinder();
251 verify(callback, atLeastOnce()).asBinder();
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeCallbackHandlerTest.java47 mHandler.registerCallback(mCallback1.asBinder(), uid, true); in setUp()
49 mHandler.registerCallback(mCallback2.asBinder(), uid, true); in setUp()
55 mHandler.unregisterCallback(mCallback1.asBinder(), uid); in tearDown()
56 mHandler.unregisterCallback(mCallback2.asBinder(), uid); in tearDown()
87 mHandler.unregisterCallback(mCallback1.asBinder(), uid); in onVolumeGroupChange_doesNotCallUnregisteredCallbacks()
112 mHandler.unregisterCallback(mCallback1.asBinder(), uid); in onVolumeGroupChange_callReprioritizedCallback()
113 mHandler.unregisterCallback(mCallback2.asBinder(), uid); in onVolumeGroupChange_callReprioritizedCallback()
115 mHandler.registerCallback(mCallback2.asBinder(), uid, false); in onVolumeGroupChange_callReprioritizedCallback()
153 mHandler.unregisterCallback(mCallback1.asBinder(), uid); in onGroupMuteChanged_doesNotCallUnregisteredCallbacks()
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogServiceHelperTest.cpp108 expectUnlinkToDeath(mMockCarWatchdogServiceForSystem->asBinder().get(), in TearDown()
123 expectLinkToDeath(mMockCarWatchdogServiceForSystem->asBinder().get(), in registerCarWatchdogService()
135 return static_cast<void*>(mMockCarWatchdogServiceForSystem->asBinder().get()); in getCarWatchdogServiceForSystemCookie()
188 expectUnlinkToDeath(mMockCarWatchdogServiceForSystem->asBinder().get(), in TEST_F()
197 auto binder = mMockCarWatchdogServiceForSystem->asBinder(); in TEST_F()
218 auto binder = mMockCarWatchdogServiceForSystem->asBinder(); in TEST_F()
233 auto binder = mMockCarWatchdogServiceForSystem->asBinder(); in TEST_F()
247 auto binder = mMockCarWatchdogServiceForSystem->asBinder(); in TEST_F()
264 auto binder = mMockCarWatchdogServiceForSystem->asBinder(); in TEST_F()
283 auto binder = mMockCarWatchdogServiceForSystem->asBinder(); in TEST_F()
[all …]
DWatchdogProcessServiceTest.cpp406 expectLinkToDeath(client->asBinder().get(), std::move(ScopedAStatus::ok())); in TEST_F()
419 AIBinder* aiBinder = client->asBinder().get(); in TEST_F()
437 expectLinkToDeath(client->asBinder().get(), in TEST_F()
447 AIBinder* aiBinder = client->asBinder().get(); in TEST_F()
467 const auto binder = mockService->asBinder(); in TEST_F()
491 const auto binder = mockService->asBinder(); in TEST_F()
500 expectLinkToDeath(monitorOne->asBinder().get(), std::move(ScopedAStatus::ok())); in TEST_F()
520 expectLinkToDeath(monitor->asBinder().get(), in TEST_F()
530 AIBinder* aiBinder = monitor->asBinder().get(); in TEST_F()
549 AIBinder* aiBinder = monitor->asBinder().get(); in TEST_F()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogServiceHelper.cpp83 const auto binder = service->asBinder(); in registerService()
92 if (mService != nullptr && mService->asBinder() == binder) { in registerService()
110 if (mService != nullptr && mService->asBinder() == binder) { in registerService()
130 if (const auto binder = service->asBinder(); in unregisterService()
131 mService == nullptr || binder != mService->asBinder()) { in unregisterService()
149 const auto curBinder = mService->asBinder(); in handleBinderDeath()
167 if (std::shared_lock readLock(mRWMutex); mService == nullptr || mService->asBinder() != who) { in checkIfAlive()
183 if (std::shared_lock readLock(mRWMutex); mService == nullptr || mService->asBinder() != who) { in prepareProcessTermination()
221 const auto binder = mService->asBinder(); in unregisterServiceLocked()
DWatchdogProcessService.cpp306 return unregisterClientLocked(kTimeouts, client->asBinder(), ClientType::Regular); in unregisterClient()
353 const auto binder = monitor->asBinder(); in registerMonitor()
357 if (mMonitor->asBinder() == binder) { in registerMonitor()
360 AIBinder* aiBinder = mMonitor->asBinder().get(); in registerMonitor()
374 if (mMonitor != nullptr && mMonitor->asBinder() == binder) { in registerMonitor()
394 const auto binder = monitor->asBinder(); in unregisterMonitor()
396 if (mMonitor == nullptr || mMonitor->asBinder() != binder) { in unregisterMonitor()
418 return tellClientAliveLocked(client->asBinder(), sessionId); in tellClientAlive()
438 status = tellClientAliveLocked(service->asBinder(), sessionId); in tellCarWatchdogServiceAlive()
450 if (mMonitor == nullptr || monitor == nullptr || mMonitor->asBinder() != monitor->asBinder()) { in tellDumpFinished()
[all …]
/packages/services/Car/service/src/com/android/car/
DBinderInterfaceContainer.java55 binderInterface.asBinder().unlinkToDeath(this, 0); in binderDied()
93 IBinder binder = binderInterface.asBinder(); in addBinder()
114 IBinder binder = binderInterface.asBinder(); in removeBinder()
129 IBinder binder = binderInterface.asBinder(); in getBinderInterface()
139 IBinder binder = bInterface.binderInterface.asBinder(); in addBinderInterface()
175 IBinder binder = bInterface.binderInterface.asBinder(); in clear()
DCarDiagnosticService.java216 listener.asBinder().linkToDeath(diagnosticClient, 0); in registerOrUpdateDiagnosticListener()
470 IBinder binder = listener.asBinder(); in findDiagnosticClientLocked()
508 return mListener.asBinder() == (that.mListener.asBinder()); in equals()
513 return Objects.hash(mListener.asBinder()); in hashCode()
517 return mListener.asBinder() == listenerBinder; in isHoldingListenerBinder()
543 mListener.asBinder().unlinkToDeath(this, 0); in binderDied()
560 mListener.asBinder().unlinkToDeath(this, 0); in release()
/packages/modules/DnsResolver/
DResolverEventReporter.cpp121 if (it->asBinder().get() == listener->asBinder().get()) { in addListenerImplLocked()
145 auto binder = listener->asBinder().get(); in addListenerImplLocked()
172 if (it->asBinder().get() == listener->asBinder().get()) { in addUnsolEventListenerImplLocked()
196 auto binder = listener->asBinder().get(); in addUnsolEventListenerImplLocked()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogProcessHandler.java200 IBinder binder = client.asBinder(); in registerClient()
203 if (binder == clientInfo.client.asBinder()) { in registerClient()
238 IBinder binder = client.asBinder(); in unregisterClient()
251 if (binder == notRespondingClientInfo.client.asBinder()) { in unregisterClient()
268 if (binder != clientInfo.client.asBinder()) { in removeFromClientMapsLocked()
292 if (clientInfo != null && clientInfo.client.asBinder() == client.asBinder()) { in tellClientAlive()
368 removeClientLocked(client.asBinder(), timeout); in onClientDeath()
394 removeClientLocked(clientInfo.client.asBinder(), timeout); in analyzeClientResponse()
458 if (clientBinder == clientInfo.client.asBinder()) { in removeClientLocked()
569 client.asBinder().linkToDeath(this, 0); in linkToDeath()
[all …]
/packages/modules/Media/apex/framework/java/android/media/
DSession2Link.java73 dest.writeStrongBinder(mISession.asBinder()); in writeToParcel()
78 return mISession.asBinder().hashCode(); in hashCode()
87 return Objects.equals(mISession.asBinder(), other.mISession.asBinder()); in equals()
94 mISession.asBinder().linkToDeath(recipient, flags); in linkToDeath()
106 return mISession.asBinder().unlinkToDeath(recipient, flags); in unlinkToDeath()
DController2Link.java71 dest.writeStrongBinder(mIController.asBinder()); in writeToParcel()
76 return mIController.asBinder().hashCode(); in hashCode()
85 return Objects.equals(mIController.asBinder(), other.mIController.asBinder()); in equals()
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp146 mBinder = mServer->asBinder(); in CarPowerPolicyServerPeer()
328 return ICarPowerPolicyChangeCallback::fromBinder(callback->asBinder()); in getPowerPolicyChangeCallback()
341 server->expectLinkToDeathStatus(callback->asBinder().get(), STATUS_OK); in testApplyPowerPolicyPerPowerStateChangeAsyncInternal()
397 server->expectLinkToDeathStatus(callbackOne->asBinder().get(), STATUS_OK); in TEST_F()
409 server->expectLinkToDeathStatus(callbackTwo->asBinder().get(), STATUS_OK); in TEST_F()
418 server->expectLinkToDeathStatus(callback->asBinder().get(), STATUS_DEAD_OBJECT); in TEST_F()
428 server->expectLinkToDeathStatus(callbackOne->asBinder().get(), STATUS_OK); in TEST_F()
448 server->expectLinkToDeathStatus(callback->asBinder().get(), STATUS_OK); in TEST_F()
475 server->expectLinkToDeathStatus(callback->asBinder().get(), STATUS_OK); in TEST_F()
528 server->expectLinkToDeathStatus(callback->asBinder().get(), STATUS_OK); in TEST_F()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarOccupantConnectionServiceTest.java139 when(mPayloadCallback.asBinder()).thenReturn(mPayloadCallbackBinder); in setUp()
140 when(mConnectionRequestCallback.asBinder()).thenReturn(mConnectionRequestCallbackBinder); in setUp()
176 when(payloadCallback2.asBinder()).thenReturn(payloadCallbackBinder2); in testRegisterReceiverWithDuplicateId_throwsException()
209 when(payloadCallback2.asBinder()).thenReturn(payloadCallbackBinder2); in testRegisterTwoReceiversWithoutReceiverServiceConnected()
249 when(receiverService.asBinder()).thenReturn(binder); in testRegisterReceiverThenConnectReceiverService()
293 when(receiverService.asBinder()).thenReturn(binder); in testRegisterReceiverWithReceiverServiceConnected()
300 when(payloadCallback2.asBinder()).thenReturn(payloadCallbackBinder2); in testRegisterReceiverWithReceiverServiceConnected()
354 when(receiverService.asBinder()).thenReturn(binder); in testUnregisterReceiverWithReceiverServiceBound()
423 when(payloadCallback2.asBinder()).thenReturn(binder2); in testUnregisterReceiverWithOtherReceiversLeft()
492 when(receiverService.asBinder()).thenReturn(binder); in testRequestConnectionWithoutReceiverServiceBoundBefore()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPropertyHalServiceTest.java366 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync()
392 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_multipleRequests()
426 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_staticCacheMultipleRequests()
440 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_staticCacheMultipleRequests()
456 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_linkToDeath()
472 when(mGetAsyncPropertyResultCallback.asBinder()).thenReturn(mockBinder); in testGetCarPropertyValuesAsync_binderDiedBeforeLinkToDeath()
487 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_unlinkToDeath_onBinderDied()
510 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_normalResult()
550 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_retryTwiceAndSucceed()
573 doReturn(mGetAsyncPropertyResultBinder).when(mGetAsyncPropertyResultCallback).asBinder(); in testGetCarPropertyValuesAsync_retryAndTimeout()
[all …]
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRegistrationBinder.java89 + callback.asBinder().hashCode()); in getKeyWorker()
217 if (mTasks.containsKey(callback.asBinder())) { in getKey()
218 throw new IllegalArgumentException("Callback " + callback.asBinder().hashCode() in getKey()
222 mTasks.put(callback.asBinder(), in getKey()
256 mTasks.remove(callback.asBinder()); in getKeyThreadWorker()
287 Log.i(TAG, "cancelGetKey(" + callback.asBinder().hashCode() + ")"); in cancelGetKey()
291 Future<?> task = mTasks.get(callback.asBinder()); in cancelGetKey()
/packages/services/Car/cpp/powerpolicy/client/src/
DPowerPolicyClientBase.cpp67 ScopedAStatus::fromStatus(AIBinder_unlinkToDeath(mPolicyServer->asBinder().get(), in ~PowerPolicyClientBase()
126 binder = this->asBinder(); in connectToDaemon()
131 AIBinder_linkToDeath(server->asBinder().get(), mDeathRecipient.get(), this)); in connectToDaemon()
145 status = ScopedAStatus::fromStatus(AIBinder_unlinkToDeath(server->asBinder().get(), in connectToDaemon()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/observer/
DAppSearchObserverProxy.java91 return Objects.equals(mStub.asBinder(), that.mStub.asBinder()); in equals()
96 return Objects.hashCode(mStub.asBinder()); in hashCode()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPropertyServiceUnitTest.java151 when(mICarPropertyEventListener.asBinder()).thenReturn(mIBinder); in setUp()
625 when(mMockHandler1.asBinder()).thenReturn(mBinder1); in testRegisterUnregisterForContinuousProperty()
626 when(mMockHandler2.asBinder()).thenReturn(mBinder2); in testRegisterUnregisterForContinuousProperty()
678 when(mMockHandler1.asBinder()).thenReturn(mBinder1); in testRegisterForMultipleProperties()
719 when(mMockHandler1.asBinder()).thenReturn(mBinder1); in testRegisterUnregisterForOnChangeProperty()
720 when(mMockHandler2.asBinder()).thenReturn(mBinder2); in testRegisterUnregisterForOnChangeProperty()
770 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription()
802 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_enableVurAndResolution()
836 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_VurFeatureOff()
862 when(mockHandler.asBinder()).thenReturn(mockBinder); in testRegisterListenerWithSubscription_ResolutionFeatureOff()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbServiceCoreTest.java445 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testEnable_failure()
472 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testEnable_failure_noInitializationFailureListener()
496 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testEnableWithCountryCode_success()
539 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testEnableWithCountryCode_statusRegulationUwbOff()
593 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testCountryCodeChange_fromValidCountry_statusRegulationUwbOff()
630 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testEnableWithCountryCode_statusFailed()
679 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testEnableWhenAlreadyEnabled()
709 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testEnableWhenInitializeDelayed()
755 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testDisable()
790 when(cb.asBinder()).thenReturn(mock(IBinder.class)); in testDisableWhenDeinitializeDelayed()
[all …]
/packages/services/Car/car-lib/src/android/car/app/
DCarSystemUIProxyAidlWrapper.java47 client.asBinder().unlinkToDeath(this, /* flags= */ 0); in createCarTaskView()
52 client.asBinder().linkToDeath(clientDeathRecipient, /* flags= */ 0); in createCarTaskView()
/packages/services/Car/cpp/telemetry/cartelemetryd/src/
DTelemetryServer.h63 return reinterpret_cast<uintptr_t>(callback->asBinder().get()) ==
64 reinterpret_cast<uintptr_t>(other.callback->asBinder().get());
70 reinterpret_cast<uintptr_t>(tc.callback->asBinder().get())); in operator()
Dmain.cpp71 ::AServiceManager_addService(telemetry->asBinder().get(), kCarTelemetryServiceName); in main()
78 exception = ::AServiceManager_addService(telemetryInternal->asBinder().get(), in main()
/packages/services/Car/service/src/com/android/car/audio/
DMediaRequestHandler.java103 if (callback.asBinder().equals(token)) { in isAudioMediaCallbackRegistered()
253 if (callback.asBinder().equals(mRequestIdToApprover.valueAt(index))) { in getRequestsOwnedByApprover()
265 if (request.mIMediaAudioRequestStatusCallback.asBinder().equals(callback.asBinder())) { in callbackAlreadyPresentLocked()
403 mPrimaryZoneMediaAudioRequestCallbacks.getBroadcastItem(index).asBinder()); in dump()
442 mPrimaryZoneMediaAudioRequestCallbacks.getBroadcastItem(index).asBinder() in dumpProto()
/packages/services/Car/cpp/computepipe/router/1.0/
DRouterSvc.cpp61 auto status = AServiceManager_addService(mRegisterEngine->asBinder().get(), name.c_str()); in initRegistrationEngine()
76 auto status = AServiceManager_addService(mQueryEngine->asBinder().get(), name.c_str()); in initQueryEngine()

12345678910>>...12