Documentation
¶
Index ¶
- Constants
- type AddMslAltitudeToLocationRequest
- type AddMslAltitudeToLocationResponse
- type AltitudeServiceProxy
- func (p *AltitudeServiceProxy) AddMslAltitudeToLocation(ctx context.Context, request AddMslAltitudeToLocationRequest) (AddMslAltitudeToLocationResponse, error)
- func (p *AltitudeServiceProxy) AsBinder() binder.IBinder
- func (p *AltitudeServiceProxy) GetGeoidHeight(ctx context.Context, request GetGeoidHeightRequest) (GetGeoidHeightResponse, error)
- type AltitudeServiceStub
- type GetGeoidHeightRequest
- type GetGeoidHeightResponse
- type IAltitudeService
- type IAltitudeServiceServer
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 ¶
func NewAltitudeServiceProxy ¶
func NewAltitudeServiceProxy( remote binder.IBinder, ) *AltitudeServiceProxy
func (*AltitudeServiceProxy) AddMslAltitudeToLocation ¶
func (p *AltitudeServiceProxy) AddMslAltitudeToLocation( ctx context.Context, request AddMslAltitudeToLocationRequest, ) (AddMslAltitudeToLocationResponse, error)
func (*AltitudeServiceProxy) AsBinder ¶
func (p *AltitudeServiceProxy) AsBinder() binder.IBinder
func (*AltitudeServiceProxy) GetGeoidHeight ¶
func (p *AltitudeServiceProxy) GetGeoidHeight( ctx context.Context, request GetGeoidHeightRequest, ) (GetGeoidHeightResponse, error)
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 ¶
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).
Click to show internal directories.
Click to hide internal directories.