Help us shape the future of Go! Take the 2026 Go Developer Survey

leaudio

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionIHciProxyRegisterCallbacks = binder.FirstCallTransaction + 0
	TransactionIHciProxySendPacket        = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIHciProxyRegisterCallbacks = "registerCallbacks"
	MethodIHciProxySendPacket        = "sendPacket"
)
View Source
const (
	TransactionIHciProxyCallbacksStartStream  = binder.FirstCallTransaction + 0
	TransactionIHciProxyCallbacksStopStream   = binder.FirstCallTransaction + 1
	TransactionIHciProxyCallbacksLinkFeedback = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIHciProxyCallbacksStartStream  = "startStream"
	MethodIHciProxyCallbacksStopStream   = "stopStream"
	MethodIHciProxyCallbacksLinkFeedback = "linkFeedback"
)
View Source
const DescriptorIHciProxy = "android.hardware.bluetooth.offload.leaudio.IHciProxy"
View Source
const DescriptorIHciProxyCallbacks = "android.hardware.bluetooth.offload.leaudio.IHciProxyCallbacks"

Variables

This section is empty.

Functions

This section is empty.

Types

type HciProxyCallbacksProxy

type HciProxyCallbacksProxy struct {
	Remote binder.IBinder
}

func NewHciProxyCallbacksProxy

func NewHciProxyCallbacksProxy(
	remote binder.IBinder,
) *HciProxyCallbacksProxy

func (*HciProxyCallbacksProxy) AsBinder

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

func (*HciProxyCallbacksProxy) LinkFeedback

func (p *HciProxyCallbacksProxy) LinkFeedback(
	ctx context.Context,
	handle int32,
	sequence_number int32,
	anchor_point_delay int32,
	sdu_input_status int32,
) error

func (*HciProxyCallbacksProxy) StartStream

func (p *HciProxyCallbacksProxy) StartStream(
	ctx context.Context,
	handle int32,
	configuration StreamConfiguration,
) error

func (*HciProxyCallbacksProxy) StopStream

func (p *HciProxyCallbacksProxy) StopStream(
	ctx context.Context,
	handle int32,
) error

type HciProxyCallbacksStub

type HciProxyCallbacksStub struct {
	Impl      IHciProxyCallbacks
	Transport binder.VersionAwareTransport
}

HciProxyCallbacksStub dispatches incoming binder transactions to a typed IHciProxyCallbacks implementation.

func (*HciProxyCallbacksStub) Descriptor

func (s *HciProxyCallbacksStub) Descriptor() string

func (*HciProxyCallbacksStub) OnTransaction

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

type HciProxyProxy

type HciProxyProxy struct {
	Remote binder.IBinder
}

func NewHciProxyProxy

func NewHciProxyProxy(
	remote binder.IBinder,
) *HciProxyProxy

func (*HciProxyProxy) AsBinder

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

func (*HciProxyProxy) RegisterCallbacks

func (p *HciProxyProxy) RegisterCallbacks(
	ctx context.Context,
	callbacks IHciProxyCallbacks,
) error

func (*HciProxyProxy) SendPacket

func (p *HciProxyProxy) SendPacket(
	ctx context.Context,
	handle int32,
	sequence_number int32,
	data []byte,
) error

type HciProxyStub

type HciProxyStub struct {
	Impl      IHciProxy
	Transport binder.VersionAwareTransport
}

HciProxyStub dispatches incoming binder transactions to a typed IHciProxy implementation.

func (*HciProxyStub) Descriptor

func (s *HciProxyStub) Descriptor() string

func (*HciProxyStub) OnTransaction

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

type IHciProxy

type IHciProxy interface {
	AsBinder() binder.IBinder
	RegisterCallbacks(ctx context.Context, callbacks IHciProxyCallbacks) error
	SendPacket(ctx context.Context, handle int32, sequence_number int32, data []byte) error
}

func NewHciProxyStub

func NewHciProxyStub(
	impl IHciProxyServer,
) IHciProxy

NewHciProxyStub creates a server-side IHciProxy wrapping the given server implementation. The returned value satisfies IHciProxy 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 IHciProxyCallbacks

type IHciProxyCallbacks interface {
	AsBinder() binder.IBinder
	StartStream(ctx context.Context, handle int32, configuration StreamConfiguration) error
	StopStream(ctx context.Context, handle int32) error
	LinkFeedback(ctx context.Context, handle int32, sequence_number int32, anchor_point_delay int32, sdu_input_status int32) error
}

func NewHciProxyCallbacksStub

func NewHciProxyCallbacksStub(
	impl IHciProxyCallbacksServer,
) IHciProxyCallbacks

NewHciProxyCallbacksStub creates a server-side IHciProxyCallbacks wrapping the given server implementation. The returned value satisfies IHciProxyCallbacks 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 IHciProxyCallbacksServer

type IHciProxyCallbacksServer interface {
	StartStream(ctx context.Context, handle int32, configuration StreamConfiguration) error
	StopStream(ctx context.Context, handle int32) error
	LinkFeedback(ctx context.Context, handle int32, sequence_number int32, anchor_point_delay int32, sdu_input_status int32) error
}

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

type IHciProxyServer

type IHciProxyServer interface {
	RegisterCallbacks(ctx context.Context, callbacks IHciProxyCallbacks) error
	SendPacket(ctx context.Context, handle int32, sequence_number int32, data []byte) error
}

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

type StreamConfiguration

type StreamConfiguration struct {
	IsoIntervalUs         int32
	SduIntervalUs         int32
	MaxSduSize            int32
	FlushTimeout          int32
	LinkFeedbackSupported bool
}

func (*StreamConfiguration) MarshalParcel

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

func (*StreamConfiguration) UnmarshalParcel

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

Jump to

Keyboard shortcuts

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