Documentation
¶
Index ¶
- Constants
- type CallbackConfig
- type CarData
- type CarTelemetryCallbackProxy
- type CarTelemetryCallbackStub
- type CarTelemetryProxy
- func (p *CarTelemetryProxy) AddCallback(ctx context.Context, config CallbackConfig, callback ICarTelemetryCallback) error
- func (p *CarTelemetryProxy) AsBinder() binder.IBinder
- func (p *CarTelemetryProxy) RemoveCallback(ctx context.Context, callback ICarTelemetryCallback) error
- func (p *CarTelemetryProxy) Write(ctx context.Context, dataList []CarData) error
- type CarTelemetryStub
- type ICarTelemetry
- type ICarTelemetryCallback
- type ICarTelemetryCallbackServer
- type ICarTelemetryServer
Constants ¶
const ( TransactionICarTelemetryWrite = binder.FirstCallTransaction + 0 TransactionICarTelemetryAddCallback = binder.FirstCallTransaction + 1 TransactionICarTelemetryRemoveCallback = binder.FirstCallTransaction + 2 )
const ( MethodICarTelemetryWrite = "write" MethodICarTelemetryAddCallback = "addCallback" MethodICarTelemetryRemoveCallback = "removeCallback" )
const DescriptorICarTelemetry = "android.frameworks.automotive.telemetry.ICarTelemetry"
const DescriptorICarTelemetryCallback = "android.frameworks.automotive.telemetry.ICarTelemetryCallback"
const (
MethodICarTelemetryCallbackOnChange = "onChange"
)
const (
TransactionICarTelemetryCallbackOnChange = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackConfig ¶
type CallbackConfig struct {
CarDataIds []int32
}
func (*CallbackConfig) MarshalParcel ¶
func (s *CallbackConfig) MarshalParcel( p *parcel.Parcel, ) error
func (*CallbackConfig) UnmarshalParcel ¶
func (s *CallbackConfig) UnmarshalParcel( p *parcel.Parcel, ) error
type CarTelemetryCallbackProxy ¶
func NewCarTelemetryCallbackProxy ¶
func NewCarTelemetryCallbackProxy( remote binder.IBinder, ) *CarTelemetryCallbackProxy
func (*CarTelemetryCallbackProxy) AsBinder ¶
func (p *CarTelemetryCallbackProxy) AsBinder() binder.IBinder
type CarTelemetryCallbackStub ¶
type CarTelemetryCallbackStub struct {
Impl ICarTelemetryCallback
Transport binder.VersionAwareTransport
}
CarTelemetryCallbackStub dispatches incoming binder transactions to a typed ICarTelemetryCallback implementation.
func (*CarTelemetryCallbackStub) Descriptor ¶
func (s *CarTelemetryCallbackStub) Descriptor() string
func (*CarTelemetryCallbackStub) OnTransaction ¶
func (s *CarTelemetryCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type CarTelemetryProxy ¶
func NewCarTelemetryProxy ¶
func NewCarTelemetryProxy( remote binder.IBinder, ) *CarTelemetryProxy
func (*CarTelemetryProxy) AddCallback ¶
func (p *CarTelemetryProxy) AddCallback( ctx context.Context, config CallbackConfig, callback ICarTelemetryCallback, ) error
func (*CarTelemetryProxy) AsBinder ¶
func (p *CarTelemetryProxy) AsBinder() binder.IBinder
func (*CarTelemetryProxy) RemoveCallback ¶
func (p *CarTelemetryProxy) RemoveCallback( ctx context.Context, callback ICarTelemetryCallback, ) error
type CarTelemetryStub ¶
type CarTelemetryStub struct {
Impl ICarTelemetry
Transport binder.VersionAwareTransport
}
CarTelemetryStub dispatches incoming binder transactions to a typed ICarTelemetry implementation.
func (*CarTelemetryStub) Descriptor ¶
func (s *CarTelemetryStub) Descriptor() string
func (*CarTelemetryStub) OnTransaction ¶
func (s *CarTelemetryStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type ICarTelemetry ¶
type ICarTelemetry interface {
AsBinder() binder.IBinder
Write(ctx context.Context, dataList []CarData) error
AddCallback(ctx context.Context, config CallbackConfig, callback ICarTelemetryCallback) error
RemoveCallback(ctx context.Context, callback ICarTelemetryCallback) error
}
func NewCarTelemetryStub ¶
func NewCarTelemetryStub( impl ICarTelemetryServer, ) ICarTelemetry
NewCarTelemetryStub creates a server-side ICarTelemetry wrapping the given server implementation. The returned value satisfies ICarTelemetry 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 ICarTelemetryCallback ¶
type ICarTelemetryCallback interface {
AsBinder() binder.IBinder
OnChange(ctx context.Context, ids []int32) error
}
func NewCarTelemetryCallbackStub ¶
func NewCarTelemetryCallbackStub( impl ICarTelemetryCallbackServer, ) ICarTelemetryCallback
NewCarTelemetryCallbackStub creates a server-side ICarTelemetryCallback wrapping the given server implementation. The returned value satisfies ICarTelemetryCallback 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 ICarTelemetryCallbackServer ¶
ICarTelemetryCallbackServer is the server-side interface that user implementations provide to NewCarTelemetryCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ICarTelemetryServer ¶
type ICarTelemetryServer interface {
Write(ctx context.Context, dataList []CarData) error
AddCallback(ctx context.Context, config CallbackConfig, callback ICarTelemetryCallback) error
RemoveCallback(ctx context.Context, callback ICarTelemetryCallback) error
}
ICarTelemetryServer is the server-side interface that user implementations provide to NewCarTelemetryStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).