Lines Matching defs:location

17 package com.android.server.location;
20 import android.hardware.location.GeofenceHardware;
21 import android.hardware.location.GeofenceHardwareImpl;
22 import android.hardware.location.GeofenceHardwareRequestParcelable;
23 import android.hardware.location.IFusedLocationHardware;
24 import android.hardware.location.IFusedLocationHardwareSink;
25 import android.location.FusedBatchOptions;
26 import android.location.IFusedGeofenceHardware;
27 import android.location.Location;
28 import android.location.LocationListener;
29 import android.location.LocationManager;
30 import android.location.LocationRequest;
112 for (Location location : locations) {
113 location.setProvider(LocationManager.FUSED_PROVIDER);
115 location.setElapsedRealtimeNanos(SystemClock.elapsedRealtimeNanos());
214 Location location,
222 updateLocationInformation(location),
229 private void onGeofenceMonitorStatus(int status, int source, Location location) {
230 // allow the location to be optional in this event
232 if(location != null) {
233 updatedLocation = updateLocationInformation(location);
302 private native void nativeInjectLocation(Location location);
481 public void onLocationChanged(Location location) {
483 !LocationManager.NETWORK_PROVIDER.equals(location.getProvider()) ||
484 !location.hasAccuracy()
489 nativeInjectLocation(location);
533 private Location updateLocationInformation(Location location) {
534 location.setProvider(LocationManager.FUSED_PROVIDER);
536 location.setElapsedRealtimeNanos(SystemClock.elapsedRealtimeNanos());
537 return location;