/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/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/ |
D | FlpHardwareProvider.java | 28 import android.location.LocationManager; 80 LocationManager manager = (LocationManager) mContext.getSystemService( in FlpHardwareProvider() 86 LocationManager.PASSIVE_PROVIDER, in FlpHardwareProvider() 109 location.setProvider(LocationManager.FUSED_PROVIDER); in onLocationReport() 389 !LocationManager.NETWORK_PROVIDER.equals(location.getProvider()) || in onLocationChanged() 439 location.setProvider(LocationManager.FUSED_PROVIDER); in updateLocationInformation()
|
D | LocationBasedCountryDetector.java | 25 import android.location.LocationManager; 63 private LocationManager mLocationManager; 68 mLocationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE); in LocationBasedCountryDetector() 91 return LocationManager.PASSIVE_PROVIDER.equals(provider); in isAcceptableProvider()
|
D | PassiveProvider.java | 28 import android.location.LocationManager; 59 return LocationManager.PASSIVE_PROVIDER; in getName()
|
D | GeofenceManager.java | 31 import android.location.LocationManager; 71 private final LocationManager mLocationManager; 111 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in GeofenceManager() 353 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, true); in sendIntentEnter() 363 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, false); in sendIntentExit()
|
D | GpsLocationProvider.java | 51 import android.location.LocationManager; 356 private Location mLocation = new Location(LocationManager.GPS_PROVIDER); 661 LocationManager locManager = in GpsLocationProvider() 662 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in GpsLocationProvider() 667 LocationManager.PASSIVE_PROVIDER, in GpsLocationProvider() 770 return LocationManager.GPS_PROVIDER; in getName() 1442 Intent intent = new Intent(LocationManager.GPS_FIX_CHANGE_ACTION); in reportLocation() 1443 intent.putExtra(LocationManager.EXTRA_GPS_ENABLED, true); in reportLocation() 1485 Intent intent = new Intent(LocationManager.GPS_ENABLED_CHANGE_ACTION); in reportStatus() 1486 intent.putExtra(LocationManager.EXTRA_GPS_ENABLED, mNavigating); in reportStatus() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 27 import android.location.LocationManager; 64 filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in LocationControllerImpl() 73 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in LocationControllerImpl() 78 if (LocationManager.MODE_CHANGED_ACTION.equals(action)) { in LocationControllerImpl() 214 if (LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION.equals(action)) { in onReceive()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 31 import android.location.LocationManager; 60 LocationManager mLocationManager; 75 mLocationManager = (LocationManager) getContext().getSystemService( in onStart() 265 mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); in handleMessage() 274 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, in handleMessage() 290 mLocationManager.isProviderEnabled(LocationManager.PASSIVE_PROVIDER); in handleMessage() 299 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, in handleMessage()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationManagerService.java | 73 import android.location.LocationManager; 414 mRealProviders.put(LocationManager.GPS_PROVIDER, gpsProvider); in loadProvidersLocked() 443 LocationManager.NETWORK_PROVIDER, in loadProvidersLocked() 450 mRealProviders.put(LocationManager.NETWORK_PROVIDER, networkProvider); in loadProvidersLocked() 460 LocationManager.FUSED_PROVIDER, in loadProvidersLocked() 470 mRealProviders.put(LocationManager.FUSED_PROVIDER, fusedLocationProvider); in loadProvidersLocked() 710 Intent intent = new Intent(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in updateMonitoring() 773 statusChanged.putExtra(LocationManager.KEY_STATUS_CHANGED, status); in callStatusChangedLocked() 807 … locationChanged.putExtra(LocationManager.KEY_LOCATION_CHANGED, new Location(location)); in callLocationChangedLocked() 849 providerIntent.putExtra(LocationManager.KEY_PROVIDER_ENABLED, enabled); in callProviderEnabledLocked() [all …]
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusionEngine.java | 30 import android.location.LocationManager; 44 private static final String NETWORK = LocationManager.NETWORK_PROVIDER; 45 private static final String GPS = LocationManager.GPS_PROVIDER; 51 private final LocationManager mLocationManager; 67 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in FusionEngine()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | NetInitiatedActivity.java | 30 import android.location.LocationManager; 139 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/location/java/com/android/internal/location/ |
D | GpsNetInitiatedHandler.java | 28 import android.location.LocationManager; 102 private final LocationManager mLocationManager; 163 } else if (action.equals(LocationManager.MODE_CHANGED_ACTION)) { 190 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler() 209 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in GpsNetInitiatedHandler() 225 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | LocationStatsAggregator.java | 28 import android.location.LocationManager; 62 private LocationManager mLocationManager; 78 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in LocationStatsAggregator()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | LocationProviderBase.java | 26 import android.location.LocationManager; 76 public static final String FUSED_PROVIDER = LocationManager.FUSED_PROVIDER;
|
/frameworks/base/docs/html/guide/topics/location/ |
D | strategies.jd | 29 <li>{@link android.location.LocationManager}</li> 94 like to receive location updates from the {@link android.location.LocationManager} ("Location 95 Manager") by calling {@link android.location.LocationManager#requestLocationUpdates 107 LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); 124 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); 128 android.location.LocationManager#requestLocationUpdates requestLocationUpdates()} is the type of 139 android.location.LocationManager#requestLocationUpdates requestLocationUpdates()} twice—once 208 android.location.LocationManager#requestLocationUpdates requestLocationUpdates()}:</p> 211 String locationProvider = LocationManager.NETWORK_PROVIDER; 213 // String locationProvider = LocationManager.GPS_PROVIDER; [all …]
|
D | index.jd | 43 {@link android.location.LocationManager} system service, which provides APIs to 46 <p>As with other system services, you do not instantiate a {@link android.location.LocationManager} 50 android.location.LocationManager} instance.</p> 52 <p>Once your application has a {@link android.location.LocationManager}, your application
|
/frameworks/base/location/java/android/location/ |
D | LocationRequest.java | 154 …private String mProvider = LocationManager.FUSED_PROVIDER; // for deprecated APIs that explicitly… 178 if (LocationManager.PASSIVE_PROVIDER.equals(provider)) { in createFromDeprecatedProvider() 180 } else if (LocationManager.GPS_PROVIDER.equals(provider)) { in createFromDeprecatedProvider()
|
D | LocationProvider.java | 87 if (LocationManager.PASSIVE_PROVIDER.equals(name)) { in propertiesMeetCriteria()
|
/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/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 24 import android.location.LocationManager; 172 final String GPS = LocationManager.GPS_PROVIDER; in setGpsLocation()
|