Home
last modified time | relevance | path

Searched refs:LocationManager (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
DExternalSharedPermsFLTest.java22 import android.location.LocationManager;
33 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunFineLocation()
35 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunFineLocation()
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/
DExternalSharedPermsTest.java22 import android.location.LocationManager;
38 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunLocationAndBluetooth()
40 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunLocationAndBluetooth()
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/
DExternalSharedPermsDiffKeyTest.java23 import android.location.LocationManager;
36 LocationManager locationManager = (LocationManager)getInstrumentation().getContext( in testRunBluetoothAndFineLocation()
38 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, in testRunBluetoothAndFineLocation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java29 import android.location.LocationManager;
74 filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION); in LocationControllerImpl()
75 filter.addAction(LocationManager.MODE_CHANGED_ACTION); in LocationControllerImpl()
129 LocationManager locationManager = in isLocationEnabled()
130 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in isLocationEnabled()
193 if (LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION.equals(action)) { in onReceive()
195 } else if (LocationManager.MODE_CHANGED_ACTION.equals(action)) { in onReceive()
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java26 import android.location.LocationManager;
209 final LocationManager LocationManager = in isLocationModeEnabled() local
210 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in isLocationModeEnabled()
212 return LocationManager.isLocationEnabledForUser(UserHandle.of( in isLocationModeEnabled()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java30 import android.location.LocationManager;
116 LocationManager lm = getLocationManager(); in initLocationListeners()
175 providerSet.add(LocationManager.GPS_PROVIDER); in getTrackedProviders()
178 providerSet.add(LocationManager.NETWORK_PROVIDER); in getTrackedProviders()
241 LocationManager lm = getLocationManager(); in stopListeners()
268 private LocationManager getLocationManager() { in getLocationManager()
269 return (LocationManager) getSystemService(Context.LOCATION_SERVICE); in getLocationManager()
285 if (LocationManager.NETWORK_PROVIDER.equals(location.getProvider())) { in getDistanceFromNetwork()
DTrackerActivity.java29 import android.location.LocationManager;
163 LocationManager.NETWORK_PROVIDER + ".kml"); in exportKML()
164 exportFile(LocationManager.NETWORK_PROVIDER, exportFileName, in exportKML()
167 LocationManager.GPS_PROVIDER + ".kml"); in exportKML()
168 exportFile(LocationManager.GPS_PROVIDER, exportFileName, in exportKML()
/frameworks/base/services/core/java/com/android/server/
DLocationUsageLogger.java21 import android.location.LocationManager;
48 if (LocationManager.NETWORK_PROVIDER.equals(provider)) { in providerNameToStatsdEnum()
50 } else if (LocationManager.GPS_PROVIDER.equals(provider)) { in providerNameToStatsdEnum()
52 } else if (LocationManager.PASSIVE_PROVIDER.equals(provider)) { in providerNameToStatsdEnum()
54 } else if (LocationManager.FUSED_PROVIDER.equals(provider)) { in providerNameToStatsdEnum()
DSensorNotificationService.java31 import android.location.LocationManager;
57 private LocationManager mLocationManager;
87 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in onBootPhase()
92 LocationManager.PASSIVE_PROVIDER, in onBootPhase()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DLocationControllerImplTest.java22 import android.location.LocationManager;
64 LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION)); in testRemoveSelfActive_DoesNotCrash()
67 LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION)); in testRemoveSelfActive_DoesNotCrash()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java22 import android.location.LocationManager;
43 private static final String NETWORK = LocationManager.NETWORK_PROVIDER;
44 private static final String GPS = LocationManager.GPS_PROVIDER;
49 private final LocationManager mLocationManager;
63 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in FusionEngine()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java28 import android.location.LocationManager;
64 private LocationManager mLocationManager;
122 mLocationManager = (LocationManager) c.getSystemService(Context.LOCATION_SERVICE); in onBootPhase()
163 if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { in startListening()
165 LocationManager.NETWORK_PROVIDER, this, Looper.getMainLooper()); in startListening()
/frameworks/base/services/core/java/com/android/server/location/
DLocationBasedCountryDetector.java25 import android.location.LocationManager;
64 private LocationManager mLocationManager;
69 mLocationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE); in LocationBasedCountryDetector()
92 return LocationManager.PASSIVE_PROVIDER.equals(provider); in isAcceptableProvider()
DGeofenceManager.java33 import android.location.LocationManager;
76 private final LocationManager mLocationManager;
122 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in GeofenceManager()
387 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, true); in sendIntentEnter()
397 intent.putExtra(LocationManager.KEY_PROXIMITY_ENTERING, false); in sendIntentExit()
/frameworks/base/core/java/com/android/internal/app/
DNetInitiatedActivity.java26 import android.location.LocationManager;
140 LocationManager locationManager = (LocationManager) in sendUserResponse()
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationManagerTest.java22 import android.location.LocationManager;
32 private LocationManager manager;
37 manager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
/frameworks/base/non-updatable-api/
Dsystem-lint-baseline.txt150 SamShouldBeLast: android.location.LocationManager#addNmeaListener(android.location.OnNmeaMessageLis…
152 SamShouldBeLast: android.location.LocationManager#registerGnssMeasurementsCallback(java.util.concur…
154 SamShouldBeLast: android.location.LocationManager#registerGnssNavigationMessageCallback(java.util.c…
156 SamShouldBeLast: android.location.LocationManager#registerGnssStatusCallback(java.util.concurrent.E…
158 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(String, long, float, andro…
160 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(String, long, float, java.…
162 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(android.location.LocationR…
164 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(long, float, android.locat…
166 SamShouldBeLast: android.location.LocationManager#requestLocationUpdates(long, float, android.locat…
168 SamShouldBeLast: android.location.LocationManager#requestSingleUpdate(String, android.location.Loca…
[all …]
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java28 import android.location.LocationManager;
101 private final LocationManager mLocationManager;
167 } else if (action.equals(LocationManager.MODE_CHANGED_ACTION)) {
194 mLocationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); in GpsNetInitiatedHandler()
216 intentFilter.addAction(LocationManager.MODE_CHANGED_ACTION); in GpsNetInitiatedHandler()
232 mIsLocationEnabled = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); in updateLocationMode()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java36 import android.location.LocationManager;
76 private LocationManager mLocationManager;
98 argThat(actionMatches(LocationManager.MODE_CHANGING_ACTION)), in testUpdateLocationEnabled_sendBroadcast()
178 @Implements(value = LocationManager.class)
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java28 import android.location.LocationManager;
308 LocationManager locationManager = context.getSystemService(LocationManager.class); in isLocationModeEnabled()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java24 import android.location.LocationManager;
51 private LocationManager mLocationManager;
429 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in retrieveLocationManagerIfNecessary()
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java23 import android.location.LocationManager;
77 public static final String FUSED_PROVIDER = LocationManager.FUSED_PROVIDER;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java17 import android.location.LocationManager;
59 LocationManager locationManager = context.getSystemService(LocationManager.class); in updateLocationEnabled()
65 Intent intent = new Intent(LocationManager.MODE_CHANGING_ACTION); in updateLocationEnabled()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java22 import android.location.LocationManager;
36 LocationManager.GPS_PROVIDER, LocationManager.PASSIVE_PROVIDER);
/frameworks/base/location/java/android/location/
DLocationRequest.java173 private String mProvider = LocationManager.FUSED_PROVIDER;
202 if (LocationManager.PASSIVE_PROVIDER.equals(provider)) { in createFromDeprecatedProvider()
204 } else if (LocationManager.GPS_PROVIDER.equals(provider)) { in createFromDeprecatedProvider()

123