Home
last modified time | relevance | path

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

/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java64 private LocationManager mLocationManager; field in FusedLocationServiceTest
76 mLocationManager = context.getSystemService(LocationManager.class); in setUp()
85 mLocationManager.addTestProvider(NETWORK_PROVIDER, in setUp()
95 mLocationManager.setTestProviderEnabled(NETWORK_PROVIDER, true); in setUp()
96 mLocationManager.addTestProvider(GPS_PROVIDER, in setUp()
106 mLocationManager.setTestProviderEnabled(GPS_PROVIDER, true); in setUp()
111 for (String provider : mLocationManager.getAllProviders()) { in tearDown()
112 mLocationManager.removeTestProvider(provider); in tearDown()
126 mLocationManager.setTestProviderLocation(NETWORK_PROVIDER, location); in testNetworkRequest()
140 mLocationManager.setTestProviderLocation(GPS_PROVIDER, location); in testGpsRequest()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java66 private LocationManager mLocationManager; field in TwilightService
124 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE); in onBootPhase()
160 mLocationManager.requestLocationUpdates( in startListening()
164 if (mLocationManager.getLastLocation() == null) { in startListening()
165 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { in startListening()
166 mLocationManager.getCurrentLocation( in startListening()
169 } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { in startListening()
170 mLocationManager.getCurrentLocation( in startListening()
207 mLocationManager.removeUpdates(this); in stopListening()
215 : mLocationManager.getLastLocation(); in updateTwilightState()
/frameworks/base/services/core/java/com/android/server/location/countrydetector/
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()
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java55 private LocationManager mLocationManager; field in SensorNotificationService
84 mLocationManager = in onBootPhase()
86 if (mLocationManager == null) { in onBootPhase()
89 mLocationManager.requestLocationUpdates( in onBootPhase()
/frameworks/base/services/core/java/com/android/server/timedetector/
DGnssTimeUpdateService.java93 private final LocationManager mLocationManager; field in GnssTimeUpdateService
104 mLocationManager = mContext.getSystemService(LocationManager.class); in GnssTimeUpdateService()
139 mLocationManager.removeUpdates(mLocationListener); in requestGnssTimeUpdates()
165 mLocationManager.requestLocationUpdates( in requestGnssTimeUpdates()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java66 private final LocationManager mLocationManager; field in FusedLocationProvider
80 mLocationManager = Objects.requireNonNull(context.getSystemService(LocationManager.class)); in FusedLocationProvider()
264 mLocationManager.removeUpdates(this);
278 mLocationManager.requestLocationUpdates(mProvider, request,
288 mLocationManager.requestFlush(mProvider, this, requestCode);
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DEnvironmentImpl.java60 @NonNull private final LocationManager mLocationManager; field in EnvironmentImpl
72 mLocationManager = context.getSystemService(LocationManager.class); in EnvironmentImpl()
218 return mLocationManager.isLocationEnabledForUser(UserHandle.of(userId)); in isLocationEnabled()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java261 private @Nullable LocationManager mLocationManager; field in GeofenceManager
281 if (mLocationManager == null) { in getLocationManager()
282 mLocationManager = Objects.requireNonNull( in getLocationManager()
286 return mLocationManager; in getLocationManager()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DLocationPermissionCheckerTest.java70 @Mock private LocationManager mLocationManager; field in LocationPermissionCheckerTest
124 mockSystemService(Context.LOCATION_SERVICE, LocationManager.class, mLocationManager); in setupMocks()
176 when(mLocationManager.isLocationEnabledForUser(any())).thenReturn(mIsLocationEnabled); in setupMockInterface()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java96 private final LocationManager mLocationManager; field in GpsNetInitiatedHandler
189 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler()
227 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java110 protected final ILocationManager mLocationManager; field in LocationProviderBase
138 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( in onStartLoading()
262 Location lastLocation = mLocationManager.getLastLocation(); in onStartLoading()
287 mLocationManager.removeUpdates(this); in onStopLoading()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java72 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/
DDeviceIdleControllerTest.java132 private LocationManager mLocationManager; field in DeviceIdleControllerTest
839 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders()
840 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider(anyString()); in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders()
2003 mInjector.locationManager = mLocationManager; in enterDeepState()
2004 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider( in enterDeepState()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java288 return mLocationManager; in getSystemService()
676 private final LocationManager mLocationManager = mock(LocationManager.class); field in ContextFixture
DTelephonyTest.java330 protected LocationManager mLocationManager; field in TelephonyTest
493 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
DTelephonyRegistryTest.java648 doReturn(true).when(mLocationManager).isLocationEnabledForUser(any(UserHandle.class)); in testNotifyCellLocationForSubscriberByUserSwitched()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java2150 private LocationManager mLocationManager; field in DeviceIdleController.Injector
2190 if (mLocationManager == null) { in getLocationManager()
2191 mLocationManager = mContext.getSystemService(LocationManager.class); in getLocationManager()
2193 return mLocationManager; in getLocationManager()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt25684 Landroid/location/BatchedLocationCallbackTransport;->mLocationManager:Landroid/location/ILocationMa…
25832 Landroid/location/GnssMeasurementCallbackTransport;->mLocationManager:Landroid/location/ILocationMa…
25851 Landroid/location/GnssNavigationMessageCallbackTransport;->mLocationManager:Landroid/location/ILoca…