HomeSort by relevance Sort by last modified time
    Searched full:locationmanager (Results 26 - 50 of 167) sorted by null

12 3 4 5 6 7

  /cts/tests/tests/location/src/android/location/cts/
GpsSatelliteTest.java 23 import android.location.LocationManager;
34 LocationManager lm =
35 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
GpsStatusTest.java 23 import android.location.LocationManager;
34 LocationManager lm =
35 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
LocationProviderTest.java 20 import android.location.LocationManager;
26 private LocationManager mLocationManager;
32 LocationManager.class);
LocationManagerTest.java 33 import android.location.LocationManager;
62 private LocationManager mManager;
75 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
187 return hasProvider(providers, LocationManager.GPS_PROVIDER);
209 p = mManager.getProvider(LocationManager.GPS_PROVIDER);
212 assertEquals(LocationManager.GPS_PROVIDER, p.getName());
270 boolean gps = Settings.Secure.isLocationProviderEnabled(cr, LocationManager.GPS_PROVIDER);
272 cr, LocationManager.NETWORK_PROVIDER);
276 forceRemoveTestProvider(LocationManager.GPS_PROVIDER);
277 forceRemoveTestProvider(LocationManager.NETWORK_PROVIDER)
    [all...]
  /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) {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
LocationListenerActivity.java 7 import android.location.LocationManager;
28 private LocationManager mLocationManager;
35 mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
76 LocationManager.GPS_PROVIDER, 0, 0, mLocationListener);
LocationVerifier.java 21 import android.location.LocationManager;
54 private final LocationManager mLocationManager;
104 assertMeanAndStdev(LocationManager.PASSIVE_PROVIDER, mPassiveDeltas, PASSIVE_MIN_MEAN_RATIO);
198 public LocationVerifier(PassFailLog cb, LocationManager locationManager,
205 mLocationManager = locationManager;
219 mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0,
  /cts/tests/tests/location2/src/android/location2/cts/
LocationManagerTest.java 29 import android.location.LocationManager;
59 private LocationManager mManager;
72 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
84 doTestGetFineProvider_notAllowed(LocationManager.GPS_PROVIDER);
96 fail("LocationManager.getProvider() did not throw SecurityException as expected");
112 doTestGetCoarseProvider_allowed(LocationManager.NETWORK_PROVIDER);
129 doTestGetLocationUpdates_withIntent(LocationManager.NETWORK_PROVIDER);
133 doTestGetLocationUpdates_withListener(LocationManager.NETWORK_PROVIDER);
216 assertFalse(hasProvider(providers, LocationManager.PASSIVE_PROVIDER));
217 assertFalse(hasProvider(providers, LocationManager.GPS_PROVIDER))
    [all...]
  /device/huawei/angler/sepolicy/
thermald.te 22 # (e.g., LocationManager)
  /frameworks/base/services/core/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;
GeofenceManager.java 31 import android.location.LocationManager;
71 private final LocationManager mLocationManager;
87 * {@link LocationManager#requestLocationUpdates(LocationRequest, LocationListener,
111 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
206 * or consult {@link LocationManager#getLastLocation()} if none has arrived. Does not return
212 // Prefer mLastLocationUpdate to LocationManager.getLastLocation().
237 * update request with {@link LocationManager} as appropriate for any active geofences.
251 // via LocationManager.getLastLocation().
353 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, true);
363 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, false)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/captureintent/resource/
ResourceConstructedImpl.java 27 import com.android.camera.app.LocationManager;
47 private final LocationManager mLocationManager;
72 LocationManager locationManager,
84 oneCameraManager, locationManager, orientationManager, settingsManager, burstFacade,
96 LocationManager locationManager,
111 mLocationManager = locationManager;
167 public LocationManager getLocationManager() {
  /frameworks/support/v7/appcompat/src/android/support/v7/app/
TwilightManager.java 22 import android.location.LocationManager;
47 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE));
58 private final LocationManager mLocationManager;
63 TwilightManager(@NonNull Context context, @NonNull LocationManager locationManager) {
65 mLocationManager = locationManager;
106 coarseLoc = getLastKnownLocationForProvider(LocationManager.NETWORK_PROVIDER);
112 fineLoc = getLastKnownLocationForProvider(LocationManager.GPS_PROVIDER);
  /packages/apps/Camera2/src/com/android/camera/app/
LegacyLocationProvider.java 34 private android.location.LocationManager mLocationManager;
38 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
39 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
90 android.location.LocationManager.NETWORK_PROVIDER,
101 android.location.LocationManager.GPS_PROVIDER,
  /external/robolectric/v1/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...]
  /frameworks/base/location/java/android/location/
GnssMeasurementCallbackTransport.java 33 public GnssMeasurementCallbackTransport(Context context, ILocationManager locationManager) {
35 mLocationManager = locationManager;
GnssNavigationMessageCallbackTransport.java 35 ILocationManager locationManager) {
37 mLocationManager = locationManager;
  /frameworks/base/services/core/java/com/android/server/twilight/
TwilightService.java 29 import android.location.LocationManager;
63 private LocationManager mLocationManager;
121 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE);
162 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
164 LocationManager.NETWORK_PROVIDER, this, Looper.getMainLooper());
165 } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
167 LocationManager.GPS_PROVIDER, this, Looper.getMainLooper());
  /frameworks/base/docs/html/guide/topics/location/
strategies.jd 29 <li>{@link android.location.LocationManager}</li>
94 like to receive location updates from the {@link android.location.LocationManager} ("Location
95 Manager") by calling {@link android.location.LocationManager#requestLocationUpdates
107 LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
124 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
128 android.location.LocationManager#requestLocationUpdates requestLocationUpdates()} is the type of
139 android.location.LocationManager#requestLocationUpdates requestLocationUpdates()} twice&mdash;onc
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
NetInitiatedActivity.java 30 import android.location.LocationManager;
139 LocationManager locationManager = (LocationManager)
141 locationManager.sendNiResponse(notificationId, response);
  /frameworks/base/docs/html/sdk/api_diff/19/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>
87 <A NAME="android.location.LocationManager.MODE_CHANGED_ACTION"></A>
88 <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/location/LocationManager.html#MODE_CHANGED_ACTION" target="_top"><code>MODE_CHANGED_ACTION</code></A></nobr>
  /frameworks/base/docs/html-intl/intl/ja/training/basics/activity-lifecycle/
stopping.jd 158 LocationManager locationManager =
159 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
160 boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
  /frameworks/base/docs/html-intl/intl/ko/training/basics/activity-lifecycle/
stopping.jd 158 LocationManager locationManager =
159 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
160 boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
  /frameworks/base/docs/html-intl/intl/ru/training/basics/activity-lifecycle/
stopping.jd 158 LocationManager locationManager =
159 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
160 boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
  /frameworks/base/docs/html-intl/intl/zh-cn/training/basics/activity-lifecycle/
stopping.jd 158 LocationManager locationManager =
159 (LocationManager) getSystemService(Context.LOCATION_SERVICE);
160 boolean gpsEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);

Completed in 684 milliseconds

12 3 4 5 6 7