/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | GnssTimeUpdateServiceTest.java | 34 import android.location.LocationManager; 61 @Mock private LocationManager mMockLocationManager; 78 when(mMockContext.getSystemServiceName(LocationManager.class)) in setUp() 79 .thenReturn((LocationManager.class).getSimpleName()); in setUp() 80 when(mMockContext.getSystemService(LocationManager.class)) in setUp() 112 eq(LocationManager.GPS_PROVIDER), in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime() 119 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationListenerOnLocationChanged_validLocationTime_suggestsGnssTime() 142 eq(LocationManager.GPS_PROVIDER), in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime() 149 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationListenerOnLocationChanged_nullLocationTime_doesNotSuggestGnssTime()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/ |
D | ExternalSharedPermsFLTest.java | 22 import android.location.LocationManager; 33 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunFineLocation() 35 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunFineLocation()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/ |
D | ExternalSharedPermsTest.java | 22 import android.location.LocationManager; 38 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunLocationAndBluetooth() 40 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunLocationAndBluetooth()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/ |
D | ExternalSharedPermsDiffKeyTest.java | 23 import android.location.LocationManager; 36 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunBluetoothAndFineLocation() 38 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunBluetoothAndFineLocation()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 29 import android.location.LocationManager; 66 private LocationManager mLocationManager; 124 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE); in onBootPhase() 165 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { in startListening() 167 LocationManager.NETWORK_PROVIDER, null, getContext().getMainExecutor(), in startListening() 169 } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { in startListening() 171 LocationManager.GPS_PROVIDER, null, getContext().getMainExecutor(), in startListening()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
D | TrackerService.java | 30 import android.location.LocationManager; 116 LocationManager lm = getLocationManager(); in initLocationListeners() 175 providerSet.add(LocationManager.GPS_PROVIDER); in getTrackedProviders() 178 providerSet.add(LocationManager.NETWORK_PROVIDER); in getTrackedProviders() 241 LocationManager lm = getLocationManager(); in stopListeners() 268 private LocationManager getLocationManager() { in getLocationManager() 269 return (LocationManager) getSystemService(Context.LOCATION_SERVICE); in getLocationManager() 285 if (LocationManager.NETWORK_PROVIDER.equals(location.getProvider())) { in getDistanceFromNetwork()
|
D | TrackerActivity.java | 29 import android.location.LocationManager; 163 LocationManager.NETWORK_PROVIDER + ".kml"); in exportKML() 164 exportFile(LocationManager.NETWORK_PROVIDER, exportFileName, in exportKML() 167 LocationManager.GPS_PROVIDER + ".kml"); in exportKML() 168 exportFile(LocationManager.GPS_PROVIDER, exportFileName, in exportKML()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | LocationUsageLogger.java | 22 import android.location.LocationManager; 126 if (LocationManager.NETWORK_PROVIDER.equals(provider)) { in bucketizeProvider() 128 } else if (LocationManager.GPS_PROVIDER.equals(provider)) { in bucketizeProvider() 130 } else if (LocationManager.PASSIVE_PROVIDER.equals(provider)) { in bucketizeProvider() 132 } else if (LocationManager.FUSED_PROVIDER.equals(provider)) { in bucketizeProvider()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 27 import android.location.LocationManager; 82 filter.addAction(LocationManager.MODE_CHANGED_ACTION); in LocationControllerImpl() 137 LocationManager locationManager = in isLocationEnabled() 138 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in isLocationEnabled() 185 if (LocationManager.MODE_CHANGED_ACTION.equals(intent.getAction())) { in onReceive()
|
/frameworks/libs/net/common/framework/com/android/net/module/util/ |
D | LocationPermissionChecker.java | 26 import android.location.LocationManager; 221 final LocationManager LocationManager = mContext.getSystemService(LocationManager.class); in isLocationModeEnabled() local 223 return LocationManager.isLocationEnabledForUser(UserHandle.of( in isLocationModeEnabled()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SensorNotificationService.java | 29 import android.location.LocationManager; 55 private LocationManager mLocationManager; 85 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in onBootPhase() 90 LocationManager.PASSIVE_PROVIDER, in onBootPhase()
|
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/ |
D | FusedLocationServiceTest.java | 19 import static android.location.LocationManager.GPS_PROVIDER; 20 import static android.location.LocationManager.NETWORK_PROVIDER; 27 import android.location.LocationManager; 64 private LocationManager mLocationManager; 76 mLocationManager = context.getSystemService(LocationManager.class); in setUp()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | GnssTimeUpdateService.java | 27 import android.location.LocationManager; 93 private final LocationManager mLocationManager; 104 mLocationManager = mContext.getSystemService(LocationManager.class); in GnssTimeUpdateService() 166 LocationManager.GPS_PROVIDER, in requestGnssTimeUpdates()
|
/frameworks/base/services/core/java/com/android/server/location/countrydetector/ |
D | LocationBasedCountryDetector.java | 25 import android.location.LocationManager; 64 private LocationManager mLocationManager; 69 mLocationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE); in LocationBasedCountryDetector() 92 return LocationManager.PASSIVE_PROVIDER.equals(provider); in isAcceptableProvider()
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusedLocationProvider.java | 20 import static android.location.LocationManager.GPS_PROVIDER; 21 import static android.location.LocationManager.NETWORK_PROVIDER; 35 import android.location.LocationManager; 66 private final LocationManager mLocationManager; 80 mLocationManager = Objects.requireNonNull(context.getSystemService(LocationManager.class)); in FusedLocationProvider()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | EnvironmentImpl.java | 33 import android.location.LocationManager; 60 @NonNull private final LocationManager mLocationManager; 72 mLocationManager = context.getSystemService(LocationManager.class); in EnvironmentImpl() 81 filter.addAction(LocationManager.MODE_CHANGED_ACTION); in EnvironmentImpl()
|
/frameworks/base/services/core/java/com/android/server/location/provider/ |
D | PassiveLocationProviderManager.java | 21 import android.location.LocationManager; 37 super(context, injector, LocationManager.PASSIVE_PROVIDER, null); in PassiveLocationProviderManager()
|
/frameworks/base/location/java/com/android/internal/location/ |
D | GpsNetInitiatedHandler.java | 27 import android.location.LocationManager; 96 private final LocationManager mLocationManager; 162 } else if (action.equals(LocationManager.MODE_CHANGED_ACTION)) { 189 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler() 211 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in GpsNetInitiatedHandler() 227 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImplTest.java | 27 import android.location.LocationManager; 132 mLocationController.onReceive(mContext, new Intent(LocationManager.MODE_CHANGED_ACTION)); in testCallbackNotified() 159 mLocationController.onReceive(mContext, new Intent(LocationManager.MODE_CHANGED_ACTION)); in testCallbackRemoved()
|
/frameworks/base/services/core/java/com/android/server/location/geofence/ |
D | GeofenceManager.java | 19 import static android.location.LocationManager.FUSED_PROVIDER; 20 import static android.location.LocationManager.KEY_PROXIMITY_ENTERING; 33 import android.location.LocationManager; 261 private @Nullable LocationManager mLocationManager; 279 private LocationManager getLocationManager() { in getLocationManager() 283 mContext.getSystemService(LocationManager.class)); in getLocationManager()
|
/frameworks/base/core/api/ |
D | system-lint-baseline.txt | 164 SamShouldBeLast: android.location.LocationManager#addNmeaListener(android.location.OnNmeaMessageLis… 166 SamShouldBeLast: android.location.LocationManager#registerGnssMeasurementsCallback(java.util.concur… 168 SamShouldBeLast: android.location.LocationManager#registerGnssNavigationMessageCallback(java.util.c… 170 SamShouldBeLast: android.location.LocationManager#registerGnssStatusCallback(java.util.concurrent.E… 172 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(String, long, float, andro… 174 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(String, long, float, java.… 176 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(android.location.LocationR… 178 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(long, float, android.locat… 180 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(long, float, android.locat… 182 SamShouldBeLast: android.location.LocationManager#requestSingleUpdate(String, android.location.Loca… [all …]
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 27 import android.location.LocationManager; 365 LocationManager locationManager = context.getSystemService(LocationManager.class); in isLocationModeEnabled()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssLocationProvider.java | 61 import android.location.LocationManager; 500 LocationManager locationManager = Objects.requireNonNull( in handleInitialize() 501 mContext.getSystemService(LocationManager.class)); in handleInitialize() 502 if (locationManager.getAllProviders().contains(LocationManager.NETWORK_PROVIDER)) { in handleInitialize() 504 LocationManager.NETWORK_PROVIDER, in handleInitialize() 557 LocationManager locationManager = (LocationManager) mContext.getSystemService( in handleRequestLocation() 567 provider = LocationManager.NETWORK_PROVIDER; in handleRequestLocation() 572 provider = LocationManager.FUSED_PROVIDER; in handleRequestLocation() 771 boolean enabled = mContext.getSystemService(LocationManager.class) in updateEnabled()
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | LocationPermissionCheckerTest.java | 38 import android.location.LocationManager; 70 @Mock private LocationManager mLocationManager; 124 mockSystemService(Context.LOCATION_SERVICE, LocationManager.class, mLocationManager); in setupMocks()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/ |
D | LocationBasedCountryDetectorTest.java | 22 import android.location.LocationManager; 36 LocationManager.GPS_PROVIDER, LocationManager.PASSIVE_PROVIDER);
|