Home
last modified time | relevance | path

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

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothCodecStatusTest.java36 private static final BluetoothCodecConfig config_A =
37 new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,
38 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
39 BluetoothCodecConfig.SAMPLE_RATE_44100,
40 BluetoothCodecConfig.BITS_PER_SAMPLE_16,
41 BluetoothCodecConfig.CHANNEL_MODE_STEREO,
44 private static final BluetoothCodecConfig config_B =
45 new BluetoothCodecConfig(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,
46 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
47 BluetoothCodecConfig.SAMPLE_RATE_44100,
[all …]
DBluetoothCodecConfigTest.java32 BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC,
33 BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC,
34 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX,
35 BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD,
36 BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC,
37 BluetoothCodecConfig.SOURCE_CODEC_TYPE_MAX,
38 BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID,
41 BluetoothCodecConfig.CODEC_PRIORITY_DISABLED,
42 BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
43 BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST,
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothCodecStatus.java46 private final @Nullable BluetoothCodecConfig mCodecConfig;
47 private final BluetoothCodecConfig[] mCodecsLocalCapabilities;
48 private final BluetoothCodecConfig[] mCodecsSelectableCapabilities;
50 public BluetoothCodecStatus(@Nullable BluetoothCodecConfig codecConfig, in BluetoothCodecStatus()
51 @Nullable BluetoothCodecConfig[] codecsLocalCapabilities, in BluetoothCodecStatus()
52 @Nullable BluetoothCodecConfig[] codecsSelectableCapabilities) { in BluetoothCodecStatus()
79 public static boolean sameCapabilities(BluetoothCodecConfig[] c1, in sameCapabilities()
80 BluetoothCodecConfig[] c2) { in sameCapabilities()
101 public boolean isCodecConfigSelectable(BluetoothCodecConfig codecConfig) { in isCodecConfigSelectable()
106 for (BluetoothCodecConfig selectableConfig : mCodecsSelectableCapabilities) { in isCodecConfigSelectable()
[all …]
DBluetoothCodecConfig.java37 public final class BluetoothCodecConfig implements Parcelable { class
182 public BluetoothCodecConfig(@SourceCodecType int codecType, @CodecPriority int codecPriority, in BluetoothCodecConfig() method in BluetoothCodecConfig
199 public BluetoothCodecConfig(@SourceCodecType int codecType) { in BluetoothCodecConfig() method in BluetoothCodecConfig
201 mCodecPriority = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; in BluetoothCodecConfig()
202 mSampleRate = BluetoothCodecConfig.SAMPLE_RATE_NONE; in BluetoothCodecConfig()
203 mBitsPerSample = BluetoothCodecConfig.BITS_PER_SAMPLE_NONE; in BluetoothCodecConfig()
204 mChannelMode = BluetoothCodecConfig.CHANNEL_MODE_NONE; in BluetoothCodecConfig()
213 if (o instanceof BluetoothCodecConfig) { in equals()
214 BluetoothCodecConfig other = (BluetoothCodecConfig) o; in equals()
344 … public static final @android.annotation.NonNull Parcelable.Creator<BluetoothCodecConfig> CREATOR =
[all …]
DBufferConstraints.java93 public @Nullable BufferConstraint forCodec(@BluetoothCodecConfig.SourceCodecType int codec) { in forCodec()
DBluetoothA2dp.java775 @NonNull BluetoothCodecConfig codecConfig) { in setCodecConfigPreference()
1025 public boolean setBufferLengthMillis(@BluetoothCodecConfig.SourceCodecType int codec, in setBufferLengthMillis()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DA2dpProfile.java26 import android.bluetooth.BluetoothCodecConfig;
244 BluetoothCodecConfig codecConfig = null; in isHighQualityAudioEnabled()
283 BluetoothCodecConfig[] selectable = null; in getHighQualityAudioOptionLabel()
293 final BluetoothCodecConfig codecConfig = (selectable == null || selectable.length < 1) in getHighQualityAudioOptionLabel()
296 ? BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID : codecConfig.getCodecType(); in getHighQualityAudioOptionLabel()
300 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC: in getHighQualityAudioOptionLabel()
303 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC: in getHighQualityAudioOptionLabel()
306 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX: in getHighQualityAudioOptionLabel()
309 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD: in getHighQualityAudioOptionLabel()
312 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC: in getHighQualityAudioOptionLabel()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DA2dpProfileTest.java27 import android.bluetooth.BluetoothCodecConfig;
121 BluetoothCodecConfig config = mock(BluetoothCodecConfig.class); in isHighQualityAudioEnabled()
181 BluetoothCodecConfig config = mock(BluetoothCodecConfig.class); in getLabelDeviceConnectedButNotHighQualityCodec()
182 BluetoothCodecConfig[] configs = {config}; in getLabelDeviceConnectedButNotHighQualityCodec()
196 BluetoothCodecConfig config = mock(BluetoothCodecConfig.class); in getLabelDeviceConnectedWithHighQualityCodec()
197 BluetoothCodecConfig[] configs = {config}; in getLabelDeviceConnectedWithHighQualityCodec()
/frameworks/base/media/java/android/media/
DAudioSystem.java23 import android.bluetooth.BluetoothCodecConfig;
253 case AUDIO_FORMAT_AAC: return BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC; in audioFormatToBluetoothSourceCodec()
254 case AUDIO_FORMAT_SBC: return BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC; in audioFormatToBluetoothSourceCodec()
255 case AUDIO_FORMAT_APTX: return BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX; in audioFormatToBluetoothSourceCodec()
256 case AUDIO_FORMAT_APTX_HD: return BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD; in audioFormatToBluetoothSourceCodec()
257 case AUDIO_FORMAT_LDAC: return BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC; in audioFormatToBluetoothSourceCodec()
261 return BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID; in audioFormatToBluetoothSourceCodec()
273 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC: in bluetoothCodecToAudioFormat()
275 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC: in bluetoothCodecToAudioFormat()
277 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX: in bluetoothCodecToAudioFormat()
[all …]
DAudioManager.java33 import android.bluetooth.BluetoothCodecConfig;
6820 public List<BluetoothCodecConfig> getHwOffloadEncodingFormatsSupportedForA2DP() { in getHwOffloadEncodingFormatsSupportedForA2DP()
6822 ArrayList<BluetoothCodecConfig> codecConfigList = new ArrayList<BluetoothCodecConfig>(); in getHwOffloadEncodingFormatsSupportedForA2DP()
6833 != BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID) { in getHwOffloadEncodingFormatsSupportedForA2DP()
6834 codecConfigList.add(new BluetoothCodecConfig(btSourceCodec)); in getHwOffloadEncodingFormatsSupportedForA2DP()
/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java23 import android.bluetooth.BluetoothCodecConfig;
286 final BluetoothCodecConfig btCodecConfig = btCodecStatus.getCodecConfig(); in getA2dpCodec()
880 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC: in bluetoothCodecToEncodingString()
882 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC: in bluetoothCodecToEncodingString()
884 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX: in bluetoothCodecToEncodingString()
886 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD: in bluetoothCodecToEncodingString()
888 case BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC: in bluetoothCodecToEncodingString()
/frameworks/proto_logging/stats/
Datoms.proto2457 * frameworks/base/core/java/android/bluetooth/BluetoothCodecConfig.java
2468 // Type of codec as defined by various SOURCE_CODEC_TYPE_* constants in BluetoothCodecConfig
2474 // Sample rate in Hz as defined by various SAMPLE_RATE_* constants in BluetoothCodecConfig
2477 // Bits per sample as defined by various BITS_PER_SAMPLE_* constants in BluetoothCodecConfig
2480 // Channel mode as defined by various CHANNEL_MODE_* constants in BluetoothCodecConfig
2505 * frameworks/base/core/java/android/bluetooth/BluetoothCodecConfig.java
2516 // Type of codec as defined by various SOURCE_CODEC_TYPE_* constants in BluetoothCodecConfig
2523 // in BluetoothCodecConfig
2527 // in BluetoothCodecConfig
2531 // BluetoothCodecConfig
/frameworks/base/boot/
Dpreloaded-classes1045 android.bluetooth.BluetoothCodecConfig$1
1046 android.bluetooth.BluetoothCodecConfig
Dboot-image-profile.txt23873 Landroid/bluetooth/BluetoothCodecConfig$1;
23874 Landroid/bluetooth/BluetoothCodecConfig;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt10061 Landroid/bluetooth/BluetoothCodecConfig;->appendCapabilityToString(Ljava/lang/String;Ljava/lang/Str…
10062 Landroid/bluetooth/BluetoothCodecConfig;->CREATOR:Landroid/os/Parcelable$Creator;
10063 Landroid/bluetooth/BluetoothCodecConfig;->getCodecName()Ljava/lang/String;
10064 Landroid/bluetooth/BluetoothCodecConfig;->isMandatoryCodec()Z
10065 Landroid/bluetooth/BluetoothCodecConfig;->isValid()Z
10066 Landroid/bluetooth/BluetoothCodecConfig;->mBitsPerSample:I
10067 Landroid/bluetooth/BluetoothCodecConfig;->mChannelMode:I
10068 Landroid/bluetooth/BluetoothCodecConfig;->mCodecPriority:I
10069 Landroid/bluetooth/BluetoothCodecConfig;->mCodecSpecific1:J
10070 Landroid/bluetooth/BluetoothCodecConfig;->mCodecSpecific2:J
[all …]
/frameworks/base/config/
Dpreloaded-classes1042 android.bluetooth.BluetoothCodecConfig$1
1043 android.bluetooth.BluetoothCodecConfig
Dboot-image-profile.txt33506 Landroid/bluetooth/BluetoothCodecConfig$1;
33507 Landroid/bluetooth/BluetoothCodecConfig;