core

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionIBluetoothSetScoConfig = binder.FirstCallTransaction + 0
	TransactionIBluetoothSetHfpConfig = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIBluetoothSetScoConfig = "setScoConfig"
	MethodIBluetoothSetHfpConfig = "setHfpConfig"
)
View Source
const (
	IBluetoothHfpConfigVolumeMin int32 = 0
	IBluetoothHfpConfigVolumeMax int32 = 1
)
View Source
const (
	TransactionIBluetoothA2dpIsEnabled                      = binder.FirstCallTransaction + 0
	TransactionIBluetoothA2dpSetEnabled                     = binder.FirstCallTransaction + 1
	TransactionIBluetoothA2dpSupportsOffloadReconfiguration = binder.FirstCallTransaction + 2
	TransactionIBluetoothA2dpReconfigureOffload             = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodIBluetoothA2dpIsEnabled                      = "isEnabled"
	MethodIBluetoothA2dpSetEnabled                     = "setEnabled"
	MethodIBluetoothA2dpSupportsOffloadReconfiguration = "supportsOffloadReconfiguration"
	MethodIBluetoothA2dpReconfigureOffload             = "reconfigureOffload"
)
View Source
const (
	TransactionIBluetoothLeIsEnabled                      = binder.FirstCallTransaction + 0
	TransactionIBluetoothLeSetEnabled                     = binder.FirstCallTransaction + 1
	TransactionIBluetoothLeSupportsOffloadReconfiguration = binder.FirstCallTransaction + 2
	TransactionIBluetoothLeReconfigureOffload             = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodIBluetoothLeIsEnabled                      = "isEnabled"
	MethodIBluetoothLeSetEnabled                     = "setEnabled"
	MethodIBluetoothLeSupportsOffloadReconfiguration = "supportsOffloadReconfiguration"
	MethodIBluetoothLeReconfigureOffload             = "reconfigureOffload"
)
View Source
const (
	TransactionIConfigGetSurroundSoundConfig = binder.FirstCallTransaction + 0
	TransactionIConfigGetEngineConfig        = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIConfigGetSurroundSoundConfig = "getSurroundSoundConfig"
	MethodIConfigGetEngineConfig        = "getEngineConfig"
)
View Source
const (
	TransactionIModuleSetModuleDebug                    = binder.FirstCallTransaction + 0
	TransactionIModuleGetTelephony                      = binder.FirstCallTransaction + 1
	TransactionIModuleGetBluetooth                      = binder.FirstCallTransaction + 2
	TransactionIModuleGetBluetoothA2dp                  = binder.FirstCallTransaction + 3
	TransactionIModuleGetBluetoothLe                    = binder.FirstCallTransaction + 4
	TransactionIModuleConnectExternalDevice             = binder.FirstCallTransaction + 5
	TransactionIModuleDisconnectExternalDevice          = binder.FirstCallTransaction + 6
	TransactionIModuleGetAudioPatches                   = binder.FirstCallTransaction + 7
	TransactionIModuleGetAudioPort                      = binder.FirstCallTransaction + 8
	TransactionIModuleGetAudioPortConfigs               = binder.FirstCallTransaction + 9
	TransactionIModuleGetAudioPorts                     = binder.FirstCallTransaction + 10
	TransactionIModuleGetAudioRoutes                    = binder.FirstCallTransaction + 11
	TransactionIModuleGetAudioRoutesForAudioPort        = binder.FirstCallTransaction + 12
	TransactionIModuleOpenInputStream                   = binder.FirstCallTransaction + 13
	TransactionIModuleOpenOutputStream                  = binder.FirstCallTransaction + 14
	TransactionIModuleGetSupportedPlaybackRateFactors   = binder.FirstCallTransaction + 15
	TransactionIModuleSetAudioPatch                     = binder.FirstCallTransaction + 16
	TransactionIModuleSetAudioPortConfig                = binder.FirstCallTransaction + 17
	TransactionIModuleResetAudioPatch                   = binder.FirstCallTransaction + 18
	TransactionIModuleResetAudioPortConfig              = binder.FirstCallTransaction + 19
	TransactionIModuleGetMasterMute                     = binder.FirstCallTransaction + 20
	TransactionIModuleSetMasterMute                     = binder.FirstCallTransaction + 21
	TransactionIModuleGetMasterVolume                   = binder.FirstCallTransaction + 22
	TransactionIModuleSetMasterVolume                   = binder.FirstCallTransaction + 23
	TransactionIModuleGetMicMute                        = binder.FirstCallTransaction + 24
	TransactionIModuleSetMicMute                        = binder.FirstCallTransaction + 25
	TransactionIModuleGetMicrophones                    = binder.FirstCallTransaction + 26
	TransactionIModuleUpdateAudioMode                   = binder.FirstCallTransaction + 27
	TransactionIModuleUpdateScreenRotation              = binder.FirstCallTransaction + 28
	TransactionIModuleUpdateScreenState                 = binder.FirstCallTransaction + 29
	TransactionIModuleGetSoundDose                      = binder.FirstCallTransaction + 30
	TransactionIModuleGenerateHwAvSyncId                = binder.FirstCallTransaction + 31
	TransactionIModuleGetVendorParameters               = binder.FirstCallTransaction + 32
	TransactionIModuleSetVendorParameters               = binder.FirstCallTransaction + 33
	TransactionIModuleAddDeviceEffect                   = binder.FirstCallTransaction + 34
	TransactionIModuleRemoveDeviceEffect                = binder.FirstCallTransaction + 35
	TransactionIModuleGetMmapPolicyInfos                = binder.FirstCallTransaction + 36
	TransactionIModuleSupportsVariableLatency           = binder.FirstCallTransaction + 37
	TransactionIModuleGetAAudioMixerBurstCount          = binder.FirstCallTransaction + 38
	TransactionIModuleGetAAudioHardwareBurstMinUsec     = binder.FirstCallTransaction + 39
	TransactionIModulePrepareToDisconnectExternalDevice = binder.FirstCallTransaction + 40
)
View Source
const (
	MethodIModuleSetModuleDebug                    = "setModuleDebug"
	MethodIModuleGetTelephony                      = "getTelephony"
	MethodIModuleGetBluetooth                      = "getBluetooth"
	MethodIModuleGetBluetoothA2dp                  = "getBluetoothA2dp"
	MethodIModuleGetBluetoothLe                    = "getBluetoothLe"
	MethodIModuleConnectExternalDevice             = "connectExternalDevice"
	MethodIModuleDisconnectExternalDevice          = "disconnectExternalDevice"
	MethodIModuleGetAudioPatches                   = "getAudioPatches"
	MethodIModuleGetAudioPort                      = "getAudioPort"
	MethodIModuleGetAudioPortConfigs               = "getAudioPortConfigs"
	MethodIModuleGetAudioPorts                     = "getAudioPorts"
	MethodIModuleGetAudioRoutes                    = "getAudioRoutes"
	MethodIModuleGetAudioRoutesForAudioPort        = "getAudioRoutesForAudioPort"
	MethodIModuleOpenInputStream                   = "openInputStream"
	MethodIModuleOpenOutputStream                  = "openOutputStream"
	MethodIModuleGetSupportedPlaybackRateFactors   = "getSupportedPlaybackRateFactors"
	MethodIModuleSetAudioPatch                     = "setAudioPatch"
	MethodIModuleSetAudioPortConfig                = "setAudioPortConfig"
	MethodIModuleResetAudioPatch                   = "resetAudioPatch"
	MethodIModuleResetAudioPortConfig              = "resetAudioPortConfig"
	MethodIModuleGetMasterMute                     = "getMasterMute"
	MethodIModuleSetMasterMute                     = "setMasterMute"
	MethodIModuleGetMasterVolume                   = "getMasterVolume"
	MethodIModuleSetMasterVolume                   = "setMasterVolume"
	MethodIModuleGetMicMute                        = "getMicMute"
	MethodIModuleSetMicMute                        = "setMicMute"
	MethodIModuleGetMicrophones                    = "getMicrophones"
	MethodIModuleUpdateAudioMode                   = "updateAudioMode"
	MethodIModuleUpdateScreenRotation              = "updateScreenRotation"
	MethodIModuleUpdateScreenState                 = "updateScreenState"
	MethodIModuleGetSoundDose                      = "getSoundDose"
	MethodIModuleGenerateHwAvSyncId                = "generateHwAvSyncId"
	MethodIModuleGetVendorParameters               = "getVendorParameters"
	MethodIModuleSetVendorParameters               = "setVendorParameters"
	MethodIModuleAddDeviceEffect                   = "addDeviceEffect"
	MethodIModuleRemoveDeviceEffect                = "removeDeviceEffect"
	MethodIModuleGetMmapPolicyInfos                = "getMmapPolicyInfos"
	MethodIModuleSupportsVariableLatency           = "supportsVariableLatency"
	MethodIModuleGetAAudioMixerBurstCount          = "getAAudioMixerBurstCount"
	MethodIModuleGetAAudioHardwareBurstMinUsec     = "getAAudioHardwareBurstMinUsec"
	MethodIModulePrepareToDisconnectExternalDevice = "prepareToDisconnectExternalDevice"
)
View Source
const (
	IModuleDefaultAaudioMixerBurstCount            int32 = 2
	IModuleDefaultAaudioHardwareBurstMinDurationUs int32 = 1000
)
View Source
const (
	TransactionIStreamCallbackOnTransferReady = binder.FirstCallTransaction + 0
	TransactionIStreamCallbackOnError         = binder.FirstCallTransaction + 1
	TransactionIStreamCallbackOnDrainReady    = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIStreamCallbackOnTransferReady = "onTransferReady"
	MethodIStreamCallbackOnError         = "onError"
	MethodIStreamCallbackOnDrainReady    = "onDrainReady"
)
View Source
const (
	TransactionIStreamCommonClose               = binder.FirstCallTransaction + 0
	TransactionIStreamCommonPrepareToClose      = binder.FirstCallTransaction + 1
	TransactionIStreamCommonUpdateHwAvSyncId    = binder.FirstCallTransaction + 2
	TransactionIStreamCommonGetVendorParameters = binder.FirstCallTransaction + 3
	TransactionIStreamCommonSetVendorParameters = binder.FirstCallTransaction + 4
	TransactionIStreamCommonAddEffect           = binder.FirstCallTransaction + 5
	TransactionIStreamCommonRemoveEffect        = binder.FirstCallTransaction + 6
)
View Source
const (
	MethodIStreamCommonClose               = "close"
	MethodIStreamCommonPrepareToClose      = "prepareToClose"
	MethodIStreamCommonUpdateHwAvSyncId    = "updateHwAvSyncId"
	MethodIStreamCommonGetVendorParameters = "getVendorParameters"
	MethodIStreamCommonSetVendorParameters = "setVendorParameters"
	MethodIStreamCommonAddEffect           = "addEffect"
	MethodIStreamCommonRemoveEffect        = "removeEffect"
)
View Source
const (
	TransactionIStreamInGetStreamCommon             = binder.FirstCallTransaction + 0
	TransactionIStreamInGetActiveMicrophones        = binder.FirstCallTransaction + 1
	TransactionIStreamInGetMicrophoneDirection      = binder.FirstCallTransaction + 2
	TransactionIStreamInSetMicrophoneDirection      = binder.FirstCallTransaction + 3
	TransactionIStreamInGetMicrophoneFieldDimension = binder.FirstCallTransaction + 4
	TransactionIStreamInSetMicrophoneFieldDimension = binder.FirstCallTransaction + 5
	TransactionIStreamInUpdateMetadata              = binder.FirstCallTransaction + 6
	TransactionIStreamInGetHwGain                   = binder.FirstCallTransaction + 7
	TransactionIStreamInSetHwGain                   = binder.FirstCallTransaction + 8
)
View Source
const (
	MethodIStreamInGetStreamCommon             = "getStreamCommon"
	MethodIStreamInGetActiveMicrophones        = "getActiveMicrophones"
	MethodIStreamInGetMicrophoneDirection      = "getMicrophoneDirection"
	MethodIStreamInSetMicrophoneDirection      = "setMicrophoneDirection"
	MethodIStreamInGetMicrophoneFieldDimension = "getMicrophoneFieldDimension"
	MethodIStreamInSetMicrophoneFieldDimension = "setMicrophoneFieldDimension"
	MethodIStreamInUpdateMetadata              = "updateMetadata"
	MethodIStreamInGetHwGain                   = "getHwGain"
	MethodIStreamInSetHwGain                   = "setHwGain"
)
View Source
const (
	IStreamInMicFieldDimensionWideAngle int32 = -1
	IStreamInMicFieldDimensionNoZoom    int32 = 0
	IStreamInMicFieldDimensionMaxZoom   int32 = 1
	IStreamInHwGainMin                  int32 = 0
	IStreamInHwGainMax                  int32 = 1
)
View Source
const (
	TransactionIStreamOutGetStreamCommon             = binder.FirstCallTransaction + 0
	TransactionIStreamOutUpdateMetadata              = binder.FirstCallTransaction + 1
	TransactionIStreamOutUpdateOffloadMetadata       = binder.FirstCallTransaction + 2
	TransactionIStreamOutGetHwVolume                 = binder.FirstCallTransaction + 3
	TransactionIStreamOutSetHwVolume                 = binder.FirstCallTransaction + 4
	TransactionIStreamOutGetAudioDescriptionMixLevel = binder.FirstCallTransaction + 5
	TransactionIStreamOutSetAudioDescriptionMixLevel = binder.FirstCallTransaction + 6
	TransactionIStreamOutGetDualMonoMode             = binder.FirstCallTransaction + 7
	TransactionIStreamOutSetDualMonoMode             = binder.FirstCallTransaction + 8
	TransactionIStreamOutGetRecommendedLatencyModes  = binder.FirstCallTransaction + 9
	TransactionIStreamOutSetLatencyMode              = binder.FirstCallTransaction + 10
	TransactionIStreamOutGetPlaybackRateParameters   = binder.FirstCallTransaction + 11
	TransactionIStreamOutSetPlaybackRateParameters   = binder.FirstCallTransaction + 12
	TransactionIStreamOutSelectPresentation          = binder.FirstCallTransaction + 13
)
View Source
const (
	MethodIStreamOutGetStreamCommon             = "getStreamCommon"
	MethodIStreamOutUpdateMetadata              = "updateMetadata"
	MethodIStreamOutUpdateOffloadMetadata       = "updateOffloadMetadata"
	MethodIStreamOutGetHwVolume                 = "getHwVolume"
	MethodIStreamOutSetHwVolume                 = "setHwVolume"
	MethodIStreamOutGetAudioDescriptionMixLevel = "getAudioDescriptionMixLevel"
	MethodIStreamOutSetAudioDescriptionMixLevel = "setAudioDescriptionMixLevel"
	MethodIStreamOutGetDualMonoMode             = "getDualMonoMode"
	MethodIStreamOutSetDualMonoMode             = "setDualMonoMode"
	MethodIStreamOutGetRecommendedLatencyModes  = "getRecommendedLatencyModes"
	MethodIStreamOutSetLatencyMode              = "setLatencyMode"
	MethodIStreamOutGetPlaybackRateParameters   = "getPlaybackRateParameters"
	MethodIStreamOutSetPlaybackRateParameters   = "setPlaybackRateParameters"
	MethodIStreamOutSelectPresentation          = "selectPresentation"
)
View Source
const (
	IStreamOutHwVolumeMin                 int32 = 0
	IStreamOutHwVolumeMax                 int32 = 1
	IStreamOutAudioDescriptionMixLevelMax int32 = 48
)
View Source
const (
	TransactionIStreamOutEventCallbackOnCodecFormatChanged            = binder.FirstCallTransaction + 0
	TransactionIStreamOutEventCallbackOnRecommendedLatencyModeChanged = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIStreamOutEventCallbackOnCodecFormatChanged            = "onCodecFormatChanged"
	MethodIStreamOutEventCallbackOnRecommendedLatencyModeChanged = "onRecommendedLatencyModeChanged"
)
View Source
const (
	TransactionITelephonyGetSupportedAudioModes = binder.FirstCallTransaction + 0
	TransactionITelephonySwitchAudioMode        = binder.FirstCallTransaction + 1
	TransactionITelephonySetTelecomConfig       = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodITelephonyGetSupportedAudioModes = "getSupportedAudioModes"
	MethodITelephonySwitchAudioMode        = "switchAudioMode"
	MethodITelephonySetTelecomConfig       = "setTelecomConfig"
)
View Source
const (
	ITelephonyTelecomConfigVoiceVolumeMin int32 = 0
	ITelephonyTelecomConfigVoiceVolumeMax int32 = 1
)
View Source
const (
	StreamDescriptorAudioBufferTagFmq  int32 = 0
	StreamDescriptorAudioBufferTagMmap int32 = 1
)
View Source
const (
	StreamDescriptorCommandTagHalReservedExit int32 = 0
	StreamDescriptorCommandTagGetStatus       int32 = 1
	StreamDescriptorCommandTagStart           int32 = 2
	StreamDescriptorCommandTagBurst           int32 = 3
	StreamDescriptorCommandTagDrain           int32 = 4
	StreamDescriptorCommandTagStandby         int32 = 5
	StreamDescriptorCommandTagPause           int32 = 6
	StreamDescriptorCommandTagFlush           int32 = 7
)
View Source
const DescriptorIBluetooth = "android.hardware.audio.core.IBluetooth"
View Source
const DescriptorIBluetoothA2dp = "android.hardware.audio.core.IBluetoothA2dp"
View Source
const DescriptorIBluetoothLe = "android.hardware.audio.core.IBluetoothLe"
View Source
const DescriptorIConfig = "android.hardware.audio.core.IConfig"
View Source
const DescriptorIModule = "android.hardware.audio.core.IModule"
View Source
const DescriptorIStreamCallback = "android.hardware.audio.core.IStreamCallback"
View Source
const DescriptorIStreamCommon = "android.hardware.audio.core.IStreamCommon"
View Source
const DescriptorIStreamIn = "android.hardware.audio.core.IStreamIn"
View Source
const DescriptorIStreamOut = "android.hardware.audio.core.IStreamOut"
View Source
const DescriptorIStreamOutEventCallback = "android.hardware.audio.core.IStreamOutEventCallback"
View Source
const DescriptorITelephony = "android.hardware.audio.core.ITelephony"
View Source
const (
	MmapBufferDescriptorFlagIndexApplicationShareable int32 = 0
)
View Source
const (
	StreamDescriptorLatencyUnknown int32 = -1
)
View Source
const (
	StreamDescriptorPositionUNKNOWN int64 = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioPatch

type AudioPatch struct {
	Id                            int32
	SourcePortConfigIds           []int32
	SinkPortConfigIds             []int32
	MinimumStreamBufferSizeFrames int32
	LatenciesMs                   []int32
}

func (*AudioPatch) MarshalParcel

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

func (*AudioPatch) UnmarshalParcel

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

type AudioRoute

type AudioRoute struct {
	SourcePortIds []int32
	SinkPortId    int32
	IsExclusive   bool
}

func (*AudioRoute) MarshalParcel

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

func (*AudioRoute) UnmarshalParcel

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

type BluetoothA2dpProxy

type BluetoothA2dpProxy struct {
	Remote binder.IBinder
}

func NewBluetoothA2dpProxy

func NewBluetoothA2dpProxy(
	remote binder.IBinder,
) *BluetoothA2dpProxy

func (*BluetoothA2dpProxy) AsBinder

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

func (*BluetoothA2dpProxy) IsEnabled

func (p *BluetoothA2dpProxy) IsEnabled(
	ctx context.Context,
) (bool, error)

func (*BluetoothA2dpProxy) ReconfigureOffload

func (p *BluetoothA2dpProxy) ReconfigureOffload(
	ctx context.Context,
	parameters []VendorParameter,
) error

func (*BluetoothA2dpProxy) SetEnabled

func (p *BluetoothA2dpProxy) SetEnabled(
	ctx context.Context,
	enabled bool,
) error

func (*BluetoothA2dpProxy) SupportsOffloadReconfiguration

func (p *BluetoothA2dpProxy) SupportsOffloadReconfiguration(
	ctx context.Context,
) (bool, error)

type BluetoothA2dpStub

type BluetoothA2dpStub struct {
	Impl      IBluetoothA2dp
	Transport binder.VersionAwareTransport
}

BluetoothA2dpStub dispatches incoming binder transactions to a typed IBluetoothA2dp implementation.

func (*BluetoothA2dpStub) Descriptor

func (s *BluetoothA2dpStub) Descriptor() string

func (*BluetoothA2dpStub) OnTransaction

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

type BluetoothLeProxy

type BluetoothLeProxy struct {
	Remote binder.IBinder
}

func NewBluetoothLeProxy

func NewBluetoothLeProxy(
	remote binder.IBinder,
) *BluetoothLeProxy

func (*BluetoothLeProxy) AsBinder

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

func (*BluetoothLeProxy) IsEnabled

func (p *BluetoothLeProxy) IsEnabled(
	ctx context.Context,
) (bool, error)

func (*BluetoothLeProxy) ReconfigureOffload

func (p *BluetoothLeProxy) ReconfigureOffload(
	ctx context.Context,
	parameters []VendorParameter,
) error

func (*BluetoothLeProxy) SetEnabled

func (p *BluetoothLeProxy) SetEnabled(
	ctx context.Context,
	enabled bool,
) error

func (*BluetoothLeProxy) SupportsOffloadReconfiguration

func (p *BluetoothLeProxy) SupportsOffloadReconfiguration(
	ctx context.Context,
) (bool, error)

type BluetoothLeStub

type BluetoothLeStub struct {
	Impl      IBluetoothLe
	Transport binder.VersionAwareTransport
}

BluetoothLeStub dispatches incoming binder transactions to a typed IBluetoothLe implementation.

func (*BluetoothLeStub) Descriptor

func (s *BluetoothLeStub) Descriptor() string

func (*BluetoothLeStub) OnTransaction

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

type BluetoothProxy

type BluetoothProxy struct {
	Remote binder.IBinder
}

func NewBluetoothProxy

func NewBluetoothProxy(
	remote binder.IBinder,
) *BluetoothProxy

func (*BluetoothProxy) AsBinder

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

func (*BluetoothProxy) SetHfpConfig

func (p *BluetoothProxy) SetHfpConfig(
	ctx context.Context,
	config IBluetoothHfpConfig,
) (IBluetoothHfpConfig, error)

func (*BluetoothProxy) SetScoConfig

func (p *BluetoothProxy) SetScoConfig(
	ctx context.Context,
	config IBluetoothScoConfig,
) (IBluetoothScoConfig, error)

type BluetoothStub

type BluetoothStub struct {
	Impl      IBluetooth
	Transport binder.VersionAwareTransport
}

BluetoothStub dispatches incoming binder transactions to a typed IBluetooth implementation.

func (*BluetoothStub) Descriptor

func (s *BluetoothStub) Descriptor() string

func (*BluetoothStub) OnTransaction

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

type ConfigProxy

type ConfigProxy struct {
	Remote binder.IBinder
}

func NewConfigProxy

func NewConfigProxy(
	remote binder.IBinder,
) *ConfigProxy

func (*ConfigProxy) AsBinder

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

func (*ConfigProxy) GetEngineConfig

func (p *ConfigProxy) GetEngineConfig(
	ctx context.Context,
) (common.AudioHalEngineConfig, error)

func (*ConfigProxy) GetSurroundSoundConfig

func (p *ConfigProxy) GetSurroundSoundConfig(
	ctx context.Context,
) (SurroundSoundConfig, error)

type ConfigStub

type ConfigStub struct {
	Impl      IConfig
	Transport binder.VersionAwareTransport
}

ConfigStub dispatches incoming binder transactions to a typed IConfig implementation.

func (*ConfigStub) Descriptor

func (s *ConfigStub) Descriptor() string

func (*ConfigStub) OnTransaction

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

type IBluetooth

type IBluetooth interface {
	AsBinder() binder.IBinder
	SetScoConfig(ctx context.Context, config IBluetoothScoConfig) (IBluetoothScoConfig, error)
	SetHfpConfig(ctx context.Context, config IBluetoothHfpConfig) (IBluetoothHfpConfig, error)
}

func NewBluetoothStub

func NewBluetoothStub(
	impl IBluetoothServer,
) IBluetooth

NewBluetoothStub creates a server-side IBluetooth wrapping the given server implementation. The returned value satisfies IBluetooth 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 IBluetoothA2dp

type IBluetoothA2dp interface {
	AsBinder() binder.IBinder
	IsEnabled(ctx context.Context) (bool, error)
	SetEnabled(ctx context.Context, enabled bool) error
	SupportsOffloadReconfiguration(ctx context.Context) (bool, error)
	ReconfigureOffload(ctx context.Context, parameters []VendorParameter) error
}

func NewBluetoothA2dpStub

func NewBluetoothA2dpStub(
	impl IBluetoothA2dpServer,
) IBluetoothA2dp

NewBluetoothA2dpStub creates a server-side IBluetoothA2dp wrapping the given server implementation. The returned value satisfies IBluetoothA2dp 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 IBluetoothA2dpServer

type IBluetoothA2dpServer interface {
	IsEnabled(ctx context.Context) (bool, error)
	SetEnabled(ctx context.Context, enabled bool) error
	SupportsOffloadReconfiguration(ctx context.Context) (bool, error)
	ReconfigureOffload(ctx context.Context, parameters []VendorParameter) error
}

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

type IBluetoothHfpConfig

type IBluetoothHfpConfig struct {
	IsEnabled  *common.Boolean
	SampleRate *common.Int
	Volume     *common.Float
}

func (*IBluetoothHfpConfig) MarshalParcel

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

func (*IBluetoothHfpConfig) UnmarshalParcel

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

type IBluetoothLe

type IBluetoothLe interface {
	AsBinder() binder.IBinder
	IsEnabled(ctx context.Context) (bool, error)
	SetEnabled(ctx context.Context, enabled bool) error
	SupportsOffloadReconfiguration(ctx context.Context) (bool, error)
	ReconfigureOffload(ctx context.Context, parameters []VendorParameter) error
}

func NewBluetoothLeStub

func NewBluetoothLeStub(
	impl IBluetoothLeServer,
) IBluetoothLe

NewBluetoothLeStub creates a server-side IBluetoothLe wrapping the given server implementation. The returned value satisfies IBluetoothLe 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 IBluetoothLeServer

type IBluetoothLeServer interface {
	IsEnabled(ctx context.Context) (bool, error)
	SetEnabled(ctx context.Context, enabled bool) error
	SupportsOffloadReconfiguration(ctx context.Context) (bool, error)
	ReconfigureOffload(ctx context.Context, parameters []VendorParameter) error
}

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

type IBluetoothScoConfig

type IBluetoothScoConfig struct {
	IsEnabled     *common.Boolean
	IsNrecEnabled *common.Boolean
	Mode          IBluetoothScoConfigMode
	DebugName     string
}

func (*IBluetoothScoConfig) MarshalParcel

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

func (*IBluetoothScoConfig) UnmarshalParcel

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

type IBluetoothScoConfigMode

type IBluetoothScoConfigMode int32
const (
	IBluetoothScoConfigModeUNSPECIFIED IBluetoothScoConfigMode = 0
	IBluetoothScoConfigModeSCO         IBluetoothScoConfigMode = 1
	IBluetoothScoConfigModeScoWb       IBluetoothScoConfigMode = 2
	IBluetoothScoConfigModeScoSwb      IBluetoothScoConfigMode = 3
)

type IBluetoothServer

type IBluetoothServer interface {
	SetScoConfig(ctx context.Context, config IBluetoothScoConfig) (IBluetoothScoConfig, error)
	SetHfpConfig(ctx context.Context, config IBluetoothHfpConfig) (IBluetoothHfpConfig, error)
}

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

type IConfig

type IConfig interface {
	AsBinder() binder.IBinder
	GetSurroundSoundConfig(ctx context.Context) (SurroundSoundConfig, error)
	GetEngineConfig(ctx context.Context) (common.AudioHalEngineConfig, error)
}

func NewConfigStub

func NewConfigStub(
	impl IConfigServer,
) IConfig

NewConfigStub creates a server-side IConfig wrapping the given server implementation. The returned value satisfies IConfig 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 IConfigServer

type IConfigServer interface {
	GetSurroundSoundConfig(ctx context.Context) (SurroundSoundConfig, error)
	GetEngineConfig(ctx context.Context) (common.AudioHalEngineConfig, error)
}

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

type IModule

type IModule interface {
	AsBinder() binder.IBinder
	SetModuleDebug(ctx context.Context, debug ModuleDebug) error
	GetTelephony(ctx context.Context) (ITelephony, error)
	GetBluetooth(ctx context.Context) (IBluetooth, error)
	GetBluetoothA2dp(ctx context.Context) (IBluetoothA2dp, error)
	GetBluetoothLe(ctx context.Context) (IBluetoothLe, error)
	ConnectExternalDevice(ctx context.Context, templateIdAndAdditionalData common.AudioPort) (common.AudioPort, error)
	DisconnectExternalDevice(ctx context.Context, portId int32) error
	GetAudioPatches(ctx context.Context) ([]AudioPatch, error)
	GetAudioPort(ctx context.Context, portId int32) (common.AudioPort, error)
	GetAudioPortConfigs(ctx context.Context) ([]common.AudioPortConfig, error)
	GetAudioPorts(ctx context.Context) ([]common.AudioPort, error)
	GetAudioRoutes(ctx context.Context) ([]AudioRoute, error)
	GetAudioRoutesForAudioPort(ctx context.Context, portId int32) ([]AudioRoute, error)
	OpenInputStream(ctx context.Context, args IModuleOpenInputStreamArguments) (IModuleOpenInputStreamReturn, error)
	OpenOutputStream(ctx context.Context, args IModuleOpenOutputStreamArguments) (IModuleOpenOutputStreamReturn, error)
	GetSupportedPlaybackRateFactors(ctx context.Context) (IModuleSupportedPlaybackRateFactors, error)
	SetAudioPatch(ctx context.Context, requested AudioPatch) (AudioPatch, error)
	SetAudioPortConfig(ctx context.Context, requested common.AudioPortConfig, suggested common.AudioPortConfig) (bool, error)
	ResetAudioPatch(ctx context.Context, patchId int32) error
	ResetAudioPortConfig(ctx context.Context, portConfigId int32) error
	GetMasterMute(ctx context.Context) (bool, error)
	SetMasterMute(ctx context.Context, mute bool) error
	GetMasterVolume(ctx context.Context) (float32, error)
	SetMasterVolume(ctx context.Context, volume float32) error
	GetMicMute(ctx context.Context) (bool, error)
	SetMicMute(ctx context.Context, mute bool) error
	GetMicrophones(ctx context.Context) ([]common.MicrophoneInfo, error)
	UpdateAudioMode(ctx context.Context, mode common.AudioMode) error
	UpdateScreenRotation(ctx context.Context, rotation IModuleScreenRotation) error
	UpdateScreenState(ctx context.Context, isTurnedOn bool) error
	GetSoundDose(ctx context.Context) (sounddose.ISoundDose, error)
	GenerateHwAvSyncId(ctx context.Context) (int32, error)
	GetVendorParameters(ctx context.Context, ids []string) ([]VendorParameter, error)
	SetVendorParameters(ctx context.Context, parameters []VendorParameter, async bool) error
	AddDeviceEffect(ctx context.Context, portConfigId int32, effect audioEffect.IEffect) error
	RemoveDeviceEffect(ctx context.Context, portConfigId int32, effect audioEffect.IEffect) error
	GetMmapPolicyInfos(ctx context.Context, mmapPolicyType common.AudioMMapPolicyType) ([]common.AudioMMapPolicyInfo, error)
	SupportsVariableLatency(ctx context.Context) (bool, error)
	GetAAudioMixerBurstCount(ctx context.Context) (int32, error)
	GetAAudioHardwareBurstMinUsec(ctx context.Context) (int32, error)
	PrepareToDisconnectExternalDevice(ctx context.Context, portId int32) error
}

func NewModuleStub

func NewModuleStub(
	impl IModuleServer,
) IModule

NewModuleStub creates a server-side IModule wrapping the given server implementation. The returned value satisfies IModule 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 IModuleOpenInputStreamArguments

type IModuleOpenInputStreamArguments struct {
	PortConfigId     int32
	SinkMetadata     common.SinkMetadata
	BufferSizeFrames int64
}

func (*IModuleOpenInputStreamArguments) MarshalParcel

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

func (*IModuleOpenInputStreamArguments) UnmarshalParcel

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

type IModuleOpenInputStreamReturn

type IModuleOpenInputStreamReturn struct {
	Stream IStreamIn
	Desc   StreamDescriptor
}

func (*IModuleOpenInputStreamReturn) MarshalParcel

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

func (*IModuleOpenInputStreamReturn) UnmarshalParcel

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

type IModuleOpenOutputStreamArguments

type IModuleOpenOutputStreamArguments struct {
	PortConfigId     int32
	SourceMetadata   common.SourceMetadata
	OffloadInfo      *audioCommon.AudioOffloadInfo
	BufferSizeFrames int64
	Callback         IStreamCallback
	EventCallback    IStreamOutEventCallback
}

func (*IModuleOpenOutputStreamArguments) MarshalParcel

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

func (*IModuleOpenOutputStreamArguments) UnmarshalParcel

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

type IModuleOpenOutputStreamReturn

type IModuleOpenOutputStreamReturn struct {
	Stream IStreamOut
	Desc   StreamDescriptor
}

func (*IModuleOpenOutputStreamReturn) MarshalParcel

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

func (*IModuleOpenOutputStreamReturn) UnmarshalParcel

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

type IModuleScreenRotation

type IModuleScreenRotation int32
const (
	IModuleScreenRotationDeg0   IModuleScreenRotation = 0
	IModuleScreenRotationDeg90  IModuleScreenRotation = 1
	IModuleScreenRotationDeg180 IModuleScreenRotation = 2
	IModuleScreenRotationDeg270 IModuleScreenRotation = 3
)

type IModuleServer

type IModuleServer interface {
	SetModuleDebug(ctx context.Context, debug ModuleDebug) error
	GetTelephony(ctx context.Context) (ITelephony, error)
	GetBluetooth(ctx context.Context) (IBluetooth, error)
	GetBluetoothA2dp(ctx context.Context) (IBluetoothA2dp, error)
	GetBluetoothLe(ctx context.Context) (IBluetoothLe, error)
	ConnectExternalDevice(ctx context.Context, templateIdAndAdditionalData common.AudioPort) (common.AudioPort, error)
	DisconnectExternalDevice(ctx context.Context, portId int32) error
	GetAudioPatches(ctx context.Context) ([]AudioPatch, error)
	GetAudioPort(ctx context.Context, portId int32) (common.AudioPort, error)
	GetAudioPortConfigs(ctx context.Context) ([]common.AudioPortConfig, error)
	GetAudioPorts(ctx context.Context) ([]common.AudioPort, error)
	GetAudioRoutes(ctx context.Context) ([]AudioRoute, error)
	GetAudioRoutesForAudioPort(ctx context.Context, portId int32) ([]AudioRoute, error)
	OpenInputStream(ctx context.Context, args IModuleOpenInputStreamArguments) (IModuleOpenInputStreamReturn, error)
	OpenOutputStream(ctx context.Context, args IModuleOpenOutputStreamArguments) (IModuleOpenOutputStreamReturn, error)
	GetSupportedPlaybackRateFactors(ctx context.Context) (IModuleSupportedPlaybackRateFactors, error)
	SetAudioPatch(ctx context.Context, requested AudioPatch) (AudioPatch, error)
	SetAudioPortConfig(ctx context.Context, requested common.AudioPortConfig, suggested common.AudioPortConfig) (bool, error)
	ResetAudioPatch(ctx context.Context, patchId int32) error
	ResetAudioPortConfig(ctx context.Context, portConfigId int32) error
	GetMasterMute(ctx context.Context) (bool, error)
	SetMasterMute(ctx context.Context, mute bool) error
	GetMasterVolume(ctx context.Context) (float32, error)
	SetMasterVolume(ctx context.Context, volume float32) error
	GetMicMute(ctx context.Context) (bool, error)
	SetMicMute(ctx context.Context, mute bool) error
	GetMicrophones(ctx context.Context) ([]common.MicrophoneInfo, error)
	UpdateAudioMode(ctx context.Context, mode common.AudioMode) error
	UpdateScreenRotation(ctx context.Context, rotation IModuleScreenRotation) error
	UpdateScreenState(ctx context.Context, isTurnedOn bool) error
	GetSoundDose(ctx context.Context) (sounddose.ISoundDose, error)
	GenerateHwAvSyncId(ctx context.Context) (int32, error)
	GetVendorParameters(ctx context.Context, ids []string) ([]VendorParameter, error)
	SetVendorParameters(ctx context.Context, parameters []VendorParameter, async bool) error
	AddDeviceEffect(ctx context.Context, portConfigId int32, effect audioEffect.IEffect) error
	RemoveDeviceEffect(ctx context.Context, portConfigId int32, effect audioEffect.IEffect) error
	GetMmapPolicyInfos(ctx context.Context, mmapPolicyType common.AudioMMapPolicyType) ([]common.AudioMMapPolicyInfo, error)
	SupportsVariableLatency(ctx context.Context) (bool, error)
	GetAAudioMixerBurstCount(ctx context.Context) (int32, error)
	GetAAudioHardwareBurstMinUsec(ctx context.Context) (int32, error)
	PrepareToDisconnectExternalDevice(ctx context.Context, portId int32) error
}

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

type IModuleSupportedPlaybackRateFactors

type IModuleSupportedPlaybackRateFactors struct {
	MinSpeed float32
	MaxSpeed float32
	MinPitch float32
	MaxPitch float32
}

func (*IModuleSupportedPlaybackRateFactors) MarshalParcel

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

func (*IModuleSupportedPlaybackRateFactors) UnmarshalParcel

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

type IStreamCallback

type IStreamCallback interface {
	AsBinder() binder.IBinder
	OnTransferReady(ctx context.Context) error
	OnError(ctx context.Context) error
	OnDrainReady(ctx context.Context) error
}

func NewStreamCallbackStub

func NewStreamCallbackStub(
	impl IStreamCallbackServer,
) IStreamCallback

NewStreamCallbackStub creates a server-side IStreamCallback wrapping the given server implementation. The returned value satisfies IStreamCallback 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 IStreamCallbackServer

type IStreamCallbackServer interface {
	OnTransferReady(ctx context.Context) error
	OnError(ctx context.Context) error
	OnDrainReady(ctx context.Context) error
}

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

type IStreamCommon

type IStreamCommon interface {
	AsBinder() binder.IBinder
	Close(ctx context.Context) error
	PrepareToClose(ctx context.Context) error
	UpdateHwAvSyncId(ctx context.Context, hwAvSyncId int32) error
	GetVendorParameters(ctx context.Context, ids []string) ([]VendorParameter, error)
	SetVendorParameters(ctx context.Context, parameters []VendorParameter, async bool) error
	AddEffect(ctx context.Context, effect audioEffect.IEffect) error
	RemoveEffect(ctx context.Context, effect audioEffect.IEffect) error
}

func NewStreamCommonStub

func NewStreamCommonStub(
	impl IStreamCommonServer,
) IStreamCommon

NewStreamCommonStub creates a server-side IStreamCommon wrapping the given server implementation. The returned value satisfies IStreamCommon 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 IStreamCommonServer

type IStreamCommonServer interface {
	Close(ctx context.Context) error
	PrepareToClose(ctx context.Context) error
	UpdateHwAvSyncId(ctx context.Context, hwAvSyncId int32) error
	GetVendorParameters(ctx context.Context, ids []string) ([]VendorParameter, error)
	SetVendorParameters(ctx context.Context, parameters []VendorParameter, async bool) error
	AddEffect(ctx context.Context, effect audioEffect.IEffect) error
	RemoveEffect(ctx context.Context, effect audioEffect.IEffect) error
}

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

type IStreamIn

type IStreamIn interface {
	AsBinder() binder.IBinder
	GetStreamCommon(ctx context.Context) (IStreamCommon, error)
	GetActiveMicrophones(ctx context.Context) ([]common.MicrophoneDynamicInfo, error)
	GetMicrophoneDirection(ctx context.Context) (IStreamInMicrophoneDirection, error)
	SetMicrophoneDirection(ctx context.Context, direction IStreamInMicrophoneDirection) error
	GetMicrophoneFieldDimension(ctx context.Context) (float32, error)
	SetMicrophoneFieldDimension(ctx context.Context, zoom float32) error
	UpdateMetadata(ctx context.Context, sinkMetadata audioCommon.SinkMetadata) error
	GetHwGain(ctx context.Context) ([]float32, error)
	SetHwGain(ctx context.Context, channelGains []float32) error
}

func NewStreamInStub

func NewStreamInStub(
	impl IStreamInServer,
) IStreamIn

NewStreamInStub creates a server-side IStreamIn wrapping the given server implementation. The returned value satisfies IStreamIn 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 IStreamInMicrophoneDirection

type IStreamInMicrophoneDirection int32
const (
	IStreamInMicrophoneDirectionUNSPECIFIED IStreamInMicrophoneDirection = 0
	IStreamInMicrophoneDirectionFRONT       IStreamInMicrophoneDirection = 1
	IStreamInMicrophoneDirectionBACK        IStreamInMicrophoneDirection = 2
	IStreamInMicrophoneDirectionEXTERNAL    IStreamInMicrophoneDirection = 3
)

type IStreamInServer

type IStreamInServer interface {
	GetStreamCommon(ctx context.Context) (IStreamCommon, error)
	GetActiveMicrophones(ctx context.Context) ([]common.MicrophoneDynamicInfo, error)
	GetMicrophoneDirection(ctx context.Context) (IStreamInMicrophoneDirection, error)
	SetMicrophoneDirection(ctx context.Context, direction IStreamInMicrophoneDirection) error
	GetMicrophoneFieldDimension(ctx context.Context) (float32, error)
	SetMicrophoneFieldDimension(ctx context.Context, zoom float32) error
	UpdateMetadata(ctx context.Context, sinkMetadata audioCommon.SinkMetadata) error
	GetHwGain(ctx context.Context) ([]float32, error)
	SetHwGain(ctx context.Context, channelGains []float32) error
}

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

type IStreamOut

type IStreamOut interface {
	AsBinder() binder.IBinder
	GetStreamCommon(ctx context.Context) (IStreamCommon, error)
	UpdateMetadata(ctx context.Context, sourceMetadata common.SourceMetadata) error
	UpdateOffloadMetadata(ctx context.Context, offloadMetadata common.AudioOffloadMetadata) error
	GetHwVolume(ctx context.Context) ([]float32, error)
	SetHwVolume(ctx context.Context, channelVolumes []float32) error
	GetAudioDescriptionMixLevel(ctx context.Context) (float32, error)
	SetAudioDescriptionMixLevel(ctx context.Context, leveldB float32) error
	GetDualMonoMode(ctx context.Context) (audioCommon.AudioDualMonoMode, error)
	SetDualMonoMode(ctx context.Context, mode audioCommon.AudioDualMonoMode) error
	GetRecommendedLatencyModes(ctx context.Context) ([]audioCommon.AudioLatencyMode, error)
	SetLatencyMode(ctx context.Context, mode audioCommon.AudioLatencyMode) error
	GetPlaybackRateParameters(ctx context.Context) (audioCommon.AudioPlaybackRate, error)
	SetPlaybackRateParameters(ctx context.Context, playbackRate audioCommon.AudioPlaybackRate) error
	SelectPresentation(ctx context.Context, presentationId int32, programId int32) error
}

func NewStreamOutStub

func NewStreamOutStub(
	impl IStreamOutServer,
) IStreamOut

NewStreamOutStub creates a server-side IStreamOut wrapping the given server implementation. The returned value satisfies IStreamOut 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 IStreamOutEventCallback

type IStreamOutEventCallback interface {
	AsBinder() binder.IBinder
	OnCodecFormatChanged(ctx context.Context, audioMetadata []byte) error
	OnRecommendedLatencyModeChanged(ctx context.Context, modes []common.AudioLatencyMode) error
}

func NewStreamOutEventCallbackStub

func NewStreamOutEventCallbackStub(
	impl IStreamOutEventCallbackServer,
) IStreamOutEventCallback

NewStreamOutEventCallbackStub creates a server-side IStreamOutEventCallback wrapping the given server implementation. The returned value satisfies IStreamOutEventCallback 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 IStreamOutEventCallbackServer

type IStreamOutEventCallbackServer interface {
	OnCodecFormatChanged(ctx context.Context, audioMetadata []byte) error
	OnRecommendedLatencyModeChanged(ctx context.Context, modes []common.AudioLatencyMode) error
}

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

type IStreamOutServer

type IStreamOutServer interface {
	GetStreamCommon(ctx context.Context) (IStreamCommon, error)
	UpdateMetadata(ctx context.Context, sourceMetadata common.SourceMetadata) error
	UpdateOffloadMetadata(ctx context.Context, offloadMetadata common.AudioOffloadMetadata) error
	GetHwVolume(ctx context.Context) ([]float32, error)
	SetHwVolume(ctx context.Context, channelVolumes []float32) error
	GetAudioDescriptionMixLevel(ctx context.Context) (float32, error)
	SetAudioDescriptionMixLevel(ctx context.Context, leveldB float32) error
	GetDualMonoMode(ctx context.Context) (audioCommon.AudioDualMonoMode, error)
	SetDualMonoMode(ctx context.Context, mode audioCommon.AudioDualMonoMode) error
	GetRecommendedLatencyModes(ctx context.Context) ([]audioCommon.AudioLatencyMode, error)
	SetLatencyMode(ctx context.Context, mode audioCommon.AudioLatencyMode) error
	GetPlaybackRateParameters(ctx context.Context) (audioCommon.AudioPlaybackRate, error)
	SetPlaybackRateParameters(ctx context.Context, playbackRate audioCommon.AudioPlaybackRate) error
	SelectPresentation(ctx context.Context, presentationId int32, programId int32) error
}

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

type ITelephony

type ITelephony interface {
	AsBinder() binder.IBinder
	GetSupportedAudioModes(ctx context.Context) ([]common.AudioMode, error)
	SwitchAudioMode(ctx context.Context, mode common.AudioMode) error
	SetTelecomConfig(ctx context.Context, config ITelephonyTelecomConfig) (ITelephonyTelecomConfig, error)
}

func NewTelephonyStub

func NewTelephonyStub(
	impl ITelephonyServer,
) ITelephony

NewTelephonyStub creates a server-side ITelephony wrapping the given server implementation. The returned value satisfies ITelephony 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 ITelephonyServer

type ITelephonyServer interface {
	GetSupportedAudioModes(ctx context.Context) ([]common.AudioMode, error)
	SwitchAudioMode(ctx context.Context, mode common.AudioMode) error
	SetTelecomConfig(ctx context.Context, config ITelephonyTelecomConfig) (ITelephonyTelecomConfig, error)
}

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

type ITelephonyTelecomConfig

type ITelephonyTelecomConfig struct {
	VoiceVolume  *common.Float
	TtyMode      ITelephonyTelecomConfigTtyMode
	IsHacEnabled *common.Boolean
}

func (*ITelephonyTelecomConfig) MarshalParcel

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

func (*ITelephonyTelecomConfig) UnmarshalParcel

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

type ITelephonyTelecomConfigTtyMode

type ITelephonyTelecomConfigTtyMode int32
const (
	ITelephonyTelecomConfigTtyModeUNSPECIFIED ITelephonyTelecomConfigTtyMode = -1
	ITelephonyTelecomConfigTtyModeOFF         ITelephonyTelecomConfigTtyMode = 0
	ITelephonyTelecomConfigTtyModeFULL        ITelephonyTelecomConfigTtyMode = 1
	ITelephonyTelecomConfigTtyModeHCO         ITelephonyTelecomConfigTtyMode = 2
	ITelephonyTelecomConfigTtyModeVCO         ITelephonyTelecomConfigTtyMode = 3
)

type MmapBufferDescriptor

type MmapBufferDescriptor struct {
	SharedMemory    common.Ashmem
	BurstSizeFrames int64
	Flags           int32
}

func (*MmapBufferDescriptor) MarshalParcel

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

func (*MmapBufferDescriptor) UnmarshalParcel

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

type ModuleDebug

type ModuleDebug struct {
	SimulateDeviceConnections   bool
	StreamTransientStateDelayMs int32
}

func (*ModuleDebug) MarshalParcel

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

func (*ModuleDebug) UnmarshalParcel

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

type ModuleProxy

type ModuleProxy struct {
	Remote binder.IBinder
}

func NewModuleProxy

func NewModuleProxy(
	remote binder.IBinder,
) *ModuleProxy

func (*ModuleProxy) AddDeviceEffect

func (p *ModuleProxy) AddDeviceEffect(
	ctx context.Context,
	portConfigId int32,
	effect audioEffect.IEffect,
) error

func (*ModuleProxy) AsBinder

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

func (*ModuleProxy) ConnectExternalDevice

func (p *ModuleProxy) ConnectExternalDevice(
	ctx context.Context,
	templateIdAndAdditionalData common.AudioPort,
) (common.AudioPort, error)

func (*ModuleProxy) DisconnectExternalDevice

func (p *ModuleProxy) DisconnectExternalDevice(
	ctx context.Context,
	portId int32,
) error

func (*ModuleProxy) GenerateHwAvSyncId

func (p *ModuleProxy) GenerateHwAvSyncId(
	ctx context.Context,
) (int32, error)

func (*ModuleProxy) GetAAudioHardwareBurstMinUsec

func (p *ModuleProxy) GetAAudioHardwareBurstMinUsec(
	ctx context.Context,
) (int32, error)

func (*ModuleProxy) GetAAudioMixerBurstCount

func (p *ModuleProxy) GetAAudioMixerBurstCount(
	ctx context.Context,
) (int32, error)

func (*ModuleProxy) GetAudioPatches

func (p *ModuleProxy) GetAudioPatches(
	ctx context.Context,
) ([]AudioPatch, error)

func (*ModuleProxy) GetAudioPort

func (p *ModuleProxy) GetAudioPort(
	ctx context.Context,
	portId int32,
) (common.AudioPort, error)

func (*ModuleProxy) GetAudioPortConfigs

func (p *ModuleProxy) GetAudioPortConfigs(
	ctx context.Context,
) ([]common.AudioPortConfig, error)

func (*ModuleProxy) GetAudioPorts

func (p *ModuleProxy) GetAudioPorts(
	ctx context.Context,
) ([]common.AudioPort, error)

func (*ModuleProxy) GetAudioRoutes

func (p *ModuleProxy) GetAudioRoutes(
	ctx context.Context,
) ([]AudioRoute, error)

func (*ModuleProxy) GetAudioRoutesForAudioPort

func (p *ModuleProxy) GetAudioRoutesForAudioPort(
	ctx context.Context,
	portId int32,
) ([]AudioRoute, error)

func (*ModuleProxy) GetBluetooth

func (p *ModuleProxy) GetBluetooth(
	ctx context.Context,
) (IBluetooth, error)

func (*ModuleProxy) GetBluetoothA2dp

func (p *ModuleProxy) GetBluetoothA2dp(
	ctx context.Context,
) (IBluetoothA2dp, error)

func (*ModuleProxy) GetBluetoothLe

func (p *ModuleProxy) GetBluetoothLe(
	ctx context.Context,
) (IBluetoothLe, error)

func (*ModuleProxy) GetMasterMute

func (p *ModuleProxy) GetMasterMute(
	ctx context.Context,
) (bool, error)

func (*ModuleProxy) GetMasterVolume

func (p *ModuleProxy) GetMasterVolume(
	ctx context.Context,
) (float32, error)

func (*ModuleProxy) GetMicMute

func (p *ModuleProxy) GetMicMute(
	ctx context.Context,
) (bool, error)

func (*ModuleProxy) GetMicrophones

func (p *ModuleProxy) GetMicrophones(
	ctx context.Context,
) ([]common.MicrophoneInfo, error)

func (*ModuleProxy) GetMmapPolicyInfos

func (p *ModuleProxy) GetMmapPolicyInfos(
	ctx context.Context,
	mmapPolicyType common.AudioMMapPolicyType,
) ([]common.AudioMMapPolicyInfo, error)

func (*ModuleProxy) GetSoundDose

func (p *ModuleProxy) GetSoundDose(
	ctx context.Context,
) (sounddose.ISoundDose, error)

func (*ModuleProxy) GetSupportedPlaybackRateFactors

func (p *ModuleProxy) GetSupportedPlaybackRateFactors(
	ctx context.Context,
) (IModuleSupportedPlaybackRateFactors, error)

func (*ModuleProxy) GetTelephony

func (p *ModuleProxy) GetTelephony(
	ctx context.Context,
) (ITelephony, error)

func (*ModuleProxy) GetVendorParameters

func (p *ModuleProxy) GetVendorParameters(
	ctx context.Context,
	ids []string,
) ([]VendorParameter, error)

func (*ModuleProxy) OpenInputStream

func (*ModuleProxy) OpenOutputStream

func (*ModuleProxy) PrepareToDisconnectExternalDevice

func (p *ModuleProxy) PrepareToDisconnectExternalDevice(
	ctx context.Context,
	portId int32,
) error

func (*ModuleProxy) RemoveDeviceEffect

func (p *ModuleProxy) RemoveDeviceEffect(
	ctx context.Context,
	portConfigId int32,
	effect audioEffect.IEffect,
) error

func (*ModuleProxy) ResetAudioPatch

func (p *ModuleProxy) ResetAudioPatch(
	ctx context.Context,
	patchId int32,
) error

func (*ModuleProxy) ResetAudioPortConfig

func (p *ModuleProxy) ResetAudioPortConfig(
	ctx context.Context,
	portConfigId int32,
) error

func (*ModuleProxy) SetAudioPatch

func (p *ModuleProxy) SetAudioPatch(
	ctx context.Context,
	requested AudioPatch,
) (AudioPatch, error)

func (*ModuleProxy) SetAudioPortConfig

func (p *ModuleProxy) SetAudioPortConfig(
	ctx context.Context,
	requested common.AudioPortConfig,
	suggested common.AudioPortConfig,
) (bool, error)

func (*ModuleProxy) SetMasterMute

func (p *ModuleProxy) SetMasterMute(
	ctx context.Context,
	mute bool,
) error

func (*ModuleProxy) SetMasterVolume

func (p *ModuleProxy) SetMasterVolume(
	ctx context.Context,
	volume float32,
) error

func (*ModuleProxy) SetMicMute

func (p *ModuleProxy) SetMicMute(
	ctx context.Context,
	mute bool,
) error

func (*ModuleProxy) SetModuleDebug

func (p *ModuleProxy) SetModuleDebug(
	ctx context.Context,
	debug ModuleDebug,
) error

func (*ModuleProxy) SetVendorParameters

func (p *ModuleProxy) SetVendorParameters(
	ctx context.Context,
	parameters []VendorParameter,
	async bool,
) error

func (*ModuleProxy) SupportsVariableLatency

func (p *ModuleProxy) SupportsVariableLatency(
	ctx context.Context,
) (bool, error)

func (*ModuleProxy) UpdateAudioMode

func (p *ModuleProxy) UpdateAudioMode(
	ctx context.Context,
	mode common.AudioMode,
) error

func (*ModuleProxy) UpdateScreenRotation

func (p *ModuleProxy) UpdateScreenRotation(
	ctx context.Context,
	rotation IModuleScreenRotation,
) error

func (*ModuleProxy) UpdateScreenState

func (p *ModuleProxy) UpdateScreenState(
	ctx context.Context,
	isTurnedOn bool,
) error

type ModuleStub

type ModuleStub struct {
	Impl      IModule
	Transport binder.VersionAwareTransport
}

ModuleStub dispatches incoming binder transactions to a typed IModule implementation.

func (*ModuleStub) Descriptor

func (s *ModuleStub) Descriptor() string

func (*ModuleStub) OnTransaction

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

type StreamCallbackProxy

type StreamCallbackProxy struct {
	Remote binder.IBinder
}

func NewStreamCallbackProxy

func NewStreamCallbackProxy(
	remote binder.IBinder,
) *StreamCallbackProxy

func (*StreamCallbackProxy) AsBinder

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

func (*StreamCallbackProxy) OnDrainReady

func (p *StreamCallbackProxy) OnDrainReady(
	ctx context.Context,
) error

func (*StreamCallbackProxy) OnError

func (p *StreamCallbackProxy) OnError(
	ctx context.Context,
) error

func (*StreamCallbackProxy) OnTransferReady

func (p *StreamCallbackProxy) OnTransferReady(
	ctx context.Context,
) error

type StreamCallbackStub

type StreamCallbackStub struct {
	Impl      IStreamCallback
	Transport binder.VersionAwareTransport
}

StreamCallbackStub dispatches incoming binder transactions to a typed IStreamCallback implementation.

func (*StreamCallbackStub) Descriptor

func (s *StreamCallbackStub) Descriptor() string

func (*StreamCallbackStub) OnTransaction

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

type StreamCommonProxy

type StreamCommonProxy struct {
	Remote binder.IBinder
}

func NewStreamCommonProxy

func NewStreamCommonProxy(
	remote binder.IBinder,
) *StreamCommonProxy

func (*StreamCommonProxy) AddEffect

func (p *StreamCommonProxy) AddEffect(
	ctx context.Context,
	effect audioEffect.IEffect,
) error

func (*StreamCommonProxy) AsBinder

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

func (*StreamCommonProxy) Close

func (p *StreamCommonProxy) Close(
	ctx context.Context,
) error

func (*StreamCommonProxy) GetVendorParameters

func (p *StreamCommonProxy) GetVendorParameters(
	ctx context.Context,
	ids []string,
) ([]VendorParameter, error)

func (*StreamCommonProxy) PrepareToClose

func (p *StreamCommonProxy) PrepareToClose(
	ctx context.Context,
) error

func (*StreamCommonProxy) RemoveEffect

func (p *StreamCommonProxy) RemoveEffect(
	ctx context.Context,
	effect audioEffect.IEffect,
) error

func (*StreamCommonProxy) SetVendorParameters

func (p *StreamCommonProxy) SetVendorParameters(
	ctx context.Context,
	parameters []VendorParameter,
	async bool,
) error

func (*StreamCommonProxy) UpdateHwAvSyncId

func (p *StreamCommonProxy) UpdateHwAvSyncId(
	ctx context.Context,
	hwAvSyncId int32,
) error

type StreamCommonStub

type StreamCommonStub struct {
	Impl      IStreamCommon
	Transport binder.VersionAwareTransport
}

StreamCommonStub dispatches incoming binder transactions to a typed IStreamCommon implementation.

func (*StreamCommonStub) Descriptor

func (s *StreamCommonStub) Descriptor() string

func (*StreamCommonStub) OnTransaction

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

type StreamDescriptor

type StreamDescriptor struct {
	Command          fmq.MQDescriptor
	Reply            fmq.MQDescriptor
	FrameSizeBytes   int32
	BufferSizeFrames int64
	Audio            StreamDescriptorAudioBuffer
}

func (*StreamDescriptor) MarshalParcel

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

func (*StreamDescriptor) UnmarshalParcel

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

type StreamDescriptorAudioBuffer

type StreamDescriptorAudioBuffer struct {
	Tag  int32
	Fmq  fmq.MQDescriptor
	Mmap MmapBufferDescriptor
}

func (*StreamDescriptorAudioBuffer) GetFmq

func (*StreamDescriptorAudioBuffer) GetMmap

func (*StreamDescriptorAudioBuffer) MarshalParcel

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

func (*StreamDescriptorAudioBuffer) SetFmq

func (*StreamDescriptorAudioBuffer) SetMmap

func (*StreamDescriptorAudioBuffer) UnmarshalParcel

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

type StreamDescriptorCommand

type StreamDescriptorCommand struct {
	Tag             int32
	HalReservedExit int32
	GetStatus       common.Void
	Start           common.Void
	Burst           int32
	Drain           StreamDescriptorDrainMode
	Standby         common.Void
	Pause           common.Void
	Flush           common.Void
}

func (*StreamDescriptorCommand) GetBurst

func (u *StreamDescriptorCommand) GetBurst() (int32, bool)

func (*StreamDescriptorCommand) GetDrain

func (*StreamDescriptorCommand) GetFlush

func (u *StreamDescriptorCommand) GetFlush() (common.Void, bool)

func (*StreamDescriptorCommand) GetGetStatus

func (u *StreamDescriptorCommand) GetGetStatus() (common.Void, bool)

func (*StreamDescriptorCommand) GetHalReservedExit

func (u *StreamDescriptorCommand) GetHalReservedExit() (int32, bool)

func (*StreamDescriptorCommand) GetPause

func (u *StreamDescriptorCommand) GetPause() (common.Void, bool)

func (*StreamDescriptorCommand) GetStandby

func (u *StreamDescriptorCommand) GetStandby() (common.Void, bool)

func (*StreamDescriptorCommand) GetStart

func (u *StreamDescriptorCommand) GetStart() (common.Void, bool)

func (*StreamDescriptorCommand) MarshalParcel

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

func (*StreamDescriptorCommand) SetBurst

func (u *StreamDescriptorCommand) SetBurst(
	v int32,
)

func (*StreamDescriptorCommand) SetDrain

func (*StreamDescriptorCommand) SetFlush

func (u *StreamDescriptorCommand) SetFlush(
	v common.Void,
)

func (*StreamDescriptorCommand) SetGetStatus

func (u *StreamDescriptorCommand) SetGetStatus(
	v common.Void,
)

func (*StreamDescriptorCommand) SetHalReservedExit

func (u *StreamDescriptorCommand) SetHalReservedExit(
	v int32,
)

func (*StreamDescriptorCommand) SetPause

func (u *StreamDescriptorCommand) SetPause(
	v common.Void,
)

func (*StreamDescriptorCommand) SetStandby

func (u *StreamDescriptorCommand) SetStandby(
	v common.Void,
)

func (*StreamDescriptorCommand) SetStart

func (u *StreamDescriptorCommand) SetStart(
	v common.Void,
)

func (*StreamDescriptorCommand) UnmarshalParcel

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

type StreamDescriptorDrainMode

type StreamDescriptorDrainMode byte
const (
	StreamDescriptorDrainModeDrainUnspecified StreamDescriptorDrainMode = 0
	StreamDescriptorDrainModeDrainAll         StreamDescriptorDrainMode = 1
	StreamDescriptorDrainModeDrainEarlyNotify StreamDescriptorDrainMode = 2
)

type StreamDescriptorPosition

type StreamDescriptorPosition struct {
	Frames int64
	TimeNs int64
}

func (*StreamDescriptorPosition) MarshalParcel

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

func (*StreamDescriptorPosition) UnmarshalParcel

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

type StreamDescriptorReply

type StreamDescriptorReply struct {
	Status       int32
	FmqByteCount int32
	Observable   StreamDescriptorPosition
	Hardware     StreamDescriptorPosition
	LatencyMs    int32
	XrunFrames   int32
	State        StreamDescriptorState
}

func (*StreamDescriptorReply) MarshalParcel

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

func (*StreamDescriptorReply) UnmarshalParcel

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

type StreamDescriptorState

type StreamDescriptorState int32
const (
	StreamDescriptorStateSTANDBY        StreamDescriptorState = 1
	StreamDescriptorStateIDLE           StreamDescriptorState = 2
	StreamDescriptorStateACTIVE         StreamDescriptorState = 3
	StreamDescriptorStatePAUSED         StreamDescriptorState = 4
	StreamDescriptorStateDRAINING       StreamDescriptorState = 5
	StreamDescriptorStateDrainPaused    StreamDescriptorState = 6
	StreamDescriptorStateTRANSFERRING   StreamDescriptorState = 7
	StreamDescriptorStateTransferPaused StreamDescriptorState = 8
	StreamDescriptorStateERROR          StreamDescriptorState = 100
)

type StreamInProxy

type StreamInProxy struct {
	Remote binder.IBinder
}

func NewStreamInProxy

func NewStreamInProxy(
	remote binder.IBinder,
) *StreamInProxy

func (*StreamInProxy) AsBinder

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

func (*StreamInProxy) GetActiveMicrophones

func (p *StreamInProxy) GetActiveMicrophones(
	ctx context.Context,
) ([]common.MicrophoneDynamicInfo, error)

func (*StreamInProxy) GetHwGain

func (p *StreamInProxy) GetHwGain(
	ctx context.Context,
) ([]float32, error)

func (*StreamInProxy) GetMicrophoneDirection

func (p *StreamInProxy) GetMicrophoneDirection(
	ctx context.Context,
) (IStreamInMicrophoneDirection, error)

func (*StreamInProxy) GetMicrophoneFieldDimension

func (p *StreamInProxy) GetMicrophoneFieldDimension(
	ctx context.Context,
) (float32, error)

func (*StreamInProxy) GetStreamCommon

func (p *StreamInProxy) GetStreamCommon(
	ctx context.Context,
) (IStreamCommon, error)

func (*StreamInProxy) SetHwGain

func (p *StreamInProxy) SetHwGain(
	ctx context.Context,
	channelGains []float32,
) error

func (*StreamInProxy) SetMicrophoneDirection

func (p *StreamInProxy) SetMicrophoneDirection(
	ctx context.Context,
	direction IStreamInMicrophoneDirection,
) error

func (*StreamInProxy) SetMicrophoneFieldDimension

func (p *StreamInProxy) SetMicrophoneFieldDimension(
	ctx context.Context,
	zoom float32,
) error

func (*StreamInProxy) UpdateMetadata

func (p *StreamInProxy) UpdateMetadata(
	ctx context.Context,
	sinkMetadata audioCommon.SinkMetadata,
) error

type StreamInStub

type StreamInStub struct {
	Impl      IStreamIn
	Transport binder.VersionAwareTransport
}

StreamInStub dispatches incoming binder transactions to a typed IStreamIn implementation.

func (*StreamInStub) Descriptor

func (s *StreamInStub) Descriptor() string

func (*StreamInStub) OnTransaction

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

type StreamOutEventCallbackProxy

type StreamOutEventCallbackProxy struct {
	Remote binder.IBinder
}

func NewStreamOutEventCallbackProxy

func NewStreamOutEventCallbackProxy(
	remote binder.IBinder,
) *StreamOutEventCallbackProxy

func (*StreamOutEventCallbackProxy) AsBinder

func (*StreamOutEventCallbackProxy) OnCodecFormatChanged

func (p *StreamOutEventCallbackProxy) OnCodecFormatChanged(
	ctx context.Context,
	audioMetadata []byte,
) error

func (*StreamOutEventCallbackProxy) OnRecommendedLatencyModeChanged

func (p *StreamOutEventCallbackProxy) OnRecommendedLatencyModeChanged(
	ctx context.Context,
	modes []common.AudioLatencyMode,
) error

type StreamOutEventCallbackStub

type StreamOutEventCallbackStub struct {
	Impl      IStreamOutEventCallback
	Transport binder.VersionAwareTransport
}

StreamOutEventCallbackStub dispatches incoming binder transactions to a typed IStreamOutEventCallback implementation.

func (*StreamOutEventCallbackStub) Descriptor

func (s *StreamOutEventCallbackStub) Descriptor() string

func (*StreamOutEventCallbackStub) OnTransaction

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

type StreamOutProxy

type StreamOutProxy struct {
	Remote binder.IBinder
}

func NewStreamOutProxy

func NewStreamOutProxy(
	remote binder.IBinder,
) *StreamOutProxy

func (*StreamOutProxy) AsBinder

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

func (*StreamOutProxy) GetAudioDescriptionMixLevel

func (p *StreamOutProxy) GetAudioDescriptionMixLevel(
	ctx context.Context,
) (float32, error)

func (*StreamOutProxy) GetDualMonoMode

func (p *StreamOutProxy) GetDualMonoMode(
	ctx context.Context,
) (audioCommon.AudioDualMonoMode, error)

func (*StreamOutProxy) GetHwVolume

func (p *StreamOutProxy) GetHwVolume(
	ctx context.Context,
) ([]float32, error)

func (*StreamOutProxy) GetPlaybackRateParameters

func (p *StreamOutProxy) GetPlaybackRateParameters(
	ctx context.Context,
) (audioCommon.AudioPlaybackRate, error)

func (*StreamOutProxy) GetRecommendedLatencyModes

func (p *StreamOutProxy) GetRecommendedLatencyModes(
	ctx context.Context,
) ([]audioCommon.AudioLatencyMode, error)

func (*StreamOutProxy) GetStreamCommon

func (p *StreamOutProxy) GetStreamCommon(
	ctx context.Context,
) (IStreamCommon, error)

func (*StreamOutProxy) SelectPresentation

func (p *StreamOutProxy) SelectPresentation(
	ctx context.Context,
	presentationId int32,
	programId int32,
) error

func (*StreamOutProxy) SetAudioDescriptionMixLevel

func (p *StreamOutProxy) SetAudioDescriptionMixLevel(
	ctx context.Context,
	leveldB float32,
) error

func (*StreamOutProxy) SetDualMonoMode

func (p *StreamOutProxy) SetDualMonoMode(
	ctx context.Context,
	mode audioCommon.AudioDualMonoMode,
) error

func (*StreamOutProxy) SetHwVolume

func (p *StreamOutProxy) SetHwVolume(
	ctx context.Context,
	channelVolumes []float32,
) error

func (*StreamOutProxy) SetLatencyMode

func (p *StreamOutProxy) SetLatencyMode(
	ctx context.Context,
	mode audioCommon.AudioLatencyMode,
) error

func (*StreamOutProxy) SetPlaybackRateParameters

func (p *StreamOutProxy) SetPlaybackRateParameters(
	ctx context.Context,
	playbackRate audioCommon.AudioPlaybackRate,
) error

func (*StreamOutProxy) UpdateMetadata

func (p *StreamOutProxy) UpdateMetadata(
	ctx context.Context,
	sourceMetadata common.SourceMetadata,
) error

func (*StreamOutProxy) UpdateOffloadMetadata

func (p *StreamOutProxy) UpdateOffloadMetadata(
	ctx context.Context,
	offloadMetadata common.AudioOffloadMetadata,
) error

type StreamOutStub

type StreamOutStub struct {
	Impl      IStreamOut
	Transport binder.VersionAwareTransport
}

StreamOutStub dispatches incoming binder transactions to a typed IStreamOut implementation.

func (*StreamOutStub) Descriptor

func (s *StreamOutStub) Descriptor() string

func (*StreamOutStub) OnTransaction

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

type SurroundSoundConfig

type SurroundSoundConfig struct {
	FormatFamilies []SurroundSoundConfigSurroundFormatFamily
}

func (*SurroundSoundConfig) MarshalParcel

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

func (*SurroundSoundConfig) UnmarshalParcel

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

type SurroundSoundConfigSurroundFormatFamily

type SurroundSoundConfigSurroundFormatFamily struct {
	PrimaryFormat common.AudioFormatDescription
	SubFormats    []common.AudioFormatDescription
}

func (*SurroundSoundConfigSurroundFormatFamily) MarshalParcel

func (*SurroundSoundConfigSurroundFormatFamily) UnmarshalParcel

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

type TelephonyProxy

type TelephonyProxy struct {
	Remote binder.IBinder
}

func NewTelephonyProxy

func NewTelephonyProxy(
	remote binder.IBinder,
) *TelephonyProxy

func (*TelephonyProxy) AsBinder

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

func (*TelephonyProxy) GetSupportedAudioModes

func (p *TelephonyProxy) GetSupportedAudioModes(
	ctx context.Context,
) ([]common.AudioMode, error)

func (*TelephonyProxy) SetTelecomConfig

func (p *TelephonyProxy) SetTelecomConfig(
	ctx context.Context,
	config ITelephonyTelecomConfig,
) (ITelephonyTelecomConfig, error)

func (*TelephonyProxy) SwitchAudioMode

func (p *TelephonyProxy) SwitchAudioMode(
	ctx context.Context,
	mode common.AudioMode,
) error

type TelephonyStub

type TelephonyStub struct {
	Impl      ITelephony
	Transport binder.VersionAwareTransport
}

TelephonyStub dispatches incoming binder transactions to a typed ITelephony implementation.

func (*TelephonyStub) Descriptor

func (s *TelephonyStub) Descriptor() string

func (*TelephonyStub) OnTransaction

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

type VendorParameter

type VendorParameter struct {
	Id  string
	Ext any
}

func (*VendorParameter) MarshalParcel

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

func (*VendorParameter) UnmarshalParcel

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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