audio

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIHalAdapterVendorExtensionParseVendorParameterIds              = binder.FirstCallTransaction + 0
	TransactionIHalAdapterVendorExtensionParseVendorParameters                = binder.FirstCallTransaction + 1
	TransactionIHalAdapterVendorExtensionParseBluetoothA2dpReconfigureOffload = binder.FirstCallTransaction + 2
	TransactionIHalAdapterVendorExtensionParseBluetoothLeReconfigureOffload   = binder.FirstCallTransaction + 3
	TransactionIHalAdapterVendorExtensionProcessVendorParameters              = binder.FirstCallTransaction + 4
)
View Source
const (
	MethodIHalAdapterVendorExtensionParseVendorParameterIds              = "parseVendorParameterIds"
	MethodIHalAdapterVendorExtensionParseVendorParameters                = "parseVendorParameters"
	MethodIHalAdapterVendorExtensionParseBluetoothA2dpReconfigureOffload = "parseBluetoothA2dpReconfigureOffload"
	MethodIHalAdapterVendorExtensionParseBluetoothLeReconfigureOffload   = "parseBluetoothLeReconfigureOffload"
	MethodIHalAdapterVendorExtensionProcessVendorParameters              = "processVendorParameters"
)
View Source
const DescriptorIHalAdapterVendorExtension = "android.media.audio.IHalAdapterVendorExtension"

Variables

This section is empty.

Functions

This section is empty.

Types

type HalAdapterVendorExtensionProxy

type HalAdapterVendorExtensionProxy struct {
	Remote binder.IBinder
}

func NewHalAdapterVendorExtensionProxy

func NewHalAdapterVendorExtensionProxy(
	remote binder.IBinder,
) *HalAdapterVendorExtensionProxy

func (*HalAdapterVendorExtensionProxy) AsBinder

func (*HalAdapterVendorExtensionProxy) ParseBluetoothA2dpReconfigureOffload

func (p *HalAdapterVendorExtensionProxy) ParseBluetoothA2dpReconfigureOffload(
	ctx context.Context,
	rawValue string,
) ([]core.VendorParameter, error)

func (*HalAdapterVendorExtensionProxy) ParseBluetoothLeReconfigureOffload

func (p *HalAdapterVendorExtensionProxy) ParseBluetoothLeReconfigureOffload(
	ctx context.Context,
	rawValue string,
) ([]core.VendorParameter, error)

func (*HalAdapterVendorExtensionProxy) ParseVendorParameterIds

func (p *HalAdapterVendorExtensionProxy) ParseVendorParameterIds(
	ctx context.Context,
	scope IHalAdapterVendorExtensionParameterScope,
	rawKeys string,
) ([]string, error)

func (*HalAdapterVendorExtensionProxy) ParseVendorParameters

func (p *HalAdapterVendorExtensionProxy) ParseVendorParameters(
	ctx context.Context,
	scope IHalAdapterVendorExtensionParameterScope,
	rawKeysAndValues string,
	syncParameters []core.VendorParameter,
	asyncParameters []core.VendorParameter,
) error

func (*HalAdapterVendorExtensionProxy) ProcessVendorParameters

type HalAdapterVendorExtensionStub

type HalAdapterVendorExtensionStub struct {
	Impl      IHalAdapterVendorExtension
	Transport binder.VersionAwareTransport
}

HalAdapterVendorExtensionStub dispatches incoming binder transactions to a typed IHalAdapterVendorExtension implementation.

func (*HalAdapterVendorExtensionStub) Descriptor

func (s *HalAdapterVendorExtensionStub) Descriptor() string

func (*HalAdapterVendorExtensionStub) OnTransaction

type IHalAdapterVendorExtension

type IHalAdapterVendorExtension interface {
	AsBinder() binder.IBinder
	ParseVendorParameterIds(ctx context.Context, scope IHalAdapterVendorExtensionParameterScope, rawKeys string) ([]string, error)
	ParseVendorParameters(ctx context.Context, scope IHalAdapterVendorExtensionParameterScope, rawKeysAndValues string, syncParameters []core.VendorParameter, asyncParameters []core.VendorParameter) error
	ParseBluetoothA2dpReconfigureOffload(ctx context.Context, rawValue string) ([]core.VendorParameter, error)
	ParseBluetoothLeReconfigureOffload(ctx context.Context, rawValue string) ([]core.VendorParameter, error)
	ProcessVendorParameters(ctx context.Context, scope IHalAdapterVendorExtensionParameterScope, parameters []core.VendorParameter) (string, error)
}

func NewHalAdapterVendorExtensionStub

func NewHalAdapterVendorExtensionStub(
	impl IHalAdapterVendorExtensionServer,
) IHalAdapterVendorExtension

NewHalAdapterVendorExtensionStub creates a server-side IHalAdapterVendorExtension wrapping the given server implementation. The returned value satisfies IHalAdapterVendorExtension 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 IHalAdapterVendorExtensionParameterScope

type IHalAdapterVendorExtensionParameterScope int32
const (
	IHalAdapterVendorExtensionParameterScopeMODULE IHalAdapterVendorExtensionParameterScope = 0
	IHalAdapterVendorExtensionParameterScopeSTREAM IHalAdapterVendorExtensionParameterScope = 1
)

type IHalAdapterVendorExtensionServer

type IHalAdapterVendorExtensionServer interface {
	ParseVendorParameterIds(ctx context.Context, scope IHalAdapterVendorExtensionParameterScope, rawKeys string) ([]string, error)
	ParseVendorParameters(ctx context.Context, scope IHalAdapterVendorExtensionParameterScope, rawKeysAndValues string, syncParameters []core.VendorParameter, asyncParameters []core.VendorParameter) error
	ParseBluetoothA2dpReconfigureOffload(ctx context.Context, rawValue string) ([]core.VendorParameter, error)
	ParseBluetoothLeReconfigureOffload(ctx context.Context, rawValue string) ([]core.VendorParameter, error)
	ProcessVendorParameters(ctx context.Context, scope IHalAdapterVendorExtensionParameterScope, parameters []core.VendorParameter) (string, error)
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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