Home
last modified time | relevance | path

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

1234

/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java36 result = Location.convert(testDegreesCoord); in testConvert_DegreesToDouble()
47 result = Location.convert(testMinutesCoord); in testConvert_MinutesToDouble()
58 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble()
69 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble2()
80 result = Location.convert(-80.075, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees()
88 result = Location.convert(-80.0, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees2()
97 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes()
107 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes2()
117 result = Location.convert(-80.075, Location.FORMAT_SECONDS); in testConvert_CoordinateToSeconds()
128 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/core/java/com/android/server/location/
DLocationFudger.java24 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()
DAbstractLocationProvider.java20 import android.location.Location;
61 void onReportLocation(Location location); in onReportLocation()
67 void onReportLocation(List<Location> locations); in onReportLocation()
82 protected void reportLocation(Location location) { in reportLocation()
89 protected void reportLocation(List<Location> locations) { in reportLocation()
DLocationBasedCountryDetector.java23 import android.location.Location;
75 protected String getCountryFromLocation(Location location) { in getCountryFromLocation()
122 protected Location getLastKnownLocation() { in getLastKnownLocation()
126 Location bestLocation = null; in getLastKnownLocation()
128 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
178 public void onLocationChanged(Location location) { in detectCountry()
237 private synchronized void queryCountryCode(final Location location) { in queryCountryCode()
DGeofenceState.java22 import android.location.Location;
36 private final Location mLocation;
58 mLocation = new Location(""); in GeofenceState()
67 public int processLocation(Location location) { in processLocation()
DMockProvider.java21 import android.location.Location;
40 @Nullable private Location mLocation;
65 public void setLocation(Location l) { in setLocation()
66 mLocation = new Location(l); in setLocation()
/frameworks/base/services/tests/servicestests/src/com/android/server/twilight/
DTwilightServiceTest.java21 import android.location.Location;
27 private Location mInitialLocation;
48 final Location validLocation = createMockLocation(35.0, 35.0); in testValidLocation_updatedLocation()
56 final Location invalidLocation = createMockLocation(0.0, 0.0); in testInvalidLocation_ignoreLocationUpdate()
62 private Location createMockLocation(double latitude, double longitude) { in createMockLocation()
64 final Location location = new Location(""); in createMockLocation()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java20 import android.location.Location;
39 void reportLocation(Location location); in reportLocation()
54 private Location mFusedLocation;
55 private Location mGpsLocation;
56 private Location mNetworkLocation;
64 mNetworkLocation = new Location(""); in FusionEngine()
66 mGpsLocation = new Location(""); in FusionEngine()
165 private static boolean isBetterThan(Location locationA, Location locationB) { in isBetterThan()
195 mFusedLocation = new Location(mGpsLocation); in updateFusedLocation()
197 mFusedLocation = new Location(mNetworkLocation); in updateFusedLocation()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java28 import android.location.Location;
105 private final List<Pair<PrinterInfo, Location>> mFavoritePrinters =
118 private Location mLocation;
121 private Location mLocationOfLastPrinterUpdate;
129 private Location getCurrentLocation() { in getCurrentLocation()
174 List<Pair<PrinterInfo, Location>> favoritePrinters) { in computeAndDeliverResult()
182 Location location = getCurrentLocation(); in computeAndDeliverResult()
194 Location printerLocation = favoritePrinters.get(i).second; in computeAndDeliverResult()
258 Location lastLocation = mLocationManager.getLastLocation(); in onStartLoading()
336 List<Pair<PrinterInfo, Location>> favoritePrinters, in updatePrinters()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareMonitorEvent.java21 import android.location.Location;
35 private final Location mLocation;
41 Location location) { in GeofenceHardwareMonitorEvent()
72 public Location getLocation() { in getLocation()
84 Location location = source.readParcelable(classLoader);
DGeofenceHardwareMonitorCallback.java20 import android.location.Location;
44 public void onMonitoringSystemChange(int monitoringType, boolean available, Location location) { in onMonitoringSystemChange()
DIGeofenceHardwareCallback.aidl19 import android.location.Location;
23 void onGeofenceTransition(int geofenceId, int transition, in Location location, in onGeofenceTransition()
DGeofenceHardwareCallback.java20 import android.location.Location;
41 public void onGeofenceTransition(int geofenceId, int transition, Location location, in onGeofenceTransition()
/frameworks/av/media/libaudioclient/include/media/
DAudioTimestamp.h38 enum Location { enum
103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const {
116 *location = (Location)i;
124 status_t getBestTimestamp(AudioTimestamp *timestamp, Location *location = nullptr) const {
142 double getLatencyMs(uint32_t sampleRate, Location location1, Location location2) const { in getLatencyMs()
/frameworks/base/location/java/android/location/
DLocation.java44 public class Location implements Parcelable { class
166 public Location(String provider) { in Location() method in Location
173 public Location(Location l) { in Location() method in Location
180 public void set(Location l) { in set()
493 public float distanceTo(Location dest) { in distanceTo()
514 public float bearingTo(Location dest) { in bearingTo()
1142 public static final @android.annotation.NonNull Parcelable.Creator<Location> CREATOR =
1143 new Parcelable.Creator<Location>() {
1145 public Location createFromParcel(Parcel in) {
1147 Location l = new Location(provider);
[all …]
DIBatchedLocationCallback.aidl19 import android.location.Location;
28 void onLocationBatch(in List<Location> locations); in onLocationBatch()
DILocationListener.aidl20 import android.location.Location;
29 void onLocationChanged(in Location location); in onLocationChanged()
DILocationManager.aidl30 import android.location.Location;
52 Location getLastLocation(in LocationRequest request, String packageName); in getLastLocation()
87 boolean injectLocation(in Location location); in injectLocation()
105 void setTestProviderLocation(String provider, in Location loc, String opPackageName); in setTestProviderLocation()
/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()
/frameworks/compile/slang/
Dslang_rs_export_reduce.h81 const clang::SourceLocation Location, in RSExportReduce() argument
88 : RSExportable(Context, RSExportable::EX_REDUCE, Location), in RSExportReduce()
89 mLocation(Location), in RSExportReduce()
134 const clang::SourceLocation Location,
/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/location/java/com/android/internal/location/
DILocationProviderManager.aidl19 import android.location.Location;
38 void onReportLocation(in Location location); in onReportLocation()
/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/services/core/java/com/android/server/twilight/
DTwilightService.java26 import android.location.Location;
70 protected Location mLastLocation;
207 final Location location = mLastLocation != null ? mLastLocation in updateTwilightState()
247 public void onLocationChanged(Location location) { in onLocationChanged()
281 private static TwilightState calculateTwilightState(Location location, long timeMillis) { in calculateTwilightState()

1234