Searched refs:mBassClientService (Results 1 – 6 of 6) sorted by relevance
145 private BassClientService mBassClientService; field in BassClientServiceTest283 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 …]
151 @Mock private BassClientService mBassClientService; field in BassClientStateMachineTest185 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 …]
315 private BassClientService mBassClientService; field in AdapterService1834 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 …]
139 @Mock private BassClientService mBassClientService; field in LeAudioServiceTest218 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()
90 @Mock private BassClientService mBassClientService; field in LeAudioBroadcastServiceTest218 when(mServiceFactory.getBassClientService()).thenReturn(mBassClientService); in setUp()496 when(mBassClientService.getConnectedDevices()).thenReturn(List.of(mDevice)); in testCreateBroadcast_updateQualityToStandard()
209 @VisibleForTesting BassClientService mBassClientService; field in LeAudioService640 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()