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

altitude

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 (
	TransactionIAltitudeServiceAddMslAltitudeToLocation = binder.FirstCallTransaction + 0
	TransactionIAltitudeServiceGetGeoidHeight           = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIAltitudeServiceAddMslAltitudeToLocation = "addMslAltitudeToLocation"
	MethodIAltitudeServiceGetGeoidHeight           = "getGeoidHeight"
)
View Source
const DescriptorIAltitudeService = "android.frameworks.location.altitude.IAltitudeService"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMslAltitudeToLocationRequest

type AddMslAltitudeToLocationRequest struct {
	LatitudeDegrees        float64
	LongitudeDegrees       float64
	AltitudeMeters         float64
	VerticalAccuracyMeters float32
}

func (*AddMslAltitudeToLocationRequest) MarshalParcel

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

func (*AddMslAltitudeToLocationRequest) UnmarshalParcel

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

type AddMslAltitudeToLocationResponse

type AddMslAltitudeToLocationResponse struct {
	MslAltitudeMeters         float64
	MslAltitudeAccuracyMeters float32
	Success                   bool
}

func (*AddMslAltitudeToLocationResponse) MarshalParcel

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

func (*AddMslAltitudeToLocationResponse) UnmarshalParcel

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

type AltitudeServiceProxy

type AltitudeServiceProxy struct {
	Remote binder.IBinder
}

func NewAltitudeServiceProxy

func NewAltitudeServiceProxy(
	remote binder.IBinder,
) *AltitudeServiceProxy

func (*AltitudeServiceProxy) AddMslAltitudeToLocation

func (*AltitudeServiceProxy) AsBinder

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

func (*AltitudeServiceProxy) GetGeoidHeight

type AltitudeServiceStub

type AltitudeServiceStub struct {
	Impl      IAltitudeService
	Transport binder.VersionAwareTransport
}

AltitudeServiceStub dispatches incoming binder transactions to a typed IAltitudeService implementation.

func (*AltitudeServiceStub) Descriptor

func (s *AltitudeServiceStub) Descriptor() string

func (*AltitudeServiceStub) OnTransaction

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

type GetGeoidHeightRequest

type GetGeoidHeightRequest struct {
	LatitudeDegrees  float64
	LongitudeDegrees float64
}

func (*GetGeoidHeightRequest) MarshalParcel

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

func (*GetGeoidHeightRequest) UnmarshalParcel

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

type GetGeoidHeightResponse

type GetGeoidHeightResponse struct {
	GeoidHeightMeters                float64
	GeoidHeightErrorMeters           float32
	ExpirationDistanceMeters         float64
	AdditionalGeoidHeightErrorMeters float32
	Success                          bool
}

func (*GetGeoidHeightResponse) MarshalParcel

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

func (*GetGeoidHeightResponse) UnmarshalParcel

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

type IAltitudeService

type IAltitudeService interface {
	AsBinder() binder.IBinder
	AddMslAltitudeToLocation(ctx context.Context, request AddMslAltitudeToLocationRequest) (AddMslAltitudeToLocationResponse, error)
	GetGeoidHeight(ctx context.Context, request GetGeoidHeightRequest) (GetGeoidHeightResponse, error)
}

func NewAltitudeServiceStub

func NewAltitudeServiceStub(
	impl IAltitudeServiceServer,
) IAltitudeService

NewAltitudeServiceStub creates a server-side IAltitudeService wrapping the given server implementation. The returned value satisfies IAltitudeService 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 IAltitudeServiceServer

type IAltitudeServiceServer interface {
	AddMslAltitudeToLocation(ctx context.Context, request AddMslAltitudeToLocationRequest) (AddMslAltitudeToLocationResponse, error)
	GetGeoidHeight(ctx context.Context, request GetGeoidHeightRequest) (GetGeoidHeightResponse, error)
}

IAltitudeServiceServer is the server-side interface that user implementations provide to NewAltitudeServiceStub. 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