Documentation
¶
Index ¶
- Constants
- type IMeasurementCorrectionsCallback
- type IMeasurementCorrectionsCallbackServer
- type IMeasurementCorrectionsInterface
- type IMeasurementCorrectionsInterfaceServer
- type MeasurementCorrections
- type MeasurementCorrectionsCallbackProxy
- type MeasurementCorrectionsCallbackStub
- type MeasurementCorrectionsInterfaceProxy
- func (p *MeasurementCorrectionsInterfaceProxy) AsBinder() binder.IBinder
- func (p *MeasurementCorrectionsInterfaceProxy) SetCallback(ctx context.Context, callback IMeasurementCorrectionsCallback) error
- func (p *MeasurementCorrectionsInterfaceProxy) SetCorrections(ctx context.Context, corrections MeasurementCorrections) error
- type MeasurementCorrectionsInterfaceStub
- type ReflectingPlane
- type SingleSatCorrection
- type SingleSatCorrectionExcessPathInfo
Constants ¶
const ( IMeasurementCorrectionsCallbackCapabilityLosSats int32 = (1 << 0) IMeasurementCorrectionsCallbackCapabilityExcessPathLength int32 = (1 << 1) IMeasurementCorrectionsCallbackCapabilityReflectingPlane int32 = (1 << 2) )
const ( TransactionIMeasurementCorrectionsInterfaceSetCorrections = binder.FirstCallTransaction + 0 TransactionIMeasurementCorrectionsInterfaceSetCallback = binder.FirstCallTransaction + 1 )
const ( MethodIMeasurementCorrectionsInterfaceSetCorrections = "setCorrections" MethodIMeasurementCorrectionsInterfaceSetCallback = "setCallback" )
const ( SingleSatCorrectionExcessPathInfoExcessPathInfoHasExcessPathLength int32 = 1 SingleSatCorrectionExcessPathInfoExcessPathInfoHasExcessPathLengthUnc int32 = 2 SingleSatCorrectionExcessPathInfoExcessPathInfoHasReflectingPlane int32 = 4 SingleSatCorrectionExcessPathInfoExcessPathInfoHasAttenuation int32 = 8 )
const ( SingleSatCorrectionSingleSatCorrectionHasSatIsLosProbability int32 = 1 SingleSatCorrectionSingleSatCorrectionHasCombinedExcessPathLength int32 = 2 SingleSatCorrectionSingleSatCorrectionHasCombinedExcessPathLengthUnc int32 = 4 SingleSatCorrectionSingleSatCorrectionHasCombinedAttenuation int32 = 16 )
const DescriptorIMeasurementCorrectionsCallback = "android.hardware.gnss.measurement_corrections.IMeasurementCorrectionsCallback"
const DescriptorIMeasurementCorrectionsInterface = "android.hardware.gnss.measurement_corrections.IMeasurementCorrectionsInterface"
const (
MethodIMeasurementCorrectionsCallbackSetCapabilitiesCb = "setCapabilitiesCb"
)
const (
TransactionIMeasurementCorrectionsCallbackSetCapabilitiesCb = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMeasurementCorrectionsCallback ¶
type IMeasurementCorrectionsCallback interface {
AsBinder() binder.IBinder
SetCapabilitiesCb(ctx context.Context, capabilities int32) error
}
func NewMeasurementCorrectionsCallbackStub ¶
func NewMeasurementCorrectionsCallbackStub( impl IMeasurementCorrectionsCallbackServer, ) IMeasurementCorrectionsCallback
NewMeasurementCorrectionsCallbackStub creates a server-side IMeasurementCorrectionsCallback wrapping the given server implementation. The returned value satisfies IMeasurementCorrectionsCallback 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 IMeasurementCorrectionsCallbackServer ¶
type IMeasurementCorrectionsCallbackServer interface {
SetCapabilitiesCb(ctx context.Context, capabilities int32) error
}
IMeasurementCorrectionsCallbackServer is the server-side interface that user implementations provide to NewMeasurementCorrectionsCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IMeasurementCorrectionsInterface ¶
type IMeasurementCorrectionsInterface interface {
AsBinder() binder.IBinder
SetCorrections(ctx context.Context, corrections MeasurementCorrections) error
SetCallback(ctx context.Context, callback IMeasurementCorrectionsCallback) error
}
func NewMeasurementCorrectionsInterfaceStub ¶
func NewMeasurementCorrectionsInterfaceStub( impl IMeasurementCorrectionsInterfaceServer, ) IMeasurementCorrectionsInterface
NewMeasurementCorrectionsInterfaceStub creates a server-side IMeasurementCorrectionsInterface wrapping the given server implementation. The returned value satisfies IMeasurementCorrectionsInterface 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 IMeasurementCorrectionsInterfaceServer ¶
type IMeasurementCorrectionsInterfaceServer interface {
SetCorrections(ctx context.Context, corrections MeasurementCorrections) error
SetCallback(ctx context.Context, callback IMeasurementCorrectionsCallback) error
}
IMeasurementCorrectionsInterfaceServer is the server-side interface that user implementations provide to NewMeasurementCorrectionsInterfaceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type MeasurementCorrections ¶
type MeasurementCorrections struct {
LatitudeDegrees float64
LongitudeDegrees float64
AltitudeMeters float64
HorizontalPositionUncertaintyMeters float64
VerticalPositionUncertaintyMeters float64
ToaGpsNanosecondsOfWeek int64
SatCorrections []SingleSatCorrection
HasEnvironmentBearing bool
EnvironmentBearingDegrees float32
EnvironmentBearingUncertaintyDegrees float32
}
func (*MeasurementCorrections) MarshalParcel ¶
func (s *MeasurementCorrections) MarshalParcel( p *parcel.Parcel, ) error
func (*MeasurementCorrections) UnmarshalParcel ¶
func (s *MeasurementCorrections) UnmarshalParcel( p *parcel.Parcel, ) error
type MeasurementCorrectionsCallbackProxy ¶
func NewMeasurementCorrectionsCallbackProxy ¶
func NewMeasurementCorrectionsCallbackProxy( remote binder.IBinder, ) *MeasurementCorrectionsCallbackProxy
func (*MeasurementCorrectionsCallbackProxy) AsBinder ¶
func (p *MeasurementCorrectionsCallbackProxy) AsBinder() binder.IBinder
func (*MeasurementCorrectionsCallbackProxy) SetCapabilitiesCb ¶
func (p *MeasurementCorrectionsCallbackProxy) SetCapabilitiesCb( ctx context.Context, capabilities int32, ) error
type MeasurementCorrectionsCallbackStub ¶
type MeasurementCorrectionsCallbackStub struct {
Impl IMeasurementCorrectionsCallback
Transport binder.VersionAwareTransport
}
MeasurementCorrectionsCallbackStub dispatches incoming binder transactions to a typed IMeasurementCorrectionsCallback implementation.
func (*MeasurementCorrectionsCallbackStub) Descriptor ¶
func (s *MeasurementCorrectionsCallbackStub) Descriptor() string
func (*MeasurementCorrectionsCallbackStub) OnTransaction ¶
func (s *MeasurementCorrectionsCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type MeasurementCorrectionsInterfaceProxy ¶
func NewMeasurementCorrectionsInterfaceProxy ¶
func NewMeasurementCorrectionsInterfaceProxy( remote binder.IBinder, ) *MeasurementCorrectionsInterfaceProxy
func (*MeasurementCorrectionsInterfaceProxy) AsBinder ¶
func (p *MeasurementCorrectionsInterfaceProxy) AsBinder() binder.IBinder
func (*MeasurementCorrectionsInterfaceProxy) SetCallback ¶
func (p *MeasurementCorrectionsInterfaceProxy) SetCallback( ctx context.Context, callback IMeasurementCorrectionsCallback, ) error
func (*MeasurementCorrectionsInterfaceProxy) SetCorrections ¶
func (p *MeasurementCorrectionsInterfaceProxy) SetCorrections( ctx context.Context, corrections MeasurementCorrections, ) error
type MeasurementCorrectionsInterfaceStub ¶
type MeasurementCorrectionsInterfaceStub struct {
Impl IMeasurementCorrectionsInterface
Transport binder.VersionAwareTransport
}
MeasurementCorrectionsInterfaceStub dispatches incoming binder transactions to a typed IMeasurementCorrectionsInterface implementation.
func (*MeasurementCorrectionsInterfaceStub) Descriptor ¶
func (s *MeasurementCorrectionsInterfaceStub) Descriptor() string
func (*MeasurementCorrectionsInterfaceStub) OnTransaction ¶
func (s *MeasurementCorrectionsInterfaceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type ReflectingPlane ¶
type ReflectingPlane struct {
LatitudeDegrees float64
LongitudeDegrees float64
AltitudeMeters float64
ReflectingPlaneAzimuthDegrees float64
}
func (*ReflectingPlane) MarshalParcel ¶
func (s *ReflectingPlane) MarshalParcel( p *parcel.Parcel, ) error
func (*ReflectingPlane) UnmarshalParcel ¶
func (s *ReflectingPlane) UnmarshalParcel( p *parcel.Parcel, ) error
type SingleSatCorrection ¶
type SingleSatCorrection struct {
SingleSatCorrectionFlags int32
Constellation types.GnssConstellationType
Svid int32
CarrierFrequencyHz int64
ProbSatIsLos float32
CombinedExcessPathLengthMeters float32
CombinedExcessPathLengthUncertaintyMeters float32
CombinedAttenuationDb float32
ExcessPathInfos []SingleSatCorrectionExcessPathInfo
}
func (*SingleSatCorrection) MarshalParcel ¶
func (s *SingleSatCorrection) MarshalParcel( p *parcel.Parcel, ) error
func (*SingleSatCorrection) UnmarshalParcel ¶
func (s *SingleSatCorrection) UnmarshalParcel( p *parcel.Parcel, ) error
type SingleSatCorrectionExcessPathInfo ¶
type SingleSatCorrectionExcessPathInfo struct {
ExcessPathInfoFlags int32
ExcessPathLengthMeters float32
ExcessPathLengthUncertaintyMeters float32
ReflectingPlane ReflectingPlane
AttenuationDb float32
}
func (*SingleSatCorrectionExcessPathInfo) MarshalParcel ¶
func (s *SingleSatCorrectionExcessPathInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*SingleSatCorrectionExcessPathInfo) UnmarshalParcel ¶
func (s *SingleSatCorrectionExcessPathInfo) UnmarshalParcel( p *parcel.Parcel, ) error