/cts/tests/tests/location/src/android/location/cts/ |
LocationProviderTest.java | 29 private LocationManager mLocationManager; 34 mLocationManager = 42 mLocationManager.clearTestProviderLocation(PROVIDER_NAME); 43 mLocationManager.removeTestProvider(PROVIDER_NAME); 51 mLocationManager.addTestProvider( 62 mLocationManager.setTestProviderEnabled(providerName, true); 66 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME); 71 LocationProvider locationProvider = mLocationManager.getProvider(PROVIDER_NAME);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoLocationPermissionTest.java | 40 private LocationManager mLocationManager; 46 mLocationManager = (LocationManager) getContext().getSystemService( 48 mAllProviders = mLocationManager.getAllProviders(); 50 assertNotNull(mLocationManager); 127 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener); 135 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener, looper); 176 mLocationManager.addProximityAlert(0, 0, 100, -1, mockPendingIntent); 196 mLocationManager.getLastKnownLocation(provider); 239 mLocationManager.getProvider(provider); 283 mLocationManager.isProviderEnabled(provider) [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
LocationProviderFactory.java | 65 private LocationManager mLocationManager; 131 if (mLocationManager != null) return; 132 mLocationManager = (LocationManager) mContext.getSystemService( 134 if (mLocationManager == null) { 153 mLocationManager.requestLocationUpdates(0, 0, criteria, this, 157 mLocationManager.requestLocationUpdates(0, 0, criteria, this, 174 mLocationManager.removeUpdates(this); 184 final Location location = mLocationManager.getLastKnownLocation( 202 List<String> providers = mLocationManager.getProviders(true);
|
/packages/apps/Camera/src/com/android/camera/ |
LocationManager.java | 33 private android.location.LocationManager mLocationManager; 75 if (mLocationManager == null) { 76 mLocationManager = (android.location.LocationManager) 79 if (mLocationManager != null) { 81 mLocationManager.requestLocationUpdates( 92 mLocationManager.requestLocationUpdates( 108 if (mLocationManager != null) { 111 mLocationManager.removeUpdates(mLocationListeners[i]);
|
/packages/apps/Camera2/src/com/android/camera/ |
LocationManager.java | 33 private android.location.LocationManager mLocationManager; 75 if (mLocationManager == null) { 76 mLocationManager = (android.location.LocationManager) 79 if (mLocationManager != null) { 81 mLocationManager.requestLocationUpdates( 92 mLocationManager.requestLocationUpdates( 108 if (mLocationManager != null) { 111 mLocationManager.removeUpdates(mLocationListeners[i]);
|
VideoModule.java | 162 private LocationManager mLocationManager; 364 mLocationManager = new LocationManager(mActivity, null); 398 Location loc = mLocationManager.getCurrentLocation(); 680 mLocationManager.recordLocation(recordLocation); 806 if (mLocationManager != null) mLocationManager.recordLocation(false); [all...] |
WideAnglePanoramaModule.java | 144 private LocationManager mLocationManager; 267 mLocationManager = new LocationManager(mActivity, null); 751 Location loc = mLocationManager.getCurrentLocation(); 804 if (mLocationManager != null) mLocationManager.recordLocation(false); [all...] |
PhotoModule.java | 204 private LocationManager mLocationManager; 380 mLocationManager = new LocationManager(mActivity, mUI); 550 mLocationManager.recordLocation(recordLocation); 576 mLocationManager.recordLocation(recordLocation); 903 Location loc = mLocationManager.getCurrentLocation(); [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
LocationManager.java | 33 private android.location.LocationManager mLocationManager; 75 if (mLocationManager == null) { 76 mLocationManager = (android.location.LocationManager) 79 if (mLocationManager != null) { 81 mLocationManager.requestLocationUpdates( 92 mLocationManager.requestLocationUpdates( 108 if (mLocationManager != null) { 111 mLocationManager.removeUpdates(mLocationListeners[i]);
|
Camera.java | 228 private LocationManager mLocationManager; 365 mLocationManager.recordLocation(recordLocation); 445 mLocationManager.recordLocation(recordLocation); [all...] |
/frameworks/base/services/java/com/android/server/location/ |
LocationBasedCountryDetector.java | 63 private LocationManager mLocationManager; 68 mLocationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE); 98 mLocationManager.requestLocationUpdates(provider, 0, 0, listener); 105 mLocationManager.removeUpdates(listener); 112 List<String> providers = mLocationManager.getAllProviders(); 115 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); 136 mEnabledProviders = mLocationManager.getProviders(true);
|
PassiveProvider.java | 50 private final ILocationManager mLocationManager; 54 mLocationManager = locationManager; 103 mLocationManager.reportLocation(location, true);
|
MockProvider.java | 44 private final ILocationManager mLocationManager; 62 mLocationManager = locationManager; 113 mLocationManager.reportLocation(mLocation, false);
|
GeofenceManager.java | 71 private final LocationManager mLocationManager; 111 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 215 location = mLocationManager.getLastLocation(); 316 mLocationManager.requestLocationUpdates(request, this, mHandler.getLooper()); 325 mLocationManager.removeUpdates(this);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
GpsTestActivity.java | 45 private LocationManager mLocationManager; 56 mLocationManager = (LocationManager) getApplicationContext().getSystemService( 97 mLocationVerifier = new LocationVerifier(this, mLocationManager, 103 mLocationVerifier = new LocationVerifier(this, mLocationManager, 109 mLocationVerifier = new LocationVerifier(this, mLocationManager, 115 mLocationVerifier = new LocationVerifier(this, mLocationManager,
|
LocationVerifier.java | 54 private final LocationManager mLocationManager; 205 mLocationManager = locationManager; 219 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, 222 mLocationManager.requestLocationUpdates(mProvider, mInterval, 0, 229 mLocationManager.removeUpdates(mActiveListener); 231 mLocationManager.removeUpdates(mPassiveListener);
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
FusionEngine.java | 51 private final LocationManager mLocationManager; 67 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); 75 mStats.get(GPS).available = mLocationManager.isProviderEnabled(GPS); 77 mStats.get(NETWORK).available = mLocationManager.isProviderEnabled(NETWORK); 139 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); 142 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); 152 mLocationManager.removeUpdates(this); //TODO GLOBAL
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
LocationStatsAggregator.java | 62 private LocationManager mLocationManager; 77 mLocationManager = 126 mLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); 153 List<String> providers = mLocationManager.getAllProviders(); 161 Location location = mLocationManager.getLastKnownLocation(provider); 190 String provider = mLocationManager.getBestProvider(mCriteria, true); 192 mLocationManager.requestSingleUpdate(provider, mLocationListener, 230 mLocationManager.removeUpdates(this);
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
LocationProviderBase.java | 60 protected final ILocationManager mLocationManager; 119 mLocationManager = ILocationManager.Stub.asInterface(b); 137 mLocationManager.reportLocation(location, false);
|
/development/samples/training/location-aware/src/com/example/android/location/ |
LocationActivity.java | 52 private LocationManager mLocationManager; 114 mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); 161 mLocationManager.removeUpdates(listener); 169 mLocationManager.removeUpdates(listener); 216 if (mLocationManager.isProviderEnabled(provider)) { 217 mLocationManager.requestLocationUpdates(provider, TEN_SECONDS, TEN_METERS, listener); 218 location = mLocationManager.getLastKnownLocation(provider);
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
GeolocationTest.java | 104 private LocationManager mLocationManager; 155 mLocationManager = (LocationManager)getActivity().getApplicationContext() 158 mProviders = mLocationManager.getAllProviders(); 176 mLocationManager.clearTestProviderEnabled(provider); 177 mLocationManager.removeTestProvider(provider); 187 LocationProvider provider = mLocationManager.getProvider(providerName); 188 mLocationManager.addTestProvider(provider.getName(), 198 mLocationManager.setTestProviderEnabled(provider.getName(), true); 245 mLocationManager.setTestProviderLocation(mProviders.get(i), location);
|
/frameworks/base/services/java/com/android/server/ |
TwilightService.java | 60 private final LocationManager mLocationManager; 76 mLocationManager = (LocationManager)mContext.getSystemService(Context.LOCATION_SERVICE); 358 mLocationManager.removeUpdates(mEmptyLocationListener); 367 mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); 376 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 392 mLocationManager.isProviderEnabled(LocationManager.PASSIVE_PROVIDER); 401 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 425 mLocationManager.getProviders(new Criteria(), true).iterator(); 428 mLocationManager.getLastKnownLocation(providers.next());
|
/cts/tests/tests/app/src/android/app/cts/ |
SystemFeaturesTest.java | 58 private LocationManager mLocationManager; 76 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 185 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) { 192 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) {
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
GrassRS.java | 69 private final LocationManager mLocationManager; 78 mLocationManager = (LocationManager) 99 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 121 mLocationManager.removeUpdates(mLocationUpdater); 334 updateLocation(mLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER));
|
/frameworks/base/location/java/com/android/internal/location/ |
GpsNetInitiatedHandler.java | 89 private final LocationManager mLocationManager; 131 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); 164 mLocationManager.sendNiResponse(notif.notificationId, GPS_NI_RESPONSE_ACCEPT);
|