Searched refs:mA2dpSinkService (Results 1 – 4 of 4) sorted by relevance
73 private A2dpSinkService mA2dpSinkService; field in A2dpSinkStreamHandler105 mA2dpSinkService = a2dpSinkService; in A2dpSinkStreamHandler()107 mAudioManager = mA2dpSinkService.getSystemService(AudioManager.class); in A2dpSinkStreamHandler()197 mA2dpSinkService in handleMessage()289 mA2dpSinkService, in requestMediaKeyFocus()347 return mA2dpSinkService in isIotDevice()353 return mA2dpSinkService in isTvDevice()359 return mA2dpSinkService in shouldRequestFocus()
80 @Mock private A2dpSinkService mA2dpSinkService; field in AvrcpControllerServiceTest100 A2dpSinkService.setA2dpSinkService(mA2dpSinkService); in setUp()112 when(mA2dpSinkService.setActiveDevice(any(BluetoothDevice.class))).thenReturn(true); in setUp()525 verify(mA2dpSinkService).setActiveDevice(mRemoteDevice); in testActiveDeviceMaintainsAudioFocusWhenOtherDeviceConnects_audioFocusMaintained()526 when(mA2dpSinkService.getActiveDevice()).thenReturn(mRemoteDevice); in testActiveDeviceMaintainsAudioFocusWhenOtherDeviceConnects_audioFocusMaintained()530 verify(mA2dpSinkService, times(0)).setActiveDevice(mRemoteDevice2); in testActiveDeviceMaintainsAudioFocusWhenOtherDeviceConnects_audioFocusMaintained()535 verify(mA2dpSinkService, times(0)).setActiveDevice(mRemoteDevice2); in testActiveDeviceMaintainsAudioFocusWhenOtherDeviceConnects_audioFocusMaintained()
85 @Mock private A2dpSinkService mA2dpSinkService; field in AvrcpControllerStateMachineTest113 A2dpSinkService.setA2dpSinkService(mA2dpSinkService); in setUp()195 when(mA2dpSinkService.getFocusState()).thenReturn(state); in sendAudioFocusUpdate()1152 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileMusicPlaying()1164 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileMusicPlaying()1170 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileIdle()1177 verify(mA2dpSinkService).requestAudioFocus(mTestDevice, true); in testPlaybackWhileIdle()1188 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.ERROR); in testPlaybackWhileErrorState()1199 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileErrorState()1209 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_GAIN); in testPlaybackWhilePlayingState()[all …]
299 private A2dpSinkService mA2dpSinkService; field in AdapterService1774 if (mA2dpSinkService != null in isAllProfilesUnknown()1775 && mA2dpSinkService.getConnectionPolicy(device) in isAllProfilesUnknown()1869 if (mA2dpSinkService != null in connectEnabledProfiles()1871 && mA2dpSinkService.getConnectionPolicy(device) in connectEnabledProfiles()1874 mA2dpSinkService.connect(device); in connectEnabledProfiles()1982 mA2dpSinkService = A2dpSinkService.getA2dpSinkService(); in initProfileServices()5298 if (mA2dpSinkService != null && isProfileSupported(device, BluetoothProfile.A2DP_SINK)) { in connectAllSupportedProfiles()5300 mA2dpSinkService.setConnectionPolicy( in connectAllSupportedProfiles()5419 if (mA2dpSinkService != null in disconnectAllEnabledProfiles()[all …]