/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 29 import android.location.LocationManager; 74 filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in LocationControllerImpl() 75 filter.addAction(LocationManager.MODE_CHANGED_ACTION); in LocationControllerImpl() 129 LocationManager locationManager = in isLocationEnabled() 130 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in isLocationEnabled() 193 if (LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION.equals(action)) { in onReceive() 195 } else if (LocationManager.MODE_CHANGED_ACTION.equals(action)) { in onReceive()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | LocationPermissionChecker.java | 26 import android.location.LocationManager; 209 final LocationManager LocationManager = in isLocationModeEnabled() local 210 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in isLocationModeEnabled() 212 return LocationManager.isLocationEnabledForUser(UserHandle.of( in isLocationModeEnabled()
|
/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/ |
D | LocationUsageLogger.java | 21 import android.location.LocationManager; 48 if (LocationManager.NETWORK_PROVIDER.equals(provider)) { in providerNameToStatsdEnum() 50 } else if (LocationManager.GPS_PROVIDER.equals(provider)) { in providerNameToStatsdEnum() 52 } else if (LocationManager.PASSIVE_PROVIDER.equals(provider)) { in providerNameToStatsdEnum() 54 } else if (LocationManager.FUSED_PROVIDER.equals(provider)) { in providerNameToStatsdEnum()
|
D | SensorNotificationService.java | 31 import android.location.LocationManager; 57 private LocationManager mLocationManager; 87 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in onBootPhase() 92 LocationManager.PASSIVE_PROVIDER, in onBootPhase()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImplTest.java | 22 import android.location.LocationManager; 64 LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION)); in testRemoveSelfActive_DoesNotCrash() 67 LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION)); in testRemoveSelfActive_DoesNotCrash()
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusionEngine.java | 22 import android.location.LocationManager; 43 private static final String NETWORK = LocationManager.NETWORK_PROVIDER; 44 private static final String GPS = LocationManager.GPS_PROVIDER; 49 private final LocationManager mLocationManager; 63 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in FusionEngine()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 28 import android.location.LocationManager; 64 private LocationManager mLocationManager; 122 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE); in onBootPhase() 163 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { in startListening() 165 LocationManager.NETWORK_PROVIDER, this, Looper.getMainLooper()); in startListening()
|
/frameworks/base/services/core/java/com/android/server/location/ |
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()
|
D | GeofenceManager.java | 33 import android.location.LocationManager; 76 private final LocationManager mLocationManager; 122 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in GeofenceManager() 387 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, true); in sendIntentEnter() 397 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, false); in sendIntentExit()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | NetInitiatedActivity.java | 26 import android.location.LocationManager; 140 LocationManager locationManager = (LocationManager) in sendUserResponse()
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationManagerTest.java | 22 import android.location.LocationManager; 32 private LocationManager manager; 37 manager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
|
/frameworks/base/non-updatable-api/ |
D | system-lint-baseline.txt | 150 SamShouldBeLast: android.location.LocationManager#addNmeaListener(android.location.OnNmeaMessageLis… 152 SamShouldBeLast: android.location.LocationManager#registerGnssMeasurementsCallback(java.util.concur… 154 SamShouldBeLast: android.location.LocationManager#registerGnssNavigationMessageCallback(java.util.c… 156 SamShouldBeLast: android.location.LocationManager#registerGnssStatusCallback(java.util.concurrent.E… 158 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(String, long, float, andro… 160 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(String, long, float, java.… 162 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(android.location.LocationR… 164 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(long, float, android.locat… 166 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(long, float, android.locat… 168 SamShouldBeLast: android.location.LocationManager#requestSingleUpdate(String, android.location.Loca… [all …]
|
/frameworks/base/location/java/com/android/internal/location/ |
D | GpsNetInitiatedHandler.java | 28 import android.location.LocationManager; 101 private final LocationManager mLocationManager; 167 } else if (action.equals(LocationManager.MODE_CHANGED_ACTION)) { 194 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler() 216 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in GpsNetInitiatedHandler() 232 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 36 import android.location.LocationManager; 76 private LocationManager mLocationManager; 98 argThat(actionMatches(LocationManager.MODE_CHANGING_ACTION)), in testUpdateLocationEnabled_sendBroadcast() 178 @Implements(value = LocationManager.class)
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 28 import android.location.LocationManager; 308 LocationManager locationManager = context.getSystemService(LocationManager.class); in isLocationModeEnabled()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 24 import android.location.LocationManager; 51 private LocationManager mLocationManager; 429 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in retrieveLocationManagerIfNecessary()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | LocationProviderBase.java | 23 import android.location.LocationManager; 77 public static final String FUSED_PROVIDER = LocationManager.FUSED_PROVIDER;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 17 import android.location.LocationManager; 59 LocationManager locationManager = context.getSystemService(LocationManager.class); in updateLocationEnabled() 65 Intent intent = new Intent(LocationManager.MODE_CHANGING_ACTION); in updateLocationEnabled()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
D | LocationBasedCountryDetectorTest.java | 22 import android.location.LocationManager; 36 LocationManager.GPS_PROVIDER, LocationManager.PASSIVE_PROVIDER);
|
/frameworks/base/location/java/android/location/ |
D | LocationRequest.java | 173 private String mProvider = LocationManager.FUSED_PROVIDER; 202 if (LocationManager.PASSIVE_PROVIDER.equals(provider)) { in createFromDeprecatedProvider() 204 } else if (LocationManager.GPS_PROVIDER.equals(provider)) { in createFromDeprecatedProvider()
|