Documentation
¶
Index ¶
- Constants
- type HdmiConnectionCallbackProxy
- type HdmiConnectionCallbackStub
- type HdmiConnectionProxy
- func (p *HdmiConnectionProxy) AsBinder() binder.IBinder
- func (p *HdmiConnectionProxy) GetHpdSignal(ctx context.Context, portId int32) (HpdSignal, error)
- func (p *HdmiConnectionProxy) GetPortInfo(ctx context.Context) ([]HdmiPortInfo, error)
- func (p *HdmiConnectionProxy) IsConnected(ctx context.Context, portId int32) (bool, error)
- func (p *HdmiConnectionProxy) SetCallback(ctx context.Context, callback IHdmiConnectionCallback) error
- func (p *HdmiConnectionProxy) SetHpdSignal(ctx context.Context, signal HpdSignal, portId int32) error
- type HdmiConnectionStub
- type HdmiPortInfo
- type HdmiPortType
- type HpdSignal
- type IHdmiConnection
- type IHdmiConnectionCallback
- type IHdmiConnectionCallbackServer
- type IHdmiConnectionServer
- type Result
Constants ¶
const ( TransactionIHdmiConnectionGetPortInfo = binder.FirstCallTransaction + 0 TransactionIHdmiConnectionIsConnected = binder.FirstCallTransaction + 1 TransactionIHdmiConnectionSetCallback = binder.FirstCallTransaction + 2 TransactionIHdmiConnectionSetHpdSignal = binder.FirstCallTransaction + 3 TransactionIHdmiConnectionGetHpdSignal = binder.FirstCallTransaction + 4 )
const ( MethodIHdmiConnectionGetPortInfo = "getPortInfo" MethodIHdmiConnectionIsConnected = "isConnected" MethodIHdmiConnectionSetCallback = "setCallback" MethodIHdmiConnectionSetHpdSignal = "setHpdSignal" MethodIHdmiConnectionGetHpdSignal = "getHpdSignal" )
const DescriptorIHdmiConnection = "android.hardware.tv.hdmi.connection.IHdmiConnection"
const DescriptorIHdmiConnectionCallback = "android.hardware.tv.hdmi.connection.IHdmiConnectionCallback"
const (
MethodIHdmiConnectionCallbackOnHotplugEvent = "onHotplugEvent"
)
const (
TransactionIHdmiConnectionCallbackOnHotplugEvent = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HdmiConnectionCallbackProxy ¶
func NewHdmiConnectionCallbackProxy ¶
func NewHdmiConnectionCallbackProxy( remote binder.IBinder, ) *HdmiConnectionCallbackProxy
func (*HdmiConnectionCallbackProxy) AsBinder ¶
func (p *HdmiConnectionCallbackProxy) AsBinder() binder.IBinder
func (*HdmiConnectionCallbackProxy) OnHotplugEvent ¶
type HdmiConnectionCallbackStub ¶
type HdmiConnectionCallbackStub struct {
Impl IHdmiConnectionCallback
Transport binder.VersionAwareTransport
}
HdmiConnectionCallbackStub dispatches incoming binder transactions to a typed IHdmiConnectionCallback implementation.
func (*HdmiConnectionCallbackStub) Descriptor ¶
func (s *HdmiConnectionCallbackStub) Descriptor() string
func (*HdmiConnectionCallbackStub) OnTransaction ¶
func (s *HdmiConnectionCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type HdmiConnectionProxy ¶
func NewHdmiConnectionProxy ¶
func NewHdmiConnectionProxy( remote binder.IBinder, ) *HdmiConnectionProxy
func (*HdmiConnectionProxy) AsBinder ¶
func (p *HdmiConnectionProxy) AsBinder() binder.IBinder
func (*HdmiConnectionProxy) GetHpdSignal ¶
func (*HdmiConnectionProxy) GetPortInfo ¶
func (p *HdmiConnectionProxy) GetPortInfo( ctx context.Context, ) ([]HdmiPortInfo, error)
func (*HdmiConnectionProxy) IsConnected ¶
func (*HdmiConnectionProxy) SetCallback ¶
func (p *HdmiConnectionProxy) SetCallback( ctx context.Context, callback IHdmiConnectionCallback, ) error
func (*HdmiConnectionProxy) SetHpdSignal ¶
type HdmiConnectionStub ¶
type HdmiConnectionStub struct {
Impl IHdmiConnection
Transport binder.VersionAwareTransport
}
HdmiConnectionStub dispatches incoming binder transactions to a typed IHdmiConnection implementation.
func (*HdmiConnectionStub) Descriptor ¶
func (s *HdmiConnectionStub) Descriptor() string
func (*HdmiConnectionStub) OnTransaction ¶
func (s *HdmiConnectionStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type HdmiPortInfo ¶
type HdmiPortInfo struct {
Type HdmiPortType
PortId int32
CecSupported bool
ArcSupported bool
EArcSupported bool
PhysicalAddress int32
}
func (*HdmiPortInfo) MarshalParcel ¶
func (s *HdmiPortInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*HdmiPortInfo) UnmarshalParcel ¶
func (s *HdmiPortInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type HdmiPortType ¶
type HdmiPortType byte
const ( HdmiPortTypeINPUT HdmiPortType = 0 HdmiPortTypeOUTPUT HdmiPortType = 1 )
type IHdmiConnection ¶
type IHdmiConnection interface {
AsBinder() binder.IBinder
GetPortInfo(ctx context.Context) ([]HdmiPortInfo, error)
IsConnected(ctx context.Context, portId int32) (bool, error)
SetCallback(ctx context.Context, callback IHdmiConnectionCallback) error
SetHpdSignal(ctx context.Context, signal HpdSignal, portId int32) error
GetHpdSignal(ctx context.Context, portId int32) (HpdSignal, error)
}
func NewHdmiConnectionStub ¶
func NewHdmiConnectionStub( impl IHdmiConnectionServer, ) IHdmiConnection
NewHdmiConnectionStub creates a server-side IHdmiConnection wrapping the given server implementation. The returned value satisfies IHdmiConnection 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 IHdmiConnectionCallback ¶
type IHdmiConnectionCallback interface {
AsBinder() binder.IBinder
OnHotplugEvent(ctx context.Context, connected bool, portId int32) error
}
func NewHdmiConnectionCallbackStub ¶
func NewHdmiConnectionCallbackStub( impl IHdmiConnectionCallbackServer, ) IHdmiConnectionCallback
NewHdmiConnectionCallbackStub creates a server-side IHdmiConnectionCallback wrapping the given server implementation. The returned value satisfies IHdmiConnectionCallback 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 IHdmiConnectionCallbackServer ¶
type IHdmiConnectionCallbackServer interface {
OnHotplugEvent(ctx context.Context, connected bool, portId int32) error
}
IHdmiConnectionCallbackServer is the server-side interface that user implementations provide to NewHdmiConnectionCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IHdmiConnectionServer ¶
type IHdmiConnectionServer interface {
GetPortInfo(ctx context.Context) ([]HdmiPortInfo, error)
IsConnected(ctx context.Context, portId int32) (bool, error)
SetCallback(ctx context.Context, callback IHdmiConnectionCallback) error
SetHpdSignal(ctx context.Context, signal HpdSignal, portId int32) error
GetHpdSignal(ctx context.Context, portId int32) (HpdSignal, error)
}
IHdmiConnectionServer is the server-side interface that user implementations provide to NewHdmiConnectionStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).