HomeSort by relevance Sort by last modified time
    Searched full:locationmanager (Results 1 - 25 of 162) sorted by null

1 2 3 4 5 6 7

  /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());
  /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...]
  /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,
  /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);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
LocationModeOffTestActivity.java 19 import android.location.LocationManager;
47 testSecureProviderIsDisabled(1, LocationManager.GPS_PROVIDER);
50 testSecureProviderIsDisabled(2, LocationManager.NETWORK_PROVIDER);
53 testManagerProviderIsDisabled(3, LocationManager.GPS_PROVIDER);
56 testManagerProviderIsDisabled(4, LocationManager.NETWORK_PROVIDER);
LocationModeBatterySavingTestActivity.java 19 import android.location.LocationManager;
51 testSecureProviderIsDisabled(2, LocationManager.GPS_PROVIDER);
54 testSecureProviderIsEnabled(3, LocationManager.NETWORK_PROVIDER);
57 testManagerProviderIsDisabled(4, LocationManager.GPS_PROVIDER);
60 testManagerProviderIsEnabled(5, LocationManager.NETWORK_PROVIDER);
LocationModeDeviceOnlyTestActivity.java 19 import android.location.LocationManager;
51 testSecureProviderIsEnabled(2, LocationManager.GPS_PROVIDER);
54 testSecureProviderIsDisabled(3, LocationManager.NETWORK_PROVIDER);
57 testManagerProviderIsEnabled(4, LocationManager.GPS_PROVIDER);
60 testManagerProviderIsDisabled(5, LocationManager.NETWORK_PROVIDER);
LocationModeHighAccuracyTestActivity.java 19 import android.location.LocationManager;
51 testSecureProviderIsEnabled(2, LocationManager.GPS_PROVIDER);
54 testSecureProviderIsEnabled(3, LocationManager.NETWORK_PROVIDER);
57 testManagerProviderIsEnabled(4, LocationManager.GPS_PROVIDER);
60 testManagerProviderIsEnabled(5, LocationManager.NETWORK_PROVIDER);
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);
  /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,
  /device/lge/mako/sepolicy/
system.te 6 # (e.g., LocationManager)
  /frameworks/base/docs/html/sdk/api_diff/3/changes/
android.location.LocationManager.html 10 android.location.LocationManager
74 Class android.location.<A HREF="../../../../reference/android/location/LocationManager.html" target="_top"><font size="+2"><code>LocationManager</code></font></A>
86 <A NAME="android.location.LocationManager.addGpsStatusListener_added(android.location.GpsStatus.Listener)"></A>
87 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/location/LocationManager.html#addGpsStatusListener(android.location.GpsStatus.Listener)" target="_top"><code>addGpsStatusListener</code></A>(<code>Listener</code>)</nobr>
93 <A NAME="android.location.LocationManager.addTestProvider_added(java.lang.String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int)"></A>
94 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/location/LocationManager.html#addTestProvider(java.lang.String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int)" target="_top"><code>addTestProvider</code></A>(<code>String,</nobr> boolean<nobr>,</nobr> boolean<nobr>,</nobr> boolean<nobr>,</nobr> boolean<nobr>,</nobr> boolean<nobr>,</nobr> boolean<nobr>,</nobr> boolean<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
100 <A NAME="android.location.LocationManager.clearTestProviderEnabled_added(java.lang.String)"></A>
101 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/location/LocationManager.html#clearTestProviderEnabled(java.lang.String)" target="_top"><code>clearTestProviderEnabled</code></A>(<code>String</code>)</nobr>
107 <A NAME="android.location.LocationManager.clearTestProviderLocation_added(java.lang.String)"></A
    [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/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);
  /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...]
  /frameworks/base/docs/html/sdk/api_diff/9/changes/
android.location.LocationManager.html 10 android.location.LocationManager
74 Class android.location.<A HREF="../../../../reference/android/location/LocationManager.html" target="_top"><font size="+2"><code>LocationManager</code></font></A>
86 <A NAME="android.location.LocationManager.requestLocationUpdates_added(long, float, android.location.Criteria, android.app.PendingIntent)"></A>
87 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/location/LocationManager.html#requestLocationUpdates(long, float, android.location.Criteria, android.app.PendingIntent)" target="_top"><code>requestLocationUpdates</code></A>(<code>long,</nobr> float<nobr>,</nobr> Criteria<nobr>,</nobr> PendingIntent<nobr><nobr></code>)</nobr>
93 <A NAME="android.location.LocationManager.requestLocationUpdates_added(long, float, android.location.Criteria, android.location.LocationListener, android.os.Looper)"></A>
94 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/location/LocationManager.html#requestLocationUpdates(long, float, android.location.Criteria, android.location.LocationListener, android.os.Looper)" target="_top"><code>requestLocationUpdates</code></A>(<code>long,</nobr> float<nobr>,</nobr> Criteria<nobr>,</nobr> LocationListener<nobr>,</nobr> Looper<nobr><nobr></code>)</nobr>
100 <A NAME="android.location.LocationManager.requestSingleUpdate_added(android.location.Criteria, android.app.PendingIntent)"></A>
101 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/location/LocationManager.html#requestSingleUpdate(android.location.Criteria, android.app.PendingIntent)" target="_top"><code>requestSingleUpdate</code></A>(<code>Criteria,</nobr> PendingIntent<nobr><nobr></code>)</nobr>
107 <A NAME="android.location.LocationManager.requestSingleUpdate_added(android.location.Criteria, android.location.LocationListener, android.os (…)
    [all...]
  /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...]
  /frameworks/base/services/java/com/android/server/location/
PassiveProvider.java 28 import android.location.LocationManager;
53 public PassiveProvider(ILocationManager locationManager) {
54 mLocationManager = locationManager;
59 return LocationManager.PASSIVE_PROVIDER;

Completed in 741 milliseconds

1 2 3 4 5 6 7