/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/ |
D | BluetoothHDAudioPreferenceControllerTest.java | 53 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 …]
|
D | AbstractBluetoothPreferenceControllerTest.java | 47 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 …]
|
D | AbstractBluetoothDialogPreferenceControllerTest.java | 57 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 …]
|
D | BluetoothCodecDialogPreferenceControllerTest.java | 53 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()
|
D | BluetoothQualityDialogPreferenceControllerTest.java | 52 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()
|
D | BluetoothChannelModeDialogPreferenceControllerTest.java | 55 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()
|
D | BluetoothSampleRateDialogPreferenceControllerTest.java | 55 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()
|
D | BluetoothBitPerSampleDialogPreferenceControllerTest.java | 55 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/ |
D | AbstractBluetoothA2dpPreferenceController.java | 46 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 …]
|
D | BluetoothAudioCodecPreferenceController.java | 112 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()
|
D | DevelopmentSettingsDashboardFragment.java | 76 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/ |
D | AbstractBluetoothA2dpPreferenceController.java | 46 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 …]
|
D | DevelopmentSettingsDashboardFragment.java | 86 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/ |
D | A2dpReceiver.java | 59 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/ |
D | AbstractBluetoothPreferenceController.java | 37 protected volatile BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothPreferenceController 49 mBluetoothA2dp = bluetoothA2dp; in onBluetoothServiceConnected() 60 mBluetoothA2dp = null; in onBluetoothServiceDisconnected() 66 mBluetoothA2dp = null; in onDestroy()
|
D | AbstractBluetoothDialogPreferenceController.java | 77 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()
|
D | BluetoothHDAudioPreferenceController.java | 50 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in updateState() 78 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in onPreferenceChange()
|
D | BluetoothCodecDialogPreferenceController.java | 74 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getSelectableIndex() 105 mBluetoothA2dp.getActiveDevice())); in writeConfigurationValues()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | AbstractBluetoothA2dpPreferenceControllerTest.java | 53 private BluetoothA2dp mBluetoothA2dp; field in AbstractBluetoothA2dpPreferenceControllerTest 86 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onPreferenceChange_bluetoothConnected_shouldUpdateCodec() 118 mController.onBluetoothServiceConnected(mBluetoothA2dp); in onBluetoothServiceConnected_shouldUpdateState()
|