Home
last modified time | relevance | path

Searched refs:mBassClientService (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientServiceTest.java145 private BassClientService mBassClientService; field in BassClientServiceTest
283 mBassClientService = new BassClientService(mTargetContext); in setUp()
284 mBassClientService.start(); in setUp()
285 mBassClientService.setAvailable(true); in setUp()
287 mBassClientService.mServiceFactory = mServiceFactory; in setUp()
292 mBassClientService.registerCallback(mCallback); in setUp()
316 if (mBassClientService == null) { in tearDown()
319 mBassClientService.unregisterCallback(mCallback); in tearDown()
321 mBassClientService.stop(); in tearDown()
322 mBassClientService = BassClientService.getBassClientService(); in tearDown()
[all …]
DBassClientStateMachineTest.java151 @Mock private BassClientService mBassClientService; field in BassClientStateMachineTest
185 mBassClientService, in setUp()
230 when(mBassClientService.okToConnect(any(BluetoothDevice.class))).thenReturn(allow); in allowConnection()
247 verify(mBassClientService, after(WAIT_MS).never()) in testOkToConnectFails()
265 verify(mBassClientService, after(WAIT_MS).never()) in testFailToConnectGatt()
285 verify(mBassClientService, timeout(TIMEOUT_MS).times(1)) in testSuccessfullyConnected()
302 verify(mBassClientService, timeout(TIMEOUT_MS).times(2)) in testSuccessfullyConnected()
320 verify(mBassClientService, timeout(TIMEOUT_MS).times(1)) in testConnectGattTimeout()
332 verify(mBassClientService, timeout(TIMEOUT_MS).times(2)) in testConnectGattTimeout()
352 when(mBassClientService.getActiveSyncedSources(any())).thenReturn(null); in testStatesChangesWithMessages()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java315 private BassClientService mBassClientService; field in AdapterService
1834 if (mBassClientService != null in isAllProfilesUnknown()
1835 && mBassClientService.getConnectionPolicy(device) in isAllProfilesUnknown()
1946 if (mBassClientService != null in connectEnabledProfiles()
1948 && mBassClientService.getConnectionPolicy(device) in connectEnabledProfiles()
1951 mBassClientService.connect(device); in connectEnabledProfiles()
1998 mBassClientService = BassClientService.getBassClientService(); in initProfileServices()
5380 if (mBassClientService != null in connectAllSupportedProfiles()
5383 mBassClientService.setConnectionPolicy( in connectAllSupportedProfiles()
5536 if (mBassClientService != null in disconnectAllEnabledProfiles()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java139 @Mock private BassClientService mBassClientService; field in LeAudioServiceTest
218 mService.mBassClientService = mBassClientService; in setUp()
223 when(mServiceFactory.getBassClientService()).thenReturn(mBassClientService); in setUp()
2007 .when(mBassClientService) in testMediaContextUnavailableWhileReceivingBroadcast()
2022 .when(mBassClientService) in testMediaContextUnavailableWhileReceivingBroadcast()
2544 doReturn(new ArrayList<>()).when(mBassClientService).getActiveBroadcastSinks(); in testSetVolumeForBroadcastSinks()
2550 .when(mBassClientService) in testSetVolumeForBroadcastSinks()
DLeAudioBroadcastServiceTest.java90 @Mock private BassClientService mBassClientService; field in LeAudioBroadcastServiceTest
218 when(mServiceFactory.getBassClientService()).thenReturn(mBassClientService); in setUp()
496 when(mBassClientService.getConnectedDevices()).thenReturn(List.of(mDevice)); in testCreateBroadcast_updateQualityToStandard()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java209 @VisibleForTesting BassClientService mBassClientService; field in LeAudioService
640 mBassClientService = null; in stop()
677 if (mBassClientService == null) { in getBassClientService()
678 mBassClientService = mServiceFactory.getBassClientService(); in getBassClientService()
679 if (mBassClientService == null) { in getBassClientService()
683 return mBassClientService; in getBassClientService()