/development/tools/emulator/test-apps/GpsLocationTest/src/com/android/emulator/gps/test/ |
GpsLocationTest.java | 20 import android.location.LocationManager; 30 private LocationManager locationManager; 41 locationManager = (LocationManager) getContext(). 43 assertNotNull(locationManager); 51 Location lastLocation = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
|
/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,
|
/frameworks/base/core/java/android/webkit/ |
GeolocationService.java | 23 import android.location.LocationManager; 40 private LocationManager mLocationManager; 55 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); 119 if (LocationManager.NETWORK_PROVIDER.equals(providerName)) { 121 } else if (LocationManager.GPS_PROVIDER.equals(providerName)) { 135 if (LocationManager.NETWORK_PROVIDER.equals(providerName)) { 137 } else if (LocationManager.GPS_PROVIDER.equals(providerName)) { 148 if (LocationManager.NETWORK_PROVIDER.equals(providerName)) { 150 } else if (LocationManager.GPS_PROVIDER.equals(providerName)) { 163 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this) [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoLocationPermissionTest.java | 26 import android.location.LocationManager; 40 private LocationManager mLocationManager; 46 mLocationManager = (LocationManager) getContext().getSystemService( 100 fail("LocationManager.requestLocationUpdates did not" + 108 fail("LocationManager.requestLocationUpdates did not" + 122 checkRequestLocationUpdates(LocationManager.NETWORK_PROVIDER); 132 checkRequestLocationUpdates(LocationManager.GPS_PROVIDER); 146 fail("LocationManager.addProximityAlert did not throw SecurityException as expected"); 166 fail("LocationManager.getLastKnownLocation did not" + 180 checkGetLastKnownLocation(LocationManager.GPS_PROVIDER) [all...] |
/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...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
LocationController.java | 28 import android.location.LocationManager; 53 filter.addAction(LocationManager.GPS_ENABLED_CHANGE_ACTION); 54 filter.addAction(LocationManager.GPS_FIX_CHANGE_ACTION); 65 final boolean enabled = intent.getBooleanExtra(LocationManager.EXTRA_GPS_ENABLED, false); 70 if (action.equals(LocationManager.GPS_FIX_CHANGE_ACTION) && enabled) { 75 } else if (action.equals(LocationManager.GPS_ENABLED_CHANGE_ACTION) && !enabled) {
|
/cts/tests/tests/location/src/android/location/cts/ |
GpsStatusTest.java | 27 import android.location.LocationManager; 39 LocationManager lm = 40 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
|
LocationProviderTest.java | 25 import android.location.LocationManager; 33 private LocationManager mLocationManager; 39 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
|
GpsSatelliteTest.java | 26 import android.location.LocationManager; 38 LocationManager lm = 39 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
|
LocationManagerTest.java | 35 import android.location.LocationManager; 53 @TestTargetClass(LocationManager.class) 61 private LocationManager mManager; 74 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 223 return hasProvider(providers, LocationManager.GPS_PROVIDER); 250 p = mManager.getProvider(LocationManager.GPS_PROVIDER); 253 assertEquals(LocationManager.GPS_PROVIDER, p.getName()); 336 mManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, 417 !providerName.equals(LocationManager.PASSIVE_PROVIDER)) { 473 mManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0 [all...] |
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 24 import android.location.LocationManager; 45 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, LocationManager.GPS_PROVIDER);
|
/frameworks/base/services/java/com/android/server/location/ |
PassiveProvider.java | 22 import android.location.LocationManager; 44 public PassiveProvider(ILocationManager locationManager) { 45 mLocationManager = locationManager; 49 return LocationManager.PASSIVE_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);
|
/packages/apps/Settings/src/com/android/settings/ |
LocationSettings.java | 24 import android.location.LocationManager; 135 LocationManager.NETWORK_PROVIDER, mNetwork.isChecked()); 139 LocationManager.GPS_PROVIDER, enabled); 160 res, LocationManager.GPS_PROVIDER); 162 res, LocationManager.NETWORK_PROVIDER));
|
/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/core/java/com/android/internal/app/ |
NetInitiatedActivity.java | 30 import android.location.LocationManager; 140 LocationManager locationManager = (LocationManager) 142 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);
|
/cts/tests/tests/app/src/android/app/cts/ |
SystemFeaturesTest.java | 35 import android.location.LocationManager; 58 private LocationManager mLocationManager; 76 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 183 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { 190 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) {
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 29 import android.location.LocationManager; 92 final String GPS = LocationManager.GPS_PROVIDER;
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
GrassRS.java | 32 import android.location.LocationManager; 69 private final LocationManager mLocationManager; 78 mLocationManager = (LocationManager) 99 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 332 updateLocation(mLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER));
|
/frameworks/base/services/java/com/android/server/ |
UiModeManagerService.java | 38 import android.location.LocationManager; 105 private LocationManager mLocationManager; 318 (LocationManager)mContext.getSystemService(Context.LOCATION_SERVICE); 650 mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); 659 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 681 mLocationManager.isProviderEnabled(LocationManager.PASSIVE_PROVIDER); 689 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, [all...] |
LocationManagerService.java | 41 import android.location.LocationManager; 283 statusChanged.putExtra(LocationManager.KEY_STATUS_CHANGED, status); 319 locationChanged.putExtra(LocationManager.KEY_LOCATION_CHANGED, location); 359 providerIntent.putExtra(LocationManager.KEY_PROVIDER_ENABLED, enabled); 490 new LocationProviderProxy(mContext, LocationManager.NETWORK_PROVIDER, 517 Slog.v(TAG, "Constructed LocationManager Service"); 580 if (LocationManager.GPS_PROVIDER.equals(provider) 581 || LocationManager.PASSIVE_PROVIDER.equals(provider)) { 606 if ((LocationManager.GPS_PROVIDER.equals(provider) 607 || LocationManager.PASSIVE_PROVIDER.equals(provider) [all...] |