Home
last modified time | relevance | path

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

123

/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/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/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/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java22 import android.location.LocationManager;
43 private final LocationManager mLocationManager;
47 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in TwilightManager()
88 coarseLoc = getLastKnownLocationForProvider(LocationManager.NETWORK_PROVIDER); in getLastKnownLocation()
94 fineLoc = getLastKnownLocationForProvider(LocationManager.GPS_PROVIDER); in getLastKnownLocation()
/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;
69 filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in LocationControllerImpl()
70 filter.addAction(LocationManager.MODE_CHANGED_ACTION); in LocationControllerImpl()
195 if (LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION.equals(action)) { in onReceive()
197 } else if (LocationManager.MODE_CHANGED_ACTION.equals(action)) { in onReceive()
/frameworks/base/services/core/java/com/android/server/location/
DFlpHardwareProvider.java29 import android.location.LocationManager;
84 LocationManager manager = (LocationManager) mContext.getSystemService( in FlpHardwareProvider()
90 LocationManager.PASSIVE_PROVIDER, in FlpHardwareProvider()
113 location.setProvider(LocationManager.FUSED_PROVIDER); in onLocationReport()
483 !LocationManager.NETWORK_PROVIDER.equals(location.getProvider()) || in onLocationChanged()
534 location.setProvider(LocationManager.FUSED_PROVIDER); in updateLocationInformation()
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()
DGeofenceManager.java31 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()
DPassiveProvider.java28 import android.location.LocationManager;
59 return LocationManager.PASSIVE_PROVIDER; in getName()
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java73 import android.location.LocationManager;
341 LocationProviderInterface gpsProvider = mProvidersByName.get(LocationManager.GPS_PROVIDER); in shutdownComponents()
461 mRealProviders.put(LocationManager.GPS_PROVIDER, gnssProvider); in loadProvidersLocked()
491 LocationManager.NETWORK_PROVIDER, in loadProvidersLocked()
498 mRealProviders.put(LocationManager.NETWORK_PROVIDER, networkProvider); in loadProvidersLocked()
508 LocationManager.FUSED_PROVIDER, in loadProvidersLocked()
518 mRealProviders.put(LocationManager.FUSED_PROVIDER, fusedLocationProvider); in loadProvidersLocked()
761 Intent intent = new Intent(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in updateMonitoring()
824 statusChanged.putExtra(LocationManager.KEY_STATUS_CHANGED, status); in callStatusChangedLocked()
858 … locationChanged.putExtra(LocationManager.KEY_LOCATION_CHANGED, new Location(location)); in callLocationChangedLocked()
[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/services/core/java/com/android/server/twilight/
DTwilightService.java34 import android.location.LocationManager;
86 LocationManager mLocationManager;
105 mLocationManager = (LocationManager) getContext().getSystemService( in onStart()
377 mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); in handleMessage()
386 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, in handleMessage()
402 mLocationManager.isProviderEnabled(LocationManager.PASSIVE_PROVIDER); in handleMessage()
411 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, in handleMessage()
/frameworks/base/core/java/com/android/internal/app/
DNetInitiatedActivity.java30 import android.location.LocationManager;
139 LocationManager locationManager = (LocationManager) in sendUserResponse()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java28 import android.location.LocationManager;
101 private final LocationManager mLocationManager;
162 } else if (action.equals(LocationManager.MODE_CHANGED_ACTION)) {
189 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler()
208 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in GpsNetInitiatedHandler()
224 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
/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/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/docs/html/guide/topics/location/
Dstrategies.jd29 <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&mdash;once
208 android.location.LocationManager#requestLocationUpdates requestLocationUpdates()}:</p>
211 String locationProvider = LocationManager.NETWORK_PROVIDER;
213 // String locationProvider = LocationManager.GPS_PROVIDER;
[all …]
Dindex.jd43 {@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/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()
/frameworks/base/docs/html-intl/intl/ru/training/basics/activity-lifecycle/
Dstopping.jd158 LocationManager locationManager =
159 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
160 boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
/frameworks/base/docs/html-intl/intl/ja/training/basics/activity-lifecycle/
Dstopping.jd158 LocationManager locationManager =
159 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
160 boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/activity-lifecycle/
Dstopping.jd158 LocationManager locationManager =
159 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
160 boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);

123