location

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionICountryDetectorDetectCountry         = binder.FirstCallTransaction + 0
	TransactionICountryDetectorAddCountryListener    = binder.FirstCallTransaction + 1
	TransactionICountryDetectorRemoveCountryListener = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodICountryDetectorDetectCountry         = "detectCountry"
	MethodICountryDetectorAddCountryListener    = "addCountryListener"
	MethodICountryDetectorRemoveCountryListener = "removeCountryListener"
)
View Source
const (
	TransactionIFusedGeofenceHardwareIsSupported              = binder.FirstCallTransaction + 0
	TransactionIFusedGeofenceHardwareAddGeofences             = binder.FirstCallTransaction + 1
	TransactionIFusedGeofenceHardwareRemoveGeofences          = binder.FirstCallTransaction + 2
	TransactionIFusedGeofenceHardwarePauseMonitoringGeofence  = binder.FirstCallTransaction + 3
	TransactionIFusedGeofenceHardwareResumeMonitoringGeofence = binder.FirstCallTransaction + 4
	TransactionIFusedGeofenceHardwareModifyGeofenceOptions    = binder.FirstCallTransaction + 5
)
View Source
const (
	MethodIFusedGeofenceHardwareIsSupported              = "isSupported"
	MethodIFusedGeofenceHardwareAddGeofences             = "addGeofences"
	MethodIFusedGeofenceHardwareRemoveGeofences          = "removeGeofences"
	MethodIFusedGeofenceHardwarePauseMonitoringGeofence  = "pauseMonitoringGeofence"
	MethodIFusedGeofenceHardwareResumeMonitoringGeofence = "resumeMonitoringGeofence"
	MethodIFusedGeofenceHardwareModifyGeofenceOptions    = "modifyGeofenceOptions"
)
View Source
const (
	TransactionIGnssMeasurementsListenerOnGnssMeasurementsReceived = binder.FirstCallTransaction + 0
	TransactionIGnssMeasurementsListenerOnStatusChanged            = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIGnssMeasurementsListenerOnGnssMeasurementsReceived = "onGnssMeasurementsReceived"
	MethodIGnssMeasurementsListenerOnStatusChanged            = "onStatusChanged"
)
View Source
const (
	TransactionIGnssNavigationMessageListenerOnGnssNavigationMessageReceived = binder.FirstCallTransaction + 0
	TransactionIGnssNavigationMessageListenerOnStatusChanged                 = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIGnssNavigationMessageListenerOnGnssNavigationMessageReceived = "onGnssNavigationMessageReceived"
	MethodIGnssNavigationMessageListenerOnStatusChanged                 = "onStatusChanged"
)
View Source
const (
	TransactionIGnssStatusListenerOnGnssStarted     = binder.FirstCallTransaction + 0
	TransactionIGnssStatusListenerOnGnssStopped     = binder.FirstCallTransaction + 1
	TransactionIGnssStatusListenerOnFirstFix        = binder.FirstCallTransaction + 2
	TransactionIGnssStatusListenerOnSvStatusChanged = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodIGnssStatusListenerOnGnssStarted     = "onGnssStarted"
	MethodIGnssStatusListenerOnGnssStopped     = "onGnssStopped"
	MethodIGnssStatusListenerOnFirstFix        = "onFirstFix"
	MethodIGnssStatusListenerOnSvStatusChanged = "onSvStatusChanged"
)
View Source
const (
	TransactionIGpsGeofenceHardwareIsHardwareGeofenceSupported = binder.FirstCallTransaction + 0
	TransactionIGpsGeofenceHardwareAddCircularHardwareGeofence = binder.FirstCallTransaction + 1
	TransactionIGpsGeofenceHardwareRemoveHardwareGeofence      = binder.FirstCallTransaction + 2
	TransactionIGpsGeofenceHardwarePauseHardwareGeofence       = binder.FirstCallTransaction + 3
	TransactionIGpsGeofenceHardwareResumeHardwareGeofence      = binder.FirstCallTransaction + 4
)
View Source
const (
	MethodIGpsGeofenceHardwareIsHardwareGeofenceSupported = "isHardwareGeofenceSupported"
	MethodIGpsGeofenceHardwareAddCircularHardwareGeofence = "addCircularHardwareGeofence"
	MethodIGpsGeofenceHardwareRemoveHardwareGeofence      = "removeHardwareGeofence"
	MethodIGpsGeofenceHardwarePauseHardwareGeofence       = "pauseHardwareGeofence"
	MethodIGpsGeofenceHardwareResumeHardwareGeofence      = "resumeHardwareGeofence"
)
View Source
const (
	TransactionILocationListenerOnLocationChanged        = binder.FirstCallTransaction + 0
	TransactionILocationListenerOnProviderEnabledChanged = binder.FirstCallTransaction + 1
	TransactionILocationListenerOnFlushComplete          = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodILocationListenerOnLocationChanged        = "onLocationChanged"
	MethodILocationListenerOnProviderEnabledChanged = "onProviderEnabledChanged"
	MethodILocationListenerOnFlushComplete          = "onFlushComplete"
)
View Source
const (
	TransactionILocationManagerGetLastLocation                          = binder.FirstCallTransaction + 0
	TransactionILocationManagerGetCurrentLocation                       = binder.FirstCallTransaction + 1
	TransactionILocationManagerRegisterLocationListener                 = binder.FirstCallTransaction + 2
	TransactionILocationManagerUnregisterLocationListener               = binder.FirstCallTransaction + 3
	TransactionILocationManagerRegisterLocationPendingIntent            = binder.FirstCallTransaction + 4
	TransactionILocationManagerUnregisterLocationPendingIntent          = binder.FirstCallTransaction + 5
	TransactionILocationManagerInjectLocation                           = binder.FirstCallTransaction + 6
	TransactionILocationManagerRequestListenerFlush                     = binder.FirstCallTransaction + 7
	TransactionILocationManagerRequestPendingIntentFlush                = binder.FirstCallTransaction + 8
	TransactionILocationManagerRequestGeofence                          = binder.FirstCallTransaction + 9
	TransactionILocationManagerRemoveGeofence                           = binder.FirstCallTransaction + 10
	TransactionILocationManagerIsGeocodeAvailable                       = binder.FirstCallTransaction + 11
	TransactionILocationManagerReverseGeocode                           = binder.FirstCallTransaction + 12
	TransactionILocationManagerForwardGeocode                           = binder.FirstCallTransaction + 13
	TransactionILocationManagerGetGnssCapabilities                      = binder.FirstCallTransaction + 14
	TransactionILocationManagerGetGnssYearOfHardware                    = binder.FirstCallTransaction + 15
	TransactionILocationManagerGetGnssHardwareModelName                 = binder.FirstCallTransaction + 16
	TransactionILocationManagerGetGnssAntennaInfos                      = binder.FirstCallTransaction + 17
	TransactionILocationManagerRegisterGnssStatusCallback               = binder.FirstCallTransaction + 18
	TransactionILocationManagerUnregisterGnssStatusCallback             = binder.FirstCallTransaction + 19
	TransactionILocationManagerRegisterGnssNmeaCallback                 = binder.FirstCallTransaction + 20
	TransactionILocationManagerUnregisterGnssNmeaCallback               = binder.FirstCallTransaction + 21
	TransactionILocationManagerAddGnssMeasurementsListener              = binder.FirstCallTransaction + 22
	TransactionILocationManagerRemoveGnssMeasurementsListener           = binder.FirstCallTransaction + 23
	TransactionILocationManagerInjectGnssMeasurementCorrections         = binder.FirstCallTransaction + 24
	TransactionILocationManagerAddGnssNavigationMessageListener         = binder.FirstCallTransaction + 25
	TransactionILocationManagerRemoveGnssNavigationMessageListener      = binder.FirstCallTransaction + 26
	TransactionILocationManagerAddGnssAntennaInfoListener               = binder.FirstCallTransaction + 27
	TransactionILocationManagerRemoveGnssAntennaInfoListener            = binder.FirstCallTransaction + 28
	TransactionILocationManagerAddProviderRequestListener               = binder.FirstCallTransaction + 29
	TransactionILocationManagerRemoveProviderRequestListener            = binder.FirstCallTransaction + 30
	TransactionILocationManagerGetGnssBatchSize                         = binder.FirstCallTransaction + 31
	TransactionILocationManagerStartGnssBatch                           = binder.FirstCallTransaction + 32
	TransactionILocationManagerFlushGnssBatch                           = binder.FirstCallTransaction + 33
	TransactionILocationManagerStopGnssBatch                            = binder.FirstCallTransaction + 34
	TransactionILocationManagerHasProvider                              = binder.FirstCallTransaction + 35
	TransactionILocationManagerGetAllProviders                          = binder.FirstCallTransaction + 36
	TransactionILocationManagerGetProviders                             = binder.FirstCallTransaction + 37
	TransactionILocationManagerGetBestProvider                          = binder.FirstCallTransaction + 38
	TransactionILocationManagerGetProviderProperties                    = binder.FirstCallTransaction + 39
	TransactionILocationManagerIsProviderPackage                        = binder.FirstCallTransaction + 40
	TransactionILocationManagerGetProviderPackages                      = binder.FirstCallTransaction + 41
	TransactionILocationManagerSetExtraLocationControllerPackage        = binder.FirstCallTransaction + 42
	TransactionILocationManagerGetExtraLocationControllerPackage        = binder.FirstCallTransaction + 43
	TransactionILocationManagerSetExtraLocationControllerPackageEnabled = binder.FirstCallTransaction + 44
	TransactionILocationManagerIsExtraLocationControllerPackageEnabled  = binder.FirstCallTransaction + 45
	TransactionILocationManagerIsProviderEnabledForUser                 = binder.FirstCallTransaction + 46
	TransactionILocationManagerIsLocationEnabledForUser                 = binder.FirstCallTransaction + 47
	TransactionILocationManagerSetLocationEnabledForUser                = binder.FirstCallTransaction + 48
	TransactionILocationManagerIsAdasGnssLocationEnabledForUser         = binder.FirstCallTransaction + 49
	TransactionILocationManagerSetAdasGnssLocationEnabledForUser        = binder.FirstCallTransaction + 50
	TransactionILocationManagerIsAutomotiveGnssSuspended                = binder.FirstCallTransaction + 51
	TransactionILocationManagerSetAutomotiveGnssSuspended               = binder.FirstCallTransaction + 52
	TransactionILocationManagerAddTestProvider                          = binder.FirstCallTransaction + 53
	TransactionILocationManagerRemoveTestProvider                       = binder.FirstCallTransaction + 54
	TransactionILocationManagerSetTestProviderLocation                  = binder.FirstCallTransaction + 55
	TransactionILocationManagerSetTestProviderEnabled                   = binder.FirstCallTransaction + 56
	TransactionILocationManagerGetGnssTimeMillis                        = binder.FirstCallTransaction + 57
	TransactionILocationManagerSendExtraCommand                         = binder.FirstCallTransaction + 58
	TransactionILocationManagerGetBackgroundThrottlingWhitelist         = binder.FirstCallTransaction + 59
	TransactionILocationManagerGetIgnoreSettingsAllowlist               = binder.FirstCallTransaction + 60
	TransactionILocationManagerGetAdasAllowlist                         = binder.FirstCallTransaction + 61
)
View Source
const (
	MethodILocationManagerGetLastLocation                          = "getLastLocation"
	MethodILocationManagerGetCurrentLocation                       = "getCurrentLocation"
	MethodILocationManagerRegisterLocationListener                 = "registerLocationListener"
	MethodILocationManagerUnregisterLocationListener               = "unregisterLocationListener"
	MethodILocationManagerRegisterLocationPendingIntent            = "registerLocationPendingIntent"
	MethodILocationManagerUnregisterLocationPendingIntent          = "unregisterLocationPendingIntent"
	MethodILocationManagerInjectLocation                           = "injectLocation"
	MethodILocationManagerRequestListenerFlush                     = "requestListenerFlush"
	MethodILocationManagerRequestPendingIntentFlush                = "requestPendingIntentFlush"
	MethodILocationManagerRequestGeofence                          = "requestGeofence"
	MethodILocationManagerRemoveGeofence                           = "removeGeofence"
	MethodILocationManagerIsGeocodeAvailable                       = "isGeocodeAvailable"
	MethodILocationManagerReverseGeocode                           = "reverseGeocode"
	MethodILocationManagerForwardGeocode                           = "forwardGeocode"
	MethodILocationManagerGetGnssCapabilities                      = "getGnssCapabilities"
	MethodILocationManagerGetGnssYearOfHardware                    = "getGnssYearOfHardware"
	MethodILocationManagerGetGnssHardwareModelName                 = "getGnssHardwareModelName"
	MethodILocationManagerGetGnssAntennaInfos                      = "getGnssAntennaInfos"
	MethodILocationManagerRegisterGnssStatusCallback               = "registerGnssStatusCallback"
	MethodILocationManagerUnregisterGnssStatusCallback             = "unregisterGnssStatusCallback"
	MethodILocationManagerRegisterGnssNmeaCallback                 = "registerGnssNmeaCallback"
	MethodILocationManagerUnregisterGnssNmeaCallback               = "unregisterGnssNmeaCallback"
	MethodILocationManagerAddGnssMeasurementsListener              = "addGnssMeasurementsListener"
	MethodILocationManagerRemoveGnssMeasurementsListener           = "removeGnssMeasurementsListener"
	MethodILocationManagerInjectGnssMeasurementCorrections         = "injectGnssMeasurementCorrections"
	MethodILocationManagerAddGnssNavigationMessageListener         = "addGnssNavigationMessageListener"
	MethodILocationManagerRemoveGnssNavigationMessageListener      = "removeGnssNavigationMessageListener"
	MethodILocationManagerAddGnssAntennaInfoListener               = "addGnssAntennaInfoListener"
	MethodILocationManagerRemoveGnssAntennaInfoListener            = "removeGnssAntennaInfoListener"
	MethodILocationManagerAddProviderRequestListener               = "addProviderRequestListener"
	MethodILocationManagerRemoveProviderRequestListener            = "removeProviderRequestListener"
	MethodILocationManagerGetGnssBatchSize                         = "getGnssBatchSize"
	MethodILocationManagerStartGnssBatch                           = "startGnssBatch"
	MethodILocationManagerFlushGnssBatch                           = "flushGnssBatch"
	MethodILocationManagerStopGnssBatch                            = "stopGnssBatch"
	MethodILocationManagerHasProvider                              = "hasProvider"
	MethodILocationManagerGetAllProviders                          = "getAllProviders"
	MethodILocationManagerGetProviders                             = "getProviders"
	MethodILocationManagerGetBestProvider                          = "getBestProvider"
	MethodILocationManagerGetProviderProperties                    = "getProviderProperties"
	MethodILocationManagerIsProviderPackage                        = "isProviderPackage"
	MethodILocationManagerGetProviderPackages                      = "getProviderPackages"
	MethodILocationManagerSetExtraLocationControllerPackage        = "setExtraLocationControllerPackage"
	MethodILocationManagerGetExtraLocationControllerPackage        = "getExtraLocationControllerPackage"
	MethodILocationManagerSetExtraLocationControllerPackageEnabled = "setExtraLocationControllerPackageEnabled"
	MethodILocationManagerIsExtraLocationControllerPackageEnabled  = "isExtraLocationControllerPackageEnabled"
	MethodILocationManagerIsProviderEnabledForUser                 = "isProviderEnabledForUser"
	MethodILocationManagerIsLocationEnabledForUser                 = "isLocationEnabledForUser"
	MethodILocationManagerSetLocationEnabledForUser                = "setLocationEnabledForUser"
	MethodILocationManagerIsAdasGnssLocationEnabledForUser         = "isAdasGnssLocationEnabledForUser"
	MethodILocationManagerSetAdasGnssLocationEnabledForUser        = "setAdasGnssLocationEnabledForUser"
	MethodILocationManagerIsAutomotiveGnssSuspended                = "isAutomotiveGnssSuspended"
	MethodILocationManagerSetAutomotiveGnssSuspended               = "setAutomotiveGnssSuspended"
	MethodILocationManagerAddTestProvider                          = "addTestProvider"
	MethodILocationManagerRemoveTestProvider                       = "removeTestProvider"
	MethodILocationManagerSetTestProviderLocation                  = "setTestProviderLocation"
	MethodILocationManagerSetTestProviderEnabled                   = "setTestProviderEnabled"
	MethodILocationManagerGetGnssTimeMillis                        = "getGnssTimeMillis"
	MethodILocationManagerSendExtraCommand                         = "sendExtraCommand"
	MethodILocationManagerGetBackgroundThrottlingWhitelist         = "getBackgroundThrottlingWhitelist"
	MethodILocationManagerGetIgnoreSettingsAllowlist               = "getIgnoreSettingsAllowlist"
	MethodILocationManagerGetAdasAllowlist                         = "getAdasAllowlist"
)
View Source
const DescriptorICountryDetector = "android.location.ICountryDetector"
View Source
const DescriptorICountryListener = "android.location.ICountryListener"
View Source
const DescriptorIFusedGeofenceHardware = "android.location.IFusedGeofenceHardware"
View Source
const DescriptorIGeofenceProvider = "android.location.IGeofenceProvider"
View Source
const DescriptorIGnssAntennaInfoListener = "android.location.IGnssAntennaInfoListener"
View Source
const DescriptorIGnssMeasurementsListener = "android.location.IGnssMeasurementsListener"
View Source
const DescriptorIGnssNavigationMessageListener = "android.location.IGnssNavigationMessageListener"
View Source
const DescriptorIGnssNmeaListener = "android.location.IGnssNmeaListener"
View Source
const DescriptorIGnssStatusListener = "android.location.IGnssStatusListener"
View Source
const DescriptorIGpsGeofenceHardware = "android.location.IGpsGeofenceHardware"
View Source
const DescriptorILocationCallback = "android.location.ILocationCallback"
View Source
const DescriptorILocationListener = "android.location.ILocationListener"
View Source
const DescriptorILocationManager = "android.location.ILocationManager"
View Source
const DescriptorINetInitiatedListener = "android.location.INetInitiatedListener"
View Source
const (
	MethodICountryListenerOnCountryDetected = "onCountryDetected"
)
View Source
const (
	MethodIGeofenceProviderSetGeofenceHardware = "setGeofenceHardware"
)
View Source
const (
	MethodIGnssAntennaInfoListenerOnGnssAntennaInfoChanged = "onGnssAntennaInfoChanged"
)
View Source
const (
	MethodIGnssNmeaListenerOnNmeaReceived = "onNmeaReceived"
)
View Source
const (
	MethodILocationCallbackOnLocation = "onLocation"
)
View Source
const (
	MethodINetInitiatedListenerSendNiResponse = "sendNiResponse"
)
View Source
const (
	TransactionICountryListenerOnCountryDetected = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIGeofenceProviderSetGeofenceHardware = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIGnssAntennaInfoListenerOnGnssAntennaInfoChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIGnssNmeaListenerOnNmeaReceived = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionILocationCallbackOnLocation = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionINetInitiatedListenerSendNiResponse = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	FeatureName     string
	AdminArea       string
	SubAdminArea    string
	Locality        string
	SubLocality     string
	Thoroughfare    string
	SubThoroughfare string
	Premises        string
	PostalCode      string
	CountryCode     string
	CountryName     string
	Phone           string
	Url             string
}

func (*Address) MarshalParcel

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

func (*Address) UnmarshalParcel

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

type Country

type Country struct {
	CountryIso string
	Source     int32
	Timestamp  int64
}

func (*Country) MarshalParcel

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

func (*Country) UnmarshalParcel

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

type CountryDetectorProxy

type CountryDetectorProxy struct {
	Remote binder.IBinder
}

func NewCountryDetectorProxy

func NewCountryDetectorProxy(
	remote binder.IBinder,
) *CountryDetectorProxy

func (*CountryDetectorProxy) AddCountryListener

func (p *CountryDetectorProxy) AddCountryListener(
	ctx context.Context,
	listener ICountryListener,
) error

func (*CountryDetectorProxy) AsBinder

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

func (*CountryDetectorProxy) DetectCountry

func (p *CountryDetectorProxy) DetectCountry(
	ctx context.Context,
) (Country, error)

func (*CountryDetectorProxy) RemoveCountryListener

func (p *CountryDetectorProxy) RemoveCountryListener(
	ctx context.Context,
	listener ICountryListener,
) error

type CountryDetectorStub

type CountryDetectorStub struct {
	Impl      ICountryDetector
	Transport binder.VersionAwareTransport
}

CountryDetectorStub dispatches incoming binder transactions to a typed ICountryDetector implementation.

func (*CountryDetectorStub) Descriptor

func (s *CountryDetectorStub) Descriptor() string

func (*CountryDetectorStub) OnTransaction

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

type CountryListenerProxy

type CountryListenerProxy struct {
	Remote binder.IBinder
}

func NewCountryListenerProxy

func NewCountryListenerProxy(
	remote binder.IBinder,
) *CountryListenerProxy

func (*CountryListenerProxy) AsBinder

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

func (*CountryListenerProxy) OnCountryDetected

func (p *CountryListenerProxy) OnCountryDetected(
	ctx context.Context,
	country Country,
) error

type CountryListenerStub

type CountryListenerStub struct {
	Impl      ICountryListener
	Transport binder.VersionAwareTransport
}

CountryListenerStub dispatches incoming binder transactions to a typed ICountryListener implementation.

func (*CountryListenerStub) Descriptor

func (s *CountryListenerStub) Descriptor() string

func (*CountryListenerStub) OnTransaction

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

type Criteria

type Criteria struct {
	HorizontalAccuracy int32
	VerticalAccuracy   int32
	SpeedAccuracy      int32
	BearingAccuracy    int32
	PowerRequirement   int32
}

func (*Criteria) MarshalParcel

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

func (*Criteria) UnmarshalParcel

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

type FusedBatchOptions

type FusedBatchOptions struct {
	MaxPowerAllocationInMW     float64
	PeriodInNS                 int64
	SourcesToUse               int32
	Flags                      int32
	SmallestDisplacementMeters float32
}

func (*FusedBatchOptions) MarshalParcel

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

func (*FusedBatchOptions) UnmarshalParcel

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

type FusedGeofenceHardwareProxy

type FusedGeofenceHardwareProxy struct {
	Remote binder.IBinder
}

func NewFusedGeofenceHardwareProxy

func NewFusedGeofenceHardwareProxy(
	remote binder.IBinder,
) *FusedGeofenceHardwareProxy

func (*FusedGeofenceHardwareProxy) AddGeofences

func (p *FusedGeofenceHardwareProxy) AddGeofences(
	ctx context.Context,
	geofenceRequestsArray []hardwareLocation.GeofenceHardwareRequestParcelable,
) error

func (*FusedGeofenceHardwareProxy) AsBinder

func (*FusedGeofenceHardwareProxy) IsSupported

func (p *FusedGeofenceHardwareProxy) IsSupported(
	ctx context.Context,
) (bool, error)

func (*FusedGeofenceHardwareProxy) ModifyGeofenceOptions

func (p *FusedGeofenceHardwareProxy) ModifyGeofenceOptions(
	ctx context.Context,
	geofenceId int32,
	lastTransition int32,
	monitorTransitions int32,
	notificationResponsiveness int32,
	unknownTimer int32,
	sourcesToUse int32,
) error

func (*FusedGeofenceHardwareProxy) PauseMonitoringGeofence

func (p *FusedGeofenceHardwareProxy) PauseMonitoringGeofence(
	ctx context.Context,
	geofenceId int32,
) error

func (*FusedGeofenceHardwareProxy) RemoveGeofences

func (p *FusedGeofenceHardwareProxy) RemoveGeofences(
	ctx context.Context,
	geofenceIds []int32,
) error

func (*FusedGeofenceHardwareProxy) ResumeMonitoringGeofence

func (p *FusedGeofenceHardwareProxy) ResumeMonitoringGeofence(
	ctx context.Context,
	geofenceId int32,
	monitorTransitions int32,
) error

type FusedGeofenceHardwareStub

type FusedGeofenceHardwareStub struct {
	Impl      IFusedGeofenceHardware
	Transport binder.VersionAwareTransport
}

FusedGeofenceHardwareStub dispatches incoming binder transactions to a typed IFusedGeofenceHardware implementation.

func (*FusedGeofenceHardwareStub) Descriptor

func (s *FusedGeofenceHardwareStub) Descriptor() string

func (*FusedGeofenceHardwareStub) OnTransaction

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

type Geofence

type Geofence struct {
	Latitude             float64
	Longitude            float64
	Radius               float32
	ExpirationRealtimeMs int64
}

func (*Geofence) MarshalParcel

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

func (*Geofence) UnmarshalParcel

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

type GeofenceProviderProxy

type GeofenceProviderProxy struct {
	Remote binder.IBinder
}

func NewGeofenceProviderProxy

func NewGeofenceProviderProxy(
	remote binder.IBinder,
) *GeofenceProviderProxy

func (*GeofenceProviderProxy) AsBinder

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

func (*GeofenceProviderProxy) SetGeofenceHardware

func (p *GeofenceProviderProxy) SetGeofenceHardware(
	ctx context.Context,
	proxy hardwareLocation.IGeofenceHardware,
) error

type GeofenceProviderStub

type GeofenceProviderStub struct {
	Impl      IGeofenceProvider
	Transport binder.VersionAwareTransport
}

GeofenceProviderStub dispatches incoming binder transactions to a typed IGeofenceProvider implementation.

func (*GeofenceProviderStub) Descriptor

func (s *GeofenceProviderStub) Descriptor() string

func (*GeofenceProviderStub) OnTransaction

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

type GnssAntennaInfo

type GnssAntennaInfo struct {
	CarrierFrequencyMHz float64
}

func (*GnssAntennaInfo) MarshalParcel

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

func (*GnssAntennaInfo) UnmarshalParcel

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

type GnssAntennaInfoListenerProxy

type GnssAntennaInfoListenerProxy struct {
	Remote binder.IBinder
}

func NewGnssAntennaInfoListenerProxy

func NewGnssAntennaInfoListenerProxy(
	remote binder.IBinder,
) *GnssAntennaInfoListenerProxy

func (*GnssAntennaInfoListenerProxy) AsBinder

func (*GnssAntennaInfoListenerProxy) OnGnssAntennaInfoChanged

func (p *GnssAntennaInfoListenerProxy) OnGnssAntennaInfoChanged(
	ctx context.Context,
	antennaInfos []GnssAntennaInfo,
) error

type GnssAntennaInfoListenerStub

type GnssAntennaInfoListenerStub struct {
	Impl      IGnssAntennaInfoListener
	Transport binder.VersionAwareTransport
}

GnssAntennaInfoListenerStub dispatches incoming binder transactions to a typed IGnssAntennaInfoListener implementation.

func (*GnssAntennaInfoListenerStub) Descriptor

func (s *GnssAntennaInfoListenerStub) Descriptor() string

func (*GnssAntennaInfoListenerStub) OnTransaction

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

type GnssAutomaticGainControl

type GnssAutomaticGainControl struct {
	LevelDb            float64
	ConstellationType  int32
	CarrierFrequencyHz int64
}

func (*GnssAutomaticGainControl) MarshalParcel

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

func (*GnssAutomaticGainControl) UnmarshalParcel

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

type GnssCapabilities

type GnssCapabilities struct {
	TopFlags                    int32
	IsAdrCapabilityKnown        bool
	MeasurementCorrectionsFlags int32
	PowerFlags                  int32
}

func (*GnssCapabilities) MarshalParcel

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

func (*GnssCapabilities) UnmarshalParcel

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

type GnssMeasurementCorrections

type GnssMeasurementCorrections struct {
	LatitudeDegrees                     float64
	LongitudeDegrees                    float64
	AltitudeMeters                      float64
	HorizontalPositionUncertaintyMeters float64
	VerticalPositionUncertaintyMeters   float64
	ToaGpsNanosecondsOfWeek             int64
	HasEnvironmentBearing               bool
}

func (*GnssMeasurementCorrections) MarshalParcel

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

func (*GnssMeasurementCorrections) UnmarshalParcel

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

type GnssMeasurementRequest

type GnssMeasurementRequest struct {
	FullTracking                    bool
	CorrelationVectorOutputsEnabled bool
	IntervalMillis                  int32
	WorkSource                      *types.WorkSource
}

func (*GnssMeasurementRequest) MarshalParcel

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

func (*GnssMeasurementRequest) UnmarshalParcel

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

type GnssMeasurementsEvent

type GnssMeasurementsEvent struct {
	Flag           int32
	IsFullTracking bool
}

func (*GnssMeasurementsEvent) MarshalParcel

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

func (*GnssMeasurementsEvent) UnmarshalParcel

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

type GnssMeasurementsListenerProxy

type GnssMeasurementsListenerProxy struct {
	Remote binder.IBinder
}

func NewGnssMeasurementsListenerProxy

func NewGnssMeasurementsListenerProxy(
	remote binder.IBinder,
) *GnssMeasurementsListenerProxy

func (*GnssMeasurementsListenerProxy) AsBinder

func (*GnssMeasurementsListenerProxy) OnGnssMeasurementsReceived

func (p *GnssMeasurementsListenerProxy) OnGnssMeasurementsReceived(
	ctx context.Context,
	event GnssMeasurementsEvent,
) error

func (*GnssMeasurementsListenerProxy) OnStatusChanged

func (p *GnssMeasurementsListenerProxy) OnStatusChanged(
	ctx context.Context,
	status int32,
) error

type GnssMeasurementsListenerStub

type GnssMeasurementsListenerStub struct {
	Impl      IGnssMeasurementsListener
	Transport binder.VersionAwareTransport
}

GnssMeasurementsListenerStub dispatches incoming binder transactions to a typed IGnssMeasurementsListener implementation.

func (*GnssMeasurementsListenerStub) Descriptor

func (s *GnssMeasurementsListenerStub) Descriptor() string

func (*GnssMeasurementsListenerStub) OnTransaction

type GnssNavigationMessage

type GnssNavigationMessage struct {
	Type         int32
	Svid         int32
	MessageId    int32
	SubmessageId int32
	Status       int32
}

func (*GnssNavigationMessage) MarshalParcel

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

func (*GnssNavigationMessage) UnmarshalParcel

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

type GnssNavigationMessageListenerProxy

type GnssNavigationMessageListenerProxy struct {
	Remote binder.IBinder
}

func NewGnssNavigationMessageListenerProxy

func NewGnssNavigationMessageListenerProxy(
	remote binder.IBinder,
) *GnssNavigationMessageListenerProxy

func (*GnssNavigationMessageListenerProxy) AsBinder

func (*GnssNavigationMessageListenerProxy) OnGnssNavigationMessageReceived

func (p *GnssNavigationMessageListenerProxy) OnGnssNavigationMessageReceived(
	ctx context.Context,
	event GnssNavigationMessage,
) error

func (*GnssNavigationMessageListenerProxy) OnStatusChanged

func (p *GnssNavigationMessageListenerProxy) OnStatusChanged(
	ctx context.Context,
	status int32,
) error

type GnssNavigationMessageListenerStub

type GnssNavigationMessageListenerStub struct {
	Impl      IGnssNavigationMessageListener
	Transport binder.VersionAwareTransport
}

GnssNavigationMessageListenerStub dispatches incoming binder transactions to a typed IGnssNavigationMessageListener implementation.

func (*GnssNavigationMessageListenerStub) Descriptor

func (s *GnssNavigationMessageListenerStub) Descriptor() string

func (*GnssNavigationMessageListenerStub) OnTransaction

type GnssNmeaListenerProxy

type GnssNmeaListenerProxy struct {
	Remote binder.IBinder
}

func NewGnssNmeaListenerProxy

func NewGnssNmeaListenerProxy(
	remote binder.IBinder,
) *GnssNmeaListenerProxy

func (*GnssNmeaListenerProxy) AsBinder

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

func (*GnssNmeaListenerProxy) OnNmeaReceived

func (p *GnssNmeaListenerProxy) OnNmeaReceived(
	ctx context.Context,
	timestamp int64,
	nmea string,
) error

type GnssNmeaListenerStub

type GnssNmeaListenerStub struct {
	Impl      IGnssNmeaListener
	Transport binder.VersionAwareTransport
}

GnssNmeaListenerStub dispatches incoming binder transactions to a typed IGnssNmeaListener implementation.

func (*GnssNmeaListenerStub) Descriptor

func (s *GnssNmeaListenerStub) Descriptor() string

func (*GnssNmeaListenerStub) OnTransaction

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

type GnssRequest

type GnssRequest struct {
	FullTracking bool
}

func (*GnssRequest) MarshalParcel

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

func (*GnssRequest) UnmarshalParcel

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

type GnssSignalType

type GnssSignalType struct {
	ConstellationType  int32
	CarrierFrequencyHz float64
	CodeType           string
}

func (*GnssSignalType) MarshalParcel

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

func (*GnssSignalType) UnmarshalParcel

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

type GnssStatus

type GnssStatus struct {
	SvCount int32
}

func (*GnssStatus) MarshalParcel

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

func (*GnssStatus) UnmarshalParcel

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

type GnssStatusListenerProxy

type GnssStatusListenerProxy struct {
	Remote binder.IBinder
}

func NewGnssStatusListenerProxy

func NewGnssStatusListenerProxy(
	remote binder.IBinder,
) *GnssStatusListenerProxy

func (*GnssStatusListenerProxy) AsBinder

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

func (*GnssStatusListenerProxy) OnFirstFix

func (p *GnssStatusListenerProxy) OnFirstFix(
	ctx context.Context,
	ttff int32,
) error

func (*GnssStatusListenerProxy) OnGnssStarted

func (p *GnssStatusListenerProxy) OnGnssStarted(
	ctx context.Context,
) error

func (*GnssStatusListenerProxy) OnGnssStopped

func (p *GnssStatusListenerProxy) OnGnssStopped(
	ctx context.Context,
) error

func (*GnssStatusListenerProxy) OnSvStatusChanged

func (p *GnssStatusListenerProxy) OnSvStatusChanged(
	ctx context.Context,
	gnssStatus GnssStatus,
) error

type GnssStatusListenerStub

type GnssStatusListenerStub struct {
	Impl      IGnssStatusListener
	Transport binder.VersionAwareTransport
}

GnssStatusListenerStub dispatches incoming binder transactions to a typed IGnssStatusListener implementation.

func (*GnssStatusListenerStub) Descriptor

func (s *GnssStatusListenerStub) Descriptor() string

func (*GnssStatusListenerStub) OnTransaction

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

type GpsGeofenceHardwareProxy

type GpsGeofenceHardwareProxy struct {
	Remote binder.IBinder
}

func NewGpsGeofenceHardwareProxy

func NewGpsGeofenceHardwareProxy(
	remote binder.IBinder,
) *GpsGeofenceHardwareProxy

func (*GpsGeofenceHardwareProxy) AddCircularHardwareGeofence

func (p *GpsGeofenceHardwareProxy) AddCircularHardwareGeofence(
	ctx context.Context,
	geofenceId int32,
	latitude float64,
	longitude float64,
	radius float64,
	lastTransition int32,
	monitorTransition int32,
	notificationResponsiveness int32,
	unknownTimer int32,
) (bool, error)

func (*GpsGeofenceHardwareProxy) AsBinder

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

func (*GpsGeofenceHardwareProxy) IsHardwareGeofenceSupported

func (p *GpsGeofenceHardwareProxy) IsHardwareGeofenceSupported(
	ctx context.Context,
) (bool, error)

func (*GpsGeofenceHardwareProxy) PauseHardwareGeofence

func (p *GpsGeofenceHardwareProxy) PauseHardwareGeofence(
	ctx context.Context,
	geofenceId int32,
) (bool, error)

func (*GpsGeofenceHardwareProxy) RemoveHardwareGeofence

func (p *GpsGeofenceHardwareProxy) RemoveHardwareGeofence(
	ctx context.Context,
	geofenceId int32,
) (bool, error)

func (*GpsGeofenceHardwareProxy) ResumeHardwareGeofence

func (p *GpsGeofenceHardwareProxy) ResumeHardwareGeofence(
	ctx context.Context,
	geofenceId int32,
	monitorTransition int32,
) (bool, error)

type GpsGeofenceHardwareStub

type GpsGeofenceHardwareStub struct {
	Impl      IGpsGeofenceHardware
	Transport binder.VersionAwareTransport
}

GpsGeofenceHardwareStub dispatches incoming binder transactions to a typed IGpsGeofenceHardware implementation.

func (*GpsGeofenceHardwareStub) Descriptor

func (s *GpsGeofenceHardwareStub) Descriptor() string

func (*GpsGeofenceHardwareStub) OnTransaction

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

type ICountryDetector

type ICountryDetector interface {
	AsBinder() binder.IBinder
	DetectCountry(ctx context.Context) (Country, error)
	AddCountryListener(ctx context.Context, listener ICountryListener) error
	RemoveCountryListener(ctx context.Context, listener ICountryListener) error
}

func NewCountryDetectorStub

func NewCountryDetectorStub(
	impl ICountryDetectorServer,
) ICountryDetector

NewCountryDetectorStub creates a server-side ICountryDetector wrapping the given server implementation. The returned value satisfies ICountryDetector 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 ICountryDetectorServer

type ICountryDetectorServer interface {
	DetectCountry(ctx context.Context) (Country, error)
	AddCountryListener(ctx context.Context, listener ICountryListener) error
	RemoveCountryListener(ctx context.Context, listener ICountryListener) error
}

ICountryDetectorServer is the server-side interface that user implementations provide to NewCountryDetectorStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ICountryListener

type ICountryListener interface {
	AsBinder() binder.IBinder
	OnCountryDetected(ctx context.Context, country Country) error
}

func NewCountryListenerStub

func NewCountryListenerStub(
	impl ICountryListenerServer,
) ICountryListener

NewCountryListenerStub creates a server-side ICountryListener wrapping the given server implementation. The returned value satisfies ICountryListener 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 ICountryListenerServer

type ICountryListenerServer interface {
	OnCountryDetected(ctx context.Context, country Country) error
}

ICountryListenerServer is the server-side interface that user implementations provide to NewCountryListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IFusedGeofenceHardware

type IFusedGeofenceHardware interface {
	AsBinder() binder.IBinder
	IsSupported(ctx context.Context) (bool, error)
	AddGeofences(ctx context.Context, geofenceRequestsArray []hardwareLocation.GeofenceHardwareRequestParcelable) error
	RemoveGeofences(ctx context.Context, geofenceIds []int32) error
	PauseMonitoringGeofence(ctx context.Context, geofenceId int32) error
	ResumeMonitoringGeofence(ctx context.Context, geofenceId int32, monitorTransitions int32) error
	ModifyGeofenceOptions(ctx context.Context, geofenceId int32, lastTransition int32, monitorTransitions int32, notificationResponsiveness int32, unknownTimer int32, sourcesToUse int32) error
}

func NewFusedGeofenceHardwareStub

func NewFusedGeofenceHardwareStub(
	impl IFusedGeofenceHardwareServer,
) IFusedGeofenceHardware

NewFusedGeofenceHardwareStub creates a server-side IFusedGeofenceHardware wrapping the given server implementation. The returned value satisfies IFusedGeofenceHardware 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 IFusedGeofenceHardwareServer

type IFusedGeofenceHardwareServer interface {
	IsSupported(ctx context.Context) (bool, error)
	AddGeofences(ctx context.Context, geofenceRequestsArray []hardwareLocation.GeofenceHardwareRequestParcelable) error
	RemoveGeofences(ctx context.Context, geofenceIds []int32) error
	PauseMonitoringGeofence(ctx context.Context, geofenceId int32) error
	ResumeMonitoringGeofence(ctx context.Context, geofenceId int32, monitorTransitions int32) error
	ModifyGeofenceOptions(ctx context.Context, geofenceId int32, lastTransition int32, monitorTransitions int32, notificationResponsiveness int32, unknownTimer int32, sourcesToUse int32) error
}

IFusedGeofenceHardwareServer is the server-side interface that user implementations provide to NewFusedGeofenceHardwareStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IGeofenceProvider

type IGeofenceProvider interface {
	AsBinder() binder.IBinder
	SetGeofenceHardware(ctx context.Context, proxy hardwareLocation.IGeofenceHardware) error
}

func NewGeofenceProviderStub

func NewGeofenceProviderStub(
	impl IGeofenceProviderServer,
) IGeofenceProvider

NewGeofenceProviderStub creates a server-side IGeofenceProvider wrapping the given server implementation. The returned value satisfies IGeofenceProvider 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 IGeofenceProviderServer

type IGeofenceProviderServer interface {
	SetGeofenceHardware(ctx context.Context, proxy hardwareLocation.IGeofenceHardware) error
}

IGeofenceProviderServer is the server-side interface that user implementations provide to NewGeofenceProviderStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IGnssAntennaInfoListener

type IGnssAntennaInfoListener interface {
	AsBinder() binder.IBinder
	OnGnssAntennaInfoChanged(ctx context.Context, antennaInfos []GnssAntennaInfo) error
}

func NewGnssAntennaInfoListenerStub

func NewGnssAntennaInfoListenerStub(
	impl IGnssAntennaInfoListenerServer,
) IGnssAntennaInfoListener

NewGnssAntennaInfoListenerStub creates a server-side IGnssAntennaInfoListener wrapping the given server implementation. The returned value satisfies IGnssAntennaInfoListener 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 IGnssAntennaInfoListenerServer

type IGnssAntennaInfoListenerServer interface {
	OnGnssAntennaInfoChanged(ctx context.Context, antennaInfos []GnssAntennaInfo) error
}

IGnssAntennaInfoListenerServer is the server-side interface that user implementations provide to NewGnssAntennaInfoListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IGnssMeasurementsListener

type IGnssMeasurementsListener interface {
	AsBinder() binder.IBinder
	OnGnssMeasurementsReceived(ctx context.Context, event GnssMeasurementsEvent) error
	OnStatusChanged(ctx context.Context, status int32) error
}

func NewGnssMeasurementsListenerStub

func NewGnssMeasurementsListenerStub(
	impl IGnssMeasurementsListenerServer,
) IGnssMeasurementsListener

NewGnssMeasurementsListenerStub creates a server-side IGnssMeasurementsListener wrapping the given server implementation. The returned value satisfies IGnssMeasurementsListener 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 IGnssMeasurementsListenerServer

type IGnssMeasurementsListenerServer interface {
	OnGnssMeasurementsReceived(ctx context.Context, event GnssMeasurementsEvent) error
	OnStatusChanged(ctx context.Context, status int32) error
}

IGnssMeasurementsListenerServer is the server-side interface that user implementations provide to NewGnssMeasurementsListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IGnssNavigationMessageListener

type IGnssNavigationMessageListener interface {
	AsBinder() binder.IBinder
	OnGnssNavigationMessageReceived(ctx context.Context, event GnssNavigationMessage) error
	OnStatusChanged(ctx context.Context, status int32) error
}

func NewGnssNavigationMessageListenerStub

func NewGnssNavigationMessageListenerStub(
	impl IGnssNavigationMessageListenerServer,
) IGnssNavigationMessageListener

NewGnssNavigationMessageListenerStub creates a server-side IGnssNavigationMessageListener wrapping the given server implementation. The returned value satisfies IGnssNavigationMessageListener 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 IGnssNavigationMessageListenerServer

type IGnssNavigationMessageListenerServer interface {
	OnGnssNavigationMessageReceived(ctx context.Context, event GnssNavigationMessage) error
	OnStatusChanged(ctx context.Context, status int32) error
}

IGnssNavigationMessageListenerServer is the server-side interface that user implementations provide to NewGnssNavigationMessageListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IGnssNmeaListener

type IGnssNmeaListener interface {
	AsBinder() binder.IBinder
	OnNmeaReceived(ctx context.Context, timestamp int64, nmea string) error
}

func NewGnssNmeaListenerStub

func NewGnssNmeaListenerStub(
	impl IGnssNmeaListenerServer,
) IGnssNmeaListener

NewGnssNmeaListenerStub creates a server-side IGnssNmeaListener wrapping the given server implementation. The returned value satisfies IGnssNmeaListener 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 IGnssNmeaListenerServer

type IGnssNmeaListenerServer interface {
	OnNmeaReceived(ctx context.Context, timestamp int64, nmea string) error
}

IGnssNmeaListenerServer is the server-side interface that user implementations provide to NewGnssNmeaListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IGnssStatusListener

type IGnssStatusListener interface {
	AsBinder() binder.IBinder
	OnGnssStarted(ctx context.Context) error
	OnGnssStopped(ctx context.Context) error
	OnFirstFix(ctx context.Context, ttff int32) error
	OnSvStatusChanged(ctx context.Context, gnssStatus GnssStatus) error
}

func NewGnssStatusListenerStub

func NewGnssStatusListenerStub(
	impl IGnssStatusListenerServer,
) IGnssStatusListener

NewGnssStatusListenerStub creates a server-side IGnssStatusListener wrapping the given server implementation. The returned value satisfies IGnssStatusListener 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 IGnssStatusListenerServer

type IGnssStatusListenerServer interface {
	OnGnssStarted(ctx context.Context) error
	OnGnssStopped(ctx context.Context) error
	OnFirstFix(ctx context.Context, ttff int32) error
	OnSvStatusChanged(ctx context.Context, gnssStatus GnssStatus) error
}

IGnssStatusListenerServer is the server-side interface that user implementations provide to NewGnssStatusListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IGpsGeofenceHardware

type IGpsGeofenceHardware interface {
	AsBinder() binder.IBinder
	IsHardwareGeofenceSupported(ctx context.Context) (bool, error)
	AddCircularHardwareGeofence(ctx context.Context, geofenceId int32, latitude float64, longitude float64, radius float64, lastTransition int32, monitorTransition int32, notificationResponsiveness int32, unknownTimer int32) (bool, error)
	RemoveHardwareGeofence(ctx context.Context, geofenceId int32) (bool, error)
	PauseHardwareGeofence(ctx context.Context, geofenceId int32) (bool, error)
	ResumeHardwareGeofence(ctx context.Context, geofenceId int32, monitorTransition int32) (bool, error)
}

func NewGpsGeofenceHardwareStub

func NewGpsGeofenceHardwareStub(
	impl IGpsGeofenceHardwareServer,
) IGpsGeofenceHardware

NewGpsGeofenceHardwareStub creates a server-side IGpsGeofenceHardware wrapping the given server implementation. The returned value satisfies IGpsGeofenceHardware 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 IGpsGeofenceHardwareServer

type IGpsGeofenceHardwareServer interface {
	IsHardwareGeofenceSupported(ctx context.Context) (bool, error)
	AddCircularHardwareGeofence(ctx context.Context, geofenceId int32, latitude float64, longitude float64, radius float64, lastTransition int32, monitorTransition int32, notificationResponsiveness int32, unknownTimer int32) (bool, error)
	RemoveHardwareGeofence(ctx context.Context, geofenceId int32) (bool, error)
	PauseHardwareGeofence(ctx context.Context, geofenceId int32) (bool, error)
	ResumeHardwareGeofence(ctx context.Context, geofenceId int32, monitorTransition int32) (bool, error)
}

IGpsGeofenceHardwareServer is the server-side interface that user implementations provide to NewGpsGeofenceHardwareStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ILocationCallback

type ILocationCallback interface {
	AsBinder() binder.IBinder
	OnLocation(ctx context.Context, location *Location) error
}

func NewLocationCallbackStub

func NewLocationCallbackStub(
	impl ILocationCallbackServer,
) ILocationCallback

NewLocationCallbackStub creates a server-side ILocationCallback wrapping the given server implementation. The returned value satisfies ILocationCallback 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 ILocationCallbackServer

type ILocationCallbackServer interface {
	OnLocation(ctx context.Context, location *Location) error
}

ILocationCallbackServer is the server-side interface that user implementations provide to NewLocationCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ILocationListener

type ILocationListener interface {
	AsBinder() binder.IBinder
	OnLocationChanged(ctx context.Context, locations []Location, onCompleteCallback os.IRemoteCallback) error
	OnProviderEnabledChanged(ctx context.Context, provider string, enabled bool) error
	OnFlushComplete(ctx context.Context, requestCode int32) error
}

func NewLocationListenerStub

func NewLocationListenerStub(
	impl ILocationListenerServer,
) ILocationListener

NewLocationListenerStub creates a server-side ILocationListener wrapping the given server implementation. The returned value satisfies ILocationListener 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 ILocationListenerServer

type ILocationListenerServer interface {
	OnLocationChanged(ctx context.Context, locations []Location, onCompleteCallback os.IRemoteCallback) error
	OnProviderEnabledChanged(ctx context.Context, provider string, enabled bool) error
	OnFlushComplete(ctx context.Context, requestCode int32) error
}

ILocationListenerServer is the server-side interface that user implementations provide to NewLocationListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ILocationManager

type ILocationManager interface {
	AsBinder() binder.IBinder
	GetLastLocation(ctx context.Context, provider string, request LastLocationRequest, packageName string) (Location, error)
	GetCurrentLocation(ctx context.Context, provider string, request LocationRequest, callback ILocationCallback, packageName string, listenerId string) (os.ICancellationSignal, error)
	RegisterLocationListener(ctx context.Context, provider string, request LocationRequest, listener ILocationListener, packageName string, listenerId string) error
	UnregisterLocationListener(ctx context.Context, listener ILocationListener) error
	RegisterLocationPendingIntent(ctx context.Context, provider string, request LocationRequest, pendingIntent types.PendingIntent, packageName string) error
	UnregisterLocationPendingIntent(ctx context.Context, pendingIntent types.PendingIntent) error
	InjectLocation(ctx context.Context, location Location) error
	RequestListenerFlush(ctx context.Context, provider string, listener ILocationListener, requestCode int32) error
	RequestPendingIntentFlush(ctx context.Context, provider string, pendingIntent types.PendingIntent, requestCode int32) error
	RequestGeofence(ctx context.Context, geofence Geofence, intent types.PendingIntent, packageName string) error
	RemoveGeofence(ctx context.Context, intent types.PendingIntent) error
	IsGeocodeAvailable(ctx context.Context) (bool, error)
	ReverseGeocode(ctx context.Context, request locationProvider.ReverseGeocodeRequest, callback locationProvider.IGeocodeCallback) error
	ForwardGeocode(ctx context.Context, request locationProvider.ForwardGeocodeRequest, callback locationProvider.IGeocodeCallback) error
	GetGnssCapabilities(ctx context.Context) (GnssCapabilities, error)
	GetGnssYearOfHardware(ctx context.Context) (int32, error)
	GetGnssHardwareModelName(ctx context.Context) (string, error)
	GetGnssAntennaInfos(ctx context.Context) ([]GnssAntennaInfo, error)
	RegisterGnssStatusCallback(ctx context.Context, callback IGnssStatusListener, packageName string, listenerId string) error
	UnregisterGnssStatusCallback(ctx context.Context, callback IGnssStatusListener) error
	RegisterGnssNmeaCallback(ctx context.Context, callback IGnssNmeaListener, packageName string, listenerId string) error
	UnregisterGnssNmeaCallback(ctx context.Context, callback IGnssNmeaListener) error
	AddGnssMeasurementsListener(ctx context.Context, request GnssMeasurementRequest, listener IGnssMeasurementsListener, packageName string, listenerId string) error
	RemoveGnssMeasurementsListener(ctx context.Context, listener IGnssMeasurementsListener) error
	InjectGnssMeasurementCorrections(ctx context.Context, corrections GnssMeasurementCorrections) error
	AddGnssNavigationMessageListener(ctx context.Context, listener IGnssNavigationMessageListener, packageName string, listenerId string) error
	RemoveGnssNavigationMessageListener(ctx context.Context, listener IGnssNavigationMessageListener) error
	AddGnssAntennaInfoListener(ctx context.Context, listener IGnssAntennaInfoListener, packageName string, listenerId string) error
	RemoveGnssAntennaInfoListener(ctx context.Context, listener IGnssAntennaInfoListener) error
	AddProviderRequestListener(ctx context.Context, listener locationProvider.IProviderRequestListener) error
	RemoveProviderRequestListener(ctx context.Context, listener locationProvider.IProviderRequestListener) error
	GetGnssBatchSize(ctx context.Context) (int32, error)
	StartGnssBatch(ctx context.Context, periodNanos int64, listener ILocationListener, packageName string, listenerId string) error
	FlushGnssBatch(ctx context.Context) error
	StopGnssBatch(ctx context.Context) error
	HasProvider(ctx context.Context, provider string) (bool, error)
	GetAllProviders(ctx context.Context) ([]string, error)
	GetProviders(ctx context.Context, criteria Criteria, enabledOnly bool) ([]string, error)
	GetBestProvider(ctx context.Context, criteria Criteria, enabledOnly bool) (string, error)
	GetProviderProperties(ctx context.Context, provider string) (locationProvider.ProviderProperties, error)
	IsProviderPackage(ctx context.Context, provider string, packageName string) (bool, error)
	GetProviderPackages(ctx context.Context, provider string) ([]string, error)
	SetExtraLocationControllerPackage(ctx context.Context, packageName string) error
	GetExtraLocationControllerPackage(ctx context.Context) (string, error)
	SetExtraLocationControllerPackageEnabled(ctx context.Context, enabled bool) error
	IsExtraLocationControllerPackageEnabled(ctx context.Context) (bool, error)
	IsProviderEnabledForUser(ctx context.Context, provider string) (bool, error)
	IsLocationEnabledForUser(ctx context.Context) (bool, error)
	SetLocationEnabledForUser(ctx context.Context, enabled bool) error
	IsAdasGnssLocationEnabledForUser(ctx context.Context) (bool, error)
	SetAdasGnssLocationEnabledForUser(ctx context.Context, enabled bool) error
	IsAutomotiveGnssSuspended(ctx context.Context) (bool, error)
	SetAutomotiveGnssSuspended(ctx context.Context, suspended bool) error
	AddTestProvider(ctx context.Context, name string, properties locationProvider.ProviderProperties, locationTags []string, packageName string) error
	RemoveTestProvider(ctx context.Context, provider string, packageName string) error
	SetTestProviderLocation(ctx context.Context, provider string, location Location, packageName string) error
	SetTestProviderEnabled(ctx context.Context, provider string, enabled bool, packageName string) error
	GetGnssTimeMillis(ctx context.Context) (LocationTime, error)
	SendExtraCommand(ctx context.Context, provider string, command string, extras os.Bundle) error
	GetBackgroundThrottlingWhitelist(ctx context.Context) ([]string, error)
	GetIgnoreSettingsAllowlist(ctx context.Context) (os.PackageTagsList, error)
	GetAdasAllowlist(ctx context.Context) (os.PackageTagsList, error)
}

func NewLocationManagerStub

func NewLocationManagerStub(
	impl ILocationManagerServer,
) ILocationManager

NewLocationManagerStub creates a server-side ILocationManager wrapping the given server implementation. The returned value satisfies ILocationManager 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 ILocationManagerServer

type ILocationManagerServer interface {
	GetLastLocation(ctx context.Context, provider string, request LastLocationRequest, packageName string) (Location, error)
	GetCurrentLocation(ctx context.Context, provider string, request LocationRequest, callback ILocationCallback, packageName string, listenerId string) (os.ICancellationSignal, error)
	RegisterLocationListener(ctx context.Context, provider string, request LocationRequest, listener ILocationListener, packageName string, listenerId string) error
	UnregisterLocationListener(ctx context.Context, listener ILocationListener) error
	RegisterLocationPendingIntent(ctx context.Context, provider string, request LocationRequest, pendingIntent types.PendingIntent, packageName string) error
	UnregisterLocationPendingIntent(ctx context.Context, pendingIntent types.PendingIntent) error
	InjectLocation(ctx context.Context, location Location) error
	RequestListenerFlush(ctx context.Context, provider string, listener ILocationListener, requestCode int32) error
	RequestPendingIntentFlush(ctx context.Context, provider string, pendingIntent types.PendingIntent, requestCode int32) error
	RequestGeofence(ctx context.Context, geofence Geofence, intent types.PendingIntent, packageName string) error
	RemoveGeofence(ctx context.Context, intent types.PendingIntent) error
	IsGeocodeAvailable(ctx context.Context) (bool, error)
	ReverseGeocode(ctx context.Context, request locationProvider.ReverseGeocodeRequest, callback locationProvider.IGeocodeCallback) error
	ForwardGeocode(ctx context.Context, request locationProvider.ForwardGeocodeRequest, callback locationProvider.IGeocodeCallback) error
	GetGnssCapabilities(ctx context.Context) (GnssCapabilities, error)
	GetGnssYearOfHardware(ctx context.Context) (int32, error)
	GetGnssHardwareModelName(ctx context.Context) (string, error)
	GetGnssAntennaInfos(ctx context.Context) ([]GnssAntennaInfo, error)
	RegisterGnssStatusCallback(ctx context.Context, callback IGnssStatusListener, packageName string, listenerId string) error
	UnregisterGnssStatusCallback(ctx context.Context, callback IGnssStatusListener) error
	RegisterGnssNmeaCallback(ctx context.Context, callback IGnssNmeaListener, packageName string, listenerId string) error
	UnregisterGnssNmeaCallback(ctx context.Context, callback IGnssNmeaListener) error
	AddGnssMeasurementsListener(ctx context.Context, request GnssMeasurementRequest, listener IGnssMeasurementsListener, packageName string, listenerId string) error
	RemoveGnssMeasurementsListener(ctx context.Context, listener IGnssMeasurementsListener) error
	InjectGnssMeasurementCorrections(ctx context.Context, corrections GnssMeasurementCorrections) error
	AddGnssNavigationMessageListener(ctx context.Context, listener IGnssNavigationMessageListener, packageName string, listenerId string) error
	RemoveGnssNavigationMessageListener(ctx context.Context, listener IGnssNavigationMessageListener) error
	AddGnssAntennaInfoListener(ctx context.Context, listener IGnssAntennaInfoListener, packageName string, listenerId string) error
	RemoveGnssAntennaInfoListener(ctx context.Context, listener IGnssAntennaInfoListener) error
	AddProviderRequestListener(ctx context.Context, listener locationProvider.IProviderRequestListener) error
	RemoveProviderRequestListener(ctx context.Context, listener locationProvider.IProviderRequestListener) error
	GetGnssBatchSize(ctx context.Context) (int32, error)
	StartGnssBatch(ctx context.Context, periodNanos int64, listener ILocationListener, packageName string, listenerId string) error
	FlushGnssBatch(ctx context.Context) error
	StopGnssBatch(ctx context.Context) error
	HasProvider(ctx context.Context, provider string) (bool, error)
	GetAllProviders(ctx context.Context) ([]string, error)
	GetProviders(ctx context.Context, criteria Criteria, enabledOnly bool) ([]string, error)
	GetBestProvider(ctx context.Context, criteria Criteria, enabledOnly bool) (string, error)
	GetProviderProperties(ctx context.Context, provider string) (locationProvider.ProviderProperties, error)
	IsProviderPackage(ctx context.Context, provider string, packageName string) (bool, error)
	GetProviderPackages(ctx context.Context, provider string) ([]string, error)
	SetExtraLocationControllerPackage(ctx context.Context, packageName string) error
	GetExtraLocationControllerPackage(ctx context.Context) (string, error)
	SetExtraLocationControllerPackageEnabled(ctx context.Context, enabled bool) error
	IsExtraLocationControllerPackageEnabled(ctx context.Context) (bool, error)
	IsProviderEnabledForUser(ctx context.Context, provider string) (bool, error)
	IsLocationEnabledForUser(ctx context.Context) (bool, error)
	SetLocationEnabledForUser(ctx context.Context, enabled bool) error
	IsAdasGnssLocationEnabledForUser(ctx context.Context) (bool, error)
	SetAdasGnssLocationEnabledForUser(ctx context.Context, enabled bool) error
	IsAutomotiveGnssSuspended(ctx context.Context) (bool, error)
	SetAutomotiveGnssSuspended(ctx context.Context, suspended bool) error
	AddTestProvider(ctx context.Context, name string, properties locationProvider.ProviderProperties, locationTags []string, packageName string) error
	RemoveTestProvider(ctx context.Context, provider string, packageName string) error
	SetTestProviderLocation(ctx context.Context, provider string, location Location, packageName string) error
	SetTestProviderEnabled(ctx context.Context, provider string, enabled bool, packageName string) error
	GetGnssTimeMillis(ctx context.Context) (LocationTime, error)
	SendExtraCommand(ctx context.Context, provider string, command string, extras os.Bundle) error
	GetBackgroundThrottlingWhitelist(ctx context.Context) ([]string, error)
	GetIgnoreSettingsAllowlist(ctx context.Context) (os.PackageTagsList, error)
	GetAdasAllowlist(ctx context.Context) (os.PackageTagsList, error)
}

ILocationManagerServer is the server-side interface that user implementations provide to NewLocationManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetInitiatedListener

type INetInitiatedListener interface {
	AsBinder() binder.IBinder
	SendNiResponse(ctx context.Context, notifId int32, userResponse int32) (bool, error)
}

func NewNetInitiatedListenerStub

func NewNetInitiatedListenerStub(
	impl INetInitiatedListenerServer,
) INetInitiatedListener

NewNetInitiatedListenerStub creates a server-side INetInitiatedListener wrapping the given server implementation. The returned value satisfies INetInitiatedListener 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 INetInitiatedListenerServer

type INetInitiatedListenerServer interface {
	SendNiResponse(ctx context.Context, notifId int32, userResponse int32) (bool, error)
}

INetInitiatedListenerServer is the server-side interface that user implementations provide to NewNetInitiatedListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type LastLocationRequest

type LastLocationRequest struct {
	HiddenFromAppOps        bool
	AdasGnssBypass          bool
	LocationSettingsIgnored bool
}

func (*LastLocationRequest) MarshalParcel

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

func (*LastLocationRequest) UnmarshalParcel

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

type Location

type Location struct {
	Provider                     string
	FieldsMask                   int32
	TimeMs                       int64
	ElapsedRealtimeNs            int64
	ElapsedRealtimeUncertaintyNs float64
	LatitudeDegrees              float64
	LongitudeDegrees             float64
	AltitudeMeters               float64
	SpeedMetersPerSecond         float32
	BearingDegrees               float32
	HorizontalAccuracyMeters     float32
	AltitudeAccuracyMeters       float32
	SpeedAccuracyMetersPerSecond float32
	BearingAccuracyDegrees       float32
	MslAltitudeMeters            float64
	MslAltitudeAccuracyMeters    float32
}

func (*Location) MarshalParcel

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

func (*Location) UnmarshalParcel

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

type LocationCallbackProxy

type LocationCallbackProxy struct {
	Remote binder.IBinder
}

func NewLocationCallbackProxy

func NewLocationCallbackProxy(
	remote binder.IBinder,
) *LocationCallbackProxy

func (*LocationCallbackProxy) AsBinder

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

func (*LocationCallbackProxy) OnLocation

func (p *LocationCallbackProxy) OnLocation(
	ctx context.Context,
	location *Location,
) error

type LocationCallbackStub

type LocationCallbackStub struct {
	Impl      ILocationCallback
	Transport binder.VersionAwareTransport
}

LocationCallbackStub dispatches incoming binder transactions to a typed ILocationCallback implementation.

func (*LocationCallbackStub) Descriptor

func (s *LocationCallbackStub) Descriptor() string

func (*LocationCallbackStub) OnTransaction

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

type LocationListenerProxy

type LocationListenerProxy struct {
	Remote binder.IBinder
}

func NewLocationListenerProxy

func NewLocationListenerProxy(
	remote binder.IBinder,
) *LocationListenerProxy

func (*LocationListenerProxy) AsBinder

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

func (*LocationListenerProxy) OnFlushComplete

func (p *LocationListenerProxy) OnFlushComplete(
	ctx context.Context,
	requestCode int32,
) error

func (*LocationListenerProxy) OnLocationChanged

func (p *LocationListenerProxy) OnLocationChanged(
	ctx context.Context,
	locations []Location,
	onCompleteCallback os.IRemoteCallback,
) error

func (*LocationListenerProxy) OnProviderEnabledChanged

func (p *LocationListenerProxy) OnProviderEnabledChanged(
	ctx context.Context,
	provider string,
	enabled bool,
) error

type LocationListenerStub

type LocationListenerStub struct {
	Impl      ILocationListener
	Transport binder.VersionAwareTransport
}

LocationListenerStub dispatches incoming binder transactions to a typed ILocationListener implementation.

func (*LocationListenerStub) Descriptor

func (s *LocationListenerStub) Descriptor() string

func (*LocationListenerStub) OnTransaction

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

type LocationManagerProxy

type LocationManagerProxy struct {
	Remote binder.IBinder
}

func GetLocationManager

func GetLocationManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*LocationManagerProxy, error)

GetLocationManager retrieves the LocationService service and returns a typed proxy.

func NewLocationManagerProxy

func NewLocationManagerProxy(
	remote binder.IBinder,
) *LocationManagerProxy

func (*LocationManagerProxy) AddGnssAntennaInfoListener

func (p *LocationManagerProxy) AddGnssAntennaInfoListener(
	ctx context.Context,
	listener IGnssAntennaInfoListener,
	packageName string,
	listenerId string,
) error

func (*LocationManagerProxy) AddGnssMeasurementsListener

func (p *LocationManagerProxy) AddGnssMeasurementsListener(
	ctx context.Context,
	request GnssMeasurementRequest,
	listener IGnssMeasurementsListener,
	packageName string,
	listenerId string,
) error

func (*LocationManagerProxy) AddGnssNavigationMessageListener

func (p *LocationManagerProxy) AddGnssNavigationMessageListener(
	ctx context.Context,
	listener IGnssNavigationMessageListener,
	packageName string,
	listenerId string,
) error

func (*LocationManagerProxy) AddProviderRequestListener

func (p *LocationManagerProxy) AddProviderRequestListener(
	ctx context.Context,
	listener locationProvider.IProviderRequestListener,
) error

func (*LocationManagerProxy) AddTestProvider

func (p *LocationManagerProxy) AddTestProvider(
	ctx context.Context,
	name string,
	properties locationProvider.ProviderProperties,
	locationTags []string,
	packageName string,
) error

func (*LocationManagerProxy) AsBinder

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

func (*LocationManagerProxy) FlushGnssBatch

func (p *LocationManagerProxy) FlushGnssBatch(
	ctx context.Context,
) error

func (*LocationManagerProxy) ForwardGeocode

func (*LocationManagerProxy) GetAdasAllowlist

func (p *LocationManagerProxy) GetAdasAllowlist(
	ctx context.Context,
) (os.PackageTagsList, error)

func (*LocationManagerProxy) GetAllProviders

func (p *LocationManagerProxy) GetAllProviders(
	ctx context.Context,
) ([]string, error)

func (*LocationManagerProxy) GetBackgroundThrottlingWhitelist

func (p *LocationManagerProxy) GetBackgroundThrottlingWhitelist(
	ctx context.Context,
) ([]string, error)

func (*LocationManagerProxy) GetBestProvider

func (p *LocationManagerProxy) GetBestProvider(
	ctx context.Context,
	criteria Criteria,
	enabledOnly bool,
) (string, error)

func (*LocationManagerProxy) GetCurrentLocation

func (p *LocationManagerProxy) GetCurrentLocation(
	ctx context.Context,
	provider string,
	request LocationRequest,
	callback ILocationCallback,
	packageName string,
	listenerId string,
) (os.ICancellationSignal, error)

func (*LocationManagerProxy) GetExtraLocationControllerPackage

func (p *LocationManagerProxy) GetExtraLocationControllerPackage(
	ctx context.Context,
) (string, error)

func (*LocationManagerProxy) GetGnssAntennaInfos

func (p *LocationManagerProxy) GetGnssAntennaInfos(
	ctx context.Context,
) ([]GnssAntennaInfo, error)

func (*LocationManagerProxy) GetGnssBatchSize

func (p *LocationManagerProxy) GetGnssBatchSize(
	ctx context.Context,
) (int32, error)

func (*LocationManagerProxy) GetGnssCapabilities

func (p *LocationManagerProxy) GetGnssCapabilities(
	ctx context.Context,
) (GnssCapabilities, error)

func (*LocationManagerProxy) GetGnssHardwareModelName

func (p *LocationManagerProxy) GetGnssHardwareModelName(
	ctx context.Context,
) (string, error)

func (*LocationManagerProxy) GetGnssTimeMillis

func (p *LocationManagerProxy) GetGnssTimeMillis(
	ctx context.Context,
) (LocationTime, error)

func (*LocationManagerProxy) GetGnssYearOfHardware

func (p *LocationManagerProxy) GetGnssYearOfHardware(
	ctx context.Context,
) (int32, error)

func (*LocationManagerProxy) GetIgnoreSettingsAllowlist

func (p *LocationManagerProxy) GetIgnoreSettingsAllowlist(
	ctx context.Context,
) (os.PackageTagsList, error)

func (*LocationManagerProxy) GetLastLocation

func (p *LocationManagerProxy) GetLastLocation(
	ctx context.Context,
	provider string,
	request LastLocationRequest,
	packageName string,
) (Location, error)

func (*LocationManagerProxy) GetProviderPackages

func (p *LocationManagerProxy) GetProviderPackages(
	ctx context.Context,
	provider string,
) ([]string, error)

func (*LocationManagerProxy) GetProviderProperties

func (p *LocationManagerProxy) GetProviderProperties(
	ctx context.Context,
	provider string,
) (locationProvider.ProviderProperties, error)

func (*LocationManagerProxy) GetProviders

func (p *LocationManagerProxy) GetProviders(
	ctx context.Context,
	criteria Criteria,
	enabledOnly bool,
) ([]string, error)

func (*LocationManagerProxy) HasProvider

func (p *LocationManagerProxy) HasProvider(
	ctx context.Context,
	provider string,
) (bool, error)

func (*LocationManagerProxy) InjectGnssMeasurementCorrections

func (p *LocationManagerProxy) InjectGnssMeasurementCorrections(
	ctx context.Context,
	corrections GnssMeasurementCorrections,
) error

func (*LocationManagerProxy) InjectLocation

func (p *LocationManagerProxy) InjectLocation(
	ctx context.Context,
	location Location,
) error

func (*LocationManagerProxy) IsAdasGnssLocationEnabledForUser

func (p *LocationManagerProxy) IsAdasGnssLocationEnabledForUser(
	ctx context.Context,
) (bool, error)

func (*LocationManagerProxy) IsAutomotiveGnssSuspended

func (p *LocationManagerProxy) IsAutomotiveGnssSuspended(
	ctx context.Context,
) (bool, error)

func (*LocationManagerProxy) IsExtraLocationControllerPackageEnabled

func (p *LocationManagerProxy) IsExtraLocationControllerPackageEnabled(
	ctx context.Context,
) (bool, error)

func (*LocationManagerProxy) IsGeocodeAvailable

func (p *LocationManagerProxy) IsGeocodeAvailable(
	ctx context.Context,
) (bool, error)

func (*LocationManagerProxy) IsLocationEnabledForUser

func (p *LocationManagerProxy) IsLocationEnabledForUser(
	ctx context.Context,
) (bool, error)

func (*LocationManagerProxy) IsProviderEnabledForUser

func (p *LocationManagerProxy) IsProviderEnabledForUser(
	ctx context.Context,
	provider string,
) (bool, error)

func (*LocationManagerProxy) IsProviderPackage

func (p *LocationManagerProxy) IsProviderPackage(
	ctx context.Context,
	provider string,
	packageName string,
) (bool, error)

func (*LocationManagerProxy) RegisterGnssNmeaCallback

func (p *LocationManagerProxy) RegisterGnssNmeaCallback(
	ctx context.Context,
	callback IGnssNmeaListener,
	packageName string,
	listenerId string,
) error

func (*LocationManagerProxy) RegisterGnssStatusCallback

func (p *LocationManagerProxy) RegisterGnssStatusCallback(
	ctx context.Context,
	callback IGnssStatusListener,
	packageName string,
	listenerId string,
) error

func (*LocationManagerProxy) RegisterLocationListener

func (p *LocationManagerProxy) RegisterLocationListener(
	ctx context.Context,
	provider string,
	request LocationRequest,
	listener ILocationListener,
	packageName string,
	listenerId string,
) error

func (*LocationManagerProxy) RegisterLocationPendingIntent

func (p *LocationManagerProxy) RegisterLocationPendingIntent(
	ctx context.Context,
	provider string,
	request LocationRequest,
	pendingIntent types.PendingIntent,
	packageName string,
) error

func (*LocationManagerProxy) RemoveGeofence

func (p *LocationManagerProxy) RemoveGeofence(
	ctx context.Context,
	intent types.PendingIntent,
) error

func (*LocationManagerProxy) RemoveGnssAntennaInfoListener

func (p *LocationManagerProxy) RemoveGnssAntennaInfoListener(
	ctx context.Context,
	listener IGnssAntennaInfoListener,
) error

func (*LocationManagerProxy) RemoveGnssMeasurementsListener

func (p *LocationManagerProxy) RemoveGnssMeasurementsListener(
	ctx context.Context,
	listener IGnssMeasurementsListener,
) error

func (*LocationManagerProxy) RemoveGnssNavigationMessageListener

func (p *LocationManagerProxy) RemoveGnssNavigationMessageListener(
	ctx context.Context,
	listener IGnssNavigationMessageListener,
) error

func (*LocationManagerProxy) RemoveProviderRequestListener

func (p *LocationManagerProxy) RemoveProviderRequestListener(
	ctx context.Context,
	listener locationProvider.IProviderRequestListener,
) error

func (*LocationManagerProxy) RemoveTestProvider

func (p *LocationManagerProxy) RemoveTestProvider(
	ctx context.Context,
	provider string,
	packageName string,
) error

func (*LocationManagerProxy) RequestGeofence

func (p *LocationManagerProxy) RequestGeofence(
	ctx context.Context,
	geofence Geofence,
	intent types.PendingIntent,
	packageName string,
) error

func (*LocationManagerProxy) RequestListenerFlush

func (p *LocationManagerProxy) RequestListenerFlush(
	ctx context.Context,
	provider string,
	listener ILocationListener,
	requestCode int32,
) error

func (*LocationManagerProxy) RequestPendingIntentFlush

func (p *LocationManagerProxy) RequestPendingIntentFlush(
	ctx context.Context,
	provider string,
	pendingIntent types.PendingIntent,
	requestCode int32,
) error

func (*LocationManagerProxy) ReverseGeocode

func (*LocationManagerProxy) SendExtraCommand

func (p *LocationManagerProxy) SendExtraCommand(
	ctx context.Context,
	provider string,
	command string,
	extras os.Bundle,
) error

func (*LocationManagerProxy) SetAdasGnssLocationEnabledForUser

func (p *LocationManagerProxy) SetAdasGnssLocationEnabledForUser(
	ctx context.Context,
	enabled bool,
) error

func (*LocationManagerProxy) SetAutomotiveGnssSuspended

func (p *LocationManagerProxy) SetAutomotiveGnssSuspended(
	ctx context.Context,
	suspended bool,
) error

func (*LocationManagerProxy) SetExtraLocationControllerPackage

func (p *LocationManagerProxy) SetExtraLocationControllerPackage(
	ctx context.Context,
	packageName string,
) error

func (*LocationManagerProxy) SetExtraLocationControllerPackageEnabled

func (p *LocationManagerProxy) SetExtraLocationControllerPackageEnabled(
	ctx context.Context,
	enabled bool,
) error

func (*LocationManagerProxy) SetLocationEnabledForUser

func (p *LocationManagerProxy) SetLocationEnabledForUser(
	ctx context.Context,
	enabled bool,
) error

func (*LocationManagerProxy) SetTestProviderEnabled

func (p *LocationManagerProxy) SetTestProviderEnabled(
	ctx context.Context,
	provider string,
	enabled bool,
	packageName string,
) error

func (*LocationManagerProxy) SetTestProviderLocation

func (p *LocationManagerProxy) SetTestProviderLocation(
	ctx context.Context,
	provider string,
	location Location,
	packageName string,
) error

func (*LocationManagerProxy) StartGnssBatch

func (p *LocationManagerProxy) StartGnssBatch(
	ctx context.Context,
	periodNanos int64,
	listener ILocationListener,
	packageName string,
	listenerId string,
) error

func (*LocationManagerProxy) StopGnssBatch

func (p *LocationManagerProxy) StopGnssBatch(
	ctx context.Context,
) error

func (*LocationManagerProxy) UnregisterGnssNmeaCallback

func (p *LocationManagerProxy) UnregisterGnssNmeaCallback(
	ctx context.Context,
	callback IGnssNmeaListener,
) error

func (*LocationManagerProxy) UnregisterGnssStatusCallback

func (p *LocationManagerProxy) UnregisterGnssStatusCallback(
	ctx context.Context,
	callback IGnssStatusListener,
) error

func (*LocationManagerProxy) UnregisterLocationListener

func (p *LocationManagerProxy) UnregisterLocationListener(
	ctx context.Context,
	listener ILocationListener,
) error

func (*LocationManagerProxy) UnregisterLocationPendingIntent

func (p *LocationManagerProxy) UnregisterLocationPendingIntent(
	ctx context.Context,
	pendingIntent types.PendingIntent,
) error

type LocationManagerStub

type LocationManagerStub struct {
	Impl      ILocationManager
	Transport binder.VersionAwareTransport
}

LocationManagerStub dispatches incoming binder transactions to a typed ILocationManager implementation.

func (*LocationManagerStub) Descriptor

func (s *LocationManagerStub) Descriptor() string

func (*LocationManagerStub) OnTransaction

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

type LocationProvider

type LocationProvider = string

LocationProvider is a typed string constant.

const (
	FusedProvider       LocationProvider = "fused"
	GpsHardwareProvider LocationProvider = "gps_hardware"
	GpsProvider         LocationProvider = "gps"
	NetworkProvider     LocationProvider = "network"
	PassiveProvider     LocationProvider = "passive"
)

type LocationRequest

type LocationRequest struct {
	Provider                string
	IntervalMillis          int64
	Quality                 int32
	ExpireAtRealtimeMillis  int64
	DurationMillis          int64
	MaxUpdates              int32
	MinUpdateIntervalMillis int64
	MinUpdateDistanceMeters float32
	MaxUpdateDelayMillis    int64
	HideFromAppOps          bool
	AdasGnssBypass          bool
	Bypass                  bool
	LowPower                bool
	WorkSource              *types.WorkSource
}

func (*LocationRequest) MarshalParcel

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

func (*LocationRequest) UnmarshalParcel

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

type LocationResult

type LocationResult struct {
}

func (*LocationResult) MarshalParcel

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

func (*LocationResult) UnmarshalParcel

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

type LocationTime

type LocationTime struct {
	UnixEpochTimeMillis  int64
	ElapsedRealtimeNanos int64
}

func (*LocationTime) MarshalParcel

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

func (*LocationTime) UnmarshalParcel

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

type NetInitiatedListenerProxy

type NetInitiatedListenerProxy struct {
	Remote binder.IBinder
}

func NewNetInitiatedListenerProxy

func NewNetInitiatedListenerProxy(
	remote binder.IBinder,
) *NetInitiatedListenerProxy

func (*NetInitiatedListenerProxy) AsBinder

func (*NetInitiatedListenerProxy) SendNiResponse

func (p *NetInitiatedListenerProxy) SendNiResponse(
	ctx context.Context,
	notifId int32,
	userResponse int32,
) (bool, error)

type NetInitiatedListenerStub

type NetInitiatedListenerStub struct {
	Impl      INetInitiatedListener
	Transport binder.VersionAwareTransport
}

NetInitiatedListenerStub dispatches incoming binder transactions to a typed INetInitiatedListener implementation.

func (*NetInitiatedListenerStub) Descriptor

func (s *NetInitiatedListenerStub) Descriptor() string

func (*NetInitiatedListenerStub) OnTransaction

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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