/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationTest.java | 35 result = Location.convert(testDegreesCoord); in testConvert_DegreesToDouble() 46 result = Location.convert(testMinutesCoord); in testConvert_MinutesToDouble() 57 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble() 68 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble2() 79 result = Location.convert(-80.075, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees() 87 result = Location.convert(-80.0, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees2() 96 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes() 106 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes2() 116 result = Location.convert(-80.075, Location.FORMAT_SECONDS); in testConvert_CoordinateToSeconds() 127 Location zeroLocation = new Location(""); in testBearingTo() [all …]
|
D | LocationManagerTest.java | 21 import android.location.Location; 88 String loc1 = Location.convert(-80.075, Location.FORMAT_DEGREES); in testLocationConversions() 92 String loc1b = Location.convert(-80.0, Location.FORMAT_DEGREES); in testLocationConversions() 96 String loc2 = Location.convert(-80.085, Location.FORMAT_DEGREES); in testLocationConversions() 100 String loc3 = Location.convert(-80.085, Location.FORMAT_MINUTES); in testLocationConversions() 104 String loc4 = Location.convert(-80.085, Location.FORMAT_SECONDS); in testLocationConversions() 108 String loc5 = Location.convert(5 + 0.5f / 60.0f, Location.FORMAT_MINUTES); in testLocationConversions() 120 String loc6 = Location.convert(0.1, Location.FORMAT_DEGREES); in testLocationConversions() 124 String loc7 = Location.convert(0.1, Location.FORMAT_MINUTES); in testLocationConversions() 128 String loc8 = Location.convert(0.1, Location.FORMAT_SECONDS); in testLocationConversions()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | StaggeredGrid.java | 67 public final static class Location { class in StaggeredGrid 76 public Location(int row) { in Location() method in StaggeredGrid.Location 98 protected CircularArray<Location> mLocations = new CircularArray<Location>(64); 190 public final Location getLocation(int index) { in getLocation() 214 Location loc = mLocations.get(i); in debugPrint() 241 protected final Location appendItemToRow(int itemIndex, int rowIndex) { in appendItemToRow() 242 Location loc = new Location(rowIndex); in appendItemToRow() 276 protected final Location prependItemToRow(int itemIndex, int rowIndex) { in prependItemToRow() 277 Location loc = new Location(rowIndex); in prependItemToRow()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationFudger.java | 24 import android.location.Location; 165 public Location getOrCreate(Location location) { in getOrCreate() 167 Location coarse = location.getExtraLocation(Location.EXTRA_COARSE_LOCATION); in getOrCreate() 178 private Location addCoarseLocationExtraLocked(Location location) { in addCoarseLocationExtraLocked() 179 Location coarse = createCoarseLocked(location); in addCoarseLocationExtraLocked() 180 location.setExtraLocation(Location.EXTRA_COARSE_LOCATION, coarse); in addCoarseLocationExtraLocked() 199 private Location createCoarseLocked(Location fine) { in createCoarseLocked() 200 Location coarse = new Location(fine); in createCoarseLocked()
|
D | LocationBasedCountryDetector.java | 23 import android.location.Location; 74 protected String getCountryFromLocation(Location location) { in getCountryFromLocation() 111 protected Location getLastKnownLocation() { in getLastKnownLocation() 113 Location bestLocation = null; in getLastKnownLocation() 115 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation() 162 public void onLocationChanged(Location location) { in detectCountry() 221 private synchronized void queryCountryCode(final Location location) { in queryCountryCode()
|
D | FlpHardwareProvider.java | 26 import android.location.Location; 107 private void onLocationReport(Location[] locations) { in onLocationReport() 108 for (Location location : locations) { in onLocationReport() 145 Location location, in onGeofenceTransition() 160 private void onGeofenceMonitorStatus(int status, int source, Location location) { in onGeofenceMonitorStatus() 162 Location updatedLocation = null; in onGeofenceMonitorStatus() 228 private native void nativeInjectLocation(Location location); in nativeInjectLocation() 387 public void onLocationChanged(Location location) { in onLocationChanged() 438 private Location updateLocationInformation(Location location) { in updateLocationInformation()
|
D | GeofenceState.java | 22 import android.location.Location; 36 private final Location mLocation; 58 mLocation = new Location(""); in GeofenceState() 67 public int processLocation(Location location) { in processLocation()
|
D | MockProvider.java | 20 import android.location.Location; 45 private final Location mLocation; 63 mLocation = new Location(name); in MockProvider() 107 public void setLocation(Location l) { in setLocation()
|
/frameworks/base/docs/html/training/location/ |
D | location-testing.jd | 14 <li><a href="#RunProvider">Run the Mock Location Provider App</a></li> 20 <li><a href="receive-location-updates.html">Receiving Location Updates</a></li> 37 To test a location-aware app that uses Location Services, you don't need to move your device 38 from place to place to generate location data. Instead, you can put Location Services into mock 39 mode. In this mode, you can send mock {@link android.location.Location} objects to 40 Location Services, which then sends them to location clients. In mock mode, Location Services 41 also uses mock {@link android.location.Location} objects to trigger geofences. 52 Since mock locations come from Location Services, they test every part of your 69 send mock locations to Location Services. 73 by Location Services. To learn more about activity recognition, see the lesson [all …]
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusionEngine.java | 28 import android.location.Location; 40 public void reportLocation(Location location); in reportLocation() 56 private Location mFusedLocation; 57 private Location mGpsLocation; 58 private Location mNetworkLocation; 68 mNetworkLocation = new Location(""); in FusionEngine() 70 mGpsLocation = new Location(""); in FusionEngine() 202 private static boolean isBetterThan(Location locationA, Location locationB) { in isBetterThan() 231 mFusedLocation = new Location(mGpsLocation); in updateFusedLocation() 233 mFusedLocation = new Location(mNetworkLocation); in updateFusedLocation() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareMonitorEvent.java | 20 import android.location.Location; 34 private final Location mLocation; 40 Location location) { in GeofenceHardwareMonitorEvent() 71 public Location getLocation() { in getLocation() 83 Location location = source.readParcelable(classLoader);
|
D | IFusedLocationHardwareSink.aidl | 19 import android.location.Location; 33 void onLocationAvailable(in Location[] locations); in onLocationAvailable()
|
D | GeofenceHardwareMonitorCallback.java | 20 import android.location.Location; 44 public void onMonitoringSystemChange(int monitoringType, boolean available, Location location) { in onMonitoringSystemChange()
|
D | IGeofenceHardwareCallback.aidl | 19 import android.location.Location; 23 void onGeofenceTransition(int geofenceId, int transition, in Location location, in onGeofenceTransition()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 29 import android.location.Location; 156 private static boolean hasMoved(Location from, Location to) { in hasMoved() 201 private Location mLocation; 204 public void processNewLocation(Location location) { in processNewLocation() 225 final Location location = (Location)msg.obj; in handleMessage() 321 Location location = null; in retrieveLocation() 325 final Location lastKnownLocation = in retrieveLocation() 343 location = new Location("fake"); in retrieveLocation() 358 private void setLocation(Location location) { in setLocation() 444 public void onLocationChanged(Location location) { [all …]
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | LocationStatsAggregator.java | 26 import android.location.Location; 152 private Location getLastKnownLocation() { in getLastKnownLocation() 154 Location bestResult = null; in getLastKnownLocation() 161 Location location = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation() 187 Location location = getLastKnownLocation(); in onReceive() 210 if (!(msg.obj instanceof Location)) { in setClusteringThread() 213 Location location = (Location) msg.obj; in setClusteringThread() 228 public void onLocationChanged(Location location) {
|
D | LocationCluster.java | 18 import android.location.Location; 30 private ArrayList<Location> mLocations = new ArrayList<Location>(); 48 public LocationCluster(Location location, long duration) { in LocationCluster() 53 public void addSample(Location location, long duration) { in addSample() 71 for (Location location : mLocations) { in consolidate()
|
/frameworks/base/location/java/android/location/ |
D | Location.java | 41 public class Location implements Parcelable { class 116 public Location(String provider) { in Location() method in Location 123 public Location(Location l) { in Location() method in Location 130 public void set(Location l) { in set() 424 public float distanceTo(Location dest) { in distanceTo() 452 public float bearingTo(Location dest) { in bearingTo() 863 public static final Parcelable.Creator<Location> CREATOR = 864 new Parcelable.Creator<Location>() { 866 public Location createFromParcel(Parcel in) { 868 Location l = new Location(provider); [all …]
|
D | ILocationManager.aidl | 28 import android.location.Location; 49 Location getLastLocation(in LocationRequest request, String packageName); in getLastLocation() 82 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation() 96 void reportLocation(in Location location, boolean passive); in reportLocation()
|
D | ILocationListener.aidl | 20 import android.location.Location; 28 void onLocationChanged(in Location location); in onLocationChanged()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerEntry.java | 21 import android.location.Location; 37 private Location mLocation; 87 private TrackerEntry(Location loc) { in TrackerEntry() 89 mLocation = new Location(loc); in TrackerEntry() 95 static TrackerEntry createEntry(Location loc, float distFromNetLocation) { in createEntry() 131 private void setLocation(Location location) { in setLocation() 143 Location getLocation() { in getLocation() 215 Location location = new Location(tag); in createEntry()
|
/frameworks/base/docs/html/guide/topics/location/ |
D | index.jd | 1 page.title=Location and Maps 10 <li><a href="#location">Location Services</a></li> 19 package {@link android.location}. The Google Location Services API, part of Google Play 21 location provider choice and power management. Location Services also provides new 24 to their apps, should strongly consider using the Location Services API. 27 To learn more about the Location Services API, see 28 <a href="{@docRoot}google/play-services/location.html">Google Location Services for Android</a>. 32 Location and maps-based apps offer a compelling experience on mobile devices. You 38 <h2 id="location">Location Services</h2> 65 href="{@docRoot}guide/topics/location/strategies.html">Location Strategies</a> guide.</p>
|
D | strategies.jd | 1 page.title=Location Strategies 9 <li><a href="#Challenges">Challenges in Determining User Location</a></li> 10 <li><a href="#Updates">Requesting Location Updates</a> 25 <li><a href="#MockData">Providing Mock Location Data</a></li> 37 API in {@link android.location}. The Google Location Services API, part of Google Play 42 Location Services API. 45 To learn more about the Location Services API, see 46 <a href="{@docRoot}google/play-services/location.html">Google Location Services for Android</a>. 51 utilize GPS and Android's Network Location Provider to acquire the user location. Although 53 the location as quickly as users want. Android's Network Location Provider determines user location [all …]
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | FusedLocationHardwareSink.java | 19 import android.location.Location; 28 public abstract void onLocationAvailable(Location[] locations); in onLocationAvailable()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationManagerService.java | 72 import android.location.Location; 201 private final HashMap<String, Location> mLastLocation = new HashMap<String, Location>(); 205 private final HashMap<String, Location> mLastLocationCoarseInterval = 206 new HashMap<String, Location>(); 791 public boolean callLocationChangedLocked(Location location) { in callLocationChangedLocked() 797 mListener.onLocationChanged(new Location(location)); in callLocationChangedLocked() 807 … locationChanged.putExtra(LocationManager.KEY_LOCATION_CHANGED, new Location(location)); in callLocationChangedLocked() 1384 Location mLastFixBroadcast; 1691 public Location getLastLocation(LocationRequest request, String packageName) { in getLastLocation() 1725 Location location; in getLastLocation() [all …]
|