/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wrapper/ |
D | LocationManagerWrapper.java | 29 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/ |
D | BatchedLocationCallbackTransport.java | 31 private final ILocationManager mLocationManager; field in BatchedLocationCallbackTransport 37 mLocationManager = locationManager; in BatchedLocationCallbackTransport() 42 return mLocationManager.addGnssBatchingCallback( in registerWithServer() 49 mLocationManager.removeGnssBatchingCallback(); in unregisterFromServer()
|
D | GnssMeasurementCallbackTransport.java | 29 private final ILocationManager mLocationManager; field in GnssMeasurementCallbackTransport 35 mLocationManager = locationManager; in GnssMeasurementCallbackTransport() 40 return mLocationManager.addGnssMeasurementsListener( in registerWithServer() 47 mLocationManager.removeGnssMeasurementsListener(mListenerTransport); in unregisterFromServer()
|
D | GnssNavigationMessageCallbackTransport.java | 29 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/ |
D | TwilightService.java | 63 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/ |
D | LocationBasedCountryDetector.java | 64 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()
|
D | PassiveProvider.java | 50 private final ILocationManager mLocationManager; field in PassiveProvider 54 mLocationManager = locationManager; in PassiveProvider() 103 mLocationManager.reportLocation(location, true); in updateLocation()
|
D | MockProvider.java | 43 private final ILocationManager mLocationManager; field in MockProvider 61 mLocationManager = locationManager; in MockProvider() 112 mLocationManager.reportLocation(mLocation, false); in setLocation()
|
D | GeofenceManager.java | 76 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/ |
D | FusionEngine.java | 51 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/ |
D | SensorNotificationService.java | 57 private LocationManager mLocationManager; field in SensorNotificationService 86 mLocationManager = in onBootPhase() 88 if (mLocationManager == null) { in onBootPhase() 91 mLocationManager.requestLocationUpdates( in onBootPhase()
|
D | DeviceIdleController.java | 127 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/ |
D | TwilightManager.java | 64 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/ |
D | LocationProviderBase.java | 60 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/ |
D | GpsNetInitiatedHandler.java | 102 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/ |
D | FusedPrintersProvider.java | 124 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/ |
D | UtilsTest.java | 78 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/ |
D | RttServiceImpl.java | 91 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/ |
D | WifiAwareStateManager.java | 219 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()
|