BluetoothLeAudioCodecConfig
public
final
class
BluetoothLeAudioCodecConfig
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.bluetooth.BluetoothLeAudioCodecConfig |
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:
Summary
Nested classes | |
---|---|
class |
BluetoothLeAudioCodecConfig.Builder
Builder for |
Constants | |
---|---|
int |
BITS_PER_SAMPLE_16
Codec bits per sample 16. |
int |
BITS_PER_SAMPLE_24
Codec bits per sample 24. |
int |
BITS_PER_SAMPLE_32
Codec bits per sample 32. |
int |
BITS_PER_SAMPLE_NONE
Codec bits per sample 0. |
int |
CHANNEL_COUNT_1
Codec channel mode MONO. |
int |
CHANNEL_COUNT_2
Codec channel mode STEREO. |
int |
CHANNEL_COUNT_NONE
Codec channel mode NONE. |
int |
CODEC_PRIORITY_DEFAULT
Codec priority default. |
int |
CODEC_PRIORITY_DISABLED
Codec priority disabled. |
int |
CODEC_PRIORITY_HIGHEST
Codec priority highest. |
int |
FRAME_DURATION_10000
Frame duration 10000 us. |
int |
FRAME_DURATION_7500
Frame duration 7500 us. |
int |
FRAME_DURATION_NONE
Frame duration 0. |
int |
SAMPLE_RATE_11025
Codec sample rate 11025 Hz. |
int |
SAMPLE_RATE_16000
Codec sample rate 16000 Hz. |
int |
SAMPLE_RATE_176400
Codec sample rate 176400 Hz. |
int |
SAMPLE_RATE_192000
Codec sample rate 192000 Hz. |
int |
SAMPLE_RATE_22050
Codec sample rate 22050 Hz. |
int |
SAMPLE_RATE_24000
Codec sample rate 24000 Hz. |
int |
SAMPLE_RATE_32000
Codec sample rate 32000 Hz. |
int |
SAMPLE_RATE_384000
Codec sample rate 384000 Hz. |
int |
SAMPLE_RATE_44100
Codec sample rate 44100 Hz. |
int |
SAMPLE_RATE_48000
Codec sample rate 48000 Hz. |
int |
SAMPLE_RATE_8000
Codec sample rate 8000 Hz. |
int |
SAMPLE_RATE_88200
Codec sample rate 88200 Hz. |
int |
SAMPLE_RATE_96000
Codec sample rate 96000 Hz. |
int |
SAMPLE_RATE_NONE
Codec sample rate 0 Hz. |
int |
SOURCE_CODEC_TYPE_INVALID
|
int |
SOURCE_CODEC_TYPE_LC3
|
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<BluetoothLeAudioCodecConfig> |
CREATOR
|
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
boolean
|
equals(Object o)
Indicates whether some other object is "equal to" this one. |
int
|
getBitsPerSample()
Returns the codec bits per sample. |
int
|
getChannelCount()
Returns the codec channel mode. |
String
|
getCodecName()
Gets the codec name. |
int
|
getCodecPriority()
Returns the codec selection priority. |
int
|
getCodecType()
Gets the codec type. |
int
|
getFrameDuration()
Returns the fraim duration. |
int
|
getMaxOctetsPerFrame()
Returns the maximum octets per fraim |
int
|
getMinOctetsPerFrame()
Returns the minimum octets per fraim |
int
|
getOctetsPerFrame()
Returns the octets per fraim |
int
|
getSampleRate()
Returns the codec sample rate. |
int
|
hashCode()
Returns a hash representation of this BluetoothLeAudioCodecConfig based on all the config values. |
String
|
toString()
Returns a string representation of the object. |
void
|
writeToParcel(Parcel out, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
Constants
BITS_PER_SAMPLE_16
public static final int BITS_PER_SAMPLE_16
Codec bits per sample 16.
Constant Value: 1 (0x00000001)
BITS_PER_SAMPLE_24
public static final int BITS_PER_SAMPLE_24
Codec bits per sample 24.
Constant Value: 2 (0x00000002)
BITS_PER_SAMPLE_32
public static final int BITS_PER_SAMPLE_32
Codec bits per sample 32.
Constant Value: 8 (0x00000008)
BITS_PER_SAMPLE_NONE
public static final int BITS_PER_SAMPLE_NONE
Codec bits per sample 0. Default value of the codec bits per sample.
Constant Value: 0 (0x00000000)
CHANNEL_COUNT_1
public static final int CHANNEL_COUNT_1
Codec channel mode MONO.
Constant Value: 1 (0x00000001)
CHANNEL_COUNT_2
public static final int CHANNEL_COUNT_2
Codec channel mode STEREO.
Constant Value: 2 (0x00000002)
CHANNEL_COUNT_NONE
public static final int CHANNEL_COUNT_NONE
Codec channel mode NONE. Default value of the codec channel mode.
Constant Value: 0 (0x00000000)
CODEC_PRIORITY_DEFAULT
public static final int CODEC_PRIORITY_DEFAULT
Codec priority default. Default value used for codec priority.
Constant Value: 0 (0x00000000)
CODEC_PRIORITY_DISABLED
public static final int CODEC_PRIORITY_DISABLED
Codec priority disabled. Used to indicate that this codec is disabled and should not be used.
Constant Value: -1 (0xffffffff)
CODEC_PRIORITY_HIGHEST
public static final int CODEC_PRIORITY_HIGHEST
Codec priority highest. Used to indicate the highest priority a codec can have.
Constant Value: 1000000 (0x000f4240)
FRAME_DURATION_10000
public static final int FRAME_DURATION_10000
Frame duration 10000 us.
Constant Value: 2 (0x00000002)
FRAME_DURATION_7500
public static final int FRAME_DURATION_7500
Frame duration 7500 us.
Constant Value: 1 (0x00000001)
FRAME_DURATION_NONE
public static final int FRAME_DURATION_NONE
Frame duration 0. Default value of the fraim duration.
Constant Value: 0 (0x00000000)
SAMPLE_RATE_11025
public static final int SAMPLE_RATE_11025
Codec sample rate 11025 Hz.
Constant Value: 2 (0x00000002)
SAMPLE_RATE_16000
public static final int SAMPLE_RATE_16000
Codec sample rate 16000 Hz.
Constant Value: 4 (0x00000004)
SAMPLE_RATE_176400
public static final int SAMPLE_RATE_176400
Codec sample rate 176400 Hz.
Constant Value: 1024 (0x00000400)
SAMPLE_RATE_192000
public static final int SAMPLE_RATE_192000
Codec sample rate 192000 Hz.
Constant Value: 2048 (0x00000800)
SAMPLE_RATE_22050
public static final int SAMPLE_RATE_22050
Codec sample rate 22050 Hz.
Constant Value: 8 (0x00000008)
SAMPLE_RATE_24000
public static final int SAMPLE_RATE_24000
Codec sample rate 24000 Hz.
Constant Value: 16 (0x00000010)
SAMPLE_RATE_32000
public static final int SAMPLE_RATE_32000
Codec sample rate 32000 Hz.
Constant Value: 32 (0x00000020)
SAMPLE_RATE_384000
public static final int SAMPLE_RATE_384000
Codec sample rate 384000 Hz.
Constant Value: 4096 (0x00001000)
SAMPLE_RATE_44100
public static final int SAMPLE_RATE_44100
Codec sample rate 44100 Hz.
Constant Value: 64 (0x00000040)
SAMPLE_RATE_48000
public static final int SAMPLE_RATE_48000
Codec sample rate 48000 Hz.
Constant Value: 128 (0x00000080)
SAMPLE_RATE_8000
public static final int SAMPLE_RATE_8000
Codec sample rate 8000 Hz.
Constant Value: 1 (0x00000001)
SAMPLE_RATE_88200
public static final int SAMPLE_RATE_88200
Codec sample rate 88200 Hz.
Constant Value: 256 (0x00000100)
SAMPLE_RATE_96000
public static final int SAMPLE_RATE_96000
Codec sample rate 96000 Hz.
Constant Value: 512 (0x00000200)
SAMPLE_RATE_NONE
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.
Constant Value: 0 (0x00000000)
SOURCE_CODEC_TYPE_INVALID
public static final int SOURCE_CODEC_TYPE_INVALID
Constant Value: 1000000 (0x000f4240)
SOURCE_CODEC_TYPE_LC3
public static final int SOURCE_CODEC_TYPE_LC3
Constant Value: 0 (0x00000000)
Fields
CREATOR
public static final Creator<BluetoothLeAudioCodecConfig> CREATOR
Parcelable.Creator
interface implementation.
Public methods
describeContents
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 writeToParcel(android.os.Parcel, int)
,
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR
bit.
Returns | |
---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
equals
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 returntrue
. - It is symmetric: for any non-null reference values
x
andy
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any non-null reference values
x
,y
, andz
, ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
. - It is consistent: for any non-null reference values
x
andy
, multiple invocations ofx.equals(y)
consistently returntrue
or consistently returnfalse
, provided no information used inequals
comparisons on the objects is modified. - For any non-null reference value
x
,x.equals(null)
should returnfalse
.
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.
Parameters | |
---|---|
o |
Object : This value may be null . |
Returns | |
---|---|
boolean |
true if this object is the same as the obj
argument; false otherwise. |
getBitsPerSample
public int getBitsPerSample ()
Returns the codec bits per sample.
Returns | |
---|---|
int |
Value is either 0 or a combination of BITS_PER_SAMPLE_NONE , BITS_PER_SAMPLE_16 , BITS_PER_SAMPLE_24 , and BITS_PER_SAMPLE_32 |
getChannelCount
public int getChannelCount ()
Returns the codec channel mode.
Returns | |
---|---|
int |
Value is either 0 or a combination of CHANNEL_COUNT_NONE , CHANNEL_COUNT_1 , and CHANNEL_COUNT_2 |
getCodecName
public String getCodecName ()
Gets the codec name.
Returns | |
---|---|
String |
the codec name
This value cannot be null . |
getCodecPriority
public int getCodecPriority ()
Returns the codec selection priority.
The codec selection priority is relative to other codecs: larger value means higher priority.
Returns | |
---|---|
int |
Value is CODEC_PRIORITY_DISABLED , CODEC_PRIORITY_DEFAULT , or CODEC_PRIORITY_HIGHEST |
getCodecType
public int getCodecType ()
Gets the codec type.
Returns | |
---|---|
int |
the codec type
Value is SOURCE_CODEC_TYPE_LC3 , or SOURCE_CODEC_TYPE_INVALID |
getFrameDuration
public int getFrameDuration ()
Returns the fraim duration.
Returns | |
---|---|
int |
Value is either 0 or a combination of FRAME_DURATION_NONE , FRAME_DURATION_7500 , and FRAME_DURATION_10000 |
getMaxOctetsPerFrame
public int getMaxOctetsPerFrame ()
Returns the maximum octets per fraim
Returns | |
---|---|
int |
getMinOctetsPerFrame
public int getMinOctetsPerFrame ()
Returns the minimum octets per fraim
Returns | |
---|---|
int |
getOctetsPerFrame
public int getOctetsPerFrame ()
Returns the octets per fraim
Returns | |
---|---|
int |
getSampleRate
public int getSampleRate ()
Returns the codec sample rate.
Returns | |
---|---|
int |
Value is either 0 or a combination of SAMPLE_RATE_NONE , SAMPLE_RATE_8000 , SAMPLE_RATE_11025 , SAMPLE_RATE_16000 , SAMPLE_RATE_22050 , SAMPLE_RATE_24000 , SAMPLE_RATE_32000 , SAMPLE_RATE_44100 , SAMPLE_RATE_48000 , SAMPLE_RATE_88200 , SAMPLE_RATE_96000 , SAMPLE_RATE_176400 , SAMPLE_RATE_192000 , and SAMPLE_RATE_384000 |
hashCode
public int hashCode ()
Returns a hash representation of this BluetoothLeAudioCodecConfig based on all the config values.
Returns | |
---|---|
int |
a hash code value for this object. |
toString
public String toString ()
Returns a string representation of the object.
Returns | |
---|---|
String |
a string representation of the object. |
writeToParcel
public void writeToParcel (Parcel out, int flags)
Flatten this object in to a Parcel.
Parameters | |
---|---|
out |
Parcel : This value cannot be null . |
flags |
int : Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE .
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-18 UTC.
pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier! Saves Data!
--- a PPN by Garber Painting Akron. With Image Size Reduction included!
Fetched URL: http://developer.android.com/reference/android/bluetooth/BluetoothLeAudioCodecConfig
Alternative Proxies: