Documentation
¶
Index ¶
- Constants
- type EArcCallbackProxy
- type EArcCallbackStub
- type EArcProxy
- func (p *EArcProxy) AsBinder() binder.IBinder
- func (p *EArcProxy) GetLastReportedAudioCapabilities(ctx context.Context, portId int32) ([]byte, error)
- func (p *EArcProxy) GetState(ctx context.Context, portId int32) (IEArcStatus, error)
- func (p *EArcProxy) IsEArcEnabled(ctx context.Context) (bool, error)
- func (p *EArcProxy) SetCallback(ctx context.Context, callback IEArcCallback) error
- func (p *EArcProxy) SetEArcEnabled(ctx context.Context, enabled bool) error
- type EArcStub
- type IEArc
- type IEArcCallback
- type IEArcCallbackServer
- type IEArcServer
- type IEArcStatus
- type Result
Constants ¶
const ( TransactionIEArcSetEArcEnabled = binder.FirstCallTransaction + 0 TransactionIEArcIsEArcEnabled = binder.FirstCallTransaction + 1 TransactionIEArcSetCallback = binder.FirstCallTransaction + 2 TransactionIEArcGetState = binder.FirstCallTransaction + 3 TransactionIEArcGetLastReportedAudioCapabilities = binder.FirstCallTransaction + 4 )
const ( MethodIEArcSetEArcEnabled = "setEArcEnabled" MethodIEArcIsEArcEnabled = "isEArcEnabled" MethodIEArcSetCallback = "setCallback" MethodIEArcGetState = "getState" MethodIEArcGetLastReportedAudioCapabilities = "getLastReportedAudioCapabilities" )
const ( TransactionIEArcCallbackOnStateChange = binder.FirstCallTransaction + 0 TransactionIEArcCallbackOnCapabilitiesReported = binder.FirstCallTransaction + 1 )
const ( MethodIEArcCallbackOnStateChange = "onStateChange" MethodIEArcCallbackOnCapabilitiesReported = "onCapabilitiesReported" )
const DescriptorIEArc = "android.hardware.tv.hdmi.earc.IEArc"
const DescriptorIEArcCallback = "android.hardware.tv.hdmi.earc.IEArcCallback"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EArcCallbackProxy ¶
func NewEArcCallbackProxy ¶
func NewEArcCallbackProxy( remote binder.IBinder, ) *EArcCallbackProxy
func (*EArcCallbackProxy) AsBinder ¶
func (p *EArcCallbackProxy) AsBinder() binder.IBinder
func (*EArcCallbackProxy) OnCapabilitiesReported ¶
func (*EArcCallbackProxy) OnStateChange ¶
func (p *EArcCallbackProxy) OnStateChange( ctx context.Context, status IEArcStatus, portId int32, ) error
type EArcCallbackStub ¶
type EArcCallbackStub struct {
Impl IEArcCallback
Transport binder.VersionAwareTransport
}
EArcCallbackStub dispatches incoming binder transactions to a typed IEArcCallback implementation.
func (*EArcCallbackStub) Descriptor ¶
func (s *EArcCallbackStub) Descriptor() string
func (*EArcCallbackStub) OnTransaction ¶
func (s *EArcCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type EArcProxy ¶
func NewEArcProxy ¶
func (*EArcProxy) GetLastReportedAudioCapabilities ¶
func (*EArcProxy) IsEArcEnabled ¶
func (*EArcProxy) SetCallback ¶
func (p *EArcProxy) SetCallback( ctx context.Context, callback IEArcCallback, ) error
type EArcStub ¶
type EArcStub struct {
Impl IEArc
Transport binder.VersionAwareTransport
}
EArcStub dispatches incoming binder transactions to a typed IEArc implementation.
func (*EArcStub) Descriptor ¶
type IEArc ¶
type IEArc interface {
AsBinder() binder.IBinder
SetEArcEnabled(ctx context.Context, enabled bool) error
IsEArcEnabled(ctx context.Context) (bool, error)
SetCallback(ctx context.Context, callback IEArcCallback) error
GetState(ctx context.Context, portId int32) (IEArcStatus, error)
GetLastReportedAudioCapabilities(ctx context.Context, portId int32) ([]byte, error)
}
func NewEArcStub ¶
func NewEArcStub( impl IEArcServer, ) IEArc
NewEArcStub creates a server-side IEArc wrapping the given server implementation. The returned value satisfies IEArc 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 IEArcCallback ¶
type IEArcCallback interface {
AsBinder() binder.IBinder
OnStateChange(ctx context.Context, status IEArcStatus, portId int32) error
OnCapabilitiesReported(ctx context.Context, rawCapabilities []byte, portId int32) error
}
func NewEArcCallbackStub ¶
func NewEArcCallbackStub( impl IEArcCallbackServer, ) IEArcCallback
NewEArcCallbackStub creates a server-side IEArcCallback wrapping the given server implementation. The returned value satisfies IEArcCallback 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 IEArcCallbackServer ¶
type IEArcCallbackServer interface {
OnStateChange(ctx context.Context, status IEArcStatus, portId int32) error
OnCapabilitiesReported(ctx context.Context, rawCapabilities []byte, portId int32) error
}
IEArcCallbackServer is the server-side interface that user implementations provide to NewEArcCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IEArcServer ¶
type IEArcServer interface {
SetEArcEnabled(ctx context.Context, enabled bool) error
IsEArcEnabled(ctx context.Context) (bool, error)
SetCallback(ctx context.Context, callback IEArcCallback) error
GetState(ctx context.Context, portId int32) (IEArcStatus, error)
GetLastReportedAudioCapabilities(ctx context.Context, portId int32) ([]byte, error)
}
IEArcServer is the server-side interface that user implementations provide to NewEArcStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IEArcStatus ¶
type IEArcStatus byte
const ( IEArcStatusIDLE IEArcStatus = 0 IEArcStatusEarcPending IEArcStatus = 1 IEArcStatusArcPending IEArcStatus = 2 IEArcStatusEarcConnected IEArcStatus = 3 )