connection

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

Documentation

Index

Constants

View Source
const (
	TransactionIHdmiConnectionGetPortInfo  = binder.FirstCallTransaction + 0
	TransactionIHdmiConnectionIsConnected  = binder.FirstCallTransaction + 1
	TransactionIHdmiConnectionSetCallback  = binder.FirstCallTransaction + 2
	TransactionIHdmiConnectionSetHpdSignal = binder.FirstCallTransaction + 3
	TransactionIHdmiConnectionGetHpdSignal = binder.FirstCallTransaction + 4
)
View Source
const (
	MethodIHdmiConnectionGetPortInfo  = "getPortInfo"
	MethodIHdmiConnectionIsConnected  = "isConnected"
	MethodIHdmiConnectionSetCallback  = "setCallback"
	MethodIHdmiConnectionSetHpdSignal = "setHpdSignal"
	MethodIHdmiConnectionGetHpdSignal = "getHpdSignal"
)
View Source
const DescriptorIHdmiConnection = "android.hardware.tv.hdmi.connection.IHdmiConnection"
View Source
const DescriptorIHdmiConnectionCallback = "android.hardware.tv.hdmi.connection.IHdmiConnectionCallback"
View Source
const (
	MethodIHdmiConnectionCallbackOnHotplugEvent = "onHotplugEvent"
)
View Source
const (
	TransactionIHdmiConnectionCallbackOnHotplugEvent = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HdmiConnectionCallbackProxy

type HdmiConnectionCallbackProxy struct {
	Remote binder.IBinder
}

func NewHdmiConnectionCallbackProxy

func NewHdmiConnectionCallbackProxy(
	remote binder.IBinder,
) *HdmiConnectionCallbackProxy

func (*HdmiConnectionCallbackProxy) AsBinder

func (*HdmiConnectionCallbackProxy) OnHotplugEvent

func (p *HdmiConnectionCallbackProxy) OnHotplugEvent(
	ctx context.Context,
	connected bool,
	portId int32,
) error

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

type HdmiConnectionProxy struct {
	Remote binder.IBinder
}

func NewHdmiConnectionProxy

func NewHdmiConnectionProxy(
	remote binder.IBinder,
) *HdmiConnectionProxy

func (*HdmiConnectionProxy) AsBinder

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

func (*HdmiConnectionProxy) GetHpdSignal

func (p *HdmiConnectionProxy) GetHpdSignal(
	ctx context.Context,
	portId int32,
) (HpdSignal, error)

func (*HdmiConnectionProxy) GetPortInfo

func (p *HdmiConnectionProxy) GetPortInfo(
	ctx context.Context,
) ([]HdmiPortInfo, error)

func (*HdmiConnectionProxy) IsConnected

func (p *HdmiConnectionProxy) IsConnected(
	ctx context.Context,
	portId int32,
) (bool, error)

func (*HdmiConnectionProxy) SetCallback

func (p *HdmiConnectionProxy) SetCallback(
	ctx context.Context,
	callback IHdmiConnectionCallback,
) error

func (*HdmiConnectionProxy) SetHpdSignal

func (p *HdmiConnectionProxy) SetHpdSignal(
	ctx context.Context,
	signal HpdSignal,
	portId int32,
) error

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 HpdSignal

type HpdSignal byte
const (
	HpdSignalHdmiHpdPhysical  HpdSignal = 0
	HpdSignalHdmiHpdStatusBit HpdSignal = 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).

type Result

type Result int32
const (
	ResultSUCCESS             Result = 0
	ResultFailureUnknown      Result = 1
	ResultFailureInvalidArgs  Result = 2
	ResultFailureInvalidState Result = 3
	ResultFailureNotSupported Result = 4
)

Jump to

Keyboard shortcuts

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