Home
last modified time | relevance | path

Searched refs:mA2dpSinkService (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java83 private A2dpSinkService mA2dpSinkService; field in A2dpSinkStreamHandler
115 mA2dpSinkService = a2dpSinkService; in A2dpSinkStreamHandler()
345 mA2dpSinkService.informAudioFocusStateNative(STATE_FOCUS_GRANTED); in startFluorideStreaming()
346 mA2dpSinkService.informAudioTrackGainNative(1.0f); in startFluorideStreaming()
352 mA2dpSinkService.informAudioFocusStateNative(STATE_FOCUS_LOST); in stopFluorideStreaming()
356 mA2dpSinkService.informAudioTrackGainNative(gain); in setFluorideAudioTrackGain()
369 List<BluetoothDevice> connectedDevices = mA2dpSinkService.getConnectedDevices(); in inCallFromStreamingDevice()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java89 private A2dpSinkService mA2dpSinkService; field in AvrcpControllerStateMachineTest
116 when(mA2dpSinkService.setActiveDeviceNative(any())).thenReturn(true); in setUp()
121 A2dpSinkService.setA2dpSinkService(mA2dpSinkService); in setUp()
748 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileMusicPlaying()
758 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileMusicPlaying()
766 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileIdle()
773 verify(mA2dpSinkService).requestAudioFocus(mTestDevice, true); in testPlaybackWhileIdle()
784 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.ERROR); in testPlaybackWhileErrorState()
793 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileErrorState()
803 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_GAIN); in testPlaybackWhilePlayingState()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java231 private A2dpSinkService mA2dpSinkService; field in AdapterService
897 if (mA2dpSinkService != null && mA2dpSinkService.getConnectionPolicy(device) in isAnyProfileEnabled()
950 if (mA2dpSinkService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectEnabledProfiles()
951 BluetoothProfile.A2DP_SINK, device) && mA2dpSinkService.getConnectionPolicy(device) in connectEnabledProfiles()
954 mA2dpSinkService.connect(device); in connectEnabledProfiles()
1027 mA2dpSinkService = A2dpSinkService.getA2dpSinkService(); in initProfileServices()
2417 if (mA2dpSinkService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectAllEnabledProfiles()
2420 mA2dpSinkService.setConnectionPolicy(device, in connectAllEnabledProfiles()
2494 if (mA2dpSinkService != null && mA2dpSinkService.getConnectionState(device) in disconnectAllEnabledProfiles()
2497 mA2dpSinkService.disconnect(device); in disconnectAllEnabledProfiles()