Home
last modified time | relevance | path

Searched refs:mLocationManager (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/
DLocationBasedCountryDetector.java63 private LocationManager mLocationManager; field in LocationBasedCountryDetector
68 mLocationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE); in LocationBasedCountryDetector()
98 mLocationManager.requestLocationUpdates(provider, 0, 0, listener); in registerListener()
105 mLocationManager.removeUpdates(listener); in unregisterListener()
112 List<String> providers = mLocationManager.getAllProviders(); in getLastKnownLocation()
115 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
136 mEnabledProviders = mLocationManager.getProviders(true); in getEnabledProviders()
DPassiveProvider.java50 private final ILocationManager mLocationManager; field in PassiveProvider
54 mLocationManager = locationManager; in PassiveProvider()
103 mLocationManager.reportLocation(location, true); in updateLocation()
DMockProvider.java43 private final ILocationManager mLocationManager; field in MockProvider
61 mLocationManager = locationManager; in MockProvider()
112 mLocationManager.reportLocation(mLocation, false); in setLocation()
DGeofenceManager.java71 private final LocationManager mLocationManager; field in GeofenceManager
111 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in GeofenceManager()
215 location = mLocationManager.getLastLocation(); in getFreshLocationLocked()
316 mLocationManager.requestLocationUpdates(request, this, mHandler.getLooper()); in updateFences()
325 mLocationManager.removeUpdates(this); in updateFences()
/frameworks/base/location/java/android/location/
DGpsNavigationMessageListenerTransport.java29 private final ILocationManager mLocationManager; field in GpsNavigationMessageListenerTransport
37 mLocationManager = locationManager; in GpsNavigationMessageListenerTransport()
42 return mLocationManager.addGpsNavigationMessageListener( in registerWithServer()
49 mLocationManager.removeGpsNavigationMessageListener(mListenerTransport); in unregisterFromServer()
DGpsMeasurementListenerTransport.java29 private final ILocationManager mLocationManager; field in GpsMeasurementListenerTransport
35 mLocationManager = locationManager; in GpsMeasurementListenerTransport()
40 return mLocationManager.addGpsMeasurementsListener( in registerWithServer()
47 mLocationManager.removeGpsMeasurementsListener(mListenerTransport); in unregisterFromServer()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DLocationStatsAggregator.java62 private LocationManager mLocationManager; field in LocationStatsAggregator
77 mLocationManager = in LocationStatsAggregator()
153 List<String> providers = mLocationManager.getAllProviders(); in getLastKnownLocation()
161 Location location = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
190 String provider = mLocationManager.getBestProvider(mCriteria, true); in onReceive()
192 mLocationManager.requestSingleUpdate(provider, mLocationListener, in onReceive()
230 mLocationManager.removeUpdates(this);
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java60 LocationManager mLocationManager; field in TwilightService
75 mLocationManager = (LocationManager) getContext().getSystemService( in onStart()
256 mLocationManager.removeUpdates(mEmptyLocationListener); in handleMessage()
265 mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); in handleMessage()
274 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, in handleMessage()
290 mLocationManager.isProviderEnabled(LocationManager.PASSIVE_PROVIDER); in handleMessage()
299 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, in handleMessage()
323 mLocationManager.getProviders(new Criteria(), true).iterator(); in retrieveLocation()
326 mLocationManager.getLastKnownLocation(providers.next()); in retrieveLocation()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java51 private final LocationManager mLocationManager; field in FusionEngine
67 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in FusionEngine()
75 mStats.get(GPS).available = mLocationManager.isProviderEnabled(GPS); in FusionEngine()
77 mStats.get(NETWORK).available = mLocationManager.isProviderEnabled(NETWORK); in FusionEngine()
139 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider()
142 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider()
152 mLocationManager.removeUpdates(this); //TODO GLOBAL in disableProvider()
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java59 protected final ILocationManager mLocationManager; field in LocationProviderBase
118 mLocationManager = ILocationManager.Stub.asInterface(b); in LocationProviderBase()
136 mLocationManager.reportLocation(location, false); in reportLocation()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java102 private final LocationManager mLocationManager; field in GpsNetInitiatedHandler
190 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler()
225 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()