HomeSort by relevance Sort by last modified time
    Searched refs:LocationManager (Results 1 - 25 of 77) sorted by null

1 2 3 4

  /external/chromium_org/chrome/browser/extensions/api/location/
location_manager.h 23 class LocationManager;
36 class LocationManager
39 public base::SupportsWeakPtr<LocationManager> {
41 explicit LocationManager(Profile* profile);
42 virtual ~LocationManager();
58 static ProfileKeyedAPIFactory<LocationManager>* GetFactoryInstance();
60 // Convenience method to get the LocationManager for a profile.
61 static LocationManager* Get(Profile* profile);
65 friend class ProfileKeyedAPIFactory<LocationManager>;
89 static const char* service_name() { return "LocationManager"; }
    [all...]
location_manager.cc 148 const base::WeakPtr<LocationManager>& location_manager,
193 const base::WeakPtr<LocationManager> location_manager_;
206 const base::WeakPtr<LocationManager>& location_manager,
270 base::Bind(&LocationManager::SendLocationUpdate,
299 LocationManager::LocationManager(Profile* profile)
307 void LocationManager::AddLocationRequest(
329 void LocationManager::RemoveLocationRequest(const std::string& extension_id,
346 LocationManager::~LocationManager() {
    [all...]
location_api.cc 51 LocationManager::Get(profile())->AddLocationRequest(
65 LocationManager::Get(profile())->RemoveLocationRequest(
  /frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
ExternalSharedPermsFLTest.java 22 import android.location.LocationManager;
33 LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
35 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
  /frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/
ExternalSharedPermsTest.java 22 import android.location.LocationManager;
38 LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
40 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
  /frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/
ExternalSharedPermsDiffKeyTest.java 23 import android.location.LocationManager;
36 LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
38 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
  /cts/tests/tests/location/src/android/location/cts/
GpsStatusTest.java 23 import android.location.LocationManager;
34 LocationManager lm =
35 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
GpsSatelliteTest.java 23 import android.location.LocationManager;
34 LocationManager lm =
35 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
LocationProviderTest.java 22 import android.location.LocationManager;
29 private LocationManager mLocationManager;
35 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
  /development/tools/emulator/test-apps/GpsLocationTest/src/com/android/emulator/gps/test/
GpsLocationTest.java 21 import android.location.LocationManager;
35 private LocationManager locationManager;
47 locationManager = (LocationManager) getContext().
49 assertNotNull(locationManager);
61 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this,
72 locationManager.removeUpdates(this);
  /packages/apps/Camera/src/com/android/camera/
LocationManager.java 28 public class LocationManager {
29 private static final String TAG = "LocationManager";
33 private android.location.LocationManager mLocationManager;
37 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
46 public LocationManager(Context context, Listener listener) {
76 mLocationManager = (android.location.LocationManager)
82 android.location.LocationManager.NETWORK_PROVIDER,
93 android.location.LocationManager.GPS_PROVIDER,
142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider))
    [all...]
  /packages/apps/Camera2/src/com/android/camera/
LocationManager.java 28 public class LocationManager {
29 private static final String TAG = "LocationManager";
33 private android.location.LocationManager mLocationManager;
37 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
46 public LocationManager(Context context, Listener listener) {
76 mLocationManager = (android.location.LocationManager)
82 android.location.LocationManager.NETWORK_PROVIDER,
93 android.location.LocationManager.GPS_PROVIDER,
142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider))
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/
LocationManager.java 28 public class LocationManager {
29 private static final String TAG = "LocationManager";
33 private android.location.LocationManager mLocationManager;
37 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
46 public LocationManager(Context context, Listener listener) {
76 mLocationManager = (android.location.LocationManager)
82 android.location.LocationManager.NETWORK_PROVIDER,
93 android.location.LocationManager.GPS_PROVIDER,
142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider))
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
LocationManagerTest.java 10 import android.location.LocationManager;
21 import static android.location.LocationManager.GPS_PROVIDER;
22 import static android.location.LocationManager.NETWORK_PROVIDER;
31 private LocationManager locationManager;
36 locationManager = (LocationManager) Robolectric.application.getSystemService(Context.LOCATION_SERVICE);
37 shadowLocationManager = shadowOf(locationManager);
42 Boolean enabled = locationManager.isProviderEnabled(GPS_PROVIDER);
44 enabled = locationManager.isProviderEnabled(NETWORK_PROVIDER)
    [all...]
LocationTest.java 4 import android.location.LocationManager;
21 location = new Location(LocationManager.GPS_PROVIDER);
40 Location newLocation = new Location(LocationManager.NETWORK_PROVIDER);
69 Location defaultLocation = new Location(LocationManager.GPS_PROVIDER);
86 Location l = new Location(LocationManager.GPS_PROVIDER);
112 assertEquals(LocationManager.GPS_PROVIDER, l.getProvider());
  /cts/tests/tests/location2/src/android/location2/cts/
LocationManagerTest.java 31 import android.location.LocationManager;
57 private LocationManager mManager;
70 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
81 doTestGetFineProvider_notAllowed(LocationManager.GPS_PROVIDER);
93 fail("LocationManager.getProvider() did not throw SecurityException as expected");
109 doTestGetCoarseProvider_allowed(LocationManager.NETWORK_PROVIDER);
126 doTestGetLocationUpdates_withIntent(LocationManager.NETWORK_PROVIDER);
130 doTestGetLocationUpdates_withListener(LocationManager.NETWORK_PROVIDER);
213 assertFalse(hasProvider(providers, LocationManager.PASSIVE_PROVIDER));
214 assertFalse(hasProvider(providers, LocationManager.GPS_PROVIDER))
    [all...]
  /cts/tests/tests/permission/src/android/permission/cts/
NoLocationPermissionTest.java 24 import android.location.LocationManager;
40 private LocationManager mLocationManager;
46 mLocationManager = (LocationManager) getContext().getSystemService(
128 fail("LocationManager.requestLocationUpdates did not" +
136 fail("LocationManager.requestLocationUpdates did not" +
151 checkRequestLocationUpdates(LocationManager.NETWORK_PROVIDER);
162 checkRequestLocationUpdates(LocationManager.GPS_PROVIDER);
177 fail("LocationManager.addProximityAlert did not throw SecurityException as expected");
197 fail("LocationManager.getLastKnownLocation did not" +
212 checkGetLastKnownLocation(LocationManager.GPS_PROVIDER)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
GpsTestActivity.java 25 import android.location.LocationManager;
45 private LocationManager mLocationManager;
56 mLocationManager = (LocationManager) getApplicationContext().getSystemService(
98 LocationManager.GPS_PROVIDER, 0, 8, false);
104 LocationManager.GPS_PROVIDER, 1 * 1000, 8, false);
110 LocationManager.GPS_PROVIDER, 5 * 1000, 8, false);
116 LocationManager.GPS_PROVIDER, 15 * 1000, 8, false);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowLocationManager.java 10 import android.location.LocationManager;
19 * Shadow of {@code LocationManager} that provides for the simulation of different location providers being enabled and
22 @Implements(LocationManager.class)
48 allKnownProviders.add(LocationManager.GPS_PROVIDER);
49 allKnownProviders.add(LocationManager.NETWORK_PROVIDER);
50 allKnownProviders.add(LocationManager.PASSIVE_PROVIDER);
85 intent.putExtra(LocationManager.KEY_PROVIDER_ENABLED, isEnabled);
179 if (provider.equals(LocationManager.NETWORK_PROVIDER) && (accuracy == Criteria.ACCURACY_COARSE || powerRequirement == Criteria.POWER_LOW)) {
181 } else if (provider.equals(LocationManager.GPS_PROVIDER) && accuracy == Criteria.ACCURACY_FINE && powerRequirement != Criteria.POWER_LOW) {
197 } else if (providers.contains(LocationManager.GPS_PROVIDER))
    [all...]
  /development/apps/SdkSetup/src/com/android/sdksetup/
DefaultActivity.java 24 import android.location.LocationManager;
46 LocationManager.GPS_PROVIDER);
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
LocationProvider.java 11 import android.location.LocationManager;
44 private LocationManager mLocationManager;
133 mLocationManager = (LocationManager) mContext.getSystemService(
186 LocationManager.PASSIVE_PROVIDER);
205 && providers.get(0).equals(LocationManager.PASSIVE_PROVIDER);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
LocationController.java 28 import android.location.LocationManager;
79 filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION);
88 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION);
93 if (LocationManager.MODE_CHANGED_ACTION.equals(action)) {
220 if (LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION.equals(action)) {
  /frameworks/base/services/java/com/android/server/location/
FlpHardwareProvider.java 28 import android.location.LocationManager;
75 LocationManager manager = (LocationManager) mContext.getSystemService(
81 LocationManager.PASSIVE_PROVIDER,
104 location.setProvider(LocationManager.FUSED_PROVIDER);
371 !LocationManager.NETWORK_PROVIDER.equals(location.getProvider()) ||
422 location.setProvider(LocationManager.FUSED_PROVIDER);
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);
  /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...]

Completed in 2536 milliseconds

1 2 3 4