/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyCountryDetectorTest.java | 115 when(mLocationManager.getProviders(true)).thenReturn(Arrays.asList("TEST_PROVIDER")); in setUp() 118 mLooper, mContext, mLocationManager, mConnectivityManager); in setUp() 120 verify(mLocationManager).requestLocationUpdates(anyString(), anyLong(), anyFloat(), in setUp() 122 verify(mLocationManager).getProviders(true); in setUp() 123 verify(mLocationManager).getLastKnownLocation(anyString()); in setUp() 137 clearInvocations(mLocationManager); in testGetInstance() 144 verify(mLocationManager, never()).requestLocationUpdates(anyString(), anyLong(), in testGetInstance() 266 clearInvocations(mLocationManager); in testRegisterForLocationUpdates() 268 verify(mLocationManager).removeUpdates(any(LocationListener.class)); in testRegisterForLocationUpdates() 271 clearInvocations(mLocationManager); in testRegisterForLocationUpdates() [all …]
|
D | TelephonyRegistryTest.java | 963 doReturn(true).when(mLocationManager).isLocationEnabledForUser(any(UserHandle.class)); in checkBarringInfoWithLocationPermission() 1059 doReturn(true).when(mLocationManager).isLocationEnabledForUser(any(UserHandle.class)); in checkRegistrationFailedEventWithLocationPermission() 1352 doReturn(true).when(mLocationManager).isLocationEnabledForUser(any(UserHandle.class)); in testNotifyCellLocationForSubscriberByUserSwitched() 1507 doReturn(true).when(mLocationManager).isLocationEnabledForUser(any(UserHandle.class)); in testCellInfoChanged()
|
D | NetworkScanRequestTrackerTest.java | 905 when(mLocationManager.isLocationEnabledForUser(any(UserHandle.class))) in setHasLocationPermissions() 919 when(mLocationManager.isLocationEnabledForUser(any(UserHandle.class))).thenReturn(true); in setHasLocationPermissions()
|
D | ContextFixture.java | 310 return mLocationManager; in getSystemService() 741 private final LocationManager mLocationManager = mock(LocationManager.class); field in ContextFixture
|
D | TelephonyTest.java | 282 protected LocationManager mLocationManager; field in TelephonyTest 569 mLocationManager = Mockito.mock(LocationManager.class); in setUp() 640 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
|
/frameworks/base/packages/FusedLocation/src/com/android/location/gnss/ |
D | GnssOverlayLocationProvider.java | 56 private final LocationManager mLocationManager; field in GnssOverlayLocationProvider 90 mLocationManager = context.getSystemService(LocationManager.class); in GnssOverlayLocationProvider() 97 mLocationManager.removeUpdates(mGnssLocationListener); in stop() 102 mLocationManager.sendExtraCommand(LocationManager.GPS_HARDWARE_PROVIDER, command, extras); in onSendExtraCommand() 112 mLocationManager.requestFlush( in onFlush() 119 mLocationManager.requestLocationUpdates( in onSetRequest() 131 mLocationManager.removeUpdates(mGnssLocationListener); in onSetRequest()
|
/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/packages/FusedLocation/test/src/com/android/location/gnss/tests/ |
D | GnssOverlayLocationServiceTest.java | 63 private LocationManager mLocationManager; field in GnssOverlayLocationServiceTest 75 mLocationManager = context.getSystemService(LocationManager.class); in setUp() 84 mLocationManager.addTestProvider(GPS_HARDWARE_PROVIDER, in setUp() 94 mLocationManager.setTestProviderEnabled(GPS_HARDWARE_PROVIDER, true); in setUp() 99 for (String provider : mLocationManager.getAllProviders()) { in tearDown() 100 mLocationManager.removeTestProvider(provider); in tearDown() 115 mLocationManager.setTestProviderLocation(GPS_HARDWARE_PROVIDER, location); in testGpsRequest()
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusedLocationProvider.java | 67 private final LocationManager mLocationManager; field in FusedLocationProvider 87 mLocationManager = Objects.requireNonNull(context.getSystemService(LocationManager.class)); in FusedLocationProvider() 161 mGpsPresent = mLocationManager.hasProvider(GPS_PROVIDER); in updateRequirementsLocked() 164 mNlpPresent = mLocationManager.hasProvider(NETWORK_PROVIDER); in updateRequirementsLocked() 290 mLocationManager.removeUpdates(this); in resetProviderRequest() 304 mLocationManager.requestLocationUpdates(mProvider, request, in resetProviderRequest() 314 mLocationManager.requestFlush(mProvider, this, requestCode); in flush()
|
/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 | 117 private final LocationManager mLocationManager; field in GnssTimeUpdateService 134 mLocationManager = Objects.requireNonNull(locationManager); in GnssTimeUpdateService() 168 if (!mLocationManager.hasProvider(LocationManager.GPS_PROVIDER)) { in startGnssListeningInternal() 198 mLocationManager.requestLocationUpdates( in startGnssListeningLocked() 226 mLocationManager.removeUpdates(mLocationListener); in handleLocationAvailable()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyCountryDetector.java | 84 @NonNull private final LocationManager mLocationManager; field in TelephonyCountryDetector 188 mLocationManager = locationManager; in TelephonyCountryDetector() 384 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, in registerForLocationUpdates() 395 for (String provider : mLocationManager.getProviders(true)) { in getLastKnownLocation() 396 Location location = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation() 415 mLocationManager.removeUpdates(mLocationListener); in unregisterForLocationUpdates()
|
/frameworks/base/location/java/com/android/internal/location/ |
D | GpsNetInitiatedHandler.java | 49 private final LocationManager mLocationManager; field in GpsNetInitiatedHandler 107 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/ |
D | GnssLocationProviderTest.java | 82 private @Mock LocationManager mLocationManager; field in GnssLocationProviderTest 111 doReturn(mLocationManager).when(mContext).getSystemService(LocationManager.class); in setUp() 114 doReturn(true).when(mLocationManager).isLocationEnabledForUser(eq(mUserHandle)); in setUp()
|
/frameworks/base/services/core/java/com/android/server/location/geofence/ |
D | GeofenceManager.java | 319 @Nullable private LocationManager mLocationManager; field in GeofenceManager 334 if (mLocationManager == null) { in getLocationManager() 335 mLocationManager = Objects.requireNonNull( in getLocationManager() 339 return mLocationManager; in getLocationManager()
|
/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/services/core/java/com/android/server/timezonedetector/ |
D | ServiceConfigAccessorImpl.java | 107 @NonNull private final LocationManager mLocationManager; field in ServiceConfigAccessorImpl 163 mLocationManager = context.getSystemService(LocationManager.class); in ServiceConfigAccessorImpl() 365 return mLocationManager.isLocationEnabledForUser(UserHandle.of(userId)); in getLocationEnabledSetting()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 137 private LocationManager mLocationManager; field in DeviceIdleControllerTest 835 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_MissingMotionSensor() 836 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider(anyString()); in testStepIdleStateLocked_ValidStates_MissingMotionSensor() 1007 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_LocationPrefetchDisabled() 1011 doReturn(mock(LocationProvider.class)).when(mLocationManager).getProvider(anyString()); in testStepIdleStateLocked_ValidStates_LocationPrefetchDisabled() 1077 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_MissingProviders() 1078 doReturn(null).when(mLocationManager) in testStepIdleStateLocked_ValidStates_WithLocationManager_MissingProviders() 1080 doReturn(null).when(mLocationManager) in testStepIdleStateLocked_ValidStates_WithLocationManager_MissingProviders() 1082 doReturn(mock(LocationProvider.class)).when(mLocationManager) in testStepIdleStateLocked_ValidStates_WithLocationManager_MissingProviders() 1117 mInjector.locationManager = mLocationManager; in testStepIdleStateLocked_ValidStates_WithLocationManager_WithProviders() [all …]
|
/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 | 78 @Mock private LocationManager mLocationManager; field in UtilsTest 91 when(mContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in setUp()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | DeviceIdleController.java | 2470 private LocationManager mLocationManager; field in DeviceIdleController.Injector 2510 if (mLocationManager == null) { in getLocationManager() 2511 mLocationManager = mContext.getSystemService(LocationManager.class); in getLocationManager() 2513 return mLocationManager; in getLocationManager()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 22806 Landroid/location/BatchedLocationCallbackTransport;->mLocationManager:Landroid/location/ILocationMa… 22954 Landroid/location/GnssMeasurementCallbackTransport;->mLocationManager:Landroid/location/ILocationMa… 22973 Landroid/location/GnssNavigationMessageCallbackTransport;->mLocationManager:Landroid/location/ILoca…
|