Documentation
¶
Index ¶
- Constants
- type Address
- type Country
- type CountryDetectorProxy
- func (p *CountryDetectorProxy) AddCountryListener(ctx context.Context, listener ICountryListener) error
- func (p *CountryDetectorProxy) AsBinder() binder.IBinder
- func (p *CountryDetectorProxy) DetectCountry(ctx context.Context) (Country, error)
- func (p *CountryDetectorProxy) RemoveCountryListener(ctx context.Context, listener ICountryListener) error
- type CountryDetectorStub
- type CountryListenerProxy
- type CountryListenerStub
- type Criteria
- type FusedBatchOptions
- type FusedGeofenceHardwareProxy
- func (p *FusedGeofenceHardwareProxy) AddGeofences(ctx context.Context, ...) error
- func (p *FusedGeofenceHardwareProxy) AsBinder() binder.IBinder
- func (p *FusedGeofenceHardwareProxy) IsSupported(ctx context.Context) (bool, error)
- func (p *FusedGeofenceHardwareProxy) ModifyGeofenceOptions(ctx context.Context, geofenceId int32, lastTransition int32, ...) error
- func (p *FusedGeofenceHardwareProxy) PauseMonitoringGeofence(ctx context.Context, geofenceId int32) error
- func (p *FusedGeofenceHardwareProxy) RemoveGeofences(ctx context.Context, geofenceIds []int32) error
- func (p *FusedGeofenceHardwareProxy) ResumeMonitoringGeofence(ctx context.Context, geofenceId int32, monitorTransitions int32) error
- type FusedGeofenceHardwareStub
- type Geofence
- type GeofenceProviderProxy
- type GeofenceProviderStub
- type GnssAntennaInfo
- type GnssAntennaInfoListenerProxy
- type GnssAntennaInfoListenerStub
- type GnssAutomaticGainControl
- type GnssCapabilities
- type GnssMeasurementCorrections
- type GnssMeasurementRequest
- type GnssMeasurementsEvent
- type GnssMeasurementsListenerProxy
- type GnssMeasurementsListenerStub
- type GnssNavigationMessage
- type GnssNavigationMessageListenerProxy
- func (p *GnssNavigationMessageListenerProxy) AsBinder() binder.IBinder
- func (p *GnssNavigationMessageListenerProxy) OnGnssNavigationMessageReceived(ctx context.Context, event GnssNavigationMessage) error
- func (p *GnssNavigationMessageListenerProxy) OnStatusChanged(ctx context.Context, status int32) error
- type GnssNavigationMessageListenerStub
- type GnssNmeaListenerProxy
- type GnssNmeaListenerStub
- type GnssRequest
- type GnssSignalType
- type GnssStatus
- type GnssStatusListenerProxy
- func (p *GnssStatusListenerProxy) AsBinder() binder.IBinder
- func (p *GnssStatusListenerProxy) OnFirstFix(ctx context.Context, ttff int32) error
- func (p *GnssStatusListenerProxy) OnGnssStarted(ctx context.Context) error
- func (p *GnssStatusListenerProxy) OnGnssStopped(ctx context.Context) error
- func (p *GnssStatusListenerProxy) OnSvStatusChanged(ctx context.Context, gnssStatus GnssStatus) error
- type GnssStatusListenerStub
- type GpsGeofenceHardwareProxy
- func (p *GpsGeofenceHardwareProxy) AddCircularHardwareGeofence(ctx context.Context, geofenceId int32, latitude float64, longitude float64, ...) (bool, error)
- func (p *GpsGeofenceHardwareProxy) AsBinder() binder.IBinder
- func (p *GpsGeofenceHardwareProxy) IsHardwareGeofenceSupported(ctx context.Context) (bool, error)
- func (p *GpsGeofenceHardwareProxy) PauseHardwareGeofence(ctx context.Context, geofenceId int32) (bool, error)
- func (p *GpsGeofenceHardwareProxy) RemoveHardwareGeofence(ctx context.Context, geofenceId int32) (bool, error)
- func (p *GpsGeofenceHardwareProxy) ResumeHardwareGeofence(ctx context.Context, geofenceId int32, monitorTransition int32) (bool, error)
- type GpsGeofenceHardwareStub
- type ICountryDetector
- type ICountryDetectorServer
- type ICountryListener
- type ICountryListenerServer
- type IFusedGeofenceHardware
- type IFusedGeofenceHardwareServer
- type IGeofenceProvider
- type IGeofenceProviderServer
- type IGnssAntennaInfoListener
- type IGnssAntennaInfoListenerServer
- type IGnssMeasurementsListener
- type IGnssMeasurementsListenerServer
- type IGnssNavigationMessageListener
- type IGnssNavigationMessageListenerServer
- type IGnssNmeaListener
- type IGnssNmeaListenerServer
- type IGnssStatusListener
- type IGnssStatusListenerServer
- type IGpsGeofenceHardware
- type IGpsGeofenceHardwareServer
- type ILocationCallback
- type ILocationCallbackServer
- type ILocationListener
- type ILocationListenerServer
- type ILocationManager
- type ILocationManagerServer
- type INetInitiatedListener
- type INetInitiatedListenerServer
- type LastLocationRequest
- type Location
- type LocationCallbackProxy
- type LocationCallbackStub
- type LocationListenerProxy
- func (p *LocationListenerProxy) AsBinder() binder.IBinder
- func (p *LocationListenerProxy) OnFlushComplete(ctx context.Context, requestCode int32) error
- func (p *LocationListenerProxy) OnLocationChanged(ctx context.Context, locations []Location, ...) error
- func (p *LocationListenerProxy) OnProviderEnabledChanged(ctx context.Context, provider string, enabled bool) error
- type LocationListenerStub
- type LocationManagerProxy
- func (p *LocationManagerProxy) AddGnssAntennaInfoListener(ctx context.Context, listener IGnssAntennaInfoListener, packageName string, ...) error
- func (p *LocationManagerProxy) AddGnssMeasurementsListener(ctx context.Context, request GnssMeasurementRequest, ...) error
- func (p *LocationManagerProxy) AddGnssNavigationMessageListener(ctx context.Context, listener IGnssNavigationMessageListener, ...) error
- func (p *LocationManagerProxy) AddProviderRequestListener(ctx context.Context, listener locationProvider.IProviderRequestListener) error
- func (p *LocationManagerProxy) AddTestProvider(ctx context.Context, name string, ...) error
- func (p *LocationManagerProxy) AsBinder() binder.IBinder
- func (p *LocationManagerProxy) FlushGnssBatch(ctx context.Context) error
- func (p *LocationManagerProxy) ForwardGeocode(ctx context.Context, request locationProvider.ForwardGeocodeRequest, ...) error
- func (p *LocationManagerProxy) GetAdasAllowlist(ctx context.Context) (os.PackageTagsList, error)
- func (p *LocationManagerProxy) GetAllProviders(ctx context.Context) ([]string, error)
- func (p *LocationManagerProxy) GetBackgroundThrottlingWhitelist(ctx context.Context) ([]string, error)
- func (p *LocationManagerProxy) GetBestProvider(ctx context.Context, criteria Criteria, enabledOnly bool) (string, error)
- func (p *LocationManagerProxy) GetCurrentLocation(ctx context.Context, provider string, request LocationRequest, ...) (os.ICancellationSignal, error)
- func (p *LocationManagerProxy) GetExtraLocationControllerPackage(ctx context.Context) (string, error)
- func (p *LocationManagerProxy) GetGnssAntennaInfos(ctx context.Context) ([]GnssAntennaInfo, error)
- func (p *LocationManagerProxy) GetGnssBatchSize(ctx context.Context) (int32, error)
- func (p *LocationManagerProxy) GetGnssCapabilities(ctx context.Context) (GnssCapabilities, error)
- func (p *LocationManagerProxy) GetGnssHardwareModelName(ctx context.Context) (string, error)
- func (p *LocationManagerProxy) GetGnssTimeMillis(ctx context.Context) (LocationTime, error)
- func (p *LocationManagerProxy) GetGnssYearOfHardware(ctx context.Context) (int32, error)
- func (p *LocationManagerProxy) GetIgnoreSettingsAllowlist(ctx context.Context) (os.PackageTagsList, error)
- func (p *LocationManagerProxy) GetLastLocation(ctx context.Context, provider string, request LastLocationRequest, ...) (Location, error)
- func (p *LocationManagerProxy) GetProviderPackages(ctx context.Context, provider string) ([]string, error)
- func (p *LocationManagerProxy) GetProviderProperties(ctx context.Context, provider string) (locationProvider.ProviderProperties, error)
- func (p *LocationManagerProxy) GetProviders(ctx context.Context, criteria Criteria, enabledOnly bool) ([]string, error)
- func (p *LocationManagerProxy) HasProvider(ctx context.Context, provider string) (bool, error)
- func (p *LocationManagerProxy) InjectGnssMeasurementCorrections(ctx context.Context, corrections GnssMeasurementCorrections) error
- func (p *LocationManagerProxy) InjectLocation(ctx context.Context, location Location) error
- func (p *LocationManagerProxy) IsAdasGnssLocationEnabledForUser(ctx context.Context) (bool, error)
- func (p *LocationManagerProxy) IsAutomotiveGnssSuspended(ctx context.Context) (bool, error)
- func (p *LocationManagerProxy) IsExtraLocationControllerPackageEnabled(ctx context.Context) (bool, error)
- func (p *LocationManagerProxy) IsGeocodeAvailable(ctx context.Context) (bool, error)
- func (p *LocationManagerProxy) IsLocationEnabledForUser(ctx context.Context) (bool, error)
- func (p *LocationManagerProxy) IsProviderEnabledForUser(ctx context.Context, provider string) (bool, error)
- func (p *LocationManagerProxy) IsProviderPackage(ctx context.Context, provider string, packageName string) (bool, error)
- func (p *LocationManagerProxy) RegisterGnssNmeaCallback(ctx context.Context, callback IGnssNmeaListener, packageName string, ...) error
- func (p *LocationManagerProxy) RegisterGnssStatusCallback(ctx context.Context, callback IGnssStatusListener, packageName string, ...) error
- func (p *LocationManagerProxy) RegisterLocationListener(ctx context.Context, provider string, request LocationRequest, ...) error
- func (p *LocationManagerProxy) RegisterLocationPendingIntent(ctx context.Context, provider string, request LocationRequest, ...) error
- func (p *LocationManagerProxy) RemoveGeofence(ctx context.Context, intent types.PendingIntent) error
- func (p *LocationManagerProxy) RemoveGnssAntennaInfoListener(ctx context.Context, listener IGnssAntennaInfoListener) error
- func (p *LocationManagerProxy) RemoveGnssMeasurementsListener(ctx context.Context, listener IGnssMeasurementsListener) error
- func (p *LocationManagerProxy) RemoveGnssNavigationMessageListener(ctx context.Context, listener IGnssNavigationMessageListener) error
- func (p *LocationManagerProxy) RemoveProviderRequestListener(ctx context.Context, listener locationProvider.IProviderRequestListener) error
- func (p *LocationManagerProxy) RemoveTestProvider(ctx context.Context, provider string, packageName string) error
- func (p *LocationManagerProxy) RequestGeofence(ctx context.Context, geofence Geofence, intent types.PendingIntent, ...) error
- func (p *LocationManagerProxy) RequestListenerFlush(ctx context.Context, provider string, listener ILocationListener, ...) error
- func (p *LocationManagerProxy) RequestPendingIntentFlush(ctx context.Context, provider string, pendingIntent types.PendingIntent, ...) error
- func (p *LocationManagerProxy) ReverseGeocode(ctx context.Context, request locationProvider.ReverseGeocodeRequest, ...) error
- func (p *LocationManagerProxy) SendExtraCommand(ctx context.Context, provider string, command string, extras os.Bundle) error
- func (p *LocationManagerProxy) SetAdasGnssLocationEnabledForUser(ctx context.Context, enabled bool) error
- func (p *LocationManagerProxy) SetAutomotiveGnssSuspended(ctx context.Context, suspended bool) error
- func (p *LocationManagerProxy) SetExtraLocationControllerPackage(ctx context.Context, packageName string) error
- func (p *LocationManagerProxy) SetExtraLocationControllerPackageEnabled(ctx context.Context, enabled bool) error
- func (p *LocationManagerProxy) SetLocationEnabledForUser(ctx context.Context, enabled bool) error
- func (p *LocationManagerProxy) SetTestProviderEnabled(ctx context.Context, provider string, enabled bool, packageName string) error
- func (p *LocationManagerProxy) SetTestProviderLocation(ctx context.Context, provider string, location Location, packageName string) error
- func (p *LocationManagerProxy) StartGnssBatch(ctx context.Context, periodNanos int64, listener ILocationListener, ...) error
- func (p *LocationManagerProxy) StopGnssBatch(ctx context.Context) error
- func (p *LocationManagerProxy) UnregisterGnssNmeaCallback(ctx context.Context, callback IGnssNmeaListener) error
- func (p *LocationManagerProxy) UnregisterGnssStatusCallback(ctx context.Context, callback IGnssStatusListener) error
- func (p *LocationManagerProxy) UnregisterLocationListener(ctx context.Context, listener ILocationListener) error
- func (p *LocationManagerProxy) UnregisterLocationPendingIntent(ctx context.Context, pendingIntent types.PendingIntent) error
- type LocationManagerStub
- type LocationProvider
- type LocationRequest
- type LocationResult
- type LocationTime
- type NetInitiatedListenerProxy
- type NetInitiatedListenerStub
Constants ¶
const ( TransactionICountryDetectorDetectCountry = binder.FirstCallTransaction + 0 TransactionICountryDetectorAddCountryListener = binder.FirstCallTransaction + 1 TransactionICountryDetectorRemoveCountryListener = binder.FirstCallTransaction + 2 )
const ( MethodICountryDetectorDetectCountry = "detectCountry" MethodICountryDetectorAddCountryListener = "addCountryListener" MethodICountryDetectorRemoveCountryListener = "removeCountryListener" )
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 )
const ( MethodIFusedGeofenceHardwareIsSupported = "isSupported" MethodIFusedGeofenceHardwareAddGeofences = "addGeofences" MethodIFusedGeofenceHardwareRemoveGeofences = "removeGeofences" MethodIFusedGeofenceHardwarePauseMonitoringGeofence = "pauseMonitoringGeofence" MethodIFusedGeofenceHardwareResumeMonitoringGeofence = "resumeMonitoringGeofence" MethodIFusedGeofenceHardwareModifyGeofenceOptions = "modifyGeofenceOptions" )
const ( TransactionIGnssMeasurementsListenerOnGnssMeasurementsReceived = binder.FirstCallTransaction + 0 TransactionIGnssMeasurementsListenerOnStatusChanged = binder.FirstCallTransaction + 1 )
const ( MethodIGnssMeasurementsListenerOnGnssMeasurementsReceived = "onGnssMeasurementsReceived" MethodIGnssMeasurementsListenerOnStatusChanged = "onStatusChanged" )
const ( )
const ( )
const ( TransactionIGnssStatusListenerOnGnssStarted = binder.FirstCallTransaction + 0 TransactionIGnssStatusListenerOnGnssStopped = binder.FirstCallTransaction + 1 TransactionIGnssStatusListenerOnFirstFix = binder.FirstCallTransaction + 2 TransactionIGnssStatusListenerOnSvStatusChanged = binder.FirstCallTransaction + 3 )
const ( MethodIGnssStatusListenerOnGnssStarted = "onGnssStarted" MethodIGnssStatusListenerOnGnssStopped = "onGnssStopped" MethodIGnssStatusListenerOnFirstFix = "onFirstFix" MethodIGnssStatusListenerOnSvStatusChanged = "onSvStatusChanged" )
const ( TransactionIGpsGeofenceHardwareIsHardwareGeofenceSupported = binder.FirstCallTransaction + 0 TransactionIGpsGeofenceHardwareAddCircularHardwareGeofence = binder.FirstCallTransaction + 1 TransactionIGpsGeofenceHardwareRemoveHardwareGeofence = binder.FirstCallTransaction + 2 TransactionIGpsGeofenceHardwarePauseHardwareGeofence = binder.FirstCallTransaction + 3 TransactionIGpsGeofenceHardwareResumeHardwareGeofence = binder.FirstCallTransaction + 4 )
const ( MethodIGpsGeofenceHardwareIsHardwareGeofenceSupported = "isHardwareGeofenceSupported" MethodIGpsGeofenceHardwareAddCircularHardwareGeofence = "addCircularHardwareGeofence" MethodIGpsGeofenceHardwareRemoveHardwareGeofence = "removeHardwareGeofence" MethodIGpsGeofenceHardwarePauseHardwareGeofence = "pauseHardwareGeofence" MethodIGpsGeofenceHardwareResumeHardwareGeofence = "resumeHardwareGeofence" )
const ( TransactionILocationListenerOnLocationChanged = binder.FirstCallTransaction + 0 TransactionILocationListenerOnProviderEnabledChanged = binder.FirstCallTransaction + 1 TransactionILocationListenerOnFlushComplete = binder.FirstCallTransaction + 2 )
const ( MethodILocationListenerOnLocationChanged = "onLocationChanged" MethodILocationListenerOnProviderEnabledChanged = "onProviderEnabledChanged" MethodILocationListenerOnFlushComplete = "onFlushComplete" )
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 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 )
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" 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" )
const DescriptorICountryDetector = "android.location.ICountryDetector"
const DescriptorICountryListener = "android.location.ICountryListener"
const DescriptorIFusedGeofenceHardware = "android.location.IFusedGeofenceHardware"
const DescriptorIGeofenceProvider = "android.location.IGeofenceProvider"
const DescriptorIGnssAntennaInfoListener = "android.location.IGnssAntennaInfoListener"
const DescriptorIGnssMeasurementsListener = "android.location.IGnssMeasurementsListener"
const DescriptorIGnssNmeaListener = "android.location.IGnssNmeaListener"
const DescriptorIGnssStatusListener = "android.location.IGnssStatusListener"
const DescriptorIGpsGeofenceHardware = "android.location.IGpsGeofenceHardware"
const DescriptorILocationCallback = "android.location.ILocationCallback"
const DescriptorILocationListener = "android.location.ILocationListener"
const DescriptorILocationManager = "android.location.ILocationManager"
const DescriptorINetInitiatedListener = "android.location.INetInitiatedListener"
const (
MethodICountryListenerOnCountryDetected = "onCountryDetected"
)
const (
MethodIGeofenceProviderSetGeofenceHardware = "setGeofenceHardware"
)
const (
MethodIGnssAntennaInfoListenerOnGnssAntennaInfoChanged = "onGnssAntennaInfoChanged"
)
const (
MethodIGnssNmeaListenerOnNmeaReceived = "onNmeaReceived"
)
const (
MethodILocationCallbackOnLocation = "onLocation"
)
const (
MethodINetInitiatedListenerSendNiResponse = "sendNiResponse"
)
const (
TransactionICountryListenerOnCountryDetected = binder.FirstCallTransaction + 0
)
const (
TransactionIGeofenceProviderSetGeofenceHardware = binder.FirstCallTransaction + 0
)
const (
TransactionIGnssAntennaInfoListenerOnGnssAntennaInfoChanged = binder.FirstCallTransaction + 0
)
const (
TransactionIGnssNmeaListenerOnNmeaReceived = binder.FirstCallTransaction + 0
)
const (
TransactionILocationCallbackOnLocation = binder.FirstCallTransaction + 0
)
const (
TransactionINetInitiatedListenerSendNiResponse = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type CountryDetectorProxy ¶
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 ¶
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 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 ¶
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 (p *FusedGeofenceHardwareProxy) AsBinder() binder.IBinder
func (*FusedGeofenceHardwareProxy) IsSupported ¶
func (p *FusedGeofenceHardwareProxy) IsSupported( ctx context.Context, ) (bool, error)
func (*FusedGeofenceHardwareProxy) ModifyGeofenceOptions ¶
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 ¶
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 GeofenceProviderProxy ¶
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 ¶
func NewGnssAntennaInfoListenerProxy ¶
func NewGnssAntennaInfoListenerProxy( remote binder.IBinder, ) *GnssAntennaInfoListenerProxy
func (*GnssAntennaInfoListenerProxy) AsBinder ¶
func (p *GnssAntennaInfoListenerProxy) AsBinder() binder.IBinder
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 ¶
func (*GnssMeasurementsEvent) MarshalParcel ¶
func (s *GnssMeasurementsEvent) MarshalParcel( p *parcel.Parcel, ) error
func (*GnssMeasurementsEvent) UnmarshalParcel ¶
func (s *GnssMeasurementsEvent) UnmarshalParcel( p *parcel.Parcel, ) error
type GnssMeasurementsListenerProxy ¶
func NewGnssMeasurementsListenerProxy ¶
func NewGnssMeasurementsListenerProxy( remote binder.IBinder, ) *GnssMeasurementsListenerProxy
func (*GnssMeasurementsListenerProxy) AsBinder ¶
func (p *GnssMeasurementsListenerProxy) AsBinder() binder.IBinder
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 ¶
func (s *GnssMeasurementsListenerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type GnssNavigationMessage ¶
type GnssNavigationMessage struct {
}
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 {
}
func NewGnssNavigationMessageListenerProxy ¶
func NewGnssNavigationMessageListenerProxy( remote binder.IBinder, ) *GnssNavigationMessageListenerProxy
func (*GnssNavigationMessageListenerProxy) AsBinder ¶
func (p *GnssNavigationMessageListenerProxy) AsBinder() binder.IBinder
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 {
}
GnssNavigationMessageListenerStub dispatches incoming binder transactions to a typed IGnssNavigationMessageListener implementation.
func (*GnssNavigationMessageListenerStub) Descriptor ¶
func (s *GnssNavigationMessageListenerStub) Descriptor() string
func (*GnssNavigationMessageListenerStub) OnTransaction ¶
func (s *GnssNavigationMessageListenerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type GnssNmeaListenerProxy ¶
func NewGnssNmeaListenerProxy ¶
func NewGnssNmeaListenerProxy( remote binder.IBinder, ) *GnssNmeaListenerProxy
func (*GnssNmeaListenerProxy) AsBinder ¶
func (p *GnssNmeaListenerProxy) AsBinder() binder.IBinder
func (*GnssNmeaListenerProxy) OnNmeaReceived ¶
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 ¶
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 ¶
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 ¶
func NewGpsGeofenceHardwareProxy ¶
func NewGpsGeofenceHardwareProxy( remote binder.IBinder, ) *GpsGeofenceHardwareProxy
func (*GpsGeofenceHardwareProxy) AddCircularHardwareGeofence ¶
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 (*GpsGeofenceHardwareProxy) RemoveHardwareGeofence ¶
func (*GpsGeofenceHardwareProxy) ResumeHardwareGeofence ¶
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 {
}
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 {
}
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
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
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
}
type LocationCallbackProxy ¶
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 ¶
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 ¶
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 ¶
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 (p *LocationManagerProxy) ForwardGeocode( ctx context.Context, request locationProvider.ForwardGeocodeRequest, callback locationProvider.IGeocodeCallback, ) error
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 (*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 (*LocationManagerProxy) GetProviderProperties ¶
func (p *LocationManagerProxy) GetProviderProperties( ctx context.Context, provider string, ) (locationProvider.ProviderProperties, error)
func (*LocationManagerProxy) GetProviders ¶
func (*LocationManagerProxy) HasProvider ¶
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 (*LocationManagerProxy) IsProviderPackage ¶
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 (*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 (p *LocationManagerProxy) ReverseGeocode( ctx context.Context, request locationProvider.ReverseGeocodeRequest, callback locationProvider.IGeocodeCallback, ) error
func (*LocationManagerProxy) SendExtraCommand ¶
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 (*LocationManagerProxy) SetTestProviderLocation ¶
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 ¶
func (*LocationTime) MarshalParcel ¶
func (s *LocationTime) MarshalParcel( p *parcel.Parcel, ) error
func (*LocationTime) UnmarshalParcel ¶
func (s *LocationTime) UnmarshalParcel( p *parcel.Parcel, ) error
type NetInitiatedListenerProxy ¶
func NewNetInitiatedListenerProxy ¶
func NewNetInitiatedListenerProxy( remote binder.IBinder, ) *NetInitiatedListenerProxy
func (*NetInitiatedListenerProxy) AsBinder ¶
func (p *NetInitiatedListenerProxy) AsBinder() binder.IBinder
func (*NetInitiatedListenerProxy) SendNiResponse ¶
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)
Source Files
¶
- address.go
- country.go
- criteria.go
- fusedbatchoptions.go
- geofence.go
- get_location.go
- gnssantennainfo.go
- gnssautomaticgaincontrol.go
- gnsscapabilities.go
- gnssmeasurementcorrections.go
- gnssmeasurementrequest.go
- gnssmeasurementsevent.go
- gnssnavigationmessage.go
- gnssrequest.go
- gnsssignaltype.go
- gnssstatus.go
- icountrydetector.go
- icountrylistener.go
- ifusedgeofencehardware.go
- igeofenceprovider.go
- ignssantennainfolistener.go
- ignssmeasurementslistener.go
- ignssnavigationmessagelistener.go
- ignssnmealistener.go
- ignssstatuslistener.go
- igpsgeofencehardware.go
- ilocationcallback.go
- ilocationlistener.go
- ilocationmanager.go
- inetinitiatedlistener.go
- lastlocationrequest.go
- location.go
- locationprovider_constants_gen.go
- locationrequest.go
- locationresult.go
- locationtime.go