Home
last modified time | relevance | path

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

1234

/packages/apps/Camera2/src/com/android/camera/data/
DLocation.java26 public final class Location { class
27 public static final Location UNKNOWN = new Location(Double.NaN, Double.NaN);
28 public static final Location ZERO = new Location(0.0, 0.0);
33 private Location(double latitude, double longitude) { in Location() method in Location
71 Location location = (Location) o; in equals()
94 public static Location from(double latitude, double longitude) { in from()
101 return new Location(latitude, longitude); in from()
DFilmstripItemData.java46 private final Location mLocation;
59 Location location) { in FilmstripItemData()
146 public Location getLocation() { in getLocation()
194 private Location mLocation = Location.UNKNOWN;
276 public Builder withLocation(Location location) { in withLocation()
/packages/apps/Camera2/src/com/android/camera/app/
DLegacyLocationProvider.java20 import android.location.Location;
47 public Location getCurrentLocation() { in getCurrentLocation()
54 Location l = mLocationListeners[i].current(); in getCurrentLocation()
130 Location mLastLocation;
136 mLastLocation = new Location(mProvider); in LocationListener()
140 public void onLocationChanged(Location newLocation) { in onLocationChanged()
174 public Location current() { in current()
DMediaSaver.java20 import android.location.Location;
86 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage()
108 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage()
126 void addImage(byte[] data, String title, long date, Location loc, int orientation, in addImage()
146 void addImage(byte[] data, String title, Location loc, int width, int height, int orientation, in addImage()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DLocationManagerProxyTest.java25 import android.location.Location;
58 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationManagerProxyCanInjectLocation()
65 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationManagerProxyCanGetLastKnownLocation()
68 Location locationFromProxy = mLocationManagerProxy in testLocationManagerProxyCanGetLastKnownLocation()
DCarLocationServiceTest.java42 import android.location.Location;
215 ArgumentCaptor<Location> argument = ArgumentCaptor.forClass(Location.class); in testLoadsLocationWithHeadlessSystemUser()
221 Location location = argument.getValue(); in testLoadsLocationWithHeadlessSystemUser()
326 Location timbuktu = new Location(LocationManager.GPS_PROVIDER); in testStoresLocationUponShutdownPrepare()
/packages/apps/LegacyCamera/src/com/android/camera/
DLocationManager.java20 import android.location.Location;
51 public Location getCurrentLocation() { in getCurrentLocation()
56 Location l = mLocationListeners[i].current(); in getCurrentLocation()
123 Location mLastLocation;
129 mLastLocation = new Location(mProvider); in LocationListener()
133 public void onLocationChanged(Location newLocation) { in onLocationChanged()
177 public Location current() { in current()
/packages/apps/Camera2/src/com/android/camera/
DMediaSaverImpl.java22 import android.location.Location;
69 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage()
76 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage()
84 (loc == null) ? null : new Location(loc), in addImage()
95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, in addImage()
103 public void addImage(final byte[] data, String title, Location loc, int width, int height, in addImage()
141 private final Location loc;
149 public ImageSaveTask(byte[] data, String title, long date, Location loc, in ImageSaveTask()
DStorage.java23 import android.location.Location;
92 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage()
121 Location location, int orientation, ExifInterface exif, byte[] data, int width, in addImage()
150 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore()
173 long date, Location location, int orientation, long jpegLength, in getContentValuesForData()
270 Location location, int orientation, ExifInterface exif, in updateImage()
396 long date, Location location, int orientation, int jpegLength, in updateImage()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DLauncherLayoutBuilder.java72 public Location atHotseat(int rank) { in atHotseat()
73 Location l = new Location(); in atHotseat()
79 public Location atWorkspace(int x, int y, int screen) { in atWorkspace()
80 Location l = new Location(); in atWorkspace()
127 public class Location { class in LauncherLayoutBuilder
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationUrlBuilder.java22 import android.location.Location;
75 public static String getStaticMapUrl(Context context, Location location) { in getStaticMapUrl()
106 public static String getReverseGeocodeUrl(Location location) { in getReverseGeocodeUrl()
123 Location location, @Nullable CharSequence addressLine1, @Nullable CharSequence addressLine2) { in getShowMapIntent()
159 static String getFormattedLatLng(Location location) { in getFormattedLatLng()
170 static String getMarkerUrlParamValue(Location location) { in getMarkerUrlParamValue()
DLocationPresenter.java20 import android.location.Location;
39 private Location lastLocation;
62 public void onLocationChanged(Location location) { in onLocationChanged()
67 private void updateLocation(Location location, boolean forceUpdate) { in updateLocation()
100 void setLocation(Location location); in setLocation()
DLocationHelper.java20 import android.location.Location;
105 static @LocationStatus int checkLocation(Location location) { in checkLocation()
152 void onLocationChanged(Location location, boolean isConnected) { in onLocationChanged()
222 public void onLocationChanged(Location location) { in onLocationChanged()
234 private void maybeAdjustUpdateInterval(Location location) { in maybeAdjustUpdateInterval()
DLocationFragment.java21 import android.location.Location;
69 private Location location;
134 private void setMap(@NonNull Location location) { in setMap()
165 private void updateMap(@NonNull Location location) { in updateMap()
204 public void setLocation(Location location) { in setLocation()
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java27 import android.location.Location;
209 final Location location = in onReceive()
210 (Location) intent.getExtras().get(LocationManager.KEY_LOCATION_CHANGED); in onReceive()
220 Context appContext, Geocoder geocoder, Location location) { in processLocationUpdate()
247 private static class GeocodeCountryWorker implements Worker<Location, String> {
257 public String doInBackground(@Nullable Location location) throws Throwable { in doInBackground()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmCellBroadcastHandlerTest.java31 import android.location.Location;
193 ArgumentCaptor<Consumer<Location>> consumerCaptor = ArgumentCaptor.forClass(Consumer.class); in testTriggerMessage()
197 Consumer<Location> consumer = consumerCaptor.getValue(); in testTriggerMessage()
198 consumer.accept(Mockito.mock(Location.class)); in testTriggerMessage()
243 ArgumentCaptor<Consumer<Location>> captor = ArgumentCaptor.forClass(Consumer.class); in testGeofencingAlertOutOfPolygon()
247 Consumer<Location> consumer = captor.getValue(); in testGeofencingAlertOutOfPolygon()
248 consumer.accept(Mockito.mock(Location.class)); in testGeofencingAlertOutOfPolygon()
/packages/apps/Camera2/src/com/android/camera/captureintent/
DCaptureIntentSession.java20 import android.location.Location;
58 private Location mLocation;
70 public CaptureIntentSession(String title, Location location, in CaptureIntentSession()
85 public Location getLocation() { in getLocation()
90 public void setLocation(Location location) { in setLocation()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java31 import android.location.Location;
297 Location location = null; in storeLocation()
368 Location location = readLocationFromCacheFile(); in loadLocation()
384 private Location readLocationFromCacheFile() { in readLocationFromCacheFile()
385 Location location = new Location((String) null); in readLocationFromCacheFile()
460 private void injectLocation(Location location, int attemptCount) { in injectLocation()
DLocationManagerProxy.java22 import android.location.Location;
49 public boolean injectLocation(Location location) { in injectLocation()
54 public Location getLastKnownLocation(@NonNull String provider) { in getLastKnownLocation()
/packages/services/Car/car-lib/src/android/car/
DILocationManagerProxy.aidl18 import android.location.Location;
23 boolean injectLocation(in Location location); in injectLocation()
24 Location getLastKnownLocation(in String provider); in getLastKnownLocation()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCamera.java20 import android.location.Location;
273 public final Location location;
278 public CaptureParameters(String title, int orientation, Location location, File in CaptureParameters()
339 public PhotoCaptureParameters(String title, int orientation, Location location, File in PhotoCaptureParameters()
/packages/apps/Camera2/src/com/android/camera/session/
DStackSaverImpl.java20 import android.location.Location;
41 private final Location mGpsLocation;
54 public StackSaverImpl(File stackDirectory, Location gpsLocation, in StackSaverImpl()
DCaptureSession.java20 import android.location.Location;
120 public Location getLocation(); in getLocation()
123 public void setLocation(Location location); in setLocation()
DCaptureSessionImpl.java21 import android.location.Location;
75 private Location mLocation;
108 long sessionStartMillis, Location location, TemporarySessionFile temporarySessionFile, in CaptureSessionImpl()
134 public Location getLocation() { in getLocation()
139 public void setLocation(Location location) { in setLocation()
/packages/apps/Dialer/java/com/android/dialer/multimedia/
DMultimediaData.java19 import android.location.Location;
48 public abstract Location getLocation(); in getLocation()
91 public abstract Builder setLocation(@NonNull Location location); in setLocation()

1234