/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,
|
/external/chromium_org/chrome/browser/extensions/api/location/ |
location_manager.h | 21 class LocationManager; 34 class LocationManager : public BrowserContextKeyedAPI, 37 explicit LocationManager(content::BrowserContext* context); 38 virtual ~LocationManager(); 54 static BrowserContextKeyedAPIFactory<LocationManager>* GetFactoryInstance(); 56 // Convenience method to get the LocationManager for a context. 57 static LocationManager* Get(content::BrowserContext* context); 61 friend class BrowserContextKeyedAPIFactory<LocationManager>; 88 static const char* service_name() { return "LocationManager"; } 99 DISALLOW_COPY_AND_ASSIGN(LocationManager); [all...] |
location_manager.cc | 144 LocationManager* location_manager, 172 LocationManager* location_manager_; 186 LocationManager* location_manager, 247 LocationManager::LocationManager(content::BrowserContext* context) 252 void LocationManager::AddLocationRequest( 273 void LocationManager::RemoveLocationRequest(const std::string& extension_id, 290 LocationManager::~LocationManager() { 293 void LocationManager::GeopositionToApiCoordinates [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
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);
|
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);
|
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,
|
/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/Camera2/src_pd/com/android/camera/app/ |
LocationManager.java | 29 public class LocationManager { 30 private static final Log.Tag TAG = new Log.Tag("LocationManager"); 34 public LocationManager(Context context) {
|
/development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/gps/ |
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/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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/ |
CountryDetector.java | 10 import android.location.LocationManager; 35 * 4) Location updates only uses the {@link LocationManager#PASSIVE_PROVIDER} to avoid active use 50 private final LocationManager mLocationManager; 78 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE), 83 LocationManager locationManager, LocaleProvider localeProvider) { 85 mLocationManager = locationManager; 93 LocationManager locationManager) { 104 locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER [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; 58 private LocationManager mManager; 71 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 82 doTestGetFineProvider_notAllowed(LocationManager.GPS_PROVIDER); 94 fail("LocationManager.getProvider() did not throw SecurityException as expected"); 110 doTestGetCoarseProvider_allowed(LocationManager.NETWORK_PROVIDER); 127 doTestGetLocationUpdates_withIntent(LocationManager.NETWORK_PROVIDER); 131 doTestGetLocationUpdates_withListener(LocationManager.NETWORK_PROVIDER); 214 assertFalse(hasProvider(providers, LocationManager.PASSIVE_PROVIDER)); 215 assertFalse(hasProvider(providers, LocationManager.GPS_PROVIDER)) [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoLocationPermissionTest.java | 25 import android.location.LocationManager; 42 private LocationManager mLocationManager; 51 mLocationManager = (LocationManager) mContext.getSystemService( 143 fail("LocationManager.requestLocationUpdates did not" + 151 fail("LocationManager.requestLocationUpdates did not" + 166 checkRequestLocationUpdates(LocationManager.NETWORK_PROVIDER); 177 checkRequestLocationUpdates(LocationManager.GPS_PROVIDER); 192 fail("LocationManager.addProximityAlert did not throw SecurityException as expected"); 212 fail("LocationManager.getLastKnownLocation did not" + 227 checkGetLastKnownLocation(LocationManager.GPS_PROVIDER) [all...] |
/packages/apps/Camera2/src/com/android/camera/app/ |
LegacyLocationProvider.java | 33 private android.location.LocationManager mLocationManager; 37 new LocationListener(android.location.LocationManager.GPS_PROVIDER), 38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER) 78 mLocationManager = (android.location.LocationManager) 84 android.location.LocationManager.NETWORK_PROVIDER, 95 android.location.LocationManager.GPS_PROVIDER,
|
/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);
|