/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationTest.java | 36 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 …]
|
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/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 | AbstractLocationProvider.java | 20 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()
|
D | LocationBasedCountryDetector.java | 23 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()
|
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 | 21 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/ |
D | TwilightServiceTest.java | 21 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/ |
D | FusionEngine.java | 20 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/ |
D | FusedPrintersProvider.java | 28 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/ |
D | GeofenceHardwareMonitorEvent.java | 21 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);
|
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()
|
D | GeofenceHardwareCallback.java | 20 import android.location.Location; 41 public void onGeofenceTransition(int geofenceId, int transition, Location location, in onGeofenceTransition()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioTimestamp.h | 38 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/ |
D | Location.java | 44 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 …]
|
D | IBatchedLocationCallback.aidl | 19 import android.location.Location; 28 void onLocationBatch(in List<Location> locations); in onLocationBatch()
|
D | ILocationListener.aidl | 20 import android.location.Location; 29 void onLocationChanged(in Location location); in onLocationChanged()
|
D | ILocationManager.aidl | 30 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/ |
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/compile/slang/ |
D | slang_rs_export_reduce.h | 81 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/ |
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/location/java/com/android/internal/location/ |
D | ILocationProviderManager.aidl | 19 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/ |
D | ExternalSharedPermsFLTest.java | 20 import android.location.Location; 37 public void onLocationChanged(Location location) {} in testRunFineLocation()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 26 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()
|