/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/base/services/java/com/android/server/location/ |
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() 160 public void onLocationChanged(Location location) { in detectCountry() 219 private synchronized void queryCountryCode(final Location location) { in queryCountryCode()
|
D | MockProvider.java | 21 import android.location.Location; 49 private final Location mLocation; 74 mLocation = new Location(name); in MockProvider() 165 public void setLocation(Location l) { in setLocation() 211 public void updateLocation(Location location) { in updateLocation()
|
D | LocationProviderInterface.java | 20 import android.location.Location; 53 void updateLocation(Location location); in updateLocation()
|
D | PassiveProvider.java | 21 import android.location.Location; 133 public void updateLocation(Location location) { in updateLocation()
|
/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()
|
D | KMLFormatter.java | 21 import android.location.Location; 48 Location loc = entry.getLocation(); in getOutput()
|
D | TrackerDataHelper.java | 21 import android.location.Location; 83 public void writeEntry(Location loc, float distFromNetLoc) { in writeEntry()
|
/frameworks/base/location/java/android/location/ |
D | Location.java | 38 public class Location implements Parcelable { class 103 public Location(String provider) { in Location() method in Location 111 public Location(Location l) { in Location() method in Location 118 public void set(Location l) { in set() 408 public float distanceTo(Location dest) { in distanceTo() 436 public float bearingTo(Location dest) { in bearingTo() 697 public static final Parcelable.Creator<Location> CREATOR = 698 new Parcelable.Creator<Location>() { 699 public Location createFromParcel(Parcel in) { 701 Location l = new Location(provider); [all …]
|
D | ILocationManager.aidl | 26 import android.location.Location; 63 Location getLastKnownLocation(String provider); in getLastKnownLocation() 68 void reportLocation(in Location location, boolean passive); in reportLocation() 82 void setTestProviderLocation(String provider, in Location loc); in setTestProviderLocation()
|
D | ILocationListener.aidl | 20 import android.location.Location; 28 void onLocationChanged(in Location location); in onLocationChanged()
|
D | ILocationProvider.aidl | 20 import android.location.Location; 49 void updateLocation(in Location location); in updateLocation()
|
D | Location.aidl | 19 parcelable Location;
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | LocationProvider.java | 24 import android.location.Location; 120 public void updateLocation(Location location) { 167 public void reportLocation(Location location) { in reportLocation() 330 public abstract void onUpdateLocation(Location location); in onUpdateLocation()
|
/frameworks/base/docs/html/guide/topics/location/ |
D | obtaining-user-location.jd | 1 page.title=Obtaining User Location 2 parent.title=Location and Maps 11 <li>The Network Location Provider provides good location data without using GPS</li> 17 <li><a href="#Challenges">Challenges in Determining User Location</a></li> 18 <li><a href="#Updates">Requesting Location Updates</a> 33 <li><a href="#MockData">Providing Mock Location Data</a></li> 45 utilize GPS and Android's Network Location Provider to acquire the user location. Although 47 the location as quickly as users want. Android's Network Location Provider determines user location 50 location in your application, you can use both GPS and the Network Location Provider, or just 54 <h2 id="Challenges">Challenges in Determining User Location</h2> [all …]
|
D | index.jd | 1 page.title=Location and Maps 17 Location</a></li> 29 <p>Location and maps-based applications are compelling for mobile device users. You 34 <h2 id="location">Location Services</h2> 62 Location</a>.</p>
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
D | LocationBasedCountryDetectorTest.java | 20 import android.location.Location; 41 private final Location mLocation; 53 mLocation = new Location(provider); in TestCountryDetector() 59 protected String getCountryFromLocation(Location location) { in getCountryFromLocation() 76 protected Location getLastKnownLocation() { in getLastKnownLocation() 268 protected Location getLastKnownLocation() { in testFindingLocationFailed() 290 protected String getCountryFromLocation(Location location) { in testFindingCountryFailed()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/ |
D | ExternalSharedPermsFLTest.java | 20 import android.location.Location; 37 public void onLocationChanged(Location location) {} in testRunFineLocation()
|
/frameworks/base/core/java/android/webkit/ |
D | GeolocationService.java | 21 import android.location.Location; 101 public void onLocationChanged(Location location) { in onLocationChanged() 200 private static native void nativeNewLocationAvailable(long nativeObject, Location location); in nativeNewLocationAvailable()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/ |
D | ExternalSharedPermsTest.java | 20 import android.location.Location; 42 public void onLocationChanged(Location location) {} in testRunLocationAndBluetooth()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/ |
D | ExternalSharedPermsDiffKeyTest.java | 21 import android.location.Location; 40 public void onLocationChanged(Location location) {} in testRunBluetoothAndFineLocation()
|
/frameworks/base/services/java/com/android/server/ |
D | LocationManagerService.java | 40 import android.location.Location; 180 private HashMap<String,Location> mLastKnownLocation = 181 new HashMap<String,Location>(); 301 public boolean callLocationChangedLocked(Location location) { in callLocationChangedLocked() 986 Location mLastFixBroadcast; 1369 final Location mLocation; 1380 mLocation = new Location(""); in ProximityAlert() 1394 Location loc = new Location(""); in isInProximity() 1425 public void onLocationChanged(Location loc) { in onLocationChanged() 1687 public void reportLocation(Location location, boolean passive) { in reportLocation() [all …]
|
D | UiModeManagerService.java | 36 import android.location.Location; 106 private Location mLocation; 239 public void onLocationChanged(Location location) { 254 public void onLocationChanged(Location location) { 282 private boolean hasMoved(Location location) { 711 Location location = null; 715 final Location lastKnownLocation = 731 location = new Location("fake");
|
/frameworks/base/docs/html/guide/developing/tools/ |
D | android.jd | 208 <td>Location of your project directory</td> 226 <td>Location path of the project</td> 234 <td>Location path of an Android Library to add, relative to the main project</td> 268 <td>Location path of the project</td> 286 <td>Location path of the project to test, relative to the new project</td> 312 <td>Location path of the project</td> 338 <td>Location path of the project</td> 346 <td>Location path of an Android Library to add, relative to the main project</td>
|