HomeSort by relevance Sort by last modified time
    Searched refs:LocationManager (Results 1 - 25 of 119) sorted by null

1 2 3 4 5

  /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/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
ApplicationComponent.java 19 import android.location.LocationManager;
34 LocationManager locationManager();
DemoApplicationModule.java 19 import android.location.LocationManager;
45 @Provides @Singleton LocationManager provideLocationManager() {
46 return (LocationManager) application.getSystemService(LOCATION_SERVICE);
DemoApplication.java 19 import android.location.LocationManager;
27 @Inject LocationManager locationManager; // to illustrate injecting something into the app.
  /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);
  /external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/
AndroidModule.java 19 import android.location.LocationManager;
46 @Provides @Singleton LocationManager provideLocationManager() {
47 return (LocationManager) application.getSystemService(LOCATION_SERVICE);
DemoApplication.java 19 import android.location.LocationManager;
37 @Inject LocationManager locationManager; // for some reason.
46 component().inject(this); // As of now, LocationManager should be injected into this.
  /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);
LocationProviderTest.java 20 import android.location.LocationManager;
26 private LocationManager mLocationManager;
32 LocationManager.class);
TestLocationManager.java 25 import android.location.LocationManager;
33 * A {@code LocationManager} wrapper that logs GNSS turn-on and turn-off.
38 private LocationManager mLocationManager;
44 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
48 * See {@code LocationManager#removeUpdates(LocationListener)}.
58 * See {@link android.location.LocationManager#registerGnssMeasurementsCallback
75 * See {@link android.location.LocationManager#registerGnssMeasurementsCallback(GnssMeasurementsEvent.Callback callback)}
93 * See {@link android.location.LocationManager#unregisterGnssMeasurementsCallback
104 * See {@code LocationManager#requestLocationUpdates}.
109 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null)
    [all...]
GpsSatelliteTest.java 23 import android.location.LocationManager;
34 LocationManager lm =
35 (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);
TestLocationListener.java 20 import android.location.LocationManager;
29 * Used for receiving notifications from the LocationManager when the location has changed.
57 if (LocationManager.GPS_PROVIDER.equals(s)) {
64 if (LocationManager.GPS_PROVIDER.equals(s)) {
  /external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/ui/
HomeActivity.java 18 import android.location.LocationManager;
26 @Inject LocationManager locationManager;
33 Log.d("HomeActivity", locationManager.toString());
  /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/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...]
  /external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ui/
HomeActivity.java 18 import android.location.LocationManager;
26 @Inject LocationManager locationManager;
  /external/robolectric/v1/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...]
  /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...]

Completed in 3656 milliseconds

1 2 3 4 5