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 ¶
func (*ConsumerIrFreqRange) MarshalParcel ¶
func (s *ConsumerIrFreqRange) MarshalParcel( p *parcel.Parcel, ) error
func (*ConsumerIrFreqRange) UnmarshalParcel ¶
func (s *ConsumerIrFreqRange) UnmarshalParcel( p *parcel.Parcel, ) error
type ConsumerIrProxy ¶
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)
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).
Click to show internal directories.
Click to hide internal directories.