Searched refs:mA2dpSinkService (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandler.java | 84 private A2dpSinkService mA2dpSinkService; field in A2dpSinkStreamHandler 116 mA2dpSinkService = a2dpSinkService; in A2dpSinkStreamHandler() 346 mA2dpSinkService.informAudioFocusStateNative(STATE_FOCUS_GRANTED); in startFluorideStreaming() 347 mA2dpSinkService.informAudioTrackGainNative(1.0f); in startFluorideStreaming() 353 mA2dpSinkService.informAudioFocusStateNative(STATE_FOCUS_LOST); in stopFluorideStreaming() 357 mA2dpSinkService.informAudioTrackGainNative(gain); in setFluorideAudioTrackGain() 370 List<BluetoothDevice> connectedDevices = mA2dpSinkService.getConnectedDevices(); in inCallFromStreamingDevice()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 80 @Mock private A2dpSinkService mA2dpSinkService; field in AvrcpControllerStateMachineTest 110 A2dpSinkService.setA2dpSinkService(mA2dpSinkService); in setUp() 1092 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileMusicPlaying() 1102 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileMusicPlaying() 1110 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileIdle() 1117 verify(mA2dpSinkService).requestAudioFocus(mTestDevice, true); in testPlaybackWhileIdle() 1128 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.ERROR); in testPlaybackWhileErrorState() 1137 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileErrorState() 1147 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_GAIN); in testPlaybackWhilePlayingState() 1156 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhilePlayingState() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 280 private A2dpSinkService mA2dpSinkService; field in AdapterService 1031 if (mA2dpSinkService != null && mA2dpSinkService.getConnectionPolicy(device) in isAnyProfileEnabled() 1088 if (mA2dpSinkService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectEnabledProfiles() 1089 BluetoothProfile.A2DP_SINK, device) && mA2dpSinkService.getConnectionPolicy(device) in connectEnabledProfiles() 1092 mA2dpSinkService.connect(device); in connectEnabledProfiles() 1165 mA2dpSinkService = A2dpSinkService.getA2dpSinkService(); in initProfileServices() 2889 if (mA2dpSinkService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectAllEnabledProfiles() 2892 mA2dpSinkService.setConnectionPolicy(device, in connectAllEnabledProfiles() 2967 if (mA2dpSinkService != null && mA2dpSinkService.getConnectionState(device) in disconnectAllEnabledProfiles() 2970 mA2dpSinkService.disconnect(device); in disconnectAllEnabledProfiles()
|