Home
last modified time | relevance | path

Searched refs:mBluetoothA2dp (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/
DBluetoothHDAudioPreferenceControllerTest.java53 private BluetoothA2dp mBluetoothA2dp; field in BluetoothHDAudioPreferenceControllerTest
84 when(mBluetoothA2dp.getActiveDevice()).thenReturn(null); in updateState_noActiveDevice_setDisable()
85 mController.onBluetoothServiceConnected(mBluetoothA2dp); in updateState_noActiveDevice_setDisable()
93 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupported_setEnable()
94 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecSupported_setEnable()
95 mBluetoothA2dp.OPTIONAL_CODECS_SUPPORTED); in updateState_codecSupported_setEnable()
96 mController.onBluetoothServiceConnected(mBluetoothA2dp); in updateState_codecSupported_setEnable()
104 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecNotSupported_setDisable()
105 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecNotSupported_setDisable()
106 mBluetoothA2dp.OPTIONAL_CODECS_NOT_SUPPORTED); in updateState_codecNotSupported_setDisable()
[all …]
DAbstractBluetoothPreferenceControllerTest.java47 private BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothPreferenceControllerTest
66 assertThat(mController.mBluetoothA2dp).isNull(); in onBluetoothServiceConnected_checkProfile()
67 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onBluetoothServiceConnected_checkProfile()
68 assertThat(mController.mBluetoothA2dp).isEqualTo(mBluetoothA2dp); in onBluetoothServiceConnected_checkProfile()
73 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onBluetoothServiceConnected_updateState()
85 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onBluetoothServiceDisconnected_clearA2dpProfile()
86 assertThat(mController.mBluetoothA2dp).isEqualTo(mBluetoothA2dp); in onBluetoothServiceDisconnected_clearA2dpProfile()
88 assertThat(mController.mBluetoothA2dp).isNull(); in onBluetoothServiceDisconnected_clearA2dpProfile()
93 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onDestroy_clearA2dpProfile()
94 assertThat(mController.mBluetoothA2dp).isEqualTo(mBluetoothA2dp); in onDestroy_clearA2dpProfile()
[all …]
DAbstractBluetoothDialogPreferenceControllerTest.java57 private BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothDialogPreferenceControllerTest
95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
112 when(mBluetoothA2dp.getCodecStatus( in onIndexUpdated_checkFlow()
115 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onIndexUpdated_checkFlow()
119 verify(mBluetoothA2dp).setCodecConfigPreference( in onIndexUpdated_checkFlow()
144 mController.onBluetoothServiceConnected(mBluetoothA2dp); in getCurrentCodecConfig_errorChecking()
145 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(null); in getCurrentCodecConfig_errorChecking()
152 when(mBluetoothA2dp.getCodecStatus( in getCurrentCodecConfig_verifyConfig()
154 mController.onBluetoothServiceConnected(mBluetoothA2dp); in getCurrentCodecConfig_verifyConfig()
162 when(mBluetoothA2dp.getCodecStatus( in getSelectableConfigs_verifyConfig()
[all …]
DBluetoothCodecDialogPreferenceControllerTest.java53 private BluetoothA2dp mBluetoothA2dp; field in BluetoothCodecDialogPreferenceControllerTest
103 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
110 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest()
111 mController.onBluetoothServiceConnected(mBluetoothA2dp); in writeConfigurationValues_selectDefault_setHighest()
122 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_checkCodec()
123 mController.onBluetoothServiceConnected(mBluetoothA2dp); in writeConfigurationValues_checkCodec()
149 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_resetHighestConfig()
150 mController.onBluetoothServiceConnected(mBluetoothA2dp); in writeConfigurationValues_resetHighestConfig()
DBluetoothQualityDialogPreferenceControllerTest.java52 private BluetoothA2dp mBluetoothA2dp; field in BluetoothQualityDialogPreferenceControllerTest
92 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
120 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in updateState_codeTypeIsLDAC_enablePreference()
121 mController.onBluetoothServiceConnected(mBluetoothA2dp); in updateState_codeTypeIsLDAC_enablePreference()
131 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in updateState_codeTypeAAC_disablePreference()
132 mController.onBluetoothServiceConnected(mBluetoothA2dp); in updateState_codeTypeAAC_disablePreference()
DBluetoothChannelModeDialogPreferenceControllerTest.java55 private BluetoothA2dp mBluetoothA2dp; field in BluetoothChannelModeDialogPreferenceControllerTest
95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
102 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest()
103 mController.onBluetoothServiceConnected(mBluetoothA2dp); in writeConfigurationValues_selectDefault_setHighest()
128 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
129 mController.onBluetoothServiceConnected(mBluetoothA2dp); in getSelectableIndex_verifyList()
DBluetoothSampleRateDialogPreferenceControllerTest.java55 private BluetoothA2dp mBluetoothA2dp; field in BluetoothSampleRateDialogPreferenceControllerTest
96 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
104 when(mBluetoothA2dp.getCodecStatus( in writeConfigurationValues_selectDefault_setHighest()
106 mController.onBluetoothServiceConnected(mBluetoothA2dp); in writeConfigurationValues_selectDefault_setHighest()
137 when(mBluetoothA2dp.getCodecStatus( in getSelectableIndex_verifyList()
139 mController.onBluetoothServiceConnected(mBluetoothA2dp); in getSelectableIndex_verifyList()
DBluetoothBitPerSampleDialogPreferenceControllerTest.java55 private BluetoothA2dp mBluetoothA2dp; field in BluetoothBitPerSampleDialogPreferenceControllerTest
95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
102 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest()
103 mController.onBluetoothServiceConnected(mBluetoothA2dp); in writeConfigurationValues_selectDefault_setHighest()
131 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
132 mController.onBluetoothServiceConnected(mBluetoothA2dp); in getSelectableIndex_verifyList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DAbstractBluetoothA2dpPreferenceController.java46 protected BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothA2dpPreferenceController
77 if (mBluetoothA2dp == null) { in onPreferenceChange()
85 if (mBluetoothA2dp != null) { in onPreferenceChange()
86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange()
88 setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in onPreferenceChange()
108 if (mBluetoothA2dp == null) { in updateState()
111 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState()
137 mBluetoothA2dp = bluetoothA2dp; in onBluetoothServiceConnected()
150 mBluetoothA2dp = null; in onBluetoothServiceDisconnected()
155 mBluetoothA2dp = null; in onDestroy()
[all …]
DBluetoothAudioCodecPreferenceController.java112 if (mBluetoothA2dp != null) { in writeConfigurationValues()
113 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues()
115 mBluetoothA2dp.enableOptionalCodecs(activeDevice); in writeConfigurationValues()
122 if (mBluetoothA2dp != null) { in writeConfigurationValues()
123 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues()
125 mBluetoothA2dp.disableOptionalCodecs(activeDevice); in writeConfigurationValues()
DDevelopmentSettingsDashboardFragment.java76 private BluetoothA2dp mBluetoothA2dp; field in DevelopmentSettingsDashboardFragment
115 mBluetoothA2dp = (BluetoothA2dp) proxy;
120 .onBluetoothServiceConnected(mBluetoothA2dp);
128 mBluetoothA2dp = null;
203 adapter.closeProfileProxy(BluetoothProfile.A2DP, mBluetoothA2dp); in onDestroyView()
204 mBluetoothA2dp = null; in onDestroyView()
/packages/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java46 protected BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothA2dpPreferenceController
77 if (mBluetoothA2dp == null) { in onPreferenceChange()
85 if (mBluetoothA2dp != null) { in onPreferenceChange()
86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange()
109 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState()
135 mBluetoothA2dp = bluetoothA2dp; in onBluetoothServiceConnected()
148 mBluetoothA2dp = null; in onBluetoothServiceDisconnected()
153 mBluetoothA2dp = null; in onDestroy()
187 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in setCodecConfigPreference()
191 mBluetoothA2dp.setCodecConfigPreference(bluetoothDevice, config); in setCodecConfigPreference()
[all …]
DDevelopmentSettingsDashboardFragment.java86 private BluetoothA2dp mBluetoothA2dp; field in DevelopmentSettingsDashboardFragment
125 mBluetoothA2dp = (BluetoothA2dp) proxy;
130 .onBluetoothServiceConnected(mBluetoothA2dp);
138 mBluetoothA2dp = null;
227 adapter.closeProfileProxy(BluetoothProfile.A2DP, mBluetoothA2dp); in onDestroyView()
228 mBluetoothA2dp = null; in onDestroyView()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java59 private BluetoothA2dp mBluetoothA2dp; field in A2dpReceiver
88 mBluetoothA2dp = (BluetoothA2dp) proxy;
94 mBluetoothA2dp = null;
405 if (mBluetoothA2dp != null) { in getCodecValue()
406 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getCodecValue()
411 codecStatus = mBluetoothA2dp.getCodecStatus(activeDevice); in getCodecValue()
461 if (mBluetoothA2dp != null) { in setCodecValue()
472 if (mBluetoothA2dp != null) { in setCodecValue()
473 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in setCodecValue()
479 mBluetoothA2dp.setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in setCodecValue()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothPreferenceController.java37 protected volatile BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothPreferenceController
49 mBluetoothA2dp = bluetoothA2dp; in onBluetoothServiceConnected()
60 mBluetoothA2dp = null; in onBluetoothServiceDisconnected()
66 mBluetoothA2dp = null; in onDestroy()
DAbstractBluetoothDialogPreferenceController.java77 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in onIndexUpdated()
83 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onIndexUpdated()
148 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getCurrentCodecConfig()
172 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getSelectableConfigs()
194 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getSelectableByCodecType()
DBluetoothHDAudioPreferenceController.java50 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in updateState()
78 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in onPreferenceChange()
DBluetoothCodecDialogPreferenceController.java74 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getSelectableIndex()
105 mBluetoothA2dp.getActiveDevice())); in writeConfigurationValues()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceControllerTest.java53 private BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothA2dpPreferenceControllerTest
86 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onPreferenceChange_bluetoothConnected_shouldUpdateCodec()
118 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onBluetoothServiceConnected_shouldUpdateState()