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

telemetry

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 (
	TransactionICarTelemetryWrite          = binder.FirstCallTransaction + 0
	TransactionICarTelemetryAddCallback    = binder.FirstCallTransaction + 1
	TransactionICarTelemetryRemoveCallback = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodICarTelemetryWrite          = "write"
	MethodICarTelemetryAddCallback    = "addCallback"
	MethodICarTelemetryRemoveCallback = "removeCallback"
)
View Source
const DescriptorICarTelemetry = "android.frameworks.automotive.telemetry.ICarTelemetry"
View Source
const DescriptorICarTelemetryCallback = "android.frameworks.automotive.telemetry.ICarTelemetryCallback"
View Source
const (
	MethodICarTelemetryCallbackOnChange = "onChange"
)
View Source
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 CarData

type CarData struct {
	Id      int32
	Content []byte
}

func (*CarData) MarshalParcel

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

func (*CarData) UnmarshalParcel

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

type CarTelemetryCallbackProxy

type CarTelemetryCallbackProxy struct {
	Remote binder.IBinder
}

func NewCarTelemetryCallbackProxy

func NewCarTelemetryCallbackProxy(
	remote binder.IBinder,
) *CarTelemetryCallbackProxy

func (*CarTelemetryCallbackProxy) AsBinder

func (*CarTelemetryCallbackProxy) OnChange

func (p *CarTelemetryCallbackProxy) OnChange(
	ctx context.Context,
	ids []int32,
) error

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

type CarTelemetryProxy struct {
	Remote binder.IBinder
}

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

func (*CarTelemetryProxy) Write

func (p *CarTelemetryProxy) Write(
	ctx context.Context,
	dataList []CarData,
) 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

type ICarTelemetryCallbackServer interface {
	OnChange(ctx context.Context, ids []int32) error
}

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).

Jump to

Keyboard shortcuts

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