Home
last modified time | relevance | path

Searched refs:mServiceFactory (Results 1 – 18 of 18) sorted by relevance

/packages/services/Car/service/jni/evs/
DEvsServiceContext.cpp144 mServiceFactory(std::move(serviceFactory)), in EvsServiceContext()
202 if (!mServiceFactory || !mServiceFactory->init()) { in initialize()
209 mLinkUnlinkImpl->linkToDeath(mServiceFactory->getService()->asBinder().get(), in initialize()
225 status = mServiceFactory->getService()->getCameraList(&mCameraList); in initialize()
244 mServiceFactory.reset(); in deinitialize()
280 pService = mServiceFactory->getService(); in openCamera()
332 if (!mServiceFactory->getService()->closeCamera(mCamera).isOk()) { in closeCamera()
373 mServiceFactory->getService()->openDisplay(EvsServiceContext::kExclusiveMainDisplayId, in acquireCameraAndDisplayLocked()
514 mLinkUnlinkImpl->unlinkToDeath(mServiceFactory->getService()->asBinder().get()); in onEvsServiceDiedImpl()
515 mServiceFactory->clear(); in onEvsServiceDiedImpl()
DEvsServiceContext.h131 return mServiceFactory != nullptr && mServiceFactory->getService() != nullptr; in isAvailableLocked()
169 std::unique_ptr<IEvsServiceFactory> mServiceFactory GUARDED_BY(mLock);
/packages/services/Car/cpp/evs/manager/1.1/
DEnumerator.cpp117 mServiceFactory(std::move(serviceFactory)), in Enumerator()
121 mServiceFactory->getService()->getDisplayIdList( in Enumerator()
246 mServiceFactory->getService()->getCameraList([&cameraList](auto enumeratedCameras) { in getCameraList()
290 device = IEvsCamera_1_1::castFrom(mServiceFactory->getService()->openCamera(cameraId)) in openCamera()
302 mServiceFactory->getService()->closeCamera(device); in openCamera()
348 mServiceFactory->getService()->closeCamera(halCamera->getHwCamera()); in closeCamera()
388 device = mServiceFactory->getService()->openCamera_1_1(id, streamCfg); in openCamera_1_1()
402 mServiceFactory->getService()->closeCamera(device); in openCamera_1_1()
464 mServiceFactory->getService()->getCameraList_1_1( in getCameraList_1_1()
510 sp<IEvsDisplay_1_0> pActiveDisplay = mServiceFactory->getService()->openDisplay(); in openDisplay()
[all …]
DEnumerator.h109 const std::unique_ptr<ServiceFactory> mServiceFactory; variable
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DSilenceDeviceManagerTest.java63 @Mock private ServiceFactory mServiceFactory; field in SilenceDeviceManagerTest
70 when(mServiceFactory.getA2dpService()).thenReturn(mA2dpService); in setUp()
71 when(mServiceFactory.getHeadsetService()).thenReturn(mHeadsetService); in setUp()
79 mSilenceDeviceManager = new SilenceDeviceManager(mAdapterService, mServiceFactory, mLooper); in setUp()
DPhonePolicyTest.java83 @Mock private ServiceFactory mServiceFactory; field in PhonePolicyTest
107 doReturn(mHeadsetService).when(mServiceFactory).getHeadsetService(); in setUp()
108 doReturn(mA2dpService).when(mServiceFactory).getA2dpService(); in setUp()
109 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in setUp()
110 doReturn(mCsipSetCoordinatorService).when(mServiceFactory).getCsipSetCoordinatorService(); in setUp()
111 doReturn(mHearingAidService).when(mServiceFactory).getHearingAidService(); in setUp()
112 doReturn(mHapClientService).when(mServiceFactory).getHapClientService(); in setUp()
125 mPhonePolicy = new PhonePolicy(mAdapterService, mServiceFactory); in setUp()
1088 PhonePolicy phonePolicy = new PhonePolicy(mAdapterService, mServiceFactory); in testAutoConnectHfpOnly()
1126 PhonePolicy phonePolicy = new PhonePolicy(mAdapterService, mServiceFactory); in autoConnect_whenMultiHfp_startConnection()
[all …]
DAudioRoutingManagerTest.java103 @Mock private ServiceFactory mServiceFactory; field in AudioRoutingManagerTest
128 when(mServiceFactory.getA2dpService()).thenReturn(mA2dpService); in setUp()
129 when(mServiceFactory.getHeadsetService()).thenReturn(mHeadsetService); in setUp()
130 when(mServiceFactory.getHearingAidService()).thenReturn(mHearingAidService); in setUp()
131 when(mServiceFactory.getLeAudioService()).thenReturn(mLeAudioService); in setUp()
133 mAudioRoutingManager = new AudioRoutingManager(mAdapterService, mServiceFactory); in setUp()
DActiveDeviceManagerTest.java108 @Mock private ServiceFactory mServiceFactory; field in ActiveDeviceManagerTest
131 when(mServiceFactory.getA2dpService()).thenReturn(mA2dpService); in setUp()
132 when(mServiceFactory.getHeadsetService()).thenReturn(mHeadsetService); in setUp()
133 when(mServiceFactory.getHearingAidService()).thenReturn(mHearingAidService); in setUp()
134 when(mServiceFactory.getLeAudioService()).thenReturn(mLeAudioService); in setUp()
136 mActiveDeviceManager = new ActiveDeviceManager(mAdapterService, mServiceFactory); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorServiceTest.java79 @Spy private ServiceFactory mServiceFactory = new ServiceFactory(); field in CsipSetCoordinatorServiceTest
103 mService.mServiceFactory = mServiceFactory; in setUp()
104 when(mServiceFactory.getLeAudioService()).thenReturn(mLeAudioService); in setUp()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/
DBassClientService.java185 @VisibleForTesting ServiceFactory mServiceFactory = new ServiceFactory(); field in BassClientService
622 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in stop()
630 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in stop()
846 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in checkForPendingGroupOpRequest()
871 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in isDevicePartOfActiveUnicastGroup()
886 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in localNotifyReceiveStateChanged()
1023 CsipSetCoordinatorService csipClient = mServiceFactory.getCsipSetCoordinatorService(); in getTargetDeviceList()
1172 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in run()
2391 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in addSource()
2758 LeAudioService leAudioService = mServiceFactory.getLeAudioService(); in isLocalBroadcast()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioBroadcastServiceTest.java92 @Spy private ServiceFactory mServiceFactory = new ServiceFactory(); field in LeAudioBroadcastServiceTest
217 mService.mServiceFactory = mServiceFactory; in setUp()
218 when(mServiceFactory.getBassClientService()).thenReturn(mBassClientService); in setUp()
DLeAudioServiceTest.java141 @Spy private ServiceFactory mServiceFactory = new ServiceFactory(); field in LeAudioServiceTest
219 mService.mServiceFactory = mServiceFactory; in setUp()
220 when(mServiceFactory.getVolumeControlService()).thenReturn(mVolumeControlService); in setUp()
221 when(mServiceFactory.getHapClientService()).thenReturn(mHapClientService); in setUp()
222 when(mServiceFactory.getCsipSetCoordinatorService()).thenReturn(mCsipSetCoordinatorService); in setUp()
223 when(mServiceFactory.getBassClientService()).thenReturn(mBassClientService); in setUp()
2559 doReturn(null).when(mServiceFactory).getVolumeControlService(); in testGetAudioDeviceGroupVolume_whenVolumeControlServiceIsNull()
2619 when(mServiceFactory.getHeadsetService()).thenReturn(headsetService); in testHandleGroupIdleDuringCall()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorService.java86 @VisibleForTesting ServiceFactory mServiceFactory = new ServiceFactory(); field in CsipSetCoordinatorService
146 mLeAudioService = mServiceFactory.getLeAudioService(); in start()
687 mLeAudioService = mServiceFactory.getLeAudioService(); in disableCsipIfNeeded()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientTest.java109 @Mock private ServiceFactory mServiceFactory; field in HapClientTest
128 mService.mFactory = mServiceFactory; in setUp()
129 doReturn(mCsipService).when(mServiceFactory).getCsipSetCoordinatorService(); in setUp()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java168 ServiceFactory mServiceFactory = new ServiceFactory(); field in LeAudioService
668 mVolumeControlService = mServiceFactory.getVolumeControlService(); in getVolumeControlService()
678 mBassClientService = mServiceFactory.getBassClientService(); in getBassClientService()
2691 HeadsetService headsetService = mServiceFactory.getHeadsetService(); in handleGroupIdleDuringCall()
4079 mHapClientService = mServiceFactory.getHapClientService(); in setLeAudioGattClientProfilesPolicy()
4086 mCsipSetCoordinatorService = mServiceFactory.getCsipSetCoordinatorService(); in setLeAudioGattClientProfilesPolicy()
4232 mTbsService = mServiceFactory.getTbsService(); in getTbsService()
4241 mMcpService = mServiceFactory.getMcpService(); in getMcpService()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java96 @Mock private ServiceFactory mServiceFactory; field in VolumeControlServiceTest
135 mService.mFactory = mServiceFactory; in setUp()
139 doReturn(mCsipService).when(mServiceFactory).getCsipSetCoordinatorService(); in setUp()
140 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java98 @Mock private ServiceFactory mServiceFactory; field in HeadsetServiceAndStateMachineTest
1586 mHeadsetService.mFactory = mServiceFactory; in testHfpOnlyHandoverToLeAudioAfterScoDisconnect()
1588 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in testHfpOnlyHandoverToLeAudioAfterScoDisconnect()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientServiceTest.java162 @Mock private ServiceFactory mServiceFactory; field in BassClientServiceTest
287 mBassClientService.mServiceFactory = mServiceFactory; in setUp()
288 doReturn(mCsipService).when(mServiceFactory).getCsipSetCoordinatorService(); in setUp()
289 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in setUp()