/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
LocationModeBatterySavingTestActivity.java | 54 testSecureProviderIsEnabled(3, LocationManager.NETWORK_PROVIDER); 60 testManagerProviderIsEnabled(5, LocationManager.NETWORK_PROVIDER);
|
LocationModeDeviceOnlyTestActivity.java | 54 testSecureProviderIsDisabled(3, LocationManager.NETWORK_PROVIDER); 60 testManagerProviderIsDisabled(5, LocationManager.NETWORK_PROVIDER);
|
LocationModeHighAccuracyTestActivity.java | 54 testSecureProviderIsEnabled(3, LocationManager.NETWORK_PROVIDER); 60 testManagerProviderIsEnabled(5, LocationManager.NETWORK_PROVIDER);
|
LocationModeOffTestActivity.java | 50 testSecureProviderIsDisabled(2, LocationManager.NETWORK_PROVIDER); 56 testManagerProviderIsDisabled(4, LocationManager.NETWORK_PROVIDER);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
LocationManagerTest.java | 22 import static android.location.LocationManager.NETWORK_PROVIDER; 44 enabled = locationManager.isProviderEnabled(NETWORK_PROVIDER); 75 shadowLocationManager.setProviderEnabled(NETWORK_PROVIDER, false); 82 shadowLocationManager.setProviderEnabled(NETWORK_PROVIDER, true); 85 assertTrue(providers.contains(NETWORK_PROVIDER)); 90 assertTrue(providers.contains(NETWORK_PROVIDER)); 96 assertTrue(providers.contains(NETWORK_PROVIDER)); 112 assertNull(locationManager.getLastKnownLocation(NETWORK_PROVIDER)); 114 Location networkLocation = new Location(NETWORK_PROVIDER); 117 shadowLocationManager.setLastKnownLocation(NETWORK_PROVIDER, networkLocation) [all...] |
LocationTest.java | 40 Location newLocation = new Location(LocationManager.NETWORK_PROVIDER);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoLocationPermissionTest.java | 166 checkRequestLocationUpdates(LocationManager.NETWORK_PROVIDER); 238 checkGetLastKnownLocation(LocationManager.NETWORK_PROVIDER); 282 checkGetProvider(LocationManager.NETWORK_PROVIDER); 322 checkIsProviderEnabled(LocationManager.NETWORK_PROVIDER);
|
/cts/tests/tests/location2/src/android/location2/cts/ |
LocationManagerTest.java | 112 doTestGetCoarseProvider_allowed(LocationManager.NETWORK_PROVIDER); 129 doTestGetLocationUpdates_withIntent(LocationManager.NETWORK_PROVIDER); 133 doTestGetLocationUpdates_withListener(LocationManager.NETWORK_PROVIDER); 264 addTestProvider(LocationManager.NETWORK_PROVIDER, Criteria.ACCURACY_COARSE, true, false, true); 268 assertFalse(mManager.sendExtraCommand(LocationManager.NETWORK_PROVIDER, "unknown", new Bundle())); 276 removeTestProvider(LocationManager.NETWORK_PROVIDER);
|
/packages/apps/Camera2/src/com/android/camera/app/ |
LegacyLocationProvider.java | 39 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER) 90 android.location.LocationManager.NETWORK_PROVIDER,
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
LocationManager.java | 38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER) 82 android.location.LocationManager.NETWORK_PROVIDER,
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowLocationManager.java | 49 allKnownProviders.add(LocationManager.NETWORK_PROVIDER); 179 if (provider.equals(LocationManager.NETWORK_PROVIDER) && (accuracy == Criteria.ACCURACY_COARSE || powerRequirement == Criteria.POWER_LOW)) { 199 } else if (providers.contains(LocationManager.NETWORK_PROVIDER)) { 200 return LocationManager.NETWORK_PROVIDER;
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
TwilightService.java | 162 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { 164 LocationManager.NETWORK_PROVIDER, this, Looper.getMainLooper());
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
TrackerActivity.java | 163 LocationManager.NETWORK_PROVIDER + ".kml"); 164 exportFile(LocationManager.NETWORK_PROVIDER, exportFileName,
|
TrackerService.java | 178 providerSet.add(LocationManager.NETWORK_PROVIDER); 285 if (LocationManager.NETWORK_PROVIDER.equals(location.getProvider())) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
TwilightManager.java | 106 coarseLoc = getLastKnownLocationForProvider(LocationManager.NETWORK_PROVIDER);
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
FusionEngine.java | 44 private static final String NETWORK = LocationManager.NETWORK_PROVIDER;
|
/frameworks/base/services/core/java/com/android/server/ |
LocationManagerService.java | 496 LocationManager.NETWORK_PROVIDER, 503 mRealProviders.put(LocationManager.NETWORK_PROVIDER, networkProvider); [all...] |
/cts/tests/tests/location/src/android/location/cts/ |
LocationManagerTest.java | 272 cr, LocationManager.NETWORK_PROVIDER); 277 forceRemoveTestProvider(LocationManager.NETWORK_PROVIDER); 279 boolean lmNlp = mManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); 283 boolean expectedNlp = nlp && deviceHasProvider(LocationManager.NETWORK_PROVIDER); [all...] |
/development/samples/training/location-aware/src/com/example/android/location/ |
LocationActivity.java | 189 LocationManager.NETWORK_PROVIDER, R.string.not_support_network);
|
/frameworks/base/services/core/java/com/android/server/location/ |
FlpHardwareProvider.java | 483 !LocationManager.NETWORK_PROVIDER.equals(location.getProvider()) ||
|
/cts/tests/app/src/android/app/cts/ |
SystemFeaturesTest.java | 253 if (mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER) != null) {
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
CameraMetadataNative.java | 242 case LocationManager.NETWORK_PROVIDER: 257 return LocationManager.NETWORK_PROVIDER; [all...] |
/frameworks/base/location/java/android/location/ |
LocationManager.java | 92 public static final String NETWORK_PROVIDER = "network"; 597 * provider (such as {@link #NETWORK_PROVIDER} or {@link #GPS_PROVIDER}), [all...] |
/cts/tests/camera/src/android/hardware/camera2/cts/ |
CameraTestUtils.java | 125 private static final Location sTestLocation2 = new Location(LocationManager.NETWORK_PROVIDER); [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
CameraTestUtils.java | 125 private static final Location sTestLocation2 = new Location(LocationManager.NETWORK_PROVIDER); [all...] |