/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/ |
D | FusedLocationServiceTest.java | 64 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/ |
D | TwilightService.java | 66 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/ |
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()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SensorNotificationService.java | 55 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/ |
D | GnssTimeUpdateService.java | 93 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/ |
D | FusedLocationProvider.java | 66 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/ |
D | EnvironmentImpl.java | 60 @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/ |
D | GeofenceManager.java | 261 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/ |
D | LocationPermissionCheckerTest.java | 70 @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/ |
D | GpsNetInitiatedHandler.java | 96 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/ |
D | LocationProviderBase.java | 110 protected final ILocationManager mLocationManager; field in LocationProviderBase 138 mLocationManager = ILocationManager.Stub.asInterface( in LocationProviderBase()
|
/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( 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/ |
D | UtilsTest.java | 72 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 | 132 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/ |
D | ContextFixture.java | 288 return mLocationManager; in getSystemService() 676 private final LocationManager mLocationManager = mock(LocationManager.class); field in ContextFixture
|
D | TelephonyTest.java | 330 protected LocationManager mLocationManager; field in TelephonyTest 493 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
|
D | TelephonyRegistryTest.java | 648 doReturn(true).when(mLocationManager).isLocationEnabledForUser(any(UserHandle.class)); in testNotifyCellLocationForSubscriberByUserSwitched()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | DeviceIdleController.java | 2150 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/ |
D | hiddenapi-max-target-o.txt | 25684 Landroid/location/BatchedLocationCallbackTransport;->mLocationManager:Landroid/location/ILocationMa… 25832 Landroid/location/GnssMeasurementCallbackTransport;->mLocationManager:Landroid/location/ILocationMa… 25851 Landroid/location/GnssNavigationMessageCallbackTransport;->mLocationManager:Landroid/location/ILoca…
|