Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wrapper/
DLocationManagerWrapper.java29 private LocationManager mLocationManager; field in LocationManagerWrapper
32 mLocationManager = locationManager; in LocationManagerWrapper()
37 return mLocationManager; in getLocationManager()
42 return mLocationManager.isProviderEnabled(provider); in isProviderEnabled()
47 mLocationManager.setProviderEnabledForUser(provider, enabled, userHandle); in setProviderEnabledForUser()
52 return mLocationManager.isLocationEnabled(); in isLocationEnabled()
57 return mLocationManager.isLocationEnabledForUser(userHandle); in isLocationEnabledForUser()
62 mLocationManager.setLocationEnabledForUser(enabled, userHandle); in setLocationEnabledForUser()
/frameworks/base/location/java/android/location/
DBatchedLocationCallbackTransport.java31 private final ILocationManager mLocationManager; field in BatchedLocationCallbackTransport
37 mLocationManager = locationManager; in BatchedLocationCallbackTransport()
42 return mLocationManager.addGnssBatchingCallback( in registerWithServer()
49 mLocationManager.removeGnssBatchingCallback(); in unregisterFromServer()
DGnssMeasurementCallbackTransport.java29 private final ILocationManager mLocationManager; field in GnssMeasurementCallbackTransport
35 mLocationManager = locationManager; in GnssMeasurementCallbackTransport()
40 return mLocationManager.addGnssMeasurementsListener( in registerWithServer()
47 mLocationManager.removeGnssMeasurementsListener(mListenerTransport); in unregisterFromServer()
DGnssNavigationMessageCallbackTransport.java29 private final ILocationManager mLocationManager; field in GnssNavigationMessageCallbackTransport
37 mLocationManager = locationManager; in GnssNavigationMessageCallbackTransport()
42 return mLocationManager.addGnssNavigationMessageListener( in registerWithServer()
49 mLocationManager.removeGnssNavigationMessageListener(mListenerTransport); in unregisterFromServer()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java63 private LocationManager mLocationManager; field in TwilightService
121 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE); in onBootPhase()
157 mLocationManager.requestLocationUpdates( in startListening()
161 if (mLocationManager.getLastLocation() == null) { in startListening()
162 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { in startListening()
163 mLocationManager.requestSingleUpdate( in startListening()
165 } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { in startListening()
166 mLocationManager.requestSingleUpdate( in startListening()
202 mLocationManager.removeUpdates(this); in stopListening()
210 : mLocationManager.getLastLocation(); in updateTwilightState()
/frameworks/base/services/core/java/com/android/server/location/
DLocationBasedCountryDetector.java64 private LocationManager mLocationManager; field in LocationBasedCountryDetector
69 mLocationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE); in LocationBasedCountryDetector()
101 mLocationManager.requestLocationUpdates(provider, 0, 0, listener); in registerListener()
113 mLocationManager.removeUpdates(listener); in unregisterListener()
125 List<String> providers = mLocationManager.getAllProviders(); in getLastKnownLocation()
128 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
152 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.java76 private final LocationManager mLocationManager; field in GeofenceManager
122 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in GeofenceManager()
249 location = mLocationManager.getLastLocation(); in getFreshLocationLocked()
350 mLocationManager.requestLocationUpdates(request, this, mHandler.getLooper()); in updateFences()
359 mLocationManager.removeUpdates(this); in updateFences()
/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()
133 if (mLocationManager.isProviderEnabled(name)) { in enableProvider()
138 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider()
141 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider()
152 mLocationManager.removeUpdates(this); //TODO GLOBAL in disableProvider()
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java57 private LocationManager mLocationManager; field in SensorNotificationService
86 mLocationManager = in onBootPhase()
88 if (mLocationManager == null) { in onBootPhase()
91 mLocationManager.requestLocationUpdates( in onBootPhase()
DDeviceIdleController.java127 private LocationManager mLocationManager; field in DeviceIdleController
1496 mLocationManager = (LocationManager) getContext().getSystemService( in onBootPhase()
2246 if (mLocationManager != null in stepIdleStateLocked()
2247 && mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) { in stepIdleStateLocked()
2248 mLocationManager.requestLocationUpdates(mLocationRequest, in stepIdleStateLocked()
2254 if (mLocationManager != null in stepIdleStateLocked()
2255 && mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { in stepIdleStateLocked()
2257 mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 5, in stepIdleStateLocked()
2505 mLocationManager.removeUpdates(mGenericLocationListener); in cancelLocatingLocked()
2506 mLocationManager.removeUpdates(mGpsLocationListener); in cancelLocatingLocked()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
DTwilightManager.java64 private final LocationManager mLocationManager; field in TwilightManager
71 mLocationManager = locationManager; in TwilightManager()
134 if (mLocationManager.isProviderEnabled(provider)) { in getLastKnownLocationForProvider()
135 return mLocationManager.getLastKnownLocation(provider); in getLastKnownLocationForProvider()
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java60 protected final ILocationManager mLocationManager; field in LocationProviderBase
119 mLocationManager = ILocationManager.Stub.asInterface(b); in LocationProviderBase()
137 mLocationManager.reportLocation(location, false); in reportLocation()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java102 private final LocationManager mLocationManager; field in GpsNetInitiatedHandler
187 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler()
222 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java124 private final LocationManager mLocationManager; field in FusedPrintersProvider
139 mLocationManager = (LocationManager) activity.getSystemService(Context.LOCATION_SERVICE); in FusedPrintersProvider()
254 mLocationManager.requestLocationUpdates(LocationRequest.create() in onStartLoading()
258 Location lastLocation = mLocationManager.getLastLocation(); in onStartLoading()
266 mLocationManager.requestSingleUpdate(oneTimeCriteria, this, Looper.getMainLooper()); in onStartLoading()
288 mLocationManager.removeUpdates(this); in onStopLoading()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java78 private LocationManager mLocationManager; field in UtilsTest
84 when(mContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in setUp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java91 private LocationManager mLocationManager; field in RttServiceImpl
237 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in start()
287 if (mLocationManager.isLocationEnabled()) { in start()
378 && mLocationManager.isLocationEnabled(); in isAvailable()
1057 && mLocationManager.isLocationEnabled(); in onRangingResults()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java219 private LocationManager mLocationManager; field in WifiAwareStateManager
393 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in start()
430 if (mLocationManager.isLocationEnabled()) { in start()
694 if (!mLocationManager.isLocationEnabled()) { in enableUsage()