/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...] |
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());
|
/device/moto/shamu/sepolicy/ |
system_server.te | 2 # (e.g., LocationManager)
|
/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,
|
/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);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
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);
|
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);
|
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/ |
TestLocationManager.java | 24 import android.location.LocationManager; 32 * A {@code LocationManager} wrapper that logs GNSS turn-on and turn-off. 37 private LocationManager mLocationManager; 43 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 47 * See {@code LocationManager#removeUpdates(LocationListener)}. 57 * See {@link android.location.LocationManager#registerGnssMeasurementsCallback 74 * See {@link android.location.LocationManager#registerGnssMeasurementsCallback(GnssMeasurementsEvent.Callback callback)} 92 * See {@link android.location.LocationManager#unregisterGnssMeasurementsCallback 103 * See {@code LocationManager#requestLocationUpdates}. 108 if (mLocationManager.getProvider(LocationManager.GPS_PROVIDER) != null) [all...] |
TestLocationListener.java | 20 import android.location.LocationManager; 27 * Used for receiving notifications from the LocationManager when the location has changed. 52 if (LocationManager.GPS_PROVIDER.equals(s)) { 59 if (LocationManager.GPS_PROVIDER.equals(s)) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/ |
CountryDetector.java | 10 import android.location.LocationManager; 37 * 4) Location updates only uses the {@link LocationManager#PASSIVE_PROVIDER} to avoid active use 52 private final LocationManager mLocationManager; 80 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE), 85 LocationManager locationManager, LocaleProvider localeProvider) { 87 mLocationManager = locationManager; 95 LocationManager locationManager) { 111 locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER [all...] |
/external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/ |
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.
|
AndroidModule.java | 19 import android.location.LocationManager; 46 @Provides @Singleton LocationManager provideLocationManager() { 47 return (LocationManager) application.getSystemService(LOCATION_SERVICE);
|
/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());
|
/frameworks/base/docs/html/sdk/api_diff/24/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> 86 <A NAME="android.location.LocationManager.addNmeaListener_added(android.location.OnNmeaMessageListener)"></A> 87 <nobr><code>boolean</code> <A HREF="../../../../reference/android/location/LocationManager.html#addNmeaListener(android.location.OnNmeaMessageListener)" target="_top"><code>addNmeaListener</code></A>(<code>OnNmeaMessageListener</code>)</nobr> 93 <A NAME="android.location.LocationManager.addNmeaListener_added(android.location.OnNmeaMessageListener, android.os.Handler)"></A> 94 <nobr><code>boolean</code> <A HREF="../../../../reference/android/location/LocationManager.html#addNmeaListener(android.location.OnNmeaMessageListener, android.os.Handler)" target="_top"><code>addNmeaListener</code></A>(<code>OnNmeaMessageListener,</nobr> Handler<nobr><nobr></code>)</nobr> 100 <A NAME="android.location.LocationManager.registerGnssMeasurementsCallback_added(android.location.GnssMeasurementsEvent.Callback)"></A> 101 <nobr><code>boolean</code> <A HREF="../../../../reference/android/location/LocationManager.html#registerGnssMeasurementsCallback(android.location.GnssMeasurementsEvent.Callback)" target="_top"><code>registerGnssMeasurementsCallback</code></A>(<code>Callback</code>)</nobr> 107 <A NAME="android.location.LocationManager.registerGnssMeasurementsCallback_added(android.location.GnssMeasurementsEvent.Callback, android.os (…) [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...] |
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ |
ApplicationComponent.java | 19 import android.location.LocationManager; 34 LocationManager locationManager();
|
DemoApplication.java | 19 import android.location.LocationManager; 27 @Inject LocationManager locationManager; // to illustrate injecting something into the app.
|
DemoApplicationModule.java | 19 import android.location.LocationManager; 45 @Provides @Singleton LocationManager provideLocationManager() { 46 return (LocationManager) application.getSystemService(LOCATION_SERVICE);
|
/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;
|
/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...] |