Searched refs:mA2dpProfile (Results 1 – 5 of 5) sorted by relevance
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothA2dpConnector.java | 48 private BluetoothA2dp mA2dpProfile; field in BluetoothA2dpConnector 57 mA2dpProfile.setConnectionPolicy(mTarget, 66 if (mA2dpProfile == null) { 73 … mA2dpProfile.setConnectionPolicy(mTarget, BluetoothProfile.CONNECTION_POLICY_ALLOWED); 155 mA2dpProfile = (BluetoothA2dp) proxy; 161 mA2dpProfile.setConnectionPolicy(mTarget, 202 if (mA2dpProfile != null) { in closeA2dpProfileProxy() 205 adapter.closeProfileProxy(BluetoothProfile.A2DP, mA2dpProfile); in closeA2dpProfileProxy() 206 mA2dpProfile = null; in closeA2dpProfileProxy() 230 if (mA2dpProfile == null) { in isTargetConnected() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaOutputPreferenceControllerTest.java | 123 private A2dpProfile mA2dpProfile; field in MediaOutputPreferenceControllerTest 199 when(mLocalBluetoothProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp() 281 when(mA2dpProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary() 282 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary() 301 when(mA2dpProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_withActiveBtDevice_setActivatedDeviceName() 302 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_withActiveBtDevice_setActivatedDeviceName() 492 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyA2dpDeviceActive_returnA2dpDevice() 500 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_allDevicesNotActive_returnNull() 514 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice() 528 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_a2dpDeviceAndLeAudioDeviceActive_returnLeAudioDevice() [all …]
|
D | AudioOutputSwitchPreferenceControllerTest.java | 107 private A2dpProfile mA2dpProfile; field in AudioOutputSwitchPreferenceControllerTest 157 when(mLocalBluetoothProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsSpatialAudioControllerTest.java | 77 @Mock private A2dpProfile mA2dpProfile; field in BluetoothDetailsSpatialAudioControllerTest 100 .thenReturn(List.of(mA2dpProfile, mLeAudioProfile, mHearingAidProfile)); in setUp() 101 when(mA2dpProfile.isEnabled(mBluetoothDevice)).thenReturn(true); in setUp() 102 when(mA2dpProfile.getProfileId()).thenReturn(BluetoothProfile.A2DP); in setUp() 298 when(mA2dpProfile.isEnabled(mBluetoothDevice)).thenReturn(false); in refresh_leAudioProfileEnabledForHeadset_useLeAudioHeadsetAttributes() 314 when(mA2dpProfile.isEnabled(mBluetoothDevice)).thenReturn(false); in refresh_leAudioProfileEnabledForSpeaker_useLeAudioSpeakerAttributes() 330 when(mA2dpProfile.isEnabled(mBluetoothDevice)).thenReturn(false); in refresh_hearingAidProfileEnabled_useHearingAidAttributes()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDevicePreferenceControllerTest.java | 129 @Mock private A2dpProfile mA2dpProfile; field in AudioSharingDevicePreferenceControllerTest 166 when(mA2dpProfile.getProfileId()).thenReturn(BluetoothProfile.A2DP); in setUp() 371 doReturn(ImmutableList.of(mA2dpProfile)).when(mCachedDevice).getConnectableProfiles(); in onProfileConnectionStateChanged_nonLeaDeviceDisconnected_closeOpeningDialogsForIt() 372 doReturn(ImmutableList.of(mLeAudioProfile, mA2dpProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaDeviceDisconnected_closeOpeningDialogsForIt() 385 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)) in onProfileConnectionStateChanged_nonLeaNotFirstProfileConnected_doNothing() 388 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaNotFirstProfileConnected_doNothing() 400 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)) in onProfileConnectionStateChanged_nonLeaFirstProfileConnected_handle() 403 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaFirstProfileConnected_handle()
|