Home
last modified time | relevance | path

Searched refs:mLeAudioService (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioBinderTest.java64 private LeAudioService mLeAudioService; field in LeAudioBinderTest
92 mLeAudioService = in setUp()
96 mLeAudioService.start(); in setUp()
98 mBinder = new LeAudioService.BluetoothLeAudioBinder(mLeAudioService); in setUp()
99 mLeAudioService.mLeAudioCallbacks = mLeAudioCallbacks; in setUp()
100 mLeAudioService.mBroadcastCallbacks = mBroadcastCallbacks; in setUp()
106 mLeAudioService.stop(); in cleanUp()
116 verify(mLeAudioService).connect(device); in connect()
125 verify(mLeAudioService).disconnect(device); in disconnect()
133 verify(mLeAudioService).getConnectedDevices(); in getConnectedDevices()
[all …]
DLeAudioStateMachineTest.java67 @Mock private LeAudioService mLeAudioService; field in LeAudioStateMachineTest
87 mLeAudioService, in setUp()
112 doReturn(allow).when(mLeAudioService).okToConnect(any(BluetoothDevice.class)); in allowConnection()
128 verify(mLeAudioService, after(TIMEOUT_MS).never()) in testIncomingPriorityReject()
148 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingPriorityAccept()
165 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingPriorityAccept()
168 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingPriorityAccept()
187 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testOutgoingTimeout()
196 verify(mLeAudioService, timeout(LeAudioStateMachine.sConnectTimeoutMs * 2)) in testOutgoingTimeout()
220 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingTimeout()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java112 @Mock private LeAudioService mLeAudioService; field in ActiveDeviceManagerTest
134 when(mServiceFactory.getLeAudioService()).thenReturn(mLeAudioService); in setUp()
159 when(mLeAudioService.setActiveDevice(any())).thenReturn(true); in setUp()
160 when(mLeAudioService.isGroupAvailableForStream(anyInt())).thenReturn(true); in setUp()
161 when(mLeAudioService.removeActiveDevice(anyBoolean())).thenReturn(true); in setUp()
163 when(mLeAudioService.getLeadDevice(mLeAudioDevice)).thenReturn(mLeAudioDevice); in setUp()
164 when(mLeAudioService.getLeadDevice(mLeAudioDevice2)).thenReturn(mLeAudioDevice2); in setUp()
165 when(mLeAudioService.getLeadDevice(mDualModeAudioDevice)).thenReturn(mDualModeAudioDevice); in setUp()
166 when(mLeAudioService.getLeadDevice(mLeHearingAidDevice)).thenReturn(mLeHearingAidDevice); in setUp()
678 when(mLeAudioService.isGroupAvailableForStream(anyInt())).thenReturn(true); in onlyLeAudioConnected_setHeadsetActive()
[all …]
DAudioRoutingManagerTest.java107 @Mock private LeAudioService mLeAudioService; field in AudioRoutingManagerTest
131 when(mServiceFactory.getLeAudioService()).thenReturn(mLeAudioService); in setUp()
155 when(mLeAudioService.setActiveDevice(any())).thenReturn(true); in setUp()
156 when(mLeAudioService.removeActiveDevice(anyBoolean())).thenReturn(true); in setUp()
157 when(mLeAudioService.getGroupId(any())).thenReturn(LE_AUDIO_GROUP_ID_INVALID); in setUp()
613 verify(mLeAudioService).setActiveDevice(mLeAudioDevice); in onlyLeAudioConnected_setHeadsetActive()
621 verify(mLeAudioService).setActiveDevice(mLeAudioDevice); in secondLeAudioConnected_setSecondLeAudioActive()
625 verify(mLeAudioService).setActiveDevice(mSecondaryAudioDevice); in secondLeAudioConnected_setSecondLeAudioActive()
633 verify(mLeAudioService).setActiveDevice(mLeAudioDevice); in lastLeAudioDisconnected_clearLeAudioActive()
637 verify(mLeAudioService).removeActiveDevice(false); in lastLeAudioDisconnected_clearLeAudioActive()
[all …]
DPhonePolicyTest.java86 @Mock private LeAudioService mLeAudioService; field in PhonePolicyTest
109 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in setUp()
236 when(mLeAudioService.setConnectionPolicy( in processInitProfilePriorities_LeAudioOnlyHelper()
242 when(mLeAudioService.getConnectionPolicy(dev)) in processInitProfilePriorities_LeAudioOnlyHelper()
284 verify(mLeAudioService, times(1)) in testConnectLeAudioOnlyDevices_BandedHeadphones()
294 verify(mLeAudioService, times(2)) in testConnectLeAudioOnlyDevices_CsipSet()
304 verify(mLeAudioService, times(0)) in testConnectLeAudioOnlyDevices_DualModeCsipSet()
314 verify(mLeAudioService, times(0)) in testConnectLeAudioOnlyDevices_AshaAndCsipSet()
354 verify(mLeAudioService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioDisabledByDefault()
413 verify(mLeAudioService, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testProcessInitProfilePriorities_LeAudioEnabledByDefault()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java314 private LeAudioService mLeAudioService; field in AdapterService
1597 if (mLeAudioService == null in isDualModeAudioSinkDevice()
1598 || mLeAudioService.getGroupId(device) == LE_AUDIO_GROUP_ID_INVALID) { in isDualModeAudioSinkDevice()
1604 mLeAudioService.getGroupDevices(mLeAudioService.getGroupId(device))) { in isDualModeAudioSinkDevice()
1625 && mLeAudioService != null in isDuplexAudioSupported()
1626 && mLeAudioService.isLeAudioDuplexSupported(device))) { in isDuplexAudioSupported()
1644 && mLeAudioService != null in isOutputOnlyAudioSupported()
1645 && mLeAudioService.isLeAudioOutputSupported(device))) { in isOutputOnlyAudioSupported()
1829 if (mLeAudioService != null in isAllProfilesUnknown()
1830 && mLeAudioService.getConnectionPolicy(device) in isAllProfilesUnknown()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/
DTbsGeneric.java134 private LeAudioService mLeAudioService; field in TbsGeneric
822 int groupId = mLeAudioService.getGroupId(device);
823 return mLeAudioService.isInbandRingtoneEnabled(groupId);
1146 if (mLeAudioService != null) { in isLeAudioServiceAvailable()
1150 mLeAudioService = mFactory.getLeAudioService(); in isLeAudioServiceAvailable()
1151 if (mLeAudioService == null) { in isLeAudioServiceAvailable()
1161 mLeAudioService = leAudioService; in setLeAudioServiceForTesting()
1169 mLeAudioService.setInCall(true); in notifyCclc()
1171 mLeAudioService.setInCall(false); in notifyCclc()
1204 mLeAudioService.setActiveDevice(device); in setActiveLeDevice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientServiceTest.java164 @Mock private LeAudioService mLeAudioService; field in BassClientServiceTest
289 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in setUp()
1355 verify(mLeAudioService).activeBroadcastAssistantNotification(eq(true)); in testRemoveSourceForGroupAndTriggerModifySource()
3252 verify(mLeAudioService).activeBroadcastAssistantNotification(eq(true)); in testSuspendResumeSourceSynchronization()
3253 Mockito.clearInvocations(mLeAudioService); in testSuspendResumeSourceSynchronization()
3377 .when(mLeAudioService) in testHandleUnicastSourceStreamStatusChange()
3406 verify(mLeAudioService).activeBroadcastAssistantNotification(eq(true)); in testHandleUnicastSourceStreamStatusChange()
3561 verify(mLeAudioService).activeBroadcastAssistantNotification(eq(false)); in testHandleUnicastSourceStreamStatusChange()
3773 .when(mLeAudioService) in prepareTwoSynchronizedDevicesForLocalBroadcast()
3827 doReturn(true).when(mLeAudioService).isPlaying(TEST_BROADCAST_ID); in testPrivateBroadcastIntentionalDisconnection()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorService.java83 private LeAudioService mLeAudioService; field in CsipSetCoordinatorService
146 mLeAudioService = mServiceFactory.getLeAudioService(); in start()
686 if (mLeAudioService == null) { in disableCsipIfNeeded()
687 mLeAudioService = mServiceFactory.getLeAudioService(); in disableCsipIfNeeded()
690 if (mLeAudioService != null) { in disableCsipIfNeeded()
712 if (mLeAudioService.getConnectionPolicy(groupDevice) in disableCsipIfNeeded()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java92 @Mock private LeAudioService mLeAudioService; field in VolumeControlServiceTest
140 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in setUp()
1021 when(mLeAudioService.getGroupId(mDevice)).thenReturn(groupId); in testServiceBinderSetDeviceVolumeMethods()
1022 when(mLeAudioService.getGroupId(mDeviceTwo)).thenReturn(groupId); in testServiceBinderSetDeviceVolumeMethods()
1194 when(mLeAudioService.getGroupId(mDevice)).thenReturn(groupId); in testServiceBinderRegisterVolumeChangedCallbackWhenDeviceAlreadyConnected()
1195 when(mLeAudioService.getGroupId(mDeviceTwo)).thenReturn(groupId); in testServiceBinderRegisterVolumeChangedCallbackWhenDeviceAlreadyConnected()
1246 when(mLeAudioService.getGroupId(mDevice)).thenReturn(groupId); in testServiceBinderTestNotifyNewRegisteredCallback()
1247 when(mLeAudioService.getGroupId(mDeviceTwo)).thenReturn(groupId); in testServiceBinderTestNotifyNewRegisteredCallback()
1354 when(mLeAudioService.getGroupId(mDevice)).thenReturn(groupId); in testVolumeControlChangedCallback()
1355 when(mLeAudioService.getGroupId(mDeviceTwo)).thenReturn(groupId); in testVolumeControlChangedCallback()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DMediaControlGattService.java153 private LeAudioService mLeAudioService; field in MediaControlGattService
1380 if (mLeAudioService == null) { in handleMediaControlPointRequest()
1381 mLeAudioService = LeAudioService.getLeAudioService(); in handleMediaControlPointRequest()
1390 if (mLeAudioService != null) { in handleMediaControlPointRequest()
1391 mLeAudioService.setActiveDevice(device); in handleMediaControlPointRequest()
1415 mLeAudioService = leAudioService; in setLeAudioServiceForTesting()
2170 return mLeAudioService != null && mLeAudioService.isBroadcastActive(); in isBroadcastActive()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorServiceTest.java78 @Mock private LeAudioService mLeAudioService; field in CsipSetCoordinatorServiceTest
104 when(mServiceFactory.getLeAudioService()).thenReturn(mLeAudioService); in setUp()
621 when(mLeAudioService.getConnectionPolicy(any())) in testDisableCsipAfterConnectingIfLeAudioDisabled()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java97 @Mock private LeAudioService mLeAudioService; field in HeadsetServiceAndStateMachineTest
1588 doReturn(mLeAudioService).when(mServiceFactory).getLeAudioService(); in testHfpOnlyHandoverToLeAudioAfterScoDisconnect()
1589 doReturn(List.of(device)).when(mLeAudioService).getConnectedDevices(); in testHfpOnlyHandoverToLeAudioAfterScoDisconnect()
1592 doReturn(activeDeviceList).when(mLeAudioService).getActiveDevices(); in testHfpOnlyHandoverToLeAudioAfterScoDisconnect()
1635 verify(mLeAudioService, never()).setActiveAfterHfpHandover(); in testHfpOnlyHandoverToLeAudioAfterScoDisconnect()
1660 verify(mLeAudioService, atLeastOnce()).setActiveAfterHfpHandover(); in testHfpOnlyHandoverToLeAudioAfterScoDisconnect()