audio

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AudioCapabilitiesTagPcmCapabilities     int32 = 0
	AudioCapabilitiesTagA2dpCapabilities    int32 = 1
	AudioCapabilitiesTagLeAudioCapabilities int32 = 2
)
View Source
const (
	AudioConfigurationTagPcmConfig              int32 = 0
	AudioConfigurationTagA2dpConfig             int32 = 1
	AudioConfigurationTagLeAudioConfig          int32 = 2
	AudioConfigurationTagLeAudioBroadcastConfig int32 = 3
	AudioConfigurationTagHfpConfig              int32 = 4
	AudioConfigurationTagA2dp                   int32 = 5
)
View Source
const (
	AudioContextUNSPECIFIED     int32 = 1
	AudioContextCONVERSATIONAL  int32 = 2
	AudioContextMEDIA           int32 = 4
	AudioContextGAME            int32 = 8
	AudioContextINSTRUCTIONAL   int32 = 16
	AudioContextVoiceAssistants int32 = 32
	AudioContextLiveAudio       int32 = 64
	AudioContextSoundEffects    int32 = 128
	AudioContextNOTIFICATIONS   int32 = 256
	AudioContextRingtoneAlerts  int32 = 512
	AudioContextALERTS          int32 = 1024
	AudioContextEmergencyAlarm  int32 = 2048
)
View Source
const (
	BroadcastCapabilityLeAudioCodecCapabilitiesTagLc3Capabilities     int32 = 0
	BroadcastCapabilityLeAudioCodecCapabilitiesTagVendorCapabillities int32 = 1
)
View Source
const (
	CodecCapabilitiesCapabilitiesTagSbcCapabilities          int32 = 0
	CodecCapabilitiesCapabilitiesTagAacCapabilities          int32 = 1
	CodecCapabilitiesCapabilitiesTagLdacCapabilities         int32 = 2
	CodecCapabilitiesCapabilitiesTagAptxCapabilities         int32 = 3
	CodecCapabilitiesCapabilitiesTagAptxAdaptiveCapabilities int32 = 4
	CodecCapabilitiesCapabilitiesTagLc3Capabilities          int32 = 5
	CodecCapabilitiesCapabilitiesTagVendorCapabilities       int32 = 6
	CodecCapabilitiesCapabilitiesTagOpusCapabilities         int32 = 7
)
View Source
const (
	CodecConfigurationCodecSpecificTagSbcConfig          int32 = 0
	CodecConfigurationCodecSpecificTagAacConfig          int32 = 1
	CodecConfigurationCodecSpecificTagLdacConfig         int32 = 2
	CodecConfigurationCodecSpecificTagAptxConfig         int32 = 3
	CodecConfigurationCodecSpecificTagAptxAdaptiveConfig int32 = 4
	CodecConfigurationCodecSpecificTagLc3Config          int32 = 5
	CodecConfigurationCodecSpecificTagVendorConfig       int32 = 6
	CodecConfigurationCodecSpecificTagOpusConfig         int32 = 7
)
View Source
const (
	CodecIdTagA2dp   int32 = 0
	CodecIdTagCore   int32 = 1
	CodecIdTagVendor int32 = 2
)
View Source
const (
	CodecInfoTransportTagLeAudio int32 = 0
	CodecInfoTransportTagA2dp    int32 = 1
	CodecInfoTransportTagHfp     int32 = 2
)
View Source
const (
	CodecSpecificCapabilitiesLtvTagSupportedSamplingFrequencies  int32 = 0
	CodecSpecificCapabilitiesLtvTagSupportedFrameDurations       int32 = 1
	CodecSpecificCapabilitiesLtvTagSupportedAudioChannelCounts   int32 = 2
	CodecSpecificCapabilitiesLtvTagSupportedOctetsPerCodecFrame  int32 = 3
	CodecSpecificCapabilitiesLtvTagSupportedMaxCodecFramesPerSDU int32 = 4
)
View Source
const (
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsONE   int32 = 1
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsTWO   int32 = 2
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsTHREE int32 = 4
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsFOUR  int32 = 8
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsFIVE  int32 = 16
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsSIX   int32 = 32
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsSEVEN int32 = 64
	CodecSpecificCapabilitiesLtvSupportedAudioChannelCountsEIGHT int32 = 128
)
View Source
const (
	CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS7500           int32 = 1
	CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS10000          int32 = 2
	CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS7500PREFERRED  int32 = 16
	CodecSpecificCapabilitiesLtvSupportedFrameDurationsUS10000PREFERRED int32 = 32
)
View Source
const (
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ8000   int32 = 1
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ11025  int32 = 2
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ16000  int32 = 4
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ22050  int32 = 8
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ24000  int32 = 16
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ32000  int32 = 32
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ44100  int32 = 64
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ48000  int32 = 128
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ88200  int32 = 256
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ96000  int32 = 512
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ176400 int32 = 1024
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ192000 int32 = 2048
	CodecSpecificCapabilitiesLtvSupportedSamplingFrequenciesHZ384000 int32 = 4096
)
View Source
const (
	CodecSpecificConfigurationLtvAudioChannelAllocationNotAllowed           int32 = 0
	CodecSpecificConfigurationLtvAudioChannelAllocationFrontLeft            int32 = 1
	CodecSpecificConfigurationLtvAudioChannelAllocationFrontRight           int32 = 2
	CodecSpecificConfigurationLtvAudioChannelAllocationFrontCenter          int32 = 4
	CodecSpecificConfigurationLtvAudioChannelAllocationLowFrequencyEffects1 int32 = 8
	CodecSpecificConfigurationLtvAudioChannelAllocationBackLeft             int32 = 16
	CodecSpecificConfigurationLtvAudioChannelAllocationBackRight            int32 = 32
	CodecSpecificConfigurationLtvAudioChannelAllocationFrontLeftOfCenter    int32 = 64
	CodecSpecificConfigurationLtvAudioChannelAllocationFrontRightOfCenter   int32 = 128
	CodecSpecificConfigurationLtvAudioChannelAllocationBackCenter           int32 = 256
	CodecSpecificConfigurationLtvAudioChannelAllocationLowFrequencyEffects2 int32 = 512
	CodecSpecificConfigurationLtvAudioChannelAllocationSideLeft             int32 = 1024
	CodecSpecificConfigurationLtvAudioChannelAllocationSideRight            int32 = 2048
	CodecSpecificConfigurationLtvAudioChannelAllocationTopFrontLeft         int32 = 4096
	CodecSpecificConfigurationLtvAudioChannelAllocationTopFrontRight        int32 = 8192
	CodecSpecificConfigurationLtvAudioChannelAllocationTopFrontCenter       int32 = 16384
	CodecSpecificConfigurationLtvAudioChannelAllocationTopCenter            int32 = 32768
	CodecSpecificConfigurationLtvAudioChannelAllocationTopBackLeft          int32 = 65536
	CodecSpecificConfigurationLtvAudioChannelAllocationTopBackRight         int32 = 131072
	CodecSpecificConfigurationLtvAudioChannelAllocationTopSideLeft          int32 = 262144
	CodecSpecificConfigurationLtvAudioChannelAllocationTopSideRight         int32 = 524288
	CodecSpecificConfigurationLtvAudioChannelAllocationTopBackCenter        int32 = 1048576
	CodecSpecificConfigurationLtvAudioChannelAllocationBottomFrontCenter    int32 = 2097152
	CodecSpecificConfigurationLtvAudioChannelAllocationBottomFrontLeft      int32 = 4194304
	CodecSpecificConfigurationLtvAudioChannelAllocationBottomFrontRight     int32 = 8388608
	CodecSpecificConfigurationLtvAudioChannelAllocationFrontLeftWide        int32 = 16777216
	CodecSpecificConfigurationLtvAudioChannelAllocationFrontRightWide       int32 = 33554432
	CodecSpecificConfigurationLtvAudioChannelAllocationLeftSurround         int32 = 67108864
	CodecSpecificConfigurationLtvAudioChannelAllocationRightSurround        int32 = 134217728
)
View Source
const (
	CodecSpecificConfigurationLtvTagCodecFrameBlocksPerSDU int32 = 0
	CodecSpecificConfigurationLtvTagSamplingFrequency      int32 = 1
	CodecSpecificConfigurationLtvTagFrameDuration          int32 = 2
	CodecSpecificConfigurationLtvTagAudioChannelAllocation int32 = 3
	CodecSpecificConfigurationLtvTagOctetsPerCodecFrame    int32 = 4
)
View Source
const (
	ConfigurationFlagsNONE                          int32 = 0
	ConfigurationFlagsLOSSLESS                      int32 = 1
	ConfigurationFlagsLowLatency                    int32 = 2
	ConfigurationFlagsAllowAsymmetricConfigurations int32 = 4
	ConfigurationFlagsSpatialAudio                  int32 = 8
	ConfigurationFlagsProvideAseMetadata            int32 = 16
	ConfigurationFlagsMonoMicConfiguration          int32 = 32
)
View Source
const (
	TransactionIBluetoothAudioPortGetPresentationPosition = binder.FirstCallTransaction + 0
	TransactionIBluetoothAudioPortStartStream             = binder.FirstCallTransaction + 1
	TransactionIBluetoothAudioPortStopStream              = binder.FirstCallTransaction + 2
	TransactionIBluetoothAudioPortSuspendStream           = binder.FirstCallTransaction + 3
	TransactionIBluetoothAudioPortUpdateSourceMetadata    = binder.FirstCallTransaction + 4
	TransactionIBluetoothAudioPortUpdateSinkMetadata      = binder.FirstCallTransaction + 5
	TransactionIBluetoothAudioPortSetLatencyMode          = binder.FirstCallTransaction + 6
)
View Source
const (
	MethodIBluetoothAudioPortGetPresentationPosition = "getPresentationPosition"
	MethodIBluetoothAudioPortStartStream             = "startStream"
	MethodIBluetoothAudioPortStopStream              = "stopStream"
	MethodIBluetoothAudioPortSuspendStream           = "suspendStream"
	MethodIBluetoothAudioPortUpdateSourceMetadata    = "updateSourceMetadata"
	MethodIBluetoothAudioPortUpdateSinkMetadata      = "updateSinkMetadata"
	MethodIBluetoothAudioPortSetLatencyMode          = "setLatencyMode"
)
View Source
const (
	TransactionIBluetoothAudioProviderEndSession                               = binder.FirstCallTransaction + 0
	TransactionIBluetoothAudioProviderStartSession                             = binder.FirstCallTransaction + 1
	TransactionIBluetoothAudioProviderStreamStarted                            = binder.FirstCallTransaction + 2
	TransactionIBluetoothAudioProviderStreamSuspended                          = binder.FirstCallTransaction + 3
	TransactionIBluetoothAudioProviderUpdateAudioConfiguration                 = binder.FirstCallTransaction + 4
	TransactionIBluetoothAudioProviderSetLowLatencyModeAllowed                 = binder.FirstCallTransaction + 5
	TransactionIBluetoothAudioProviderParseA2dpConfiguration                   = binder.FirstCallTransaction + 6
	TransactionIBluetoothAudioProviderGetA2dpConfiguration                     = binder.FirstCallTransaction + 7
	TransactionIBluetoothAudioProviderSetCodecPriority                         = binder.FirstCallTransaction + 8
	TransactionIBluetoothAudioProviderGetLeAudioAseConfiguration               = binder.FirstCallTransaction + 9
	TransactionIBluetoothAudioProviderGetLeAudioAseQosConfiguration            = binder.FirstCallTransaction + 10
	TransactionIBluetoothAudioProviderGetLeAudioAseDatapathConfiguration       = binder.FirstCallTransaction + 11
	TransactionIBluetoothAudioProviderOnSinkAseMetadataChanged                 = binder.FirstCallTransaction + 12
	TransactionIBluetoothAudioProviderOnSourceAseMetadataChanged               = binder.FirstCallTransaction + 13
	TransactionIBluetoothAudioProviderGetLeAudioBroadcastConfiguration         = binder.FirstCallTransaction + 14
	TransactionIBluetoothAudioProviderGetLeAudioBroadcastDatapathConfiguration = binder.FirstCallTransaction + 15
)
View Source
const (
	MethodIBluetoothAudioProviderEndSession                               = "endSession"
	MethodIBluetoothAudioProviderStartSession                             = "startSession"
	MethodIBluetoothAudioProviderStreamStarted                            = "streamStarted"
	MethodIBluetoothAudioProviderStreamSuspended                          = "streamSuspended"
	MethodIBluetoothAudioProviderUpdateAudioConfiguration                 = "updateAudioConfiguration"
	MethodIBluetoothAudioProviderSetLowLatencyModeAllowed                 = "setLowLatencyModeAllowed"
	MethodIBluetoothAudioProviderParseA2dpConfiguration                   = "parseA2dpConfiguration"
	MethodIBluetoothAudioProviderGetA2dpConfiguration                     = "getA2dpConfiguration"
	MethodIBluetoothAudioProviderSetCodecPriority                         = "setCodecPriority"
	MethodIBluetoothAudioProviderGetLeAudioAseConfiguration               = "getLeAudioAseConfiguration"
	MethodIBluetoothAudioProviderGetLeAudioAseQosConfiguration            = "getLeAudioAseQosConfiguration"
	MethodIBluetoothAudioProviderGetLeAudioAseDatapathConfiguration       = "getLeAudioAseDatapathConfiguration"
	MethodIBluetoothAudioProviderOnSinkAseMetadataChanged                 = "onSinkAseMetadataChanged"
	MethodIBluetoothAudioProviderOnSourceAseMetadataChanged               = "onSourceAseMetadataChanged"
	MethodIBluetoothAudioProviderGetLeAudioBroadcastConfiguration         = "getLeAudioBroadcastConfiguration"
	MethodIBluetoothAudioProviderGetLeAudioBroadcastDatapathConfiguration = "getLeAudioBroadcastDatapathConfiguration"
)
View Source
const (
	IBluetoothAudioProviderCodecPriorityDisabled int32 = -1
	IBluetoothAudioProviderCodecPriorityNone     int32 = 0
)
View Source
const (
	TransactionIBluetoothAudioProviderFactoryGetProviderCapabilities = binder.FirstCallTransaction + 0
	TransactionIBluetoothAudioProviderFactoryOpenProvider            = binder.FirstCallTransaction + 1
	TransactionIBluetoothAudioProviderFactoryGetProviderInfo         = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIBluetoothAudioProviderFactoryGetProviderCapabilities = "getProviderCapabilities"
	MethodIBluetoothAudioProviderFactoryOpenProvider            = "openProvider"
	MethodIBluetoothAudioProviderFactoryGetProviderInfo         = "getProviderInfo"
)
View Source
const (
	LeAudioCodecConfigurationTagLc3Config            int32 = 0
	LeAudioCodecConfigurationTagVendorConfig         int32 = 1
	LeAudioCodecConfigurationTagAptxAdaptiveLeConfig int32 = 2
)
View Source
const (
	MetadataLtvTagPreferredAudioContexts int32 = 0
	MetadataLtvTagStreamingAudioContexts int32 = 1
	MetadataLtvTagVendorSpecific         int32 = 2
)
View Source
const (
	UnicastCapabilityLeAudioCodecCapabilitiesTagLc3Capabilities            int32 = 0
	UnicastCapabilityLeAudioCodecCapabilitiesTagVendorCapabillities        int32 = 1
	UnicastCapabilityLeAudioCodecCapabilitiesTagAptxAdaptiveLeCapabilities int32 = 2
)
View Source
const DescriptorIBluetoothAudioPort = "android.hardware.bluetooth.audio.IBluetoothAudioPort"
View Source
const DescriptorIBluetoothAudioProvider = "android.hardware.bluetooth.audio.IBluetoothAudioProvider"
View Source
const DescriptorIBluetoothAudioProviderFactory = "android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory"

Variables

This section is empty.

Functions

This section is empty.

Types

type A2dpConfiguration

type A2dpConfiguration struct {
	RemoteSeid    int32
	Id            CodecId
	Parameters    CodecParameters
	Configuration []byte
}

func (*A2dpConfiguration) MarshalParcel

func (s *A2dpConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*A2dpConfiguration) UnmarshalParcel

func (s *A2dpConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type A2dpConfigurationHint

type A2dpConfigurationHint struct {
	BdAddr          []byte
	AudioContext    AudioContext
	CodecId         *CodecId
	CodecParameters *CodecParameters
}

func (*A2dpConfigurationHint) MarshalParcel

func (s *A2dpConfigurationHint) MarshalParcel(
	p *parcel.Parcel,
) error

func (*A2dpConfigurationHint) UnmarshalParcel

func (s *A2dpConfigurationHint) UnmarshalParcel(
	p *parcel.Parcel,
) error

type A2dpRemoteCapabilities

type A2dpRemoteCapabilities struct {
	Seid         int32
	Id           CodecId
	Capabilities []byte
}

func (*A2dpRemoteCapabilities) MarshalParcel

func (s *A2dpRemoteCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*A2dpRemoteCapabilities) UnmarshalParcel

func (s *A2dpRemoteCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type A2dpStatus

type A2dpStatus byte
const (
	A2dpStatusOK                              A2dpStatus = 0
	A2dpStatusBadLength                       A2dpStatus = 17
	A2dpStatusBadPayloadFormat                A2dpStatus = 24
	A2dpStatusInvalidCodecType                A2dpStatus = 193
	A2dpStatusNotSupportedCodecType           A2dpStatus = 194
	A2dpStatusInvalidSamplingFrequency        A2dpStatus = 195
	A2dpStatusNotSupportedSamplingFrequency   A2dpStatus = 196
	A2dpStatusInvalidChannelMode              A2dpStatus = 197
	A2dpStatusNotSupportedChannelMode         A2dpStatus = 198
	A2dpStatusInvalidSubbands                 A2dpStatus = 199
	A2dpStatusNotSupportedSubbands            A2dpStatus = 200
	A2dpStatusInvalidAllocationMethod         A2dpStatus = 201
	A2dpStatusNotSupportedAllocationMethod    A2dpStatus = 202
	A2dpStatusInvalidMinimumBitpoolValue      A2dpStatus = 203
	A2dpStatusNotSupportedMinimumBitpoolValue A2dpStatus = 204
	A2dpStatusInvalidMaximumBitpoolValue      A2dpStatus = 205
	A2dpStatusNotSupportedMaximumBitpoolValue A2dpStatus = 206
	A2dpStatusNotSupportedVbr                 A2dpStatus = 211
	A2dpStatusNotSupportedBitRate             A2dpStatus = 213
	A2dpStatusInvalidObjectType               A2dpStatus = 214
	A2dpStatusNotSupportedObjectType          A2dpStatus = 215
	A2dpStatusInvalidChannels                 A2dpStatus = 216
	A2dpStatusNotSupportedChannels            A2dpStatus = 217
	A2dpStatusInvalidBlockLength              A2dpStatus = 221
	A2dpStatusInvalidCodecParameter           A2dpStatus = 226
	A2dpStatusNotSupportedCodecParameter      A2dpStatus = 227
	A2dpStatusInvalidDrc                      A2dpStatus = 228
	A2dpStatusNotSupportedDrc                 A2dpStatus = 229
)

type A2dpStreamConfiguration

type A2dpStreamConfiguration struct {
	PeerMtu       int32
	CpHeaderScmst []byte
	CodecId       CodecId
	Configuration []byte
}

func (*A2dpStreamConfiguration) MarshalParcel

func (s *A2dpStreamConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*A2dpStreamConfiguration) UnmarshalParcel

func (s *A2dpStreamConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AacCapabilities

type AacCapabilities struct {
	ObjectType               []AacObjectType
	SampleRateHz             []int32
	ChannelMode              []ChannelMode
	VariableBitRateSupported bool
	BitsPerSample            []byte
	AdaptiveBitRateSupported bool
}

func (*AacCapabilities) MarshalParcel

func (s *AacCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AacCapabilities) UnmarshalParcel

func (s *AacCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AacConfiguration

type AacConfiguration struct {
	ObjectType               AacObjectType
	SampleRateHz             int32
	ChannelMode              ChannelMode
	VariableBitRateEnabled   bool
	BitsPerSample            byte
	AdaptiveBitRateSupported bool
}

func (*AacConfiguration) MarshalParcel

func (s *AacConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AacConfiguration) UnmarshalParcel

func (s *AacConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AacObjectType

type AacObjectType byte
const (
	AacObjectTypeMpeg2Lc       AacObjectType = 0
	AacObjectTypeMpeg4Lc       AacObjectType = 1
	AacObjectTypeMpeg4Ltp      AacObjectType = 2
	AacObjectTypeMpeg4Scalable AacObjectType = 3
)

type AptxAdaptiveCapabilities

type AptxAdaptiveCapabilities struct {
	SampleRateHz             []int32
	ChannelMode              []AptxAdaptiveChannelMode
	BitsPerSample            []byte
	AptxMode                 []AptxMode
	SinkBufferingMs          AptxSinkBuffering
	Ttp                      AptxAdaptiveTimeToPlay
	InputMode                AptxAdaptiveInputMode
	InputFadeDurationMs      int32
	AptxAdaptiveConfigStream []byte
}

func (*AptxAdaptiveCapabilities) MarshalParcel

func (s *AptxAdaptiveCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxAdaptiveCapabilities) UnmarshalParcel

func (s *AptxAdaptiveCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AptxAdaptiveChannelMode

type AptxAdaptiveChannelMode int32
const (
	AptxAdaptiveChannelModeJointStereo AptxAdaptiveChannelMode = 0
	AptxAdaptiveChannelModeMONO        AptxAdaptiveChannelMode = 1
	AptxAdaptiveChannelModeDualMono    AptxAdaptiveChannelMode = 2
	AptxAdaptiveChannelModeTwsStereo   AptxAdaptiveChannelMode = 4
	AptxAdaptiveChannelModeUNKNOWN     AptxAdaptiveChannelMode = 255
)

type AptxAdaptiveConfiguration

type AptxAdaptiveConfiguration struct {
	SampleRateHz             int32
	ChannelMode              AptxAdaptiveChannelMode
	BitsPerSample            byte
	AptxMode                 AptxMode
	SinkBufferingMs          AptxSinkBuffering
	Ttp                      AptxAdaptiveTimeToPlay
	InputMode                AptxAdaptiveInputMode
	InputFadeDurationMs      int32
	AptxAdaptiveConfigStream []byte
}

func (*AptxAdaptiveConfiguration) MarshalParcel

func (s *AptxAdaptiveConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxAdaptiveConfiguration) UnmarshalParcel

func (s *AptxAdaptiveConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AptxAdaptiveInputMode

type AptxAdaptiveInputMode int32
const (
	AptxAdaptiveInputModeSTEREO   AptxAdaptiveInputMode = 0
	AptxAdaptiveInputModeDualMono AptxAdaptiveInputMode = 1
)

type AptxAdaptiveLeCapabilities

type AptxAdaptiveLeCapabilities struct {
	PcmBitDepth         []byte
	SamplingFrequencyHz []int32
	FrameDurationUs     []int32
	OctetsPerFrame      []int32
	BlocksPerSdu        []byte
}

func (*AptxAdaptiveLeCapabilities) MarshalParcel

func (s *AptxAdaptiveLeCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxAdaptiveLeCapabilities) UnmarshalParcel

func (s *AptxAdaptiveLeCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AptxAdaptiveLeConfiguration

type AptxAdaptiveLeConfiguration struct {
	PcmBitDepth         byte
	SamplingFrequencyHz int32
	FrameDurationUs     int32
	OctetsPerFrame      int32
	BlocksPerSdu        byte
	CodecMode           int32
}

func (*AptxAdaptiveLeConfiguration) MarshalParcel

func (s *AptxAdaptiveLeConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxAdaptiveLeConfiguration) UnmarshalParcel

func (s *AptxAdaptiveLeConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AptxAdaptiveTimeToPlay

type AptxAdaptiveTimeToPlay struct {
	LowLowLatency   byte
	HighLowLatency  byte
	LowHighQuality  byte
	HighHighQuality byte
	LowTws          byte
	HighTws         byte
}

func (*AptxAdaptiveTimeToPlay) MarshalParcel

func (s *AptxAdaptiveTimeToPlay) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxAdaptiveTimeToPlay) UnmarshalParcel

func (s *AptxAdaptiveTimeToPlay) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AptxCapabilities

type AptxCapabilities struct {
	SampleRateHz  []int32
	ChannelMode   []ChannelMode
	BitsPerSample []byte
}

func (*AptxCapabilities) MarshalParcel

func (s *AptxCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxCapabilities) UnmarshalParcel

func (s *AptxCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AptxConfiguration

type AptxConfiguration struct {
	SampleRateHz  int32
	ChannelMode   ChannelMode
	BitsPerSample byte
}

func (*AptxConfiguration) MarshalParcel

func (s *AptxConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxConfiguration) UnmarshalParcel

func (s *AptxConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AptxMode

type AptxMode int32
const (
	AptxModeUNKNOWN         AptxMode = 0
	AptxModeHighQuality     AptxMode = 4096
	AptxModeLowLatency      AptxMode = 8192
	AptxModeUltraLowLatency AptxMode = 16384
)

type AptxSinkBuffering

type AptxSinkBuffering struct {
	MinLowLatency  byte
	MaxLowLatency  byte
	MinHighQuality byte
	MaxHighQuality byte
	MinTws         byte
	MaxTws         byte
}

func (*AptxSinkBuffering) MarshalParcel

func (s *AptxSinkBuffering) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AptxSinkBuffering) UnmarshalParcel

func (s *AptxSinkBuffering) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AudioCapabilities

type AudioCapabilities struct {
	Tag                 int32
	PcmCapabilities     PcmCapabilities
	A2dpCapabilities    CodecCapabilities
	LeAudioCapabilities LeAudioCodecCapabilitiesSetting
}

func (*AudioCapabilities) GetA2dpCapabilities

func (u *AudioCapabilities) GetA2dpCapabilities() (CodecCapabilities, bool)

func (*AudioCapabilities) GetLeAudioCapabilities

func (u *AudioCapabilities) GetLeAudioCapabilities() (LeAudioCodecCapabilitiesSetting, bool)

func (*AudioCapabilities) GetPcmCapabilities

func (u *AudioCapabilities) GetPcmCapabilities() (PcmCapabilities, bool)

func (*AudioCapabilities) MarshalParcel

func (u *AudioCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AudioCapabilities) SetA2dpCapabilities

func (u *AudioCapabilities) SetA2dpCapabilities(
	v CodecCapabilities,
)

func (*AudioCapabilities) SetLeAudioCapabilities

func (u *AudioCapabilities) SetLeAudioCapabilities(
	v LeAudioCodecCapabilitiesSetting,
)

func (*AudioCapabilities) SetPcmCapabilities

func (u *AudioCapabilities) SetPcmCapabilities(
	v PcmCapabilities,
)

func (*AudioCapabilities) UnmarshalParcel

func (u *AudioCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AudioConfiguration

type AudioConfiguration struct {
	Tag                    int32
	PcmConfig              PcmConfiguration
	A2dpConfig             CodecConfiguration
	LeAudioConfig          LeAudioConfiguration
	LeAudioBroadcastConfig LeAudioBroadcastConfiguration
	HfpConfig              HfpConfiguration
	A2dp                   A2dpStreamConfiguration
}

func (*AudioConfiguration) GetA2dp

func (*AudioConfiguration) GetA2dpConfig

func (u *AudioConfiguration) GetA2dpConfig() (CodecConfiguration, bool)

func (*AudioConfiguration) GetHfpConfig

func (u *AudioConfiguration) GetHfpConfig() (HfpConfiguration, bool)

func (*AudioConfiguration) GetLeAudioBroadcastConfig

func (u *AudioConfiguration) GetLeAudioBroadcastConfig() (LeAudioBroadcastConfiguration, bool)

func (*AudioConfiguration) GetLeAudioConfig

func (u *AudioConfiguration) GetLeAudioConfig() (LeAudioConfiguration, bool)

func (*AudioConfiguration) GetPcmConfig

func (u *AudioConfiguration) GetPcmConfig() (PcmConfiguration, bool)

func (*AudioConfiguration) MarshalParcel

func (u *AudioConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AudioConfiguration) SetA2dp

func (*AudioConfiguration) SetA2dpConfig

func (u *AudioConfiguration) SetA2dpConfig(
	v CodecConfiguration,
)

func (*AudioConfiguration) SetHfpConfig

func (u *AudioConfiguration) SetHfpConfig(
	v HfpConfiguration,
)

func (*AudioConfiguration) SetLeAudioBroadcastConfig

func (u *AudioConfiguration) SetLeAudioBroadcastConfig(
	v LeAudioBroadcastConfiguration,
)

func (*AudioConfiguration) SetLeAudioConfig

func (u *AudioConfiguration) SetLeAudioConfig(
	v LeAudioConfiguration,
)

func (*AudioConfiguration) SetPcmConfig

func (u *AudioConfiguration) SetPcmConfig(
	v PcmConfiguration,
)

func (*AudioConfiguration) UnmarshalParcel

func (u *AudioConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AudioContext

type AudioContext struct {
	Bitmask int32
}

func (*AudioContext) MarshalParcel

func (s *AudioContext) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AudioContext) UnmarshalParcel

func (s *AudioContext) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AudioLocation

type AudioLocation int32
const (
	AudioLocationUNKNOWN    AudioLocation = 1
	AudioLocationFrontLeft  AudioLocation = (1 << 1)
	AudioLocationFrontRight AudioLocation = (1 << 2)
)

type BluetoothAudioPortProxy

type BluetoothAudioPortProxy struct {
	Remote binder.IBinder
}

func NewBluetoothAudioPortProxy

func NewBluetoothAudioPortProxy(
	remote binder.IBinder,
) *BluetoothAudioPortProxy

func (*BluetoothAudioPortProxy) AsBinder

func (p *BluetoothAudioPortProxy) AsBinder() binder.IBinder

func (*BluetoothAudioPortProxy) GetPresentationPosition

func (p *BluetoothAudioPortProxy) GetPresentationPosition(
	ctx context.Context,
) (PresentationPosition, error)

func (*BluetoothAudioPortProxy) SetLatencyMode

func (p *BluetoothAudioPortProxy) SetLatencyMode(
	ctx context.Context,
	latencyMode LatencyMode,
) error

func (*BluetoothAudioPortProxy) StartStream

func (p *BluetoothAudioPortProxy) StartStream(
	ctx context.Context,
	isLowLatency bool,
) error

func (*BluetoothAudioPortProxy) StopStream

func (p *BluetoothAudioPortProxy) StopStream(
	ctx context.Context,
) error

func (*BluetoothAudioPortProxy) SuspendStream

func (p *BluetoothAudioPortProxy) SuspendStream(
	ctx context.Context,
) error

func (*BluetoothAudioPortProxy) UpdateSinkMetadata

func (p *BluetoothAudioPortProxy) UpdateSinkMetadata(
	ctx context.Context,
	sinkMetadata common.SinkMetadata,
) error

func (*BluetoothAudioPortProxy) UpdateSourceMetadata

func (p *BluetoothAudioPortProxy) UpdateSourceMetadata(
	ctx context.Context,
	sourceMetadata common.SourceMetadata,
) error

type BluetoothAudioPortStub

type BluetoothAudioPortStub struct {
	Impl      IBluetoothAudioPort
	Transport binder.VersionAwareTransport
}

BluetoothAudioPortStub dispatches incoming binder transactions to a typed IBluetoothAudioPort implementation.

func (*BluetoothAudioPortStub) Descriptor

func (s *BluetoothAudioPortStub) Descriptor() string

func (*BluetoothAudioPortStub) OnTransaction

func (s *BluetoothAudioPortStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type BluetoothAudioProviderFactoryProxy

type BluetoothAudioProviderFactoryProxy struct {
	Remote binder.IBinder
}

func NewBluetoothAudioProviderFactoryProxy

func NewBluetoothAudioProviderFactoryProxy(
	remote binder.IBinder,
) *BluetoothAudioProviderFactoryProxy

func (*BluetoothAudioProviderFactoryProxy) AsBinder

func (*BluetoothAudioProviderFactoryProxy) GetProviderCapabilities

func (p *BluetoothAudioProviderFactoryProxy) GetProviderCapabilities(
	ctx context.Context,
	sessionType SessionType,
) ([]AudioCapabilities, error)

func (*BluetoothAudioProviderFactoryProxy) GetProviderInfo

func (*BluetoothAudioProviderFactoryProxy) OpenProvider

type BluetoothAudioProviderFactoryStub

type BluetoothAudioProviderFactoryStub struct {
	Impl      IBluetoothAudioProviderFactory
	Transport binder.VersionAwareTransport
}

BluetoothAudioProviderFactoryStub dispatches incoming binder transactions to a typed IBluetoothAudioProviderFactory implementation.

func (*BluetoothAudioProviderFactoryStub) Descriptor

func (s *BluetoothAudioProviderFactoryStub) Descriptor() string

func (*BluetoothAudioProviderFactoryStub) OnTransaction

type BluetoothAudioProviderProxy

type BluetoothAudioProviderProxy struct {
	Remote binder.IBinder
}

func NewBluetoothAudioProviderProxy

func NewBluetoothAudioProviderProxy(
	remote binder.IBinder,
) *BluetoothAudioProviderProxy

func (*BluetoothAudioProviderProxy) AsBinder

func (*BluetoothAudioProviderProxy) EndSession

func (p *BluetoothAudioProviderProxy) EndSession(
	ctx context.Context,
) error

func (*BluetoothAudioProviderProxy) GetA2dpConfiguration

func (p *BluetoothAudioProviderProxy) GetA2dpConfiguration(
	ctx context.Context,
	remoteA2dpCapabilities []A2dpRemoteCapabilities,
	hint A2dpConfigurationHint,
) (A2dpConfiguration, error)

func (*BluetoothAudioProviderProxy) GetLeAudioBroadcastDatapathConfiguration

func (*BluetoothAudioProviderProxy) OnSinkAseMetadataChanged

func (p *BluetoothAudioProviderProxy) OnSinkAseMetadataChanged(
	ctx context.Context,
	state IBluetoothAudioProviderAseState,
	cigId int32,
	cisId int32,
	metadata []MetadataLtv,
) error

func (*BluetoothAudioProviderProxy) OnSourceAseMetadataChanged

func (p *BluetoothAudioProviderProxy) OnSourceAseMetadataChanged(
	ctx context.Context,
	state IBluetoothAudioProviderAseState,
	cigId int32,
	cisId int32,
	metadata []MetadataLtv,
) error

func (*BluetoothAudioProviderProxy) ParseA2dpConfiguration

func (p *BluetoothAudioProviderProxy) ParseA2dpConfiguration(
	ctx context.Context,
	codecId CodecId,
	configuration []byte,
	codecParameters CodecParameters,
) (A2dpStatus, error)

func (*BluetoothAudioProviderProxy) SetCodecPriority

func (p *BluetoothAudioProviderProxy) SetCodecPriority(
	ctx context.Context,
	codecId CodecId,
	priority int32,
) error

func (*BluetoothAudioProviderProxy) SetLowLatencyModeAllowed

func (p *BluetoothAudioProviderProxy) SetLowLatencyModeAllowed(
	ctx context.Context,
	allowed bool,
) error

func (*BluetoothAudioProviderProxy) StartSession

func (p *BluetoothAudioProviderProxy) StartSession(
	ctx context.Context,
	hostIf IBluetoothAudioPort,
	audioConfig AudioConfiguration,
	supportedLatencyModes []LatencyMode,
) (fmq.MQDescriptor, error)

func (*BluetoothAudioProviderProxy) StreamStarted

func (p *BluetoothAudioProviderProxy) StreamStarted(
	ctx context.Context,
	status BluetoothAudioStatus,
) error

func (*BluetoothAudioProviderProxy) StreamSuspended

func (p *BluetoothAudioProviderProxy) StreamSuspended(
	ctx context.Context,
	status BluetoothAudioStatus,
) error

func (*BluetoothAudioProviderProxy) UpdateAudioConfiguration

func (p *BluetoothAudioProviderProxy) UpdateAudioConfiguration(
	ctx context.Context,
	audioConfig AudioConfiguration,
) error

type BluetoothAudioProviderStub

type BluetoothAudioProviderStub struct {
	Impl      IBluetoothAudioProvider
	Transport binder.VersionAwareTransport
}

BluetoothAudioProviderStub dispatches incoming binder transactions to a typed IBluetoothAudioProvider implementation.

func (*BluetoothAudioProviderStub) Descriptor

func (s *BluetoothAudioProviderStub) Descriptor() string

func (*BluetoothAudioProviderStub) OnTransaction

func (s *BluetoothAudioProviderStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type BluetoothAudioStatus

type BluetoothAudioStatus int32
const (
	BluetoothAudioStatusUNKNOWN                       BluetoothAudioStatus = 0
	BluetoothAudioStatusSUCCESS                       BluetoothAudioStatus = 1
	BluetoothAudioStatusUnsupportedCodecConfiguration BluetoothAudioStatus = 2
	BluetoothAudioStatusFAILURE                       BluetoothAudioStatus = 3
	BluetoothAudioStatusRECONFIGURATION               BluetoothAudioStatus = 4
)

type BroadcastCapability

type BroadcastCapability struct {
	CodecType                CodecType
	SupportedChannel         AudioLocation
	ChannelCountPerStream    int32
	LeAudioCodecCapabilities BroadcastCapabilityLeAudioCodecCapabilities
}

func (*BroadcastCapability) MarshalParcel

func (s *BroadcastCapability) MarshalParcel(
	p *parcel.Parcel,
) error

func (*BroadcastCapability) UnmarshalParcel

func (s *BroadcastCapability) UnmarshalParcel(
	p *parcel.Parcel,
) error

type BroadcastCapabilityLeAudioCodecCapabilities

type BroadcastCapabilityLeAudioCodecCapabilities struct {
	Tag                 int32
	Lc3Capabilities     []Lc3Capabilities
	VendorCapabillities []BroadcastCapabilityVendorCapabilities
}

func (*BroadcastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities

func (*BroadcastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities

func (*BroadcastCapabilityLeAudioCodecCapabilities) MarshalParcel

func (*BroadcastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities

func (u *BroadcastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities(
	v []Lc3Capabilities,
)

func (*BroadcastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities

func (*BroadcastCapabilityLeAudioCodecCapabilities) UnmarshalParcel

type BroadcastCapabilityVendorCapabilities

type BroadcastCapabilityVendorCapabilities struct {
	Extension any
}

func (*BroadcastCapabilityVendorCapabilities) MarshalParcel

func (s *BroadcastCapabilityVendorCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*BroadcastCapabilityVendorCapabilities) UnmarshalParcel

func (s *BroadcastCapabilityVendorCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ChannelMode

type ChannelMode byte
const (
	ChannelModeUNKNOWN  ChannelMode = 0
	ChannelModeMONO     ChannelMode = 1
	ChannelModeSTEREO   ChannelMode = 2
	ChannelModeDUALMONO ChannelMode = 3
)

type CodecCapabilities

type CodecCapabilities struct {
	CodecType    CodecType
	Capabilities CodecCapabilitiesCapabilities
}

func (*CodecCapabilities) MarshalParcel

func (s *CodecCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecCapabilities) UnmarshalParcel

func (s *CodecCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecCapabilitiesCapabilities

type CodecCapabilitiesCapabilities struct {
	Tag                      int32
	SbcCapabilities          SbcCapabilities
	AacCapabilities          AacCapabilities
	LdacCapabilities         LdacCapabilities
	AptxCapabilities         AptxCapabilities
	AptxAdaptiveCapabilities AptxAdaptiveCapabilities
	Lc3Capabilities          Lc3Capabilities
	VendorCapabilities       CodecCapabilitiesVendorCapabilities
	OpusCapabilities         *OpusCapabilities
}

func (*CodecCapabilitiesCapabilities) GetAacCapabilities

func (u *CodecCapabilitiesCapabilities) GetAacCapabilities() (AacCapabilities, bool)

func (*CodecCapabilitiesCapabilities) GetAptxAdaptiveCapabilities

func (u *CodecCapabilitiesCapabilities) GetAptxAdaptiveCapabilities() (AptxAdaptiveCapabilities, bool)

func (*CodecCapabilitiesCapabilities) GetAptxCapabilities

func (u *CodecCapabilitiesCapabilities) GetAptxCapabilities() (AptxCapabilities, bool)

func (*CodecCapabilitiesCapabilities) GetLc3Capabilities

func (u *CodecCapabilitiesCapabilities) GetLc3Capabilities() (Lc3Capabilities, bool)

func (*CodecCapabilitiesCapabilities) GetLdacCapabilities

func (u *CodecCapabilitiesCapabilities) GetLdacCapabilities() (LdacCapabilities, bool)

func (*CodecCapabilitiesCapabilities) GetOpusCapabilities

func (u *CodecCapabilitiesCapabilities) GetOpusCapabilities() (*OpusCapabilities, bool)

func (*CodecCapabilitiesCapabilities) GetSbcCapabilities

func (u *CodecCapabilitiesCapabilities) GetSbcCapabilities() (SbcCapabilities, bool)

func (*CodecCapabilitiesCapabilities) GetVendorCapabilities

func (*CodecCapabilitiesCapabilities) MarshalParcel

func (u *CodecCapabilitiesCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecCapabilitiesCapabilities) SetAacCapabilities

func (u *CodecCapabilitiesCapabilities) SetAacCapabilities(
	v AacCapabilities,
)

func (*CodecCapabilitiesCapabilities) SetAptxAdaptiveCapabilities

func (u *CodecCapabilitiesCapabilities) SetAptxAdaptiveCapabilities(
	v AptxAdaptiveCapabilities,
)

func (*CodecCapabilitiesCapabilities) SetAptxCapabilities

func (u *CodecCapabilitiesCapabilities) SetAptxCapabilities(
	v AptxCapabilities,
)

func (*CodecCapabilitiesCapabilities) SetLc3Capabilities

func (u *CodecCapabilitiesCapabilities) SetLc3Capabilities(
	v Lc3Capabilities,
)

func (*CodecCapabilitiesCapabilities) SetLdacCapabilities

func (u *CodecCapabilitiesCapabilities) SetLdacCapabilities(
	v LdacCapabilities,
)

func (*CodecCapabilitiesCapabilities) SetOpusCapabilities

func (u *CodecCapabilitiesCapabilities) SetOpusCapabilities(
	v *OpusCapabilities,
)

func (*CodecCapabilitiesCapabilities) SetSbcCapabilities

func (u *CodecCapabilitiesCapabilities) SetSbcCapabilities(
	v SbcCapabilities,
)

func (*CodecCapabilitiesCapabilities) SetVendorCapabilities

func (*CodecCapabilitiesCapabilities) UnmarshalParcel

func (u *CodecCapabilitiesCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecCapabilitiesVendorCapabilities

type CodecCapabilitiesVendorCapabilities struct {
	Extension any
}

func (*CodecCapabilitiesVendorCapabilities) MarshalParcel

func (s *CodecCapabilitiesVendorCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecCapabilitiesVendorCapabilities) UnmarshalParcel

func (s *CodecCapabilitiesVendorCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecConfiguration

type CodecConfiguration struct {
	CodecType           CodecType
	EncodedAudioBitrate int32
	PeerMtu             int32
	IsScmstEnabled      bool
	Config              CodecConfigurationCodecSpecific
}

func (*CodecConfiguration) MarshalParcel

func (s *CodecConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecConfiguration) UnmarshalParcel

func (s *CodecConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecConfigurationCodecSpecific

type CodecConfigurationCodecSpecific struct {
	Tag                int32
	SbcConfig          SbcConfiguration
	AacConfig          AacConfiguration
	LdacConfig         LdacConfiguration
	AptxConfig         AptxConfiguration
	AptxAdaptiveConfig AptxAdaptiveConfiguration
	Lc3Config          Lc3Configuration
	VendorConfig       CodecConfigurationVendorConfiguration
	OpusConfig         *OpusConfiguration
}

func (*CodecConfigurationCodecSpecific) GetAacConfig

func (*CodecConfigurationCodecSpecific) GetAptxAdaptiveConfig

func (u *CodecConfigurationCodecSpecific) GetAptxAdaptiveConfig() (AptxAdaptiveConfiguration, bool)

func (*CodecConfigurationCodecSpecific) GetAptxConfig

func (*CodecConfigurationCodecSpecific) GetLc3Config

func (*CodecConfigurationCodecSpecific) GetLdacConfig

func (*CodecConfigurationCodecSpecific) GetOpusConfig

func (*CodecConfigurationCodecSpecific) GetSbcConfig

func (*CodecConfigurationCodecSpecific) GetVendorConfig

func (*CodecConfigurationCodecSpecific) MarshalParcel

func (u *CodecConfigurationCodecSpecific) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecConfigurationCodecSpecific) SetAacConfig

func (u *CodecConfigurationCodecSpecific) SetAacConfig(
	v AacConfiguration,
)

func (*CodecConfigurationCodecSpecific) SetAptxAdaptiveConfig

func (u *CodecConfigurationCodecSpecific) SetAptxAdaptiveConfig(
	v AptxAdaptiveConfiguration,
)

func (*CodecConfigurationCodecSpecific) SetAptxConfig

func (u *CodecConfigurationCodecSpecific) SetAptxConfig(
	v AptxConfiguration,
)

func (*CodecConfigurationCodecSpecific) SetLc3Config

func (u *CodecConfigurationCodecSpecific) SetLc3Config(
	v Lc3Configuration,
)

func (*CodecConfigurationCodecSpecific) SetLdacConfig

func (u *CodecConfigurationCodecSpecific) SetLdacConfig(
	v LdacConfiguration,
)

func (*CodecConfigurationCodecSpecific) SetOpusConfig

func (u *CodecConfigurationCodecSpecific) SetOpusConfig(
	v *OpusConfiguration,
)

func (*CodecConfigurationCodecSpecific) SetSbcConfig

func (u *CodecConfigurationCodecSpecific) SetSbcConfig(
	v SbcConfiguration,
)

func (*CodecConfigurationCodecSpecific) SetVendorConfig

func (*CodecConfigurationCodecSpecific) UnmarshalParcel

func (u *CodecConfigurationCodecSpecific) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecConfigurationVendorConfiguration

type CodecConfigurationVendorConfiguration struct {
	VendorId    int32
	CodecId     uint16
	CodecConfig any
}

func (*CodecConfigurationVendorConfiguration) MarshalParcel

func (s *CodecConfigurationVendorConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecConfigurationVendorConfiguration) UnmarshalParcel

func (s *CodecConfigurationVendorConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecId

type CodecId struct {
	Tag    int32
	A2dp   CodecIdA2dp
	Core   CodecIdCore
	Vendor CodecIdVendor
}

func (*CodecId) GetA2dp

func (u *CodecId) GetA2dp() (CodecIdA2dp, bool)

func (*CodecId) GetCore

func (u *CodecId) GetCore() (CodecIdCore, bool)

func (*CodecId) GetVendor

func (u *CodecId) GetVendor() (CodecIdVendor, bool)

func (*CodecId) MarshalParcel

func (u *CodecId) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecId) SetA2dp

func (u *CodecId) SetA2dp(
	v CodecIdA2dp,
)

func (*CodecId) SetCore

func (u *CodecId) SetCore(
	v CodecIdCore,
)

func (*CodecId) SetVendor

func (u *CodecId) SetVendor(
	v CodecIdVendor,
)

func (*CodecId) UnmarshalParcel

func (u *CodecId) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecIdA2dp

type CodecIdA2dp int32
const (
	CodecIdA2dpSBC CodecIdA2dp = 0
	CodecIdA2dpAAC CodecIdA2dp = 2
)

type CodecIdCore

type CodecIdCore int32
const (
	CodecIdCoreCVSD CodecIdCore = 2
	CodecIdCoreMSBC CodecIdCore = 5
	CodecIdCoreLC3  CodecIdCore = 6
)

type CodecIdVendor

type CodecIdVendor struct {
	Id      int32
	CodecId int32
}

func (*CodecIdVendor) MarshalParcel

func (s *CodecIdVendor) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecIdVendor) UnmarshalParcel

func (s *CodecIdVendor) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecInfo

type CodecInfo struct {
	Id        CodecId
	Name      string
	Transport CodecInfoTransport
}

func (*CodecInfo) MarshalParcel

func (s *CodecInfo) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecInfo) UnmarshalParcel

func (s *CodecInfo) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecInfoA2dp

type CodecInfoA2dp struct {
	Capabilities        []byte
	ChannelMode         []ChannelMode
	SamplingFrequencyHz []int32
	Bitdepth            []int32
	Lossless            bool
}

func (*CodecInfoA2dp) MarshalParcel

func (s *CodecInfoA2dp) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecInfoA2dp) UnmarshalParcel

func (s *CodecInfoA2dp) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecInfoHfp

type CodecInfoHfp struct {
	InputDataPath      int32
	OutputDataPath     int32
	UseControllerCodec bool
}

func (*CodecInfoHfp) MarshalParcel

func (s *CodecInfoHfp) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecInfoHfp) UnmarshalParcel

func (s *CodecInfoHfp) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecInfoLeAudio

type CodecInfoLeAudio struct {
	ChannelMode         []ChannelMode
	SamplingFrequencyHz []int32
	FrameDurationUs     []int32
	Bitdepth            []int32
	Flags               *ConfigurationFlags
}

func (*CodecInfoLeAudio) MarshalParcel

func (s *CodecInfoLeAudio) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecInfoLeAudio) UnmarshalParcel

func (s *CodecInfoLeAudio) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecInfoTransport

type CodecInfoTransport struct {
	Tag     int32
	LeAudio CodecInfoLeAudio
	A2dp    CodecInfoA2dp
	Hfp     CodecInfoHfp
}

func (*CodecInfoTransport) GetA2dp

func (u *CodecInfoTransport) GetA2dp() (CodecInfoA2dp, bool)

func (*CodecInfoTransport) GetHfp

func (u *CodecInfoTransport) GetHfp() (CodecInfoHfp, bool)

func (*CodecInfoTransport) GetLeAudio

func (u *CodecInfoTransport) GetLeAudio() (CodecInfoLeAudio, bool)

func (*CodecInfoTransport) MarshalParcel

func (u *CodecInfoTransport) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecInfoTransport) SetA2dp

func (u *CodecInfoTransport) SetA2dp(
	v CodecInfoA2dp,
)

func (*CodecInfoTransport) SetHfp

func (u *CodecInfoTransport) SetHfp(
	v CodecInfoHfp,
)

func (*CodecInfoTransport) SetLeAudio

func (u *CodecInfoTransport) SetLeAudio(
	v CodecInfoLeAudio,
)

func (*CodecInfoTransport) UnmarshalParcel

func (u *CodecInfoTransport) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecParameters

type CodecParameters struct {
	ChannelMode              ChannelMode
	SamplingFrequencyHz      int32
	Bitdepth                 int32
	MinBitrate               int32
	MaxBitrate               int32
	LowLatency               bool
	Lossless                 bool
	VendorSpecificParameters []byte
}

func (*CodecParameters) MarshalParcel

func (s *CodecParameters) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecParameters) UnmarshalParcel

func (s *CodecParameters) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecSpecificCapabilitiesLtv

type CodecSpecificCapabilitiesLtv struct {
	Tag                           int32
	SupportedSamplingFrequencies  CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies
	SupportedFrameDurations       CodecSpecificCapabilitiesLtvSupportedFrameDurations
	SupportedAudioChannelCounts   CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts
	SupportedOctetsPerCodecFrame  CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame
	SupportedMaxCodecFramesPerSDU CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU
}

func (*CodecSpecificCapabilitiesLtv) GetSupportedAudioChannelCounts

func (*CodecSpecificCapabilitiesLtv) GetSupportedFrameDurations

func (*CodecSpecificCapabilitiesLtv) GetSupportedMaxCodecFramesPerSDU

func (*CodecSpecificCapabilitiesLtv) GetSupportedOctetsPerCodecFrame

func (*CodecSpecificCapabilitiesLtv) GetSupportedSamplingFrequencies

func (*CodecSpecificCapabilitiesLtv) MarshalParcel

func (u *CodecSpecificCapabilitiesLtv) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecSpecificCapabilitiesLtv) SetSupportedAudioChannelCounts

func (*CodecSpecificCapabilitiesLtv) SetSupportedFrameDurations

func (*CodecSpecificCapabilitiesLtv) SetSupportedMaxCodecFramesPerSDU

func (*CodecSpecificCapabilitiesLtv) SetSupportedOctetsPerCodecFrame

func (*CodecSpecificCapabilitiesLtv) SetSupportedSamplingFrequencies

func (*CodecSpecificCapabilitiesLtv) UnmarshalParcel

func (u *CodecSpecificCapabilitiesLtv) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts

type CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts struct {
	Bitmask int32
}

func (*CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts) MarshalParcel

func (*CodecSpecificCapabilitiesLtvSupportedAudioChannelCounts) UnmarshalParcel

type CodecSpecificCapabilitiesLtvSupportedFrameDurations

type CodecSpecificCapabilitiesLtvSupportedFrameDurations struct {
	Bitmask int32
}

func (*CodecSpecificCapabilitiesLtvSupportedFrameDurations) MarshalParcel

func (*CodecSpecificCapabilitiesLtvSupportedFrameDurations) UnmarshalParcel

type CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU

type CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU struct {
	Value int32
}

func (*CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU) MarshalParcel

func (*CodecSpecificCapabilitiesLtvSupportedMaxCodecFramesPerSDU) UnmarshalParcel

type CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame

type CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame struct {
	Min int32
	Max int32
}

func (*CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame) MarshalParcel

func (*CodecSpecificCapabilitiesLtvSupportedOctetsPerCodecFrame) UnmarshalParcel

type CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies

type CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies struct {
	Bitmask int32
}

func (*CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies) MarshalParcel

func (*CodecSpecificCapabilitiesLtvSupportedSamplingFrequencies) UnmarshalParcel

type CodecSpecificConfigurationLtv

func (*CodecSpecificConfigurationLtv) GetAudioChannelAllocation

func (*CodecSpecificConfigurationLtv) GetCodecFrameBlocksPerSDU

func (*CodecSpecificConfigurationLtv) GetFrameDuration

func (*CodecSpecificConfigurationLtv) GetOctetsPerCodecFrame

func (*CodecSpecificConfigurationLtv) GetSamplingFrequency

func (*CodecSpecificConfigurationLtv) MarshalParcel

func (u *CodecSpecificConfigurationLtv) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecSpecificConfigurationLtv) SetAudioChannelAllocation

func (*CodecSpecificConfigurationLtv) SetCodecFrameBlocksPerSDU

func (*CodecSpecificConfigurationLtv) SetFrameDuration

func (*CodecSpecificConfigurationLtv) SetOctetsPerCodecFrame

func (*CodecSpecificConfigurationLtv) SetSamplingFrequency

func (*CodecSpecificConfigurationLtv) UnmarshalParcel

func (u *CodecSpecificConfigurationLtv) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecSpecificConfigurationLtvAudioChannelAllocation

type CodecSpecificConfigurationLtvAudioChannelAllocation struct {
	Bitmask int32
}

func (*CodecSpecificConfigurationLtvAudioChannelAllocation) MarshalParcel

func (*CodecSpecificConfigurationLtvAudioChannelAllocation) UnmarshalParcel

type CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU

type CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU struct {
	Value int32
}

func (*CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU) MarshalParcel

func (*CodecSpecificConfigurationLtvCodecFrameBlocksPerSDU) UnmarshalParcel

type CodecSpecificConfigurationLtvFrameDuration

type CodecSpecificConfigurationLtvFrameDuration byte
const (
	CodecSpecificConfigurationLtvFrameDurationUS7500  CodecSpecificConfigurationLtvFrameDuration = 0
	CodecSpecificConfigurationLtvFrameDurationUS10000 CodecSpecificConfigurationLtvFrameDuration = 1
)

type CodecSpecificConfigurationLtvOctetsPerCodecFrame

type CodecSpecificConfigurationLtvOctetsPerCodecFrame struct {
	Value int32
}

func (*CodecSpecificConfigurationLtvOctetsPerCodecFrame) MarshalParcel

func (*CodecSpecificConfigurationLtvOctetsPerCodecFrame) UnmarshalParcel

type CodecSpecificConfigurationLtvSamplingFrequency

type CodecSpecificConfigurationLtvSamplingFrequency byte
const (
	CodecSpecificConfigurationLtvSamplingFrequencyHZ8000   CodecSpecificConfigurationLtvSamplingFrequency = 1
	CodecSpecificConfigurationLtvSamplingFrequencyHZ11025  CodecSpecificConfigurationLtvSamplingFrequency = 2
	CodecSpecificConfigurationLtvSamplingFrequencyHZ16000  CodecSpecificConfigurationLtvSamplingFrequency = 3
	CodecSpecificConfigurationLtvSamplingFrequencyHZ22050  CodecSpecificConfigurationLtvSamplingFrequency = 4
	CodecSpecificConfigurationLtvSamplingFrequencyHZ24000  CodecSpecificConfigurationLtvSamplingFrequency = 5
	CodecSpecificConfigurationLtvSamplingFrequencyHZ32000  CodecSpecificConfigurationLtvSamplingFrequency = 6
	CodecSpecificConfigurationLtvSamplingFrequencyHZ44100  CodecSpecificConfigurationLtvSamplingFrequency = 7
	CodecSpecificConfigurationLtvSamplingFrequencyHZ48000  CodecSpecificConfigurationLtvSamplingFrequency = 8
	CodecSpecificConfigurationLtvSamplingFrequencyHZ88200  CodecSpecificConfigurationLtvSamplingFrequency = 9
	CodecSpecificConfigurationLtvSamplingFrequencyHZ96000  CodecSpecificConfigurationLtvSamplingFrequency = 10
	CodecSpecificConfigurationLtvSamplingFrequencyHZ176400 CodecSpecificConfigurationLtvSamplingFrequency = 11
	CodecSpecificConfigurationLtvSamplingFrequencyHZ192000 CodecSpecificConfigurationLtvSamplingFrequency = 12
	CodecSpecificConfigurationLtvSamplingFrequencyHZ384000 CodecSpecificConfigurationLtvSamplingFrequency = 13
)

type CodecType

type CodecType int32
const (
	CodecTypeUNKNOWN         CodecType = 0
	CodecTypeSBC             CodecType = 1
	CodecTypeAAC             CodecType = 2
	CodecTypeAPTX            CodecType = 3
	CodecTypeAptxHd          CodecType = 4
	CodecTypeLDAC            CodecType = 5
	CodecTypeLC3             CodecType = 6
	CodecTypeVENDOR          CodecType = 7
	CodecTypeAptxAdaptive    CodecType = 8
	CodecTypeOPUS            CodecType = 9
	CodecTypeAptxAdaptiveLe  CodecType = 10
	CodecTypeAptxAdaptiveLex CodecType = 11
)

type ConfigurationFlags

type ConfigurationFlags struct {
	Bitmask int32
}

func (*ConfigurationFlags) MarshalParcel

func (s *ConfigurationFlags) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ConfigurationFlags) UnmarshalParcel

func (s *ConfigurationFlags) UnmarshalParcel(
	p *parcel.Parcel,
) error

type HfpConfiguration

type HfpConfiguration struct {
	CodecId          CodecId
	ConnectionHandle int32
	Nrec             bool
	ControllerCodec  bool
}

func (*HfpConfiguration) MarshalParcel

func (s *HfpConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*HfpConfiguration) UnmarshalParcel

func (s *HfpConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IBluetoothAudioPort

type IBluetoothAudioPort interface {
	AsBinder() binder.IBinder
	GetPresentationPosition(ctx context.Context) (PresentationPosition, error)
	StartStream(ctx context.Context, isLowLatency bool) error
	StopStream(ctx context.Context) error
	SuspendStream(ctx context.Context) error
	UpdateSourceMetadata(ctx context.Context, sourceMetadata common.SourceMetadata) error
	UpdateSinkMetadata(ctx context.Context, sinkMetadata common.SinkMetadata) error
	SetLatencyMode(ctx context.Context, latencyMode LatencyMode) error
}

func NewBluetoothAudioPortStub

func NewBluetoothAudioPortStub(
	impl IBluetoothAudioPortServer,
) IBluetoothAudioPort

NewBluetoothAudioPortStub creates a server-side IBluetoothAudioPort wrapping the given server implementation. The returned value satisfies IBluetoothAudioPort and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IBluetoothAudioPortServer

type IBluetoothAudioPortServer interface {
	GetPresentationPosition(ctx context.Context) (PresentationPosition, error)
	StartStream(ctx context.Context, isLowLatency bool) error
	StopStream(ctx context.Context) error
	SuspendStream(ctx context.Context) error
	UpdateSourceMetadata(ctx context.Context, sourceMetadata common.SourceMetadata) error
	UpdateSinkMetadata(ctx context.Context, sinkMetadata common.SinkMetadata) error
	SetLatencyMode(ctx context.Context, latencyMode LatencyMode) error
}

IBluetoothAudioPortServer is the server-side interface that user implementations provide to NewBluetoothAudioPortStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IBluetoothAudioProvider

type IBluetoothAudioProvider interface {
	AsBinder() binder.IBinder
	EndSession(ctx context.Context) error
	StartSession(ctx context.Context, hostIf IBluetoothAudioPort, audioConfig AudioConfiguration, supportedLatencyModes []LatencyMode) (fmq.MQDescriptor, error)
	StreamStarted(ctx context.Context, status BluetoothAudioStatus) error
	StreamSuspended(ctx context.Context, status BluetoothAudioStatus) error
	UpdateAudioConfiguration(ctx context.Context, audioConfig AudioConfiguration) error
	SetLowLatencyModeAllowed(ctx context.Context, allowed bool) error
	ParseA2dpConfiguration(ctx context.Context, codecId CodecId, configuration []byte, codecParameters CodecParameters) (A2dpStatus, error)
	GetA2dpConfiguration(ctx context.Context, remoteA2dpCapabilities []A2dpRemoteCapabilities, hint A2dpConfigurationHint) (A2dpConfiguration, error)
	SetCodecPriority(ctx context.Context, codecId CodecId, priority int32) error
	GetLeAudioAseConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, remoteSourceAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirements []IBluetoothAudioProviderLeAudioConfigurationRequirement) ([]IBluetoothAudioProviderLeAudioAseConfigurationSetting, error)
	GetLeAudioAseQosConfiguration(ctx context.Context, qosRequirement IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) (IBluetoothAudioProviderLeAudioAseQosConfigurationPair, error)
	GetLeAudioAseDatapathConfiguration(ctx context.Context, sinkConfig *IBluetoothAudioProviderStreamConfig, sourceConfig *IBluetoothAudioProviderStreamConfig) (IBluetoothAudioProviderLeAudioDataPathConfigurationPair, error)
	OnSinkAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
	OnSourceAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
	GetLeAudioBroadcastConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirement IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) (IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting, error)
	GetLeAudioBroadcastDatapathConfiguration(ctx context.Context, audioContext AudioContext, streamMap []LeAudioBroadcastConfigurationBroadcastStreamMap) (IBluetoothAudioProviderLeAudioDataPathConfiguration, error)
}

func NewBluetoothAudioProviderStub

func NewBluetoothAudioProviderStub(
	impl IBluetoothAudioProviderServer,
) IBluetoothAudioProvider

NewBluetoothAudioProviderStub creates a server-side IBluetoothAudioProvider wrapping the given server implementation. The returned value satisfies IBluetoothAudioProvider and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IBluetoothAudioProviderAseState

type IBluetoothAudioProviderAseState byte
const (
	IBluetoothAudioProviderAseStateENABLING  IBluetoothAudioProviderAseState = 0
	IBluetoothAudioProviderAseStateSTREAMING IBluetoothAudioProviderAseState = 1
	IBluetoothAudioProviderAseStateDISABLING IBluetoothAudioProviderAseState = 2
)

type IBluetoothAudioProviderBroadcastQuality

type IBluetoothAudioProviderBroadcastQuality byte
const (
	IBluetoothAudioProviderBroadcastQualitySTANDARD IBluetoothAudioProviderBroadcastQuality = 0
	IBluetoothAudioProviderBroadcastQualityHIGH     IBluetoothAudioProviderBroadcastQuality = 1
)

type IBluetoothAudioProviderFactory

type IBluetoothAudioProviderFactory interface {
	AsBinder() binder.IBinder
	GetProviderCapabilities(ctx context.Context, sessionType SessionType) ([]AudioCapabilities, error)
	OpenProvider(ctx context.Context, sessionType SessionType) (IBluetoothAudioProvider, error)
	GetProviderInfo(ctx context.Context, sessionType SessionType) (IBluetoothAudioProviderFactoryProviderInfo, error)
}

func NewBluetoothAudioProviderFactoryStub

func NewBluetoothAudioProviderFactoryStub(
	impl IBluetoothAudioProviderFactoryServer,
) IBluetoothAudioProviderFactory

NewBluetoothAudioProviderFactoryStub creates a server-side IBluetoothAudioProviderFactory wrapping the given server implementation. The returned value satisfies IBluetoothAudioProviderFactory and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IBluetoothAudioProviderFactoryProviderInfo

type IBluetoothAudioProviderFactoryProviderInfo struct {
	Name                                 string
	CodecInfos                           []CodecInfo
	SupportsMultidirectionalCapabilities bool
}

func (*IBluetoothAudioProviderFactoryProviderInfo) MarshalParcel

func (*IBluetoothAudioProviderFactoryProviderInfo) UnmarshalParcel

type IBluetoothAudioProviderFactoryServer

type IBluetoothAudioProviderFactoryServer interface {
	GetProviderCapabilities(ctx context.Context, sessionType SessionType) ([]AudioCapabilities, error)
	OpenProvider(ctx context.Context, sessionType SessionType) (IBluetoothAudioProvider, error)
	GetProviderInfo(ctx context.Context, sessionType SessionType) (IBluetoothAudioProviderFactoryProviderInfo, error)
}

IBluetoothAudioProviderFactoryServer is the server-side interface that user implementations provide to NewBluetoothAudioProviderFactoryStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IBluetoothAudioProviderFraming

type IBluetoothAudioProviderFraming byte
const (
	IBluetoothAudioProviderFramingUNFRAMED IBluetoothAudioProviderFraming = 0
	IBluetoothAudioProviderFramingFRAMED   IBluetoothAudioProviderFraming = 1
)

type IBluetoothAudioProviderLeAudioAseConfigurationSetting

type IBluetoothAudioProviderLeAudioAseConfigurationSetting struct {
	AudioContext           AudioContext
	Packing                IBluetoothAudioProviderPacking
	SinkAseConfiguration   []IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration
	SourceAseConfiguration []IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration
	Flags                  *ConfigurationFlags
}

func (*IBluetoothAudioProviderLeAudioAseConfigurationSetting) MarshalParcel

func (*IBluetoothAudioProviderLeAudioAseConfigurationSetting) UnmarshalParcel

type IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration

type IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration struct {
	AseConfiguration      LeAudioAseConfiguration
	QosConfiguration      *IBluetoothAudioProviderLeAudioAseQosConfiguration
	DataPathConfiguration *IBluetoothAudioProviderLeAudioDataPathConfiguration
}

func (*IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration) MarshalParcel

func (*IBluetoothAudioProviderLeAudioAseConfigurationSettingAseDirectionConfiguration) UnmarshalParcel

type IBluetoothAudioProviderLeAudioAseQosConfiguration

type IBluetoothAudioProviderLeAudioAseQosConfiguration struct {
	SduIntervalUs         int32
	Framing               IBluetoothAudioProviderFraming
	Phy                   []Phy
	MaxTransportLatencyMs int32
	MaxSdu                int32
	RetransmissionNum     int32
}

func (*IBluetoothAudioProviderLeAudioAseQosConfiguration) MarshalParcel

func (*IBluetoothAudioProviderLeAudioAseQosConfiguration) UnmarshalParcel

type IBluetoothAudioProviderLeAudioAseQosConfigurationPair

type IBluetoothAudioProviderLeAudioAseQosConfigurationPair struct {
	SinkQosConfiguration   *IBluetoothAudioProviderLeAudioAseQosConfiguration
	SourceQosConfiguration *IBluetoothAudioProviderLeAudioAseQosConfiguration
}

func (*IBluetoothAudioProviderLeAudioAseQosConfigurationPair) MarshalParcel

func (*IBluetoothAudioProviderLeAudioAseQosConfigurationPair) UnmarshalParcel

type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement

type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement struct {
	AudioContext            AudioContext
	SinkAseQosRequirement   *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement
	SourceAseQosRequirement *IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement
	Flags                   *ConfigurationFlags
}

func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) MarshalParcel

func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) UnmarshalParcel

type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement

type IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement struct {
	Framing                         IBluetoothAudioProviderFraming
	PreferredPhy                    []Phy
	PreferredRetransmissionNum      int32
	MaxTransportLatencyMs           int32
	PresentationDelayMinUs          int32
	PresentationDelayMaxUs          int32
	PreferredPresentationDelayMinUs int32
	PreferredPresentationDelayMaxUs int32
	AseConfiguration                LeAudioAseConfiguration
}

func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement) MarshalParcel

func (*IBluetoothAudioProviderLeAudioAseQosConfigurationRequirementAseQosDirectionRequirement) UnmarshalParcel

type IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement

type IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement struct {
	SubgroupConfigurationRequirements []IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement
}

func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) MarshalParcel

func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) UnmarshalParcel

type IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting

type IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting struct {
	SduIntervalUs           int32
	NumBis                  int32
	MaxSduOctets            int32
	MaxTransportLatencyMs   int32
	RetransmitionNum        int32
	Phy                     []Phy
	Packing                 IBluetoothAudioProviderPacking
	Framing                 IBluetoothAudioProviderFraming
	DataPathConfiguration   *IBluetoothAudioProviderLeAudioDataPathConfiguration
	SubgroupsConfigurations []IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration
}

func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting) MarshalParcel

func (*IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting) UnmarshalParcel

type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration

type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration struct {
	BisConfigurations        []IBluetoothAudioProviderLeAudioSubgroupBisConfiguration
	VendorCodecConfiguration []byte
}

func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration) MarshalParcel

func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfiguration) UnmarshalParcel

type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement

type IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement struct {
	AudioContext      AudioContext
	Quality           IBluetoothAudioProviderBroadcastQuality
	BisNumPerSubgroup int32
}

func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement) MarshalParcel

func (*IBluetoothAudioProviderLeAudioBroadcastSubgroupConfigurationRequirement) UnmarshalParcel

type IBluetoothAudioProviderLeAudioConfigurationRequirement

type IBluetoothAudioProviderLeAudioConfigurationRequirement struct {
	AudioContext         AudioContext
	SinkAseRequirement   []IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement
	SourceAseRequirement []IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement
	Flags                *ConfigurationFlags
}

func (*IBluetoothAudioProviderLeAudioConfigurationRequirement) MarshalParcel

func (*IBluetoothAudioProviderLeAudioConfigurationRequirement) UnmarshalParcel

type IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement

type IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement struct {
	AseConfiguration LeAudioAseConfiguration
}

func (*IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement) MarshalParcel

func (*IBluetoothAudioProviderLeAudioConfigurationRequirementAseDirectionRequirement) UnmarshalParcel

type IBluetoothAudioProviderLeAudioDataPathConfiguration

type IBluetoothAudioProviderLeAudioDataPathConfiguration struct {
	DataPathId               int32
	DataPathConfiguration    IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration
	IsoDataPathConfiguration IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration
}

func (*IBluetoothAudioProviderLeAudioDataPathConfiguration) MarshalParcel

func (*IBluetoothAudioProviderLeAudioDataPathConfiguration) UnmarshalParcel

type IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration

type IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration struct {
	Configuration []byte
}

func (*IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration) MarshalParcel

func (*IBluetoothAudioProviderLeAudioDataPathConfigurationDataPathConfiguration) UnmarshalParcel

type IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration

type IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration struct {
	CodecId           CodecId
	IsTransparent     bool
	ControllerDelayUs int32
	Configuration     []byte
}

func (*IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration) MarshalParcel

func (*IBluetoothAudioProviderLeAudioDataPathConfigurationIsoDataPathConfiguration) UnmarshalParcel

type IBluetoothAudioProviderLeAudioDataPathConfigurationPair

type IBluetoothAudioProviderLeAudioDataPathConfigurationPair struct {
	InputConfig  *IBluetoothAudioProviderLeAudioDataPathConfiguration
	OutputConfig *IBluetoothAudioProviderLeAudioDataPathConfiguration
}

func (*IBluetoothAudioProviderLeAudioDataPathConfigurationPair) MarshalParcel

func (*IBluetoothAudioProviderLeAudioDataPathConfigurationPair) UnmarshalParcel

type IBluetoothAudioProviderLeAudioDeviceCapabilities

type IBluetoothAudioProviderLeAudioDeviceCapabilities struct {
	CodecId                         CodecId
	CodecSpecificCapabilities       []CodecSpecificCapabilitiesLtv
	VendorCodecSpecificCapabilities []byte
	Metadata                        []MetadataLtv
}

func (*IBluetoothAudioProviderLeAudioDeviceCapabilities) MarshalParcel

func (*IBluetoothAudioProviderLeAudioDeviceCapabilities) UnmarshalParcel

type IBluetoothAudioProviderLeAudioSubgroupBisConfiguration

type IBluetoothAudioProviderLeAudioSubgroupBisConfiguration struct {
	NumBis           int32
	BisConfiguration LeAudioBisConfiguration
}

func (*IBluetoothAudioProviderLeAudioSubgroupBisConfiguration) MarshalParcel

func (*IBluetoothAudioProviderLeAudioSubgroupBisConfiguration) UnmarshalParcel

type IBluetoothAudioProviderPacking

type IBluetoothAudioProviderPacking byte
const (
	IBluetoothAudioProviderPackingSEQUENTIAL  IBluetoothAudioProviderPacking = 0
	IBluetoothAudioProviderPackingINTERLEAVED IBluetoothAudioProviderPacking = 1
)

type IBluetoothAudioProviderServer

type IBluetoothAudioProviderServer interface {
	EndSession(ctx context.Context) error
	StartSession(ctx context.Context, hostIf IBluetoothAudioPort, audioConfig AudioConfiguration, supportedLatencyModes []LatencyMode) (fmq.MQDescriptor, error)
	StreamStarted(ctx context.Context, status BluetoothAudioStatus) error
	StreamSuspended(ctx context.Context, status BluetoothAudioStatus) error
	UpdateAudioConfiguration(ctx context.Context, audioConfig AudioConfiguration) error
	SetLowLatencyModeAllowed(ctx context.Context, allowed bool) error
	ParseA2dpConfiguration(ctx context.Context, codecId CodecId, configuration []byte, codecParameters CodecParameters) (A2dpStatus, error)
	GetA2dpConfiguration(ctx context.Context, remoteA2dpCapabilities []A2dpRemoteCapabilities, hint A2dpConfigurationHint) (A2dpConfiguration, error)
	SetCodecPriority(ctx context.Context, codecId CodecId, priority int32) error
	GetLeAudioAseConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, remoteSourceAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirements []IBluetoothAudioProviderLeAudioConfigurationRequirement) ([]IBluetoothAudioProviderLeAudioAseConfigurationSetting, error)
	GetLeAudioAseQosConfiguration(ctx context.Context, qosRequirement IBluetoothAudioProviderLeAudioAseQosConfigurationRequirement) (IBluetoothAudioProviderLeAudioAseQosConfigurationPair, error)
	GetLeAudioAseDatapathConfiguration(ctx context.Context, sinkConfig *IBluetoothAudioProviderStreamConfig, sourceConfig *IBluetoothAudioProviderStreamConfig) (IBluetoothAudioProviderLeAudioDataPathConfigurationPair, error)
	OnSinkAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
	OnSourceAseMetadataChanged(ctx context.Context, state IBluetoothAudioProviderAseState, cigId int32, cisId int32, metadata []MetadataLtv) error
	GetLeAudioBroadcastConfiguration(ctx context.Context, remoteSinkAudioCapabilities []IBluetoothAudioProviderLeAudioDeviceCapabilities, requirement IBluetoothAudioProviderLeAudioBroadcastConfigurationRequirement) (IBluetoothAudioProviderLeAudioBroadcastConfigurationSetting, error)
	GetLeAudioBroadcastDatapathConfiguration(ctx context.Context, audioContext AudioContext, streamMap []LeAudioBroadcastConfigurationBroadcastStreamMap) (IBluetoothAudioProviderLeAudioDataPathConfiguration, error)
}

IBluetoothAudioProviderServer is the server-side interface that user implementations provide to NewBluetoothAudioProviderStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IBluetoothAudioProviderStreamConfig

type IBluetoothAudioProviderStreamConfig struct {
	AudioContext AudioContext
	StreamMap    []LeAudioConfigurationStreamMap
}

func (*IBluetoothAudioProviderStreamConfig) MarshalParcel

func (s *IBluetoothAudioProviderStreamConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*IBluetoothAudioProviderStreamConfig) UnmarshalParcel

func (s *IBluetoothAudioProviderStreamConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LatencyMode

type LatencyMode int32
const (
	LatencyModeUNKNOWN                     LatencyMode = 0
	LatencyModeLowLatency                  LatencyMode = 1
	LatencyModeFREE                        LatencyMode = 2
	LatencyModeDynamicSpatialAudioSoftware LatencyMode = 3
	LatencyModeDynamicSpatialAudioHardware LatencyMode = 4
)

type Lc3Capabilities

type Lc3Capabilities struct {
	PcmBitDepth         []byte
	SamplingFrequencyHz []int32
	FrameDurationUs     []int32
	OctetsPerFrame      []int32
	BlocksPerSdu        []byte
	ChannelMode         []ChannelMode
}

func (*Lc3Capabilities) MarshalParcel

func (s *Lc3Capabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*Lc3Capabilities) UnmarshalParcel

func (s *Lc3Capabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type Lc3Configuration

type Lc3Configuration struct {
	PcmBitDepth         byte
	SamplingFrequencyHz int32
	FrameDurationUs     int32
	OctetsPerFrame      int32
	BlocksPerSdu        byte
	ChannelMode         ChannelMode
}

func (*Lc3Configuration) MarshalParcel

func (s *Lc3Configuration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*Lc3Configuration) UnmarshalParcel

func (s *Lc3Configuration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LdacCapabilities

type LdacCapabilities struct {
	SampleRateHz  []int32
	ChannelMode   []LdacChannelMode
	QualityIndex  []LdacQualityIndex
	BitsPerSample []byte
}

func (*LdacCapabilities) MarshalParcel

func (s *LdacCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LdacCapabilities) UnmarshalParcel

func (s *LdacCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LdacChannelMode

type LdacChannelMode byte
const (
	LdacChannelModeUNKNOWN LdacChannelMode = 0
	LdacChannelModeSTEREO  LdacChannelMode = 1
	LdacChannelModeDUAL    LdacChannelMode = 2
	LdacChannelModeMONO    LdacChannelMode = 3
)

type LdacConfiguration

type LdacConfiguration struct {
	SampleRateHz  int32
	ChannelMode   LdacChannelMode
	QualityIndex  LdacQualityIndex
	BitsPerSample byte
}

func (*LdacConfiguration) MarshalParcel

func (s *LdacConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LdacConfiguration) UnmarshalParcel

func (s *LdacConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LdacQualityIndex

type LdacQualityIndex byte
const (
	LdacQualityIndexHIGH LdacQualityIndex = 0
	LdacQualityIndexMID  LdacQualityIndex = 1
	LdacQualityIndexLOW  LdacQualityIndex = 2
	LdacQualityIndexABR  LdacQualityIndex = 3
)

type LeAudioAseConfiguration

type LeAudioAseConfiguration struct {
	TargetLatency            LeAudioAseConfigurationTargetLatency
	TargetPhy                Phy
	CodecId                  *CodecId
	CodecConfiguration       []CodecSpecificConfigurationLtv
	VendorCodecConfiguration []byte
	Metadata                 []MetadataLtv
}

func (*LeAudioAseConfiguration) MarshalParcel

func (s *LeAudioAseConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LeAudioAseConfiguration) UnmarshalParcel

func (s *LeAudioAseConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LeAudioAseConfigurationTargetLatency

type LeAudioAseConfigurationTargetLatency byte
const (
	LeAudioAseConfigurationTargetLatencyUNDEFINED                  LeAudioAseConfigurationTargetLatency = 0
	LeAudioAseConfigurationTargetLatencyLOWER                      LeAudioAseConfigurationTargetLatency = 1
	LeAudioAseConfigurationTargetLatencyBalancedLatencyReliability LeAudioAseConfigurationTargetLatency = 2
	LeAudioAseConfigurationTargetLatencyHigherReliability          LeAudioAseConfigurationTargetLatency = 3
)

type LeAudioBisConfiguration

type LeAudioBisConfiguration struct {
	CodecId                  CodecId
	CodecConfiguration       []CodecSpecificConfigurationLtv
	VendorCodecConfiguration []byte
	Metadata                 []MetadataLtv
}

func (*LeAudioBisConfiguration) MarshalParcel

func (s *LeAudioBisConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LeAudioBisConfiguration) UnmarshalParcel

func (s *LeAudioBisConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LeAudioBroadcastConfiguration

type LeAudioBroadcastConfiguration struct {
	CodecType CodecType
	StreamMap []LeAudioBroadcastConfigurationBroadcastStreamMap
}

func (*LeAudioBroadcastConfiguration) MarshalParcel

func (s *LeAudioBroadcastConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LeAudioBroadcastConfiguration) UnmarshalParcel

func (s *LeAudioBroadcastConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LeAudioBroadcastConfigurationBroadcastStreamMap

type LeAudioBroadcastConfigurationBroadcastStreamMap struct {
	StreamHandle           uint16
	AudioChannelAllocation int32
	LeAudioCodecConfig     LeAudioCodecConfiguration
	PcmStreamId            uint16
	BisConfiguration       *LeAudioBisConfiguration
	Flags                  *ConfigurationFlags
}

func (*LeAudioBroadcastConfigurationBroadcastStreamMap) MarshalParcel

func (*LeAudioBroadcastConfigurationBroadcastStreamMap) UnmarshalParcel

type LeAudioCodecCapabilitiesSetting

type LeAudioCodecCapabilitiesSetting struct {
	UnicastEncodeCapability UnicastCapability
	UnicastDecodeCapability UnicastCapability
	BroadcastCapability     BroadcastCapability
}

func (*LeAudioCodecCapabilitiesSetting) MarshalParcel

func (s *LeAudioCodecCapabilitiesSetting) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LeAudioCodecCapabilitiesSetting) UnmarshalParcel

func (s *LeAudioCodecCapabilitiesSetting) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LeAudioCodecConfiguration

type LeAudioCodecConfiguration struct {
	Tag                  int32
	Lc3Config            Lc3Configuration
	VendorConfig         LeAudioCodecConfigurationVendorConfiguration
	AptxAdaptiveLeConfig AptxAdaptiveLeConfiguration
}

func (*LeAudioCodecConfiguration) GetAptxAdaptiveLeConfig

func (u *LeAudioCodecConfiguration) GetAptxAdaptiveLeConfig() (AptxAdaptiveLeConfiguration, bool)

func (*LeAudioCodecConfiguration) GetLc3Config

func (u *LeAudioCodecConfiguration) GetLc3Config() (Lc3Configuration, bool)

func (*LeAudioCodecConfiguration) GetVendorConfig

func (*LeAudioCodecConfiguration) MarshalParcel

func (u *LeAudioCodecConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LeAudioCodecConfiguration) SetAptxAdaptiveLeConfig

func (u *LeAudioCodecConfiguration) SetAptxAdaptiveLeConfig(
	v AptxAdaptiveLeConfiguration,
)

func (*LeAudioCodecConfiguration) SetLc3Config

func (u *LeAudioCodecConfiguration) SetLc3Config(
	v Lc3Configuration,
)

func (*LeAudioCodecConfiguration) SetVendorConfig

func (*LeAudioCodecConfiguration) UnmarshalParcel

func (u *LeAudioCodecConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LeAudioCodecConfigurationVendorConfiguration

type LeAudioCodecConfigurationVendorConfiguration struct {
	Extension any
}

func (*LeAudioCodecConfigurationVendorConfiguration) MarshalParcel

func (*LeAudioCodecConfigurationVendorConfiguration) UnmarshalParcel

type LeAudioConfiguration

type LeAudioConfiguration struct {
	CodecType              CodecType
	StreamMap              []LeAudioConfigurationStreamMap
	PeerDelayUs            int32
	LeAudioCodecConfig     LeAudioCodecConfiguration
	VendorSpecificMetadata []byte
}

func (*LeAudioConfiguration) MarshalParcel

func (s *LeAudioConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LeAudioConfiguration) UnmarshalParcel

func (s *LeAudioConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LeAudioConfigurationStreamMap

type LeAudioConfigurationStreamMap struct {
	StreamHandle           uint16
	AudioChannelAllocation int32
	IsStreamActive         bool
	AseConfiguration       *LeAudioAseConfiguration
	Flags                  *ConfigurationFlags
	BluetoothDeviceAddress *LeAudioConfigurationStreamMapBluetoothDeviceAddress
}

func (*LeAudioConfigurationStreamMap) MarshalParcel

func (s *LeAudioConfigurationStreamMap) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LeAudioConfigurationStreamMap) UnmarshalParcel

func (s *LeAudioConfigurationStreamMap) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LeAudioConfigurationStreamMapBluetoothDeviceAddress

type LeAudioConfigurationStreamMapBluetoothDeviceAddress struct {
	DeviceAddress     []byte
	DeviceAddressType LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType
}

func (*LeAudioConfigurationStreamMapBluetoothDeviceAddress) MarshalParcel

func (*LeAudioConfigurationStreamMapBluetoothDeviceAddress) UnmarshalParcel

type LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType

type LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType int32
const (
	LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressTypeBleAddressPublic LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType = 0
	LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressTypeBleAddressRandom LeAudioConfigurationStreamMapBluetoothDeviceAddressDeviceAddressType = 1
)

type MetadataLtv

type MetadataLtv struct {
	Tag                    int32
	PreferredAudioContexts MetadataLtvPreferredAudioContexts
	StreamingAudioContexts MetadataLtvStreamingAudioContexts
	VendorSpecific         MetadataLtvVendorSpecific
}

func (*MetadataLtv) GetPreferredAudioContexts

func (u *MetadataLtv) GetPreferredAudioContexts() (MetadataLtvPreferredAudioContexts, bool)

func (*MetadataLtv) GetStreamingAudioContexts

func (u *MetadataLtv) GetStreamingAudioContexts() (MetadataLtvStreamingAudioContexts, bool)

func (*MetadataLtv) GetVendorSpecific

func (u *MetadataLtv) GetVendorSpecific() (MetadataLtvVendorSpecific, bool)

func (*MetadataLtv) MarshalParcel

func (u *MetadataLtv) MarshalParcel(
	p *parcel.Parcel,
) error

func (*MetadataLtv) SetPreferredAudioContexts

func (u *MetadataLtv) SetPreferredAudioContexts(
	v MetadataLtvPreferredAudioContexts,
)

func (*MetadataLtv) SetStreamingAudioContexts

func (u *MetadataLtv) SetStreamingAudioContexts(
	v MetadataLtvStreamingAudioContexts,
)

func (*MetadataLtv) SetVendorSpecific

func (u *MetadataLtv) SetVendorSpecific(
	v MetadataLtvVendorSpecific,
)

func (*MetadataLtv) UnmarshalParcel

func (u *MetadataLtv) UnmarshalParcel(
	p *parcel.Parcel,
) error

type MetadataLtvPreferredAudioContexts

type MetadataLtvPreferredAudioContexts struct {
	Values AudioContext
}

func (*MetadataLtvPreferredAudioContexts) MarshalParcel

func (s *MetadataLtvPreferredAudioContexts) MarshalParcel(
	p *parcel.Parcel,
) error

func (*MetadataLtvPreferredAudioContexts) UnmarshalParcel

func (s *MetadataLtvPreferredAudioContexts) UnmarshalParcel(
	p *parcel.Parcel,
) error

type MetadataLtvStreamingAudioContexts

type MetadataLtvStreamingAudioContexts struct {
	Values AudioContext
}

func (*MetadataLtvStreamingAudioContexts) MarshalParcel

func (s *MetadataLtvStreamingAudioContexts) MarshalParcel(
	p *parcel.Parcel,
) error

func (*MetadataLtvStreamingAudioContexts) UnmarshalParcel

func (s *MetadataLtvStreamingAudioContexts) UnmarshalParcel(
	p *parcel.Parcel,
) error

type MetadataLtvVendorSpecific

type MetadataLtvVendorSpecific struct {
	CompanyId   int32
	OpaqueValue []byte
}

func (*MetadataLtvVendorSpecific) MarshalParcel

func (s *MetadataLtvVendorSpecific) MarshalParcel(
	p *parcel.Parcel,
) error

func (*MetadataLtvVendorSpecific) UnmarshalParcel

func (s *MetadataLtvVendorSpecific) UnmarshalParcel(
	p *parcel.Parcel,
) error

type OpusCapabilities

type OpusCapabilities struct {
	PcmBitDepth         []byte
	SamplingFrequencyHz []int32
	FrameDurationUs     []int32
	OctetsPerFrame      []int32
	BlocksPerSdu        []byte
	ChannelMode         []ChannelMode
}

func (*OpusCapabilities) MarshalParcel

func (s *OpusCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*OpusCapabilities) UnmarshalParcel

func (s *OpusCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type OpusConfiguration

type OpusConfiguration struct {
	PcmBitDepth         byte
	SamplingFrequencyHz int32
	FrameDurationUs     int32
	OctetsPerFrame      int32
	BlocksPerSdu        byte
	ChannelMode         ChannelMode
}

func (*OpusConfiguration) MarshalParcel

func (s *OpusConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*OpusConfiguration) UnmarshalParcel

func (s *OpusConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PcmCapabilities

type PcmCapabilities struct {
	SampleRateHz   []int32
	ChannelMode    []ChannelMode
	BitsPerSample  []byte
	DataIntervalUs []int32
}

func (*PcmCapabilities) MarshalParcel

func (s *PcmCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PcmCapabilities) UnmarshalParcel

func (s *PcmCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PcmConfiguration

type PcmConfiguration struct {
	SampleRateHz   int32
	ChannelMode    ChannelMode
	BitsPerSample  byte
	DataIntervalUs int32
}

func (*PcmConfiguration) MarshalParcel

func (s *PcmConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PcmConfiguration) UnmarshalParcel

func (s *PcmConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type Phy

type Phy byte
const (
	PhyUNDEFINED Phy = 0
	PhyOneM      Phy = 1
	PhyTwoM      Phy = 2
	PhyCODED     Phy = 3
)

type PresentationPosition

type PresentationPosition struct {
	RemoteDeviceAudioDelayNanos int64
	TransmittedOctets           int64
	TransmittedOctetsTimestamp  PresentationPositionTimeSpec
}

func (*PresentationPosition) MarshalParcel

func (s *PresentationPosition) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PresentationPosition) UnmarshalParcel

func (s *PresentationPosition) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PresentationPositionTimeSpec

type PresentationPositionTimeSpec struct {
	TvSec  int64
	TvNSec int64
}

func (*PresentationPositionTimeSpec) MarshalParcel

func (s *PresentationPositionTimeSpec) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PresentationPositionTimeSpec) UnmarshalParcel

func (s *PresentationPositionTimeSpec) UnmarshalParcel(
	p *parcel.Parcel,
) error

type SbcAllocMethod

type SbcAllocMethod byte
const (
	SbcAllocMethodAllocMdS SbcAllocMethod = 0
	SbcAllocMethodAllocMdL SbcAllocMethod = 1
)

type SbcCapabilities

type SbcCapabilities struct {
	SampleRateHz  []int32
	ChannelMode   []SbcChannelMode
	BlockLength   []byte
	NumSubbands   []byte
	AllocMethod   []SbcAllocMethod
	BitsPerSample []byte
	MinBitpool    int32
	MaxBitpool    int32
}

func (*SbcCapabilities) MarshalParcel

func (s *SbcCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*SbcCapabilities) UnmarshalParcel

func (s *SbcCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type SbcChannelMode

type SbcChannelMode byte
const (
	SbcChannelModeUNKNOWN     SbcChannelMode = 0
	SbcChannelModeJointStereo SbcChannelMode = 1
	SbcChannelModeSTEREO      SbcChannelMode = 2
	SbcChannelModeDUAL        SbcChannelMode = 3
	SbcChannelModeMONO        SbcChannelMode = 4
)

type SbcConfiguration

type SbcConfiguration struct {
	SampleRateHz  int32
	ChannelMode   SbcChannelMode
	BlockLength   byte
	NumSubbands   byte
	AllocMethod   SbcAllocMethod
	BitsPerSample byte
	MinBitpool    int32
	MaxBitpool    int32
}

func (*SbcConfiguration) MarshalParcel

func (s *SbcConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*SbcConfiguration) UnmarshalParcel

func (s *SbcConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type SessionType

type SessionType byte
const (
	SessionTypeUNKNOWN                                         SessionType = 0
	SessionTypeA2dpSoftwareEncodingDatapath                    SessionType = 1
	SessionTypeA2dpHardwareOffloadEncodingDatapath             SessionType = 2
	SessionTypeHearingAidSoftwareEncodingDatapath              SessionType = 3
	SessionTypeLeAudioSoftwareEncodingDatapath                 SessionType = 4
	SessionTypeLeAudioSoftwareDecodingDatapath                 SessionType = 5
	SessionTypeLeAudioHardwareOffloadEncodingDatapath          SessionType = 6
	SessionTypeLeAudioHardwareOffloadDecodingDatapath          SessionType = 7
	SessionTypeLeAudioBroadcastSoftwareEncodingDatapath        SessionType = 8
	SessionTypeLeAudioBroadcastHardwareOffloadEncodingDatapath SessionType = 9
	SessionTypeA2dpSoftwareDecodingDatapath                    SessionType = 10
	SessionTypeA2dpHardwareOffloadDecodingDatapath             SessionType = 11
	SessionTypeHfpSoftwareEncodingDatapath                     SessionType = 12
	SessionTypeHfpSoftwareDecodingDatapath                     SessionType = 13
	SessionTypeHfpHardwareOffloadDatapath                      SessionType = 14
)

type UnicastCapability

type UnicastCapability struct {
	CodecType                CodecType
	SupportedChannel         AudioLocation
	DeviceCount              int32
	ChannelCountPerDevice    int32
	LeAudioCodecCapabilities UnicastCapabilityLeAudioCodecCapabilities
}

func (*UnicastCapability) MarshalParcel

func (s *UnicastCapability) MarshalParcel(
	p *parcel.Parcel,
) error

func (*UnicastCapability) UnmarshalParcel

func (s *UnicastCapability) UnmarshalParcel(
	p *parcel.Parcel,
) error

type UnicastCapabilityLeAudioCodecCapabilities

type UnicastCapabilityLeAudioCodecCapabilities struct {
	Tag                        int32
	Lc3Capabilities            Lc3Capabilities
	VendorCapabillities        UnicastCapabilityVendorCapabilities
	AptxAdaptiveLeCapabilities AptxAdaptiveLeCapabilities
}

func (*UnicastCapabilityLeAudioCodecCapabilities) GetAptxAdaptiveLeCapabilities

func (u *UnicastCapabilityLeAudioCodecCapabilities) GetAptxAdaptiveLeCapabilities() (AptxAdaptiveLeCapabilities, bool)

func (*UnicastCapabilityLeAudioCodecCapabilities) GetLc3Capabilities

func (*UnicastCapabilityLeAudioCodecCapabilities) GetVendorCapabillities

func (*UnicastCapabilityLeAudioCodecCapabilities) MarshalParcel

func (*UnicastCapabilityLeAudioCodecCapabilities) SetAptxAdaptiveLeCapabilities

func (u *UnicastCapabilityLeAudioCodecCapabilities) SetAptxAdaptiveLeCapabilities(
	v AptxAdaptiveLeCapabilities,
)

func (*UnicastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities

func (u *UnicastCapabilityLeAudioCodecCapabilities) SetLc3Capabilities(
	v Lc3Capabilities,
)

func (*UnicastCapabilityLeAudioCodecCapabilities) SetVendorCapabillities

func (*UnicastCapabilityLeAudioCodecCapabilities) UnmarshalParcel

type UnicastCapabilityVendorCapabilities

type UnicastCapabilityVendorCapabilities struct {
	Extension any
}

func (*UnicastCapabilityVendorCapabilities) MarshalParcel

func (s *UnicastCapabilityVendorCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*UnicastCapabilityVendorCapabilities) UnmarshalParcel

func (s *UnicastCapabilityVendorCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL