Home
last modified time | relevance | path

Searched refs:BluetoothCodecConfig (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DBluetoothCodecStatusTest.java33 private static final BluetoothCodecConfig CONFIG_A =
34 buildBluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,
35 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
36 BluetoothCodecConfig.SAMPLE_RATE_44100,
37 BluetoothCodecConfig.BITS_PER_SAMPLE_16,
38 BluetoothCodecConfig.CHANNEL_MODE_STEREO,
41 private static final BluetoothCodecConfig CONFIG_B =
42 buildBluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,
43 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
44 BluetoothCodecConfig.SAMPLE_RATE_44100,
[all …]
DBluetoothCodecConfigTest.java31 BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,
32 BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC,
33 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX,
34 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD,
35 BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC,
37 BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID,
40 BluetoothCodecConfig.CODEC_PRIORITY_DISABLED,
41 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
42 BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST,
45 BluetoothCodecConfig.SAMPLE_RATE_NONE,
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpCodecConfigTest.java22 import android.bluetooth.BluetoothCodecConfig;
60 BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC,
61 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX,
62 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD,
63 BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC,
77 private static final BluetoothCodecConfig[] sCodecCapabilities = new BluetoothCodecConfig[] {
78 buildBluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,
80 BluetoothCodecConfig.SAMPLE_RATE_44100,
81 BluetoothCodecConfig.BITS_PER_SAMPLE_16,
82 BluetoothCodecConfig.CHANNEL_MODE_MONO
[all …]
DA2dpStateMachineTest.java23 import android.bluetooth.BluetoothCodecConfig;
66 private BluetoothCodecConfig mCodecConfigSbc;
67 private BluetoothCodecConfig mCodecConfigAac;
68 private BluetoothCodecConfig mCodecConfigOpus;
87 mCodecConfigSbc = new BluetoothCodecConfig.Builder() in setUp()
88 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC) in setUp()
89 .setCodecPriority(BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT) in setUp()
90 .setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_44100) in setUp()
91 .setBitsPerSample(BluetoothCodecConfig.BITS_PER_SAMPLE_16) in setUp()
92 .setChannelMode(BluetoothCodecConfig.CHANNEL_MODE_STEREO) in setUp()
[all …]
DA2dpServiceTest.java23 import android.bluetooth.BluetoothCodecConfig;
567 BluetoothCodecConfig codecConfigSbc = in testProcessAudioStateChangedCodecConfigChangedEvents()
569 BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC, in testProcessAudioStateChangedCodecConfigChangedEvents()
570 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT, in testProcessAudioStateChangedCodecConfigChangedEvents()
571 BluetoothCodecConfig.SAMPLE_RATE_44100, in testProcessAudioStateChangedCodecConfigChangedEvents()
572 BluetoothCodecConfig.BITS_PER_SAMPLE_16, in testProcessAudioStateChangedCodecConfigChangedEvents()
573 BluetoothCodecConfig.CHANNEL_MODE_STEREO, in testProcessAudioStateChangedCodecConfigChangedEvents()
575 BluetoothCodecConfig codecConfig = codecConfigSbc; in testProcessAudioStateChangedCodecConfigChangedEvents()
576 BluetoothCodecConfig[] codecsLocalCapabilities = new BluetoothCodecConfig[1]; in testProcessAudioStateChangedCodecConfigChangedEvents()
577 BluetoothCodecConfig[] codecsSelectableCapabilities = new BluetoothCodecConfig[1]; in testProcessAudioStateChangedCodecConfigChangedEvents()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpCodecConfig.java19 import android.bluetooth.BluetoothCodecConfig;
20 import android.bluetooth.BluetoothCodecConfig.CodecPriority;
46 private BluetoothCodecConfig[] mCodecConfigPriorities;
48 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
50 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
52 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
54 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
56 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
58 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
60 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
[all …]
DA2dpNativeInterface.java26 import android.bluetooth.BluetoothCodecConfig;
86 public void init(int maxConnectedAudioDevices, BluetoothCodecConfig[] codecConfigPriorities, in init()
87 BluetoothCodecConfig[] codecConfigOffloading) { in init()
147 BluetoothCodecConfig[] codecConfigArray) { in setCodecConfigPreference()
200 BluetoothCodecConfig newCodecConfig, in onCodecConfigChanged()
201 BluetoothCodecConfig[] codecsLocalCapabilities, in onCodecConfigChanged()
202 BluetoothCodecConfig[] codecsSelectableCapabilities) { in onCodecConfigChanged()
232 BluetoothCodecConfig[] codecConfigPriorities, in initNative()
233 BluetoothCodecConfig[] codecConfigOffloading); in initNative()
240 BluetoothCodecConfig[] codecConfigArray); in setCodecConfigPreferenceNative()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothDialogPreferenceController.java19 import static android.bluetooth.BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
22 import android.bluetooth.BluetoothCodecConfig;
46 BluetoothCodecConfig.SOURCE_CODEC_TYPE_LC3,
47 BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC,
48 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD,
49 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX,
50 BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC,
51 BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC};
52 protected static final int[] SAMPLE_RATES = {BluetoothCodecConfig.SAMPLE_RATE_192000,
53 BluetoothCodecConfig.SAMPLE_RATE_176400,
[all …]
DBluetoothCodecDialogPreferenceController.java20 import android.bluetooth.BluetoothCodecConfig;
82 List<BluetoothCodecConfig> configs = getSelectableConfigs(activeDevice); in getSelectableIndex()
88 index.add(convertCfgToBtnIndex(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC)); in getSelectableIndex()
94 int codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC; // default in writeConfigurationValues()
95 int codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; in writeConfigurationValues()
101 codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; in writeConfigurationValues()
104 codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC; in writeConfigurationValues()
105 codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; in writeConfigurationValues()
108 codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC; in writeConfigurationValues()
109 codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; in writeConfigurationValues()
[all …]
DBluetoothSampleRateDialogPreferenceController.java19 import android.bluetooth.BluetoothCodecConfig;
59 int sampleRateValue = BluetoothCodecConfig.SAMPLE_RATE_NONE; // default in writeConfigurationValues()
62 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in writeConfigurationValues()
69 sampleRateValue = BluetoothCodecConfig.SAMPLE_RATE_44100; in writeConfigurationValues()
72 sampleRateValue = BluetoothCodecConfig.SAMPLE_RATE_48000; in writeConfigurationValues()
75 sampleRateValue = BluetoothCodecConfig.SAMPLE_RATE_88200; in writeConfigurationValues()
78 sampleRateValue = BluetoothCodecConfig.SAMPLE_RATE_96000; in writeConfigurationValues()
87 protected int getCurrentIndexByConfig(BluetoothCodecConfig config) { in getCurrentIndexByConfig()
98 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in getSelectableIndex()
115 case BluetoothCodecConfig.SAMPLE_RATE_44100: in convertCfgToBtnIndex()
[all …]
DBluetoothBitPerSampleDialogPreferenceController.java19 import android.bluetooth.BluetoothCodecConfig;
59 int bitsPerSampleValue = BluetoothCodecConfig.BITS_PER_SAMPLE_NONE; in writeConfigurationValues()
62 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in writeConfigurationValues()
69 bitsPerSampleValue = BluetoothCodecConfig.BITS_PER_SAMPLE_16; in writeConfigurationValues()
72 bitsPerSampleValue = BluetoothCodecConfig.BITS_PER_SAMPLE_24; in writeConfigurationValues()
75 bitsPerSampleValue = BluetoothCodecConfig.BITS_PER_SAMPLE_32; in writeConfigurationValues()
84 protected int getCurrentIndexByConfig(BluetoothCodecConfig config) { in getCurrentIndexByConfig()
95 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in getSelectableIndex()
112 case BluetoothCodecConfig.BITS_PER_SAMPLE_16: in convertCfgToBtnIndex()
115 case BluetoothCodecConfig.BITS_PER_SAMPLE_24: in convertCfgToBtnIndex()
[all …]
DBluetoothChannelModeDialogPreferenceController.java19 import android.bluetooth.BluetoothCodecConfig;
59 int channelModeValue = BluetoothCodecConfig.CHANNEL_MODE_NONE; // default in writeConfigurationValues()
62 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in writeConfigurationValues()
69 channelModeValue = BluetoothCodecConfig.CHANNEL_MODE_MONO; in writeConfigurationValues()
72 channelModeValue = BluetoothCodecConfig.CHANNEL_MODE_STEREO; in writeConfigurationValues()
81 protected int getCurrentIndexByConfig(BluetoothCodecConfig config) { in getCurrentIndexByConfig()
92 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in getSelectableIndex()
109 case BluetoothCodecConfig.CHANNEL_MODE_MONO: in convertCfgToBtnIndex()
112 case BluetoothCodecConfig.CHANNEL_MODE_STEREO: in convertCfgToBtnIndex()
DBluetoothQualityDialogPreferenceController.java19 import android.bluetooth.BluetoothCodecConfig;
75 protected int getCurrentIndexByConfig(BluetoothCodecConfig config) { in getCurrentIndexByConfig()
96 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in updateState()
98 && currentConfig.getCodecType() == BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC) { in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/
DBluetoothCodecDialogPreferenceControllerTest.java29 import android.bluetooth.BluetoothCodecConfig;
72 private BluetoothCodecConfig mCodecConfigAAC;
73 private BluetoothCodecConfig mCodecConfigSBC;
74 private BluetoothCodecConfig mCodecConfigAPTX;
75 private BluetoothCodecConfig mCodecConfigAPTXHD;
76 private BluetoothCodecConfig mCodecConfigLDAC;
77 private BluetoothCodecConfig mCodecConfigOPUS;
98 mCodecConfigSBC = new BluetoothCodecConfig.Builder() in setup()
99 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC) in setup()
100 .setCodecPriority(BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST) in setup()
[all …]
DBluetoothSampleRateDialogPreferenceControllerTest.java28 import android.bluetooth.BluetoothCodecConfig;
68 private BluetoothCodecConfig mCodecConfigAAC;
69 private BluetoothCodecConfig mCodecConfigSBC;
90 mCodecConfigAAC = new BluetoothCodecConfig.Builder() in setup()
91 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC) in setup()
92 .setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_48000 in setup()
93 | BluetoothCodecConfig.SAMPLE_RATE_88200) in setup()
95 mCodecConfigSBC = new BluetoothCodecConfig.Builder() in setup()
96 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC) in setup()
97 .setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_96000) in setup()
[all …]
DBluetoothBitPerSampleDialogPreferenceControllerTest.java28 import android.bluetooth.BluetoothCodecConfig;
68 private BluetoothCodecConfig mCodecConfigAAC;
69 private BluetoothCodecConfig mCodecConfigSBC;
89 mCodecConfigAAC = new BluetoothCodecConfig.Builder() in setup()
90 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC) in setup()
91 .setBitsPerSample(BluetoothCodecConfig.BITS_PER_SAMPLE_16 in setup()
92 | BluetoothCodecConfig.BITS_PER_SAMPLE_24) in setup()
94 mCodecConfigSBC = new BluetoothCodecConfig.Builder() in setup()
95 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC) in setup()
96 .setBitsPerSample(BluetoothCodecConfig.BITS_PER_SAMPLE_24) in setup()
[all …]
DBluetoothChannelModeDialogPreferenceControllerTest.java28 import android.bluetooth.BluetoothCodecConfig;
68 private BluetoothCodecConfig mCodecConfigAAC;
69 private BluetoothCodecConfig mCodecConfigSBC;
89 mCodecConfigAAC = new BluetoothCodecConfig.Builder() in setup()
90 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC) in setup()
91 .setChannelMode(BluetoothCodecConfig.CHANNEL_MODE_STEREO) in setup()
93 mCodecConfigSBC = new BluetoothCodecConfig.Builder() in setup()
94 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC) in setup()
95 .setChannelMode(BluetoothCodecConfig.CHANNEL_MODE_MONO in setup()
96 | BluetoothCodecConfig.CHANNEL_MODE_STEREO) in setup()
[all …]
DBluetoothQualityDialogPreferenceControllerTest.java28 import android.bluetooth.BluetoothCodecConfig;
66 private BluetoothCodecConfig mCodecConfigAAC;
67 private BluetoothCodecConfig mCodecConfigLDAC;
87 mCodecConfigAAC = new BluetoothCodecConfig.Builder() in setup()
88 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC) in setup()
89 .setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_48000 in setup()
90 | BluetoothCodecConfig.SAMPLE_RATE_88200) in setup()
92 mCodecConfigLDAC = new BluetoothCodecConfig.Builder() in setup()
93 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC) in setup()
94 .setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_96000) in setup()
[all …]
DAbstractBluetoothDialogPreferenceControllerTest.java19 import static android.bluetooth.BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
31 import android.bluetooth.BluetoothCodecConfig;
72 private BluetoothCodecConfig mCodecConfigAAC;
73 private BluetoothCodecConfig mCodecConfigSBC;
74 private BluetoothCodecConfig[] mCodecConfigs = new BluetoothCodecConfig[2];
94 mCodecConfigAAC = new BluetoothCodecConfig.Builder() in setup()
95 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC) in setup()
97 mCodecConfigSBC = new BluetoothCodecConfig.Builder() in setup()
98 .setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC) in setup()
195 assertThat(mController.getSelectableByCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC)) in getSelectableByCodecType_verifyConfig()
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothCodecStatus.java44 private final @Nullable BluetoothCodecConfig mCodecConfig;
45 private final @Nullable List<BluetoothCodecConfig> mCodecsLocalCapabilities;
46 private final @Nullable List<BluetoothCodecConfig> mCodecsSelectableCapabilities;
53 public BluetoothCodecStatus(@Nullable BluetoothCodecConfig codecConfig, in BluetoothCodecStatus()
54 @Nullable List<BluetoothCodecConfig> codecsLocalCapabilities, in BluetoothCodecStatus()
55 @Nullable List<BluetoothCodecConfig> codecsSelectableCapabilities) { in BluetoothCodecStatus()
62 mCodecConfig = in.readTypedObject(BluetoothCodecConfig.CREATOR); in BluetoothCodecStatus()
63 mCodecsLocalCapabilities = in.createTypedArrayList(BluetoothCodecConfig.CREATOR); in BluetoothCodecStatus()
64 mCodecsSelectableCapabilities = in.createTypedArrayList(BluetoothCodecConfig.CREATOR); in BluetoothCodecStatus()
87 private static boolean sameCapabilities(@Nullable List<BluetoothCodecConfig> c1, in sameCapabilities()
[all …]
DBluetoothCodecConfig.java39 public final class BluetoothCodecConfig implements Parcelable { class
253 public BluetoothCodecConfig(@SourceCodecType int codecType, @CodecPriority int codecPriority, in BluetoothCodecConfig() method in BluetoothCodecConfig
281 public BluetoothCodecConfig(@SourceCodecType int codecType) { in BluetoothCodecConfig() method in BluetoothCodecConfig
282 this(codecType, BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT, in BluetoothCodecConfig()
283 BluetoothCodecConfig.SAMPLE_RATE_NONE, in BluetoothCodecConfig()
284 BluetoothCodecConfig.BITS_PER_SAMPLE_NONE, in BluetoothCodecConfig()
285 BluetoothCodecConfig.CHANNEL_MODE_NONE, 0, 0, 0, 0); in BluetoothCodecConfig()
288 private BluetoothCodecConfig(Parcel in) { in BluetoothCodecConfig() method in BluetoothCodecConfig
302 if (o instanceof BluetoothCodecConfig) { in equals()
303 BluetoothCodecConfig other = (BluetoothCodecConfig) o; in equals()
[all …]
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java23 import android.bluetooth.BluetoothCodecConfig;
197 int codecType = BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID; in processParameters()
198 int sampleRate = BluetoothCodecConfig.SAMPLE_RATE_NONE; in processParameters()
199 int bitsPerSample = BluetoothCodecConfig.BITS_PER_SAMPLE_NONE; in processParameters()
200 int channelMode = BluetoothCodecConfig.CHANNEL_MODE_STEREO; in processParameters()
320 if (codecType == BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID in processParameters()
321 || sampleRate == BluetoothCodecConfig.SAMPLE_RATE_NONE in processParameters()
322 || bitsPerSample == BluetoothCodecConfig.BITS_PER_SAMPLE_NONE) { in processParameters()
400 private BluetoothCodecConfig getCodecValue(boolean printCapabilities) { in getCodecValue()
402 BluetoothCodecConfig codecConfig = null; in getCodecValue()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothA2dpConfigStore.java19 import android.bluetooth.BluetoothCodecConfig;
27 private int mCodecType = BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID;
28 private int mCodecPriority = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT;
29 private int mSampleRate = BluetoothCodecConfig.SAMPLE_RATE_NONE;
30 private int mBitsPerSample = BluetoothCodecConfig.BITS_PER_SAMPLE_NONE;
31 private int mChannelMode = BluetoothCodecConfig.CHANNEL_MODE_NONE;
73 public BluetoothCodecConfig createCodecConfig() { in createCodecConfig()
74 return new BluetoothCodecConfig.Builder() in createCodecConfig()
DAbstractBluetoothA2dpPreferenceController.java21 import android.bluetooth.BluetoothCodecConfig;
92 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange()
121 BluetoothCodecConfig codecConfig; in updateState()
183 protected abstract int getCurrentA2dpSettingIndex(BluetoothCodecConfig config); in getCurrentA2dpSettingIndex()
192 BluetoothCodecConfig config) { in setCodecConfigPreference()
202 BluetoothCodecConfig getCodecConfig(BluetoothDevice device) { in getCodecConfig()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceControllerTest.java31 import android.bluetooth.BluetoothCodecConfig;
55 private BluetoothCodecConfig mBluetoothCodecConfig;
107 BluetoothCodecConfig.SAMPLE_RATE_48000); in updateState_option2Set_shouldUpdateToOption2()
152 protected int getCurrentA2dpSettingIndex(BluetoothCodecConfig config) { in getCurrentA2dpSettingIndex()

12