Home
last modified time | relevance | path

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

/frameworks/base/location/java/android/location/
DGnssMeasurementCallbackTransport.java32 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()
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()
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/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()
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/services/core/java/com/android/server/twilight/
DTwilightService.java64 private LocationManager mLocationManager; field in TwilightService
122 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE); in onBootPhase()
158 mLocationManager.requestLocationUpdates( in startListening()
162 if (mLocationManager.getLastLocation() == null) { in startListening()
163 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { in startListening()
164 mLocationManager.requestSingleUpdate( in startListening()
200 mLocationManager.removeUpdates(this); in stopListening()
208 : mLocationManager.getLastLocation(); in updateTwilightState()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java49 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/
DSensorNotificationService.java57 private LocationManager mLocationManager; field in SensorNotificationService
86 mLocationManager = in onBootPhase()
88 if (mLocationManager == null) { in onBootPhase()
91 mLocationManager.requestLocationUpdates( in onBootPhase()
DDeviceIdleController.java1850 private LocationManager mLocationManager; field in DeviceIdleController.Injector
1891 if (mLocationManager == null) { in getLocationManager()
1892 mLocationManager = mContext.getSystemService(LocationManager.class); in getLocationManager()
1894 return mLocationManager; in getLocationManager()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java51 private LocationManager mLocationManager; field in WifiPermissionsUtil
427 if (mLocationManager == null) { in retrieveLocationManagerIfNecessary()
428 mLocationManager = in retrieveLocationManagerIfNecessary()
432 return mLocationManager != null; in retrieveLocationManagerIfNecessary()
440 return mLocationManager.isLocationEnabledForUser(UserHandle.of( in isLocationModeEnabled()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java63 @Mock private LocationManager mLocationManager; field in LocationPermissionCheckerTest
118 when(mMockContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in setupMocks()
153 when(mLocationManager.isLocationEnabledForUser(any())).thenReturn(mIsLocationEnabled); in setupMockInterface()
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java90 protected final ILocationManager mLocationManager; field in LocationProviderBase
102 mLocationManager = ILocationManager.Stub.asInterface( in LocationProviderBase()
/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/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java101 private final LocationManager mLocationManager; field in GpsNetInitiatedHandler
194 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler()
232 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java76 private LocationManager mLocationManager; field in UtilsTest
86 when(mContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java81 @Mock private LocationManager mLocationManager; field in WifiPermissionsUtilTest
1175 when(mMockContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager);
1209 when(mLocationManager.isLocationEnabledForUser(any())).thenReturn(mIsLocationEnabled);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java127 private LocationManager mLocationManager; field in DeviceIdleControllerTest
760 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders()
761 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider(anyString()); in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders()
1873 mInjector.locationManager = mLocationManager; in enterDeepState()
1874 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider( in enterDeepState()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java222 private LocationManager mLocationManager; field in WifiAwareStateManager
398 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in start()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java356 @Mock LocationManager mLocationManager; field in ConnectivityServiceTest
443 if (Context.LOCATION_SERVICE.equals(name)) return mLocationManager; in getSystemService()
6845 when(mLocationManager.isLocationEnabledForUser(any())).thenReturn(locationToggle); in setupLocationPermissions()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java138 private LocationManager mLocationManager; field in WifiP2pServiceImpl
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt32935 Landroid/location/BatchedLocationCallbackTransport;->mLocationManager:Landroid/location/ILocationMa…
33083 Landroid/location/GnssMeasurementCallbackTransport;->mLocationManager:Landroid/location/ILocationMa…
33102 Landroid/location/GnssNavigationMessageCallbackTransport;->mLocationManager:Landroid/location/ILoca…