/frameworks/base/location/java/android/location/ |
D | GnssMeasurementCallbackTransport.java | 32 private final ILocationManager mLocationManager; field in GnssMeasurementCallbackTransport 38 mLocationManager = locationManager; in GnssMeasurementCallbackTransport() 43 return mLocationManager.addGnssMeasurementsListener( in registerWithServer() 50 mLocationManager.removeGnssMeasurementsListener(mListenerTransport); in unregisterFromServer() 62 mLocationManager.injectGnssMeasurementCorrections( in injectGnssMeasurementCorrections() 67 return mLocationManager.getGnssCapabilities(getContext().getPackageName()); in getGnssCapabilities()
|
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 | 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/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 | 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/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() 199 mLocationManager.removeUpdates(this); in stopListening() 207 : mLocationManager.getLastLocation(); in updateTwilightState()
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusionEngine.java | 49 private final LocationManager mLocationManager; field in FusionEngine 63 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in FusionEngine() 96 if (mLocationManager.isProviderEnabled(name)) { in enableProvider() 101 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider() 104 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider() 115 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 | 1702 private LocationManager mLocationManager; field in DeviceIdleController.Injector 1738 if (mLocationManager == null) { in getLocationManager() 1739 mLocationManager = mContext.getSystemService(LocationManager.class); in getLocationManager() 1741 return mLocationManager; in getLocationManager()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 51 private LocationManager mLocationManager; field in WifiPermissionsUtil 426 if (mLocationManager == null) { in retrieveLocationManagerIfNecessary() 427 mLocationManager = in retrieveLocationManagerIfNecessary() 431 return mLocationManager != null; in retrieveLocationManagerIfNecessary() 439 return mLocationManager.isLocationEnabledForUser(UserHandle.of( in isLocationModeEnabled()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | LocationProviderBase.java | 87 protected final ILocationManager mLocationManager; field in LocationProviderBase 99 mLocationManager = ILocationManager.Stub.asInterface( in LocationProviderBase()
|
/frameworks/base/location/java/com/android/internal/location/ |
D | GpsNetInitiatedHandler.java | 100 private final LocationManager mLocationManager; field in GpsNetInitiatedHandler 185 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler() 223 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 74 private LocationManager mLocationManager; field in UtilsTest 82 when(mContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 117 private LocationManager mLocationManager; field in DeviceIdleControllerTest 708 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders() 709 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider(anyString()); in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders() 1625 mInjector.locationManager = mLocationManager; in enterDeepState() 1626 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider( in enterDeepState()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 81 @Mock private LocationManager mLocationManager; field in WifiPermissionsUtilTest 1175 when(mMockContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); 1209 when(mLocationManager.isLocationEnabledForUser(any())).thenReturn(mIsLocationEnabled);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareStateManager.java | 222 private LocationManager mLocationManager; field in WifiAwareStateManager 398 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in start()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 134 private LocationManager mLocationManager; field in WifiP2pServiceImpl
|