Documentation
¶
Index ¶
- Constants
- type HciProxyCallbacksProxy
- func (p *HciProxyCallbacksProxy) AsBinder() binder.IBinder
- func (p *HciProxyCallbacksProxy) LinkFeedback(ctx context.Context, handle int32, sequence_number int32, ...) error
- func (p *HciProxyCallbacksProxy) StartStream(ctx context.Context, handle int32, configuration StreamConfiguration) error
- func (p *HciProxyCallbacksProxy) StopStream(ctx context.Context, handle int32) error
- type HciProxyCallbacksStub
- type HciProxyProxy
- type HciProxyStub
- type IHciProxy
- type IHciProxyCallbacks
- type IHciProxyCallbacksServer
- type IHciProxyServer
- type StreamConfiguration
Constants ¶
const ( TransactionIHciProxyRegisterCallbacks = binder.FirstCallTransaction + 0 TransactionIHciProxySendPacket = binder.FirstCallTransaction + 1 )
const ( MethodIHciProxyRegisterCallbacks = "registerCallbacks" MethodIHciProxySendPacket = "sendPacket" )
const ( TransactionIHciProxyCallbacksStartStream = binder.FirstCallTransaction + 0 TransactionIHciProxyCallbacksStopStream = binder.FirstCallTransaction + 1 TransactionIHciProxyCallbacksLinkFeedback = binder.FirstCallTransaction + 2 )
const ( MethodIHciProxyCallbacksStartStream = "startStream" MethodIHciProxyCallbacksStopStream = "stopStream" MethodIHciProxyCallbacksLinkFeedback = "linkFeedback" )
const DescriptorIHciProxy = "android.hardware.bluetooth.offload.leaudio.IHciProxy"
const DescriptorIHciProxyCallbacks = "android.hardware.bluetooth.offload.leaudio.IHciProxyCallbacks"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HciProxyCallbacksProxy ¶
func NewHciProxyCallbacksProxy ¶
func NewHciProxyCallbacksProxy( remote binder.IBinder, ) *HciProxyCallbacksProxy
func (*HciProxyCallbacksProxy) AsBinder ¶
func (p *HciProxyCallbacksProxy) AsBinder() binder.IBinder
func (*HciProxyCallbacksProxy) LinkFeedback ¶
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 ¶
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 ¶
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