Home
last modified time | relevance | path

Searched refs:LocationManager (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
DExternalSharedPermsFLTest.java22 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/
DExternalSharedPermsDiffKeyTest.java23 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/
DExternalSharedPermsTest.java22 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/
DTwilightManager.java22 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/
DTwilightService.java29 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/
DTrackerService.java30 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()
DTrackerActivity.java29 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/
DLocationControllerImpl.java27 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/
DLocationControllerImplTest.java22 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/
DSensorNotificationService.java31 import android.location.LocationManager;
57 private LocationManager mLocationManager;
87 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in onBootPhase()
92 LocationManager.PASSIVE_PROVIDER, in onBootPhase()
DLocationManagerService.java79 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/
DLocationBasedCountryDetector.java25 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()
DPassiveProvider.java28 import android.location.LocationManager;
59 return LocationManager.PASSIVE_PROVIDER; in getName()
DGeofenceManager.java33 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()
DGnssLocationProvider.java41 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/
DFusionEngine.java30 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/
DNetInitiatedActivity.java30 import android.location.LocationManager;
139 LocationManager locationManager = (LocationManager) in sendUserResponse()
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationManagerTest.java22 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/
DGpsNetInitiatedHandler.java28 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/
DLocationStatsAggregator.java28 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/
DLocationProviderBase.java26 import android.location.LocationManager;
76 public static final String FUSED_PROVIDER = LocationManager.FUSED_PROVIDER;
/frameworks/base/location/java/android/location/
DLocationRequest.java154 …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()
DLocationProvider.java87 if (LocationManager.PASSIVE_PROVIDER.equals(name)) { in propertiesMeetCriteria()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java22 import android.location.LocationManager;
36 LocationManager.GPS_PROVIDER, LocationManager.PASSIVE_PROVIDER);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java27 import android.location.LocationManager;
276 final String GPS = LocationManager.GPS_PROVIDER; in setGpsLocation()

12