Home
last modified time | relevance | path

Searched refs:mVolumeControlService (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlStateMachineTest.java68 @Mock private VolumeControlService mVolumeControlService; field in VolumeControlStateMachineTest
89 mVolumeControlService, in setUp()
117 doReturn(allow).when(mVolumeControlService).okToConnect(any(BluetoothDevice.class)); in allowConnection()
134 verify(mVolumeControlService, after(TIMEOUT_MS).never()) in testIncomingPolicyReject()
157 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(1)) in testIncomingPolicyAccept()
180 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(2)) in testIncomingPolicyAccept()
204 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(1)) in testOutgoingTimeout()
218 mVolumeControlService, in testOutgoingTimeout()
253 verify(mVolumeControlService, timeout(TIMEOUT_MS).times(1)) in testIncomingTimeout()
267 mVolumeControlService, in testIncomingTimeout()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java136 @Mock private VolumeControlService mVolumeControlService; field in LeAudioServiceTest
220 when(mServiceFactory.getVolumeControlService()).thenReturn(mVolumeControlService); in setUp()
1196 when(mVolumeControlService.setConnectionPolicy(any(), anyInt())).thenReturn(true); in testSetConnectionPolicy()
1208 verify(mVolumeControlService, times(1)) in testSetConnectionPolicy()
1248 verify(mVolumeControlService, times(1)) in testSetConnectionPolicy()
1514 doReturn(-1).when(mVolumeControlService).getAudioDeviceGroupVolume(anyInt()); in testSwitchActiveGroups()
1803 doReturn(testVolume).when(mVolumeControlService).getAudioDeviceGroupVolume(testGroupId); in testGroupDirectionChanged_AudioConfChangedActiveGroup()
2473 doReturn(-1).when(mVolumeControlService).getAudioDeviceGroupVolume(groupId); in testVolumeCache()
2482 verify(mVolumeControlService, times(1)).setGroupVolume(groupId, volume); in testVolumeCache()
2492 doReturn(100).when(mVolumeControlService).getAudioDeviceGroupVolume(groupId); in testVolumeCache()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java312 private VolumeControlService mVolumeControlService; field in AdapterService
1819 if (mVolumeControlService != null in isAllProfilesUnknown()
1820 && mVolumeControlService.getConnectionPolicy(device) in isAllProfilesUnknown()
1932 if (mVolumeControlService != null in connectEnabledProfiles()
1934 && mVolumeControlService.getConnectionPolicy(device) in connectEnabledProfiles()
1937 mVolumeControlService.connect(device); in connectEnabledProfiles()
1995 mVolumeControlService = VolumeControlService.getVolumeControlService(); in initProfileServices()
5361 if (mVolumeControlService != null in connectAllSupportedProfiles()
5364 mVolumeControlService.setConnectionPolicy( in connectAllSupportedProfiles()
5506 if (mVolumeControlService != null in disconnectAllEnabledProfiles()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java203 @VisibleForTesting VolumeControlService mVolumeControlService; field in LeAudioService
638 mVolumeControlService = null; in stop()
667 if (mVolumeControlService == null) { in getVolumeControlService()
668 mVolumeControlService = mServiceFactory.getVolumeControlService(); in getVolumeControlService()
669 if (mVolumeControlService == null) { in getVolumeControlService()
673 return mVolumeControlService; in getVolumeControlService()