Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#nestedclasses) \| [Constants](https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#constants) \| [Inherited Constants](https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#inhconstants) \| [Fields](https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#lfields) \| [Methods](https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#inhmethods)

# BluetoothLeAudioCodecConfig

*** ** * ** ***


`
public

final

class
BluetoothLeAudioCodecConfig
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.bluetooth.BluetoothLeAudioCodecConfig |

<br />

*** ** * ** ***

Represents the codec configuration for a Bluetooth LE Audio source device.

Contains the source codec type.

The source codec type values are the same as those supported by the device hardware.
**See also:**

- `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig`

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig.Builder` Builder for `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig`. |

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_16` Codec bits per sample 16. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_24` Codec bits per sample 24. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_32` Codec bits per sample 32. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_NONE` Codec bits per sample 0. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CHANNEL_COUNT_1` Codec channel mode MONO. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CHANNEL_COUNT_2` Codec channel mode STEREO. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CHANNEL_COUNT_NONE` Codec channel mode NONE. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CODEC_PRIORITY_DEFAULT` Codec priority default. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CODEC_PRIORITY_DISABLED` Codec priority disabled. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CODEC_PRIORITY_HIGHEST` Codec priority highest. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#FRAME_DURATION_10000` Frame duration 10000 us. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#FRAME_DURATION_7500` Frame duration 7500 us. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#FRAME_DURATION_NONE` Frame duration 0. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_11025` Codec sample rate 11025 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_16000` Codec sample rate 16000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_176400` Codec sample rate 176400 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_192000` Codec sample rate 192000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_22050` Codec sample rate 22050 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_24000` Codec sample rate 24000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_32000` Codec sample rate 32000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_384000` Codec sample rate 384000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_44100` Codec sample rate 44100 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_48000` Codec sample rate 48000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_8000` Codec sample rate 8000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_88200` Codec sample rate 88200 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_96000` Codec sample rate 96000 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_NONE` Codec sample rate 0 Hz. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_INVALID` |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_LC3` Source codec type for LC3. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_OPUS` Source codec type for Opus. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_OPUS_HI_RES` Source codec type for Opus High Resolution. |
| `int` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_VENDOR_SPECIFIC` Source codec type used for Vendor Specific codecs. |

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/os/Parcelable` |---|---| | `int` | `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor. | | `int` | `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig>` | `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CREATOR` `https://developer.android.com/reference/android/os/Parcelable.Creator` interface implementation. |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` boolean` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getBitsPerSample()() ` Returns the codec bits per sample. |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getChannelCount()() ` Returns the codec channel mode. |
| ` long` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getCodecId()() ` Returns the unique codec identifier. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getCodecName()() ` Gets the codec name. |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getCodecPriority()() ` Returns the codec selection priority. |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getCodecType()() ` Gets the codec type. |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getFrameDuration()() ` Returns the frame duration. |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getMaxOctetsPerFrame()() ` Returns the maximum octets per frame |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getMinOctetsPerFrame()() ` Returns the minimum octets per frame |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getOctetsPerFrame()() ` Returns the octets per frame |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getSampleRate()() ` Returns the codec sample rate. |
| ` int` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#hashCode()() ` Returns a hash representation of this BluetoothLeAudioCodecConfig based on all the config values. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel out, int flags) ` Flatten this object in to a Parcel. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||
| From interface ` https://developer.android.com/reference/android/os/Parcelable ` |---|---| | ` abstract int` | ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. | | ` abstract void` | ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. | ||

## Constants

### BITS_PER_SAMPLE_16

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int BITS_PER_SAMPLE_16
```

Codec bits per sample 16.

<br />

Constant Value:

1
(0x00000001)


### BITS_PER_SAMPLE_24

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int BITS_PER_SAMPLE_24
```

Codec bits per sample 24.

<br />

Constant Value:

2
(0x00000002)


### BITS_PER_SAMPLE_32

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int BITS_PER_SAMPLE_32
```

Codec bits per sample 32.

<br />

Constant Value:

8
(0x00000008)


### BITS_PER_SAMPLE_NONE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int BITS_PER_SAMPLE_NONE
```

Codec bits per sample 0. Default value of the codec bits per sample.

<br />

Constant Value:

0
(0x00000000)


### CHANNEL_COUNT_1

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_COUNT_1
```

Codec channel mode MONO.

<br />

Constant Value:

1
(0x00000001)


### CHANNEL_COUNT_2

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_COUNT_2
```

Codec channel mode STEREO.

<br />

Constant Value:

2
(0x00000002)


### CHANNEL_COUNT_NONE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_COUNT_NONE
```

Codec channel mode NONE. Default value of the codec channel mode.

<br />

Constant Value:

0
(0x00000000)


### CODEC_PRIORITY_DEFAULT

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CODEC_PRIORITY_DEFAULT
```

Codec priority default. Default value used for codec priority.

<br />

Constant Value:

0
(0x00000000)


### CODEC_PRIORITY_DISABLED

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CODEC_PRIORITY_DISABLED
```

Codec priority disabled. Used to indicate that this codec is disabled and should not be used.

<br />

Constant Value:

-1
(0xffffffff)


### CODEC_PRIORITY_HIGHEST

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CODEC_PRIORITY_HIGHEST
```

Codec priority highest. Used to indicate the highest priority a codec can have.

<br />

Constant Value:

1000000
(0x000f4240)


### FRAME_DURATION_10000

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FRAME_DURATION_10000
```

Frame duration 10000 us.

<br />

Constant Value:

2
(0x00000002)


### FRAME_DURATION_7500

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FRAME_DURATION_7500
```

Frame duration 7500 us.

<br />

Constant Value:

1
(0x00000001)


### FRAME_DURATION_NONE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FRAME_DURATION_NONE
```

Frame duration 0. Default value of the frame duration.

<br />

Constant Value:

0
(0x00000000)


### SAMPLE_RATE_11025

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_11025
```

Codec sample rate 11025 Hz.

<br />

Constant Value:

2
(0x00000002)


### SAMPLE_RATE_16000

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_16000
```

Codec sample rate 16000 Hz.

<br />

Constant Value:

4
(0x00000004)


### SAMPLE_RATE_176400

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_176400
```

Codec sample rate 176400 Hz.

<br />

Constant Value:

1024
(0x00000400)


### SAMPLE_RATE_192000

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_192000
```

Codec sample rate 192000 Hz.

<br />

Constant Value:

2048
(0x00000800)


### SAMPLE_RATE_22050

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_22050
```

Codec sample rate 22050 Hz.

<br />

Constant Value:

8
(0x00000008)


### SAMPLE_RATE_24000

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_24000
```

Codec sample rate 24000 Hz.

<br />

Constant Value:

16
(0x00000010)


### SAMPLE_RATE_32000

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_32000
```

Codec sample rate 32000 Hz.

<br />

Constant Value:

32
(0x00000020)


### SAMPLE_RATE_384000

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_384000
```

Codec sample rate 384000 Hz.

<br />

Constant Value:

4096
(0x00001000)


### SAMPLE_RATE_44100

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_44100
```

Codec sample rate 44100 Hz.

<br />

Constant Value:

64
(0x00000040)


### SAMPLE_RATE_48000

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_48000
```

Codec sample rate 48000 Hz.

<br />

Constant Value:

128
(0x00000080)


### SAMPLE_RATE_8000

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_8000
```

Codec sample rate 8000 Hz.

<br />

Constant Value:

1
(0x00000001)


### SAMPLE_RATE_88200

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_88200
```

Codec sample rate 88200 Hz.

<br />

Constant Value:

256
(0x00000100)


### SAMPLE_RATE_96000

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_96000
```

Codec sample rate 96000 Hz.

<br />

Constant Value:

512
(0x00000200)


### SAMPLE_RATE_NONE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SAMPLE_RATE_NONE
```

Codec sample rate 0 Hz. Default value used for codec sample rate. Values are the bit mask as
defined in the Bluetooth Assigned Numbers, Generic Audio, Supported_Sampling_Frequencies
table.

<br />

Constant Value:

0
(0x00000000)


### SOURCE_CODEC_TYPE_INVALID

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SOURCE_CODEC_TYPE_INVALID
```

<br />

<br />

Constant Value:

1000000
(0x000f4240)


### SOURCE_CODEC_TYPE_LC3

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SOURCE_CODEC_TYPE_LC3
```

Source codec type for LC3.

<br />

Constant Value:

0
(0x00000000)


### SOURCE_CODEC_TYPE_OPUS

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SOURCE_CODEC_TYPE_OPUS
```

Source codec type for Opus.

<br />

Constant Value:

1
(0x00000001)


### SOURCE_CODEC_TYPE_OPUS_HI_RES

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int SOURCE_CODEC_TYPE_OPUS_HI_RES
```

Source codec type for Opus High Resolution.

<br />

Constant Value:

2
(0x00000002)


### SOURCE_CODEC_TYPE_VENDOR_SPECIFIC

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SOURCE_CODEC_TYPE_VENDOR_SPECIFIC
```

Source codec type used for Vendor Specific codecs. When this type is used, `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#getCodecId()` should be used to get more information about the codec.

<br />

Constant Value:

255
(0x000000ff)


## Fields

### CREATOR

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<BluetoothLeAudioCodecConfig> CREATOR
```

`https://developer.android.com/reference/android/os/Parcelable.Creator` interface implementation.

<br />

## Public methods

### describeContents

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### equals

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean equals (Object o)
```

Indicates whether some other object is "equal to" this one.


The `equals` method implements an equivalence relation
on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.


An equivalence relation partitions the elements it operates on
into *equivalence classes*; all the members of an
equivalence class are equal to each other. Members of an
equivalence class are substitutable for each other, at least
for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: This value may be `null`. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if this object is the same as the obj argument; `false` otherwise. <br /> |

### getBitsPerSample

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getBitsPerSample ()
```

Returns the codec bits per sample.

<br />

| Returns ||
|---|---|
| `int` | Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_NONE` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_16` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_24` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#BITS_PER_SAMPLE_32` |

### getChannelCount

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getChannelCount ()
```

Returns the codec channel mode.

<br />

| Returns ||
|---|---|
| `int` | Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CHANNEL_COUNT_NONE` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CHANNEL_COUNT_1` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CHANNEL_COUNT_2` |

### getCodecId

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getCodecId ()
```

Returns the unique codec identifier.

The codec identifier is 40 bits as defined by Bluetooth ASCS v1.0.1 in chapter 4.1. Audio
Stream Endpoints

- Bits 0-7: Codec ID, as defined by Bluetooth Assigned numbers 2.11 Coding_Format and Codec_ID (HCI)
  - 0x06: LC3
  - 0xFF: Vendor
- Bits 8-23: Company ID, set to 0, if octet 0 is not 0xFF.
- Bits 24-39: Vendor-defined codec ID, set to 0, if octet 0 is not 0xFF.

<br />

<br />

| Returns ||
|---|---|
| `long` | <br /> |

### getCodecName

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getCodecName ()
```

Gets the codec name.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the codec name. This value cannot be `null`. <br /> |

### getCodecPriority

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getCodecPriority ()
```

Returns the codec selection priority.

The codec selection priority is relative to other codecs: larger value means higher
priority.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CODEC_PRIORITY_DISABLED` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CODEC_PRIORITY_DEFAULT` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#CODEC_PRIORITY_HIGHEST` |

### getCodecType

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getCodecType ()
```

Gets the codec type.

<br />

| Returns ||
|---|---|
| `int` | the codec type. Value is one of the following: - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_LC3` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_OPUS` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_OPUS_HI_RES` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_VENDOR_SPECIFIC` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SOURCE_CODEC_TYPE_INVALID` |

### getFrameDuration

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getFrameDuration ()
```

Returns the frame duration.

<br />

| Returns ||
|---|---|
| `int` | Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#FRAME_DURATION_NONE` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#FRAME_DURATION_7500` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#FRAME_DURATION_10000` |

### getMaxOctetsPerFrame

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getMaxOctetsPerFrame ()
```

Returns the maximum octets per frame

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getMinOctetsPerFrame

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getMinOctetsPerFrame ()
```

Returns the minimum octets per frame

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getOctetsPerFrame

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getOctetsPerFrame ()
```

Returns the octets per frame

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getSampleRate

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getSampleRate ()
```

Returns the codec sample rate.

<br />

| Returns ||
|---|---|
| `int` | Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_NONE` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_8000` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_11025` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_16000` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_22050` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_24000` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_32000` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_44100` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_48000` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_88200` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_96000` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_176400` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_192000` - `https://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig#SAMPLE_RATE_384000` |

### hashCode

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int hashCode ()
```

Returns a hash representation of this BluetoothLeAudioCodecConfig based on all the config
values.

<br />

| Returns ||
|---|---|
| `int` | a hash code value for this object. <br /> |

### toString

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel out, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `out` | `Parcel`: This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |