Home
last modified time | relevance | path

Searched refs:Location (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java35 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 …]
DLocationManagerTest.java21 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/
DLocationBasedCountryDetector.java23 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()
DMockProvider.java21 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()
DLocationProviderInterface.java20 import android.location.Location;
53 void updateLocation(Location location); in updateLocation()
DPassiveProvider.java21 import android.location.Location;
133 public void updateLocation(Location location) { in updateLocation()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerEntry.java21 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()
DKMLFormatter.java21 import android.location.Location;
48 Location loc = entry.getLocation(); in getOutput()
DTrackerDataHelper.java21 import android.location.Location;
83 public void writeEntry(Location loc, float distFromNetLoc) { in writeEntry()
/frameworks/base/location/java/android/location/
DLocation.java38 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 …]
DILocationManager.aidl26 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()
DILocationListener.aidl20 import android.location.Location;
28 void onLocationChanged(in Location location); in onLocationChanged()
DILocationProvider.aidl20 import android.location.Location;
49 void updateLocation(in Location location); in updateLocation()
DLocation.aidl19 parcelable Location;
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProvider.java24 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/
Dobtaining-user-location.jd1 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 …]
Dindex.jd1 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/
DLocationBasedCountryDetectorTest.java20 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/
DExternalSharedPermsFLTest.java20 import android.location.Location;
37 public void onLocationChanged(Location location) {} in testRunFineLocation()
/frameworks/base/core/java/android/webkit/
DGeolocationService.java21 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/
DExternalSharedPermsTest.java20 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/
DExternalSharedPermsDiffKeyTest.java21 import android.location.Location;
40 public void onLocationChanged(Location location) {} in testRunBluetoothAndFineLocation()
/frameworks/base/services/java/com/android/server/
DLocationManagerService.java40 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 …]
DUiModeManagerService.java36 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/
Dandroid.jd208 <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>

123