HomeSort by relevance Sort by last modified time
    Searched refs:LocationManager (Results 26 - 50 of 97) sorted by null

12 3 4

  /external/chromium_org/chrome/browser/extensions/api/location/
location_api.cc 51 LocationManager::Get(browser_context())
65 LocationManager::Get(browser_context())
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
LocationProviderFactory.java 11 import android.location.LocationManager;
65 private LocationManager mLocationManager;
132 mLocationManager = (LocationManager) mContext.getSystemService(
185 LocationManager.PASSIVE_PROVIDER);
204 && providers.get(0).equals(LocationManager.PASSIVE_PROVIDER);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
LocationControllerImpl.java 27 import android.location.LocationManager;
64 filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION);
73 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION);
78 if (LocationManager.MODE_CHANGED_ACTION.equals(action)) {
214 if (LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION.equals(action)) {
  /development/samples/training/location-aware/src/com/example/android/location/
LocationActivity.java 29 import android.location.LocationManager;
52 private LocationManager mLocationManager;
113 // Get a reference to the LocationManager object.
114 mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
139 LocationManager locationManager =
140 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
141 final boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
178 LocationManager.GPS_PROVIDER, R.string.not_support_gps)
    [all...]
  /frameworks/base/services/core/java/com/android/server/location/
LocationBasedCountryDetector.java 25 import android.location.LocationManager;
63 private LocationManager mLocationManager;
68 mLocationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE);
91 return LocationManager.PASSIVE_PROVIDER.equals(provider);
PassiveProvider.java 28 import android.location.LocationManager;
53 public PassiveProvider(ILocationManager locationManager) {
54 mLocationManager = locationManager;
59 return LocationManager.PASSIVE_PROVIDER;
FlpHardwareProvider.java 28 import android.location.LocationManager;
80 LocationManager manager = (LocationManager) mContext.getSystemService(
86 LocationManager.PASSIVE_PROVIDER,
109 location.setProvider(LocationManager.FUSED_PROVIDER);
389 !LocationManager.NETWORK_PROVIDER.equals(location.getProvider()) ||
439 location.setProvider(LocationManager.FUSED_PROVIDER);
GeofenceManager.java 31 import android.location.LocationManager;
71 private final LocationManager mLocationManager;
87 * {@link LocationManager#requestLocationUpdates(LocationRequest, LocationListener,
111 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
206 * or consult {@link LocationManager#getLastLocation()} if none has arrived. Does not return
212 // Prefer mLastLocationUpdate to LocationManager.getLastLocation().
237 * update request with {@link LocationManager} as appropriate for any active geofences.
251 // via LocationManager.getLastLocation().
353 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, true);
363 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, false)
    [all...]
  /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
TrackerService.java 30 import android.location.LocationManager;
116 LocationManager lm = getLocationManager();
175 providerSet.add(LocationManager.GPS_PROVIDER);
178 providerSet.add(LocationManager.NETWORK_PROVIDER);
241 LocationManager lm = getLocationManager();
268 private LocationManager getLocationManager() {
269 return (LocationManager) getSystemService(Context.LOCATION_SERVICE);
285 if (LocationManager.NETWORK_PROVIDER.equals(location.getProvider())) {
TrackerActivity.java 29 import android.location.LocationManager;
163 LocationManager.NETWORK_PROVIDER + ".kml");
164 exportFile(LocationManager.NETWORK_PROVIDER, exportFileName,
167 LocationManager.GPS_PROVIDER + ".kml");
168 exportFile(LocationManager.GPS_PROVIDER, exportFileName,
  /frameworks/base/services/core/java/com/android/server/twilight/
TwilightService.java 31 import android.location.LocationManager;
60 LocationManager mLocationManager;
75 mLocationManager = (LocationManager) getContext().getSystemService(
265 mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
274 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
290 mLocationManager.isProviderEnabled(LocationManager.PASSIVE_PROVIDER);
299 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER,
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
LocationModeTestActivity.java 22 import android.location.LocationManager;
37 * LocationManager#isProviderEnabled(String)} have the expected values for GPS and Wi-Fi. For
253 LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
260 LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
LocationVerifier.java 21 import android.location.LocationManager;
54 private final LocationManager mLocationManager;
104 assertMeanAndStdev(LocationManager.PASSIVE_PROVIDER, mPassiveDeltas, PASSIVE_MIN_MEAN_RATIO);
198 public LocationVerifier(PassFailLog cb, LocationManager locationManager,
205 mLocationManager = locationManager;
219 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0,
  /frameworks/base/packages/FusedLocation/src/com/android/location/fused/
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);
  /cts/tests/tests/location/src/android/location/cts/
LocationManagerTest.java 32 import android.location.LocationManager;
60 private LocationManager mManager;
73 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
192 return hasProvider(providers, LocationManager.GPS_PROVIDER);
214 p = mManager.getProvider(LocationManager.GPS_PROVIDER);
217 assertEquals(LocationManager.GPS_PROVIDER, p.getName());
275 boolean gps = Settings.Secure.isLocationProviderEnabled(cr, LocationManager.GPS_PROVIDER);
277 cr, LocationManager.NETWORK_PROVIDER);
281 forceRemoveTestProvider(LocationManager.GPS_PROVIDER);
282 forceRemoveTestProvider(LocationManager.NETWORK_PROVIDER)
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
NetInitiatedActivity.java 30 import android.location.LocationManager;
139 LocationManager locationManager = (LocationManager)
141 locationManager.sendNiResponse(notificationId, response);
  /frameworks/base/location/tests/locationtests/src/android/location/
LocationManagerTest.java 22 import android.location.LocationManager;
32 private LocationManager manager;
37 manager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
  /frameworks/base/location/lib/java/com/android/location/provider/
LocationProviderBase.java 26 import android.location.LocationManager;
76 public static final String FUSED_PROVIDER = LocationManager.FUSED_PROVIDER;
  /packages/apps/Settings/src/com/android/settings/location/
LocationSettingsBase.java 23 import android.location.LocationManager;
70 filter.addAction(LocationManager.MODE_CHANGED_ACTION);
  /frameworks/base/location/java/android/location/
LocationProvider.java 87 if (LocationManager.PASSIVE_PROVIDER.equals(name)) {
LocationRequest.java 29 * to the {@link LocationManager}.
154 private String mProvider = LocationManager.FUSED_PROVIDER; // for deprecated APIs that explicitly request a provider
161 * to the {@link LocationManager}
178 if (LocationManager.PASSIVE_PROVIDER.equals(provider)) {
180 } else if (LocationManager.GPS_PROVIDER.equals(provider)) {
512 * <p>No permissions are required to make this call, however the LocationManager
536 * <p>No permissions are required to make this call, however the LocationManager
  /frameworks/base/location/java/com/android/internal/location/
GpsNetInitiatedHandler.java 28 import android.location.LocationManager;
45 * A GPS Network-initiated Handler class used by LocationManager.
102 private final LocationManager mLocationManager;
163 } else if (action.equals(LocationManager.MODE_CHANGED_ACTION)) {
190 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
209 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION);
225 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
  /frameworks/base/services/core/java/com/android/server/
LocationManagerService.java 71 import android.location.LocationManager;
412 mRealProviders.put(LocationManager.GPS_PROVIDER, gpsProvider);
441 LocationManager.NETWORK_PROVIDER,
448 mRealProviders.put(LocationManager.NETWORK_PROVIDER, networkProvider);
458 LocationManager.FUSED_PROVIDER,
468 mRealProviders.put(LocationManager.FUSED_PROVIDER, fusedLocationProvider);
708 Intent intent = new Intent(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION);
    [all...]
  /frameworks/ml/bordeaux/service/src/android/bordeaux/services/
LocationStatsAggregator.java 28 import android.location.LocationManager;
62 private LocationManager mLocationManager;
78 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
126 mLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
  /packages/apps/Camera2/src/com/android/camera/settings/
Keys.java 21 import com.android.camera.app.LocationManager;
228 LocationManager locationManager) {
230 locationManager.recordLocation(on);
256 LocationManager locationManager) {
259 locationManager.recordLocation(value);

Completed in 1023 milliseconds

12 3 4