/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/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/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/support/v7/appcompat/src/android/support/v7/app/ |
D | TwilightManager.java | 22 import android.location.LocationManager; 47 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE)); in getInstance() 58 private final LocationManager mLocationManager; 63 TwilightManager(@NonNull Context context, @NonNull LocationManager locationManager) { in TwilightManager() 106 coarseLoc = getLastKnownLocationForProvider(LocationManager.NETWORK_PROVIDER); in getLastKnownLocation() 112 fineLoc = getLastKnownLocationForProvider(LocationManager.GPS_PROVIDER); in getLastKnownLocation()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 29 import android.location.LocationManager; 63 private LocationManager mLocationManager; 121 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE); in onBootPhase() 162 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { in startListening() 164 LocationManager.NETWORK_PROVIDER, this, Looper.getMainLooper()); in startListening() 165 } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { in startListening() 167 LocationManager.GPS_PROVIDER, this, Looper.getMainLooper()); 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 27 import android.location.LocationManager; 66 filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in LocationControllerImpl() 67 filter.addAction(LocationManager.MODE_CHANGED_ACTION); in LocationControllerImpl() 187 if (LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION.equals(action)) { in onReceive() 189 } else if (LocationManager.MODE_CHANGED_ACTION.equals(action)) { in onReceive()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImplTest.java | 22 import android.location.LocationManager; 61 LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION)); in testRemoveSelfActive_DoesNotCrash() 64 LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION)); in testRemoveSelfActive_DoesNotCrash()
|
/frameworks/base/services/core/java/com/android/server/ |
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()
|
D | LocationManagerService.java | 79 import android.location.LocationManager; 472 LocationProviderInterface gpsProvider = mProvidersByName.get(LocationManager.GPS_PROVIDER); in shutdownComponents() 593 mRealProviders.put(LocationManager.GPS_PROVIDER, gnssProvider); in loadProvidersLocked() 623 LocationManager.NETWORK_PROVIDER, in loadProvidersLocked() 630 mRealProviders.put(LocationManager.NETWORK_PROVIDER, networkProvider); in loadProvidersLocked() 640 LocationManager.FUSED_PROVIDER, in loadProvidersLocked() 650 mRealProviders.put(LocationManager.FUSED_PROVIDER, fusedLocationProvider); in loadProvidersLocked() 898 Intent intent = new Intent(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in updateMonitoring() 962 statusChanged.putExtra(LocationManager.KEY_STATUS_CHANGED, status); in callStatusChangedLocked() 996 … locationChanged.putExtra(LocationManager.KEY_LOCATION_CHANGED, new Location(location)); in callLocationChangedLocked() [all …]
|
/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 | PassiveProvider.java | 28 import android.location.LocationManager; 59 return LocationManager.PASSIVE_PROVIDER; in getName()
|
D | GeofenceManager.java | 33 import android.location.LocationManager; 75 private final LocationManager mLocationManager; 121 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in GeofenceManager() 385 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, true); in sendIntentEnter() 395 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, false); in sendIntentExit()
|
D | GnssLocationProvider.java | 41 import android.location.LocationManager; 365 private Location mLocation = new Location(LocationManager.GPS_PROVIDER); 800 return LocationManager.GPS_PROVIDER; in getName() 1552 Intent intent = new Intent(LocationManager.GPS_FIX_CHANGE_ACTION); in reportLocation() 1553 intent.putExtra(LocationManager.EXTRA_GPS_ENABLED, true); in reportLocation() 1593 Intent intent = new Intent(LocationManager.GPS_ENABLED_CHANGE_ACTION); in reportStatus() 1594 intent.putExtra(LocationManager.EXTRA_GPS_ENABLED, mNavigating); in reportStatus() 1647 Intent intent = new Intent(LocationManager.GPS_FIX_CHANGE_ACTION); in reportSvStatus() 1648 intent.putExtra(LocationManager.EXTRA_GPS_ENABLED, false); in reportSvStatus() 2228 LocationManager locManager = [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; 160 } else if (action.equals(LocationManager.MODE_CHANGED_ACTION)) { 187 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler() 206 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in GpsNetInitiatedHandler() 222 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/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 | 27 import android.location.LocationManager; 276 final String GPS = LocationManager.GPS_PROVIDER; in setGpsLocation()
|