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

ir

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 (
	TransactionIConsumerIrGetCarrierFreqs = binder.FirstCallTransaction + 0
	TransactionIConsumerIrTransmit        = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIConsumerIrGetCarrierFreqs = "getCarrierFreqs"
	MethodIConsumerIrTransmit        = "transmit"
)
View Source
const DescriptorIConsumerIr = "android.hardware.ir.IConsumerIr"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerIrFreqRange

type ConsumerIrFreqRange struct {
	MinHz int32
	MaxHz int32
}

func (*ConsumerIrFreqRange) MarshalParcel

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

func (*ConsumerIrFreqRange) UnmarshalParcel

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

type ConsumerIrProxy

type ConsumerIrProxy struct {
	Remote binder.IBinder
}

func NewConsumerIrProxy

func NewConsumerIrProxy(
	remote binder.IBinder,
) *ConsumerIrProxy

func (*ConsumerIrProxy) AsBinder

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

func (*ConsumerIrProxy) GetCarrierFreqs

func (p *ConsumerIrProxy) GetCarrierFreqs(
	ctx context.Context,
) ([]ConsumerIrFreqRange, error)

func (*ConsumerIrProxy) Transmit

func (p *ConsumerIrProxy) Transmit(
	ctx context.Context,
	carrierFreqHz int32,
	pattern []int32,
) error

type ConsumerIrStub

type ConsumerIrStub struct {
	Impl      IConsumerIr
	Transport binder.VersionAwareTransport
}

ConsumerIrStub dispatches incoming binder transactions to a typed IConsumerIr implementation.

func (*ConsumerIrStub) Descriptor

func (s *ConsumerIrStub) Descriptor() string

func (*ConsumerIrStub) OnTransaction

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

type IConsumerIr

type IConsumerIr interface {
	AsBinder() binder.IBinder
	GetCarrierFreqs(ctx context.Context) ([]ConsumerIrFreqRange, error)
	Transmit(ctx context.Context, carrierFreqHz int32, pattern []int32) error
}

func NewConsumerIrStub

func NewConsumerIrStub(
	impl IConsumerIrServer,
) IConsumerIr

NewConsumerIrStub creates a server-side IConsumerIr wrapping the given server implementation. The returned value satisfies IConsumerIr 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 IConsumerIrServer

type IConsumerIrServer interface {
	GetCarrierFreqs(ctx context.Context) ([]ConsumerIrFreqRange, error)
	Transmit(ctx context.Context, carrierFreqHz int32, pattern []int32) error
}

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

Jump to

Keyboard shortcuts

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