/packages/services/Car/service/src/com/android/car/ |
D | CarLocationService.java | 32 import android.location.Location; 33 import android.location.LocationManager; 274 Location location = null; in storeLocation() local 281 location = mILocationManagerProxy.getLastKnownLocation( in storeLocation() 287 if (location == null) { in storeLocation() 290 logd("Storing location: " + location); in storeLocation() 297 jsonWriter.name("provider").value(location.getProvider()); in storeLocation() 298 jsonWriter.name("latitude").value(location.getLatitude()); in storeLocation() 299 jsonWriter.name("longitude").value(location.getLongitude()); in storeLocation() 300 if (location.hasAltitude()) { in storeLocation() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | LocationHelper.java | 20 import android.location.Location; 30 import com.google.android.gms.location.FusedLocationProviderClient; 31 import com.google.android.gms.location.LocationListener; 32 import com.google.android.gms.location.LocationRequest; 33 import com.google.android.gms.location.LocationServices; 105 static @LocationStatus int checkLocation(Location location) { in checkLocation() argument 106 if (location == null) { in checkLocation() 111 long locationTimeMs = location.getTime(); in checkLocation() 118 if (location.getAccuracy() > LOCATION_ACCURACY_THRESHOLD_METERS) { in checkLocation() 119 LogUtil.i("LocationHelper.checkLocation", "poor accuracy: " + location.getAccuracy()); in checkLocation() [all …]
|
D | LocationFragment.java | 21 import android.location.Location; 69 private Location location; field in LocationFragment 134 private void setMap(@NonNull Location location) { in setMap() argument 136 Assert.isNotNull(location); in setMap() 144 updateMap(location); in setMap() 159 updateMap(location); in setMap() 165 private void updateMap(@NonNull Location location) { in updateMap() argument 166 Assert.isNotNull(location); in updateMap() 168 LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); in updateMap() 204 public void setLocation(Location location) { in setLocation() argument [all …]
|
D | LocationUrlBuilder.java | 22 import android.location.Location; 75 public static String getStaticMapUrl(Context context, Location location) { in getStaticMapUrl() argument 89 .appendQueryParameter(CENTER_PARAM_KEY, getFormattedLatLng(location)) in getStaticMapUrl() 93 .appendQueryParameter(MARKERS_PARAM_KEY, getMarkerUrlParamValue(location)) in getStaticMapUrl() 106 public static String getReverseGeocodeUrl(Location location) { in getReverseGeocodeUrl() argument 116 .appendQueryParameter(LAT_LNG_PARAM_KEY, getFormattedLatLng(location)) in getReverseGeocodeUrl() 123 Location location, @Nullable CharSequence addressLine1, @Nullable CharSequence addressLine2) { in getShowMapIntent() argument 125 String latLong = getFormattedLatLng(location); in getShowMapIntent() 142 location.getLatitude(), in getShowMapIntent() 143 location.getLongitude()); in getShowMapIntent() [all …]
|
D | LocationPresenter.java | 20 import android.location.Location; 27 import com.google.android.gms.location.LocationListener; 62 public void onLocationChanged(Location location) { in onLocationChanged() argument 64 updateLocation(location, false); in onLocationChanged() 67 private void updateLocation(Location location, boolean forceUpdate) { in updateLocation() argument 68 LogUtil.i("LocationPresenter.updateLocation", "location: " + location); in updateLocation() 69 if (forceUpdate || !Objects.equals(lastLocation, location)) { in updateLocation() 70 lastLocation = location; in updateLocation() 71 int status = LocationHelper.checkLocation(location); in updateLocation() 74 reverseGeocodeTask = new ReverseGeocodeTask(new WeakReference<>(ui)).execute(location); in updateLocation() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | DiscoveredPrinter.java | 42 public final String location; field in DiscoveredPrinter 61 public DiscoveredPrinter(Uri uuid, String name, List<Uri> paths, String location) { in DiscoveredPrinter() argument 66 this.location = location; in DiscoveredPrinter() 77 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) { in DiscoveredPrinter() argument 78 this(uuid, name, Collections.singletonList(path), location); in DiscoveredPrinter() 83 String printerName = null, location = null; in DiscoveredPrinter() local 100 location = reader.nextString(); in DiscoveredPrinter() 113 this.location = location; in DiscoveredPrinter() 159 if (!TextUtils.isEmpty(location)) { in write() 160 writer.name("location").value(location); in write() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | LocationUtils.java | 22 import android.location.Address; 23 import android.location.Geocoder; 24 import android.location.Location; 25 import android.location.LocationListener; 26 import android.location.LocationManager; 117 private static void updateAddress(Location location) { in updateAddress() argument 118 if (DEBUG) Log.d(TAG, "Updating address with " + location); in updateAddress() 119 if (location == null) { in updateAddress() 125 geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1); in updateAddress() 161 public void onLocationChanged(Location location) { [all …]
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 17 package com.android.dialer.location; 25 import android.location.Address; 26 import android.location.Geocoder; 27 import android.location.Location; 28 import android.location.LocationManager; 209 final Location location = in onReceive() local 215 processLocationUpdate(context, CountryDetector.getInstance(context).geocoder, location); in onReceive() 220 Context appContext, Geocoder geocoder, Location location) { in processLocationUpdate() argument 243 .executeParallel(location); in processLocationUpdate() 257 public String doInBackground(@Nullable Location location) throws Throwable { in doInBackground() argument [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | LocationManager.java | 20 import android.location.Location; 21 import android.location.LocationProvider; 33 private android.location.LocationManager mLocationManager; 37 new LocationListener(android.location.LocationManager.GPS_PROVIDER), 38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER) 76 mLocationManager = (android.location.LocationManager) in startReceivingLocationUpdates() 82 android.location.LocationManager.NETWORK_PROVIDER, in startReceivingLocationUpdates() 93 android.location.LocationManager.GPS_PROVIDER, in startReceivingLocationUpdates() 122 implements android.location.LocationListener { 142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider)) { in onLocationChanged() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 23 import android.location.Location; 92 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage() argument 95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage() 121 Location location, int orientation, ExifInterface exif, byte[] data, int width, in addImage() argument 127 return addImageToMediaStore(resolver, title, date, location, orientation, fileLength, in addImage() 150 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore() argument 154 getContentValuesForData(title, date, location, orientation, jpegLength, path, width, in addImageToMediaStore() 173 long date, Location location, int orientation, long jpegLength, in getContentValuesForData() argument 192 if (location != null) { in getContentValuesForData() 193 values.put(ImageColumns.LATITUDE, location.getLatitude()); in getContentValuesForData() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | LocationListeners.java | 24 import android.location.Location; 25 import android.location.LocationListener; 26 import android.location.LocationManager; 135 public void onLocationChanged(Location location) { 138 location.getLatitude(), 139 location.getLongitude(), 140 location.getAltitude(), 141 location.getSpeed(), 142 location.getBearing(), 143 location.getAccuracy());
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | LocationManagerProxyTest.java | 25 import android.location.Location; 26 import android.location.LocationManager; 57 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationManagerProxyCanInjectLocation() local 58 mLocationManagerProxy.injectLocation(location); in testLocationManagerProxyCanInjectLocation() 59 verify(mMockLocationManager).injectLocation(location); in testLocationManagerProxyCanInjectLocation() 64 Location location = new Location(LocationManager.GPS_PROVIDER); in testLocationManagerProxyCanGetLastKnownLocation() local 66 .thenReturn(location); in testLocationManagerProxyCanGetLastKnownLocation() 69 assertThat(locationFromProxy).isEqualTo(location); in testLocationManagerProxyCanGetLastKnownLocation()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | LegacyLocationProvider.java | 20 import android.location.Location; 34 private android.location.LocationManager mLocationManager; 38 new LocationListener(android.location.LocationManager.GPS_PROVIDER), 39 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER) 90 android.location.LocationManager.NETWORK_PROVIDER, in startReceivingLocationUpdates() 101 android.location.LocationManager.GPS_PROVIDER, in startReceivingLocationUpdates() 129 implements android.location.LocationListener { 166 case android.location.LocationProvider.OUT_OF_SERVICE: in onStatusChanged() 167 case android.location.LocationProvider.TEMPORARILY_UNAVAILABLE: { in onStatusChanged()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | FolderWatcher.java | 111 final int location = insertAtNextEmptyLocation(uri); in startWatching() local 112 LogUtils.d(LOG_TAG, "Watching %s, at position %d.", uri, location); in startWatching() 118 lm.initLoader(getLoaderFromPosition(location), args, mUnreadCallback); in startWatching() 128 int location = -1; in insertAtNextEmptyLocation() local 133 location = i; in insertAtNextEmptyLocation() 138 if (location < 0) { in insertAtNextEmptyLocation() 140 location = mUris.size(); in insertAtNextEmptyLocation() 141 mUris.add(location, newElement); in insertAtNextEmptyLocation() 143 mUris.set(location, newElement); in insertAtNextEmptyLocation() 145 return location; in insertAtNextEmptyLocation()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | ExifUtil.java | 20 import android.location.Location; 59 Optional<Location> location) { in populateExif() argument 69 if (location.isPresent()) { in populateExif() 70 addLocationToExif(location.get()); in populateExif() 79 public void addLocationToExif(Location location) { in addLocationToExif() argument 82 mExif.addGpsTags(location.getLatitude(), location.getLongitude()); in addLocationToExif() 83 mExif.addGpsDateTimeStampTag(location.getTime()); in addLocationToExif() 85 if (location.hasAltitude()) { in addLocationToExif() 86 double altitude = location.getAltitude(); in addLocationToExif()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageManager.java | 33 import android.location.Location; 201 Location location, String directory, String filename, in addImage() argument 241 if (location != null) { in addImage() 242 values.put(Images.Media.LATITUDE, location.getLatitude()); in addImage() 243 values.put(Images.Media.LONGITUDE, location.getLongitude()); in addImage() 282 DataLocation location = param.mLocation; in makeImageList() local 303 if (haveSdCard && location != DataLocation.INTERNAL) { in makeImageList() 311 if (location == DataLocation.INTERNAL || location == DataLocation.ALL) { in makeImageList() 400 public static ImageListParam getImageListParam(DataLocation location, in getImageListParam() argument 403 param.mLocation = location; in getImageListParam() [all …]
|
D | ReverseGeocoderTask.java | 19 import android.location.Address; 20 import android.location.Geocoder; 32 public void onComplete(String location); in onComplete() argument 71 protected void onPostExecute(String location) { in onPostExecute() argument 72 mCallback.onComplete(location); in onPostExecute()
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 51 final String location = "Location"; field in CalendarAppWidgetServiceTest 107 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event() 116 eventInfo.where = location; in testGetAppWidgetModel_1Event() 143 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater() 146 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater() 165 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater() 167 cursor.addRow(getRow(1, start, end, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater() 178 private Object[] getRow(int allDay, long begin, long end, String title, String location, in getRow() argument 185 row[CalendarAppWidgetService.INDEX_EVENT_LOCATION] = new String(location); in getRow()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduPart.java | 372 byte[] location = (byte[]) mPartHeader.get(P_NAME); in generateLocation() 373 if (null == location) { in generateLocation() 374 location = (byte[]) mPartHeader.get(P_FILENAME); in generateLocation() 376 if (null == location) { in generateLocation() 377 location = (byte[]) mPartHeader.get(P_CONTENT_LOCATION); in generateLocation() 381 if (null == location) { in generateLocation() 385 return new String(location); in generateLocation()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCamera.java | 20 import android.location.Location; 273 public final Location location; field in OneCamera.CaptureParameters 278 public CaptureParameters(String title, int orientation, Location location, File in CaptureParameters() argument 282 this.location = location; in CaptureParameters() 339 public PhotoCaptureParameters(String title, int orientation, Location location, File in PhotoCaptureParameters() argument 342 super(title, orientation, location, debugDataFolder); in PhotoCaptureParameters()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduPart.java | 397 byte[] location = (byte[]) mPartHeader.get(P_NAME); in generateLocation() 398 if(null == location) { in generateLocation() 399 location = (byte[]) mPartHeader.get(P_FILENAME); in generateLocation() 401 if (null == location) { in generateLocation() 402 location = (byte[]) mPartHeader.get(P_CONTENT_LOCATION); in generateLocation() 406 if (null == location) { in generateLocation() 410 return new String(location); in generateLocation()
|
/packages/apps/Dialer/java/com/android/incallui/maps/impl/ |
D | StaticMapFragment.java | 19 import android.location.Location; 41 public static StaticMapFragment newInstance(@NonNull Location location) { in newInstance() argument 43 args.putParcelable(ARG_LOCATION, Assert.isNotNull(location)); in newInstance() 70 Location location = getArguments().getParcelable(ARG_LOCATION); in onMapReady() local 71 LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); in onMapReady()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 20 import android.location.Address; 21 import android.location.Geocoder; 22 import android.location.Location; 23 import android.location.LocationManager; 115 Location location = null; in computeAddress() local 119 location = (provider != null) ? locationManager.getLastKnownLocation(provider) : null; in computeAddress() 120 if (location != null) in computeAddress() 126 if (location != null) { in computeAddress() 128 location.getLatitude(), location.getLongitude(), true); in computeAddress()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | Lineup.java | 44 return location; in getLocation() 58 private final String location; field in Lineup 103 public Lineup(String id, int type, String name, String location, List<String> channels) { in Lineup() argument 107 this.location = location; in Lineup()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | PackageDownloadInfo.java | 68 public final String location; field in PackageDownloadInfo 83 location = builder.mLocation; in PackageDownloadInfo() 99 if (TextUtils.isEmpty(location)) { in validateFields() 131 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION, location); in toPersistableBundle() 148 public Builder setLocation(String location) { in setLocation() argument 149 mLocation = location; in setLocation()
|