/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | DiscoveredPrinter.java | 43 public final String location; field in DiscoveredPrinter 59 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) { in DiscoveredPrinter() argument 63 this.location = location; in DiscoveredPrinter() 68 String printerName = null, location = null; in DiscoveredPrinter() local 85 location = reader.nextString(); in DiscoveredPrinter() 95 this.location = location; in DiscoveredPrinter() 118 if (!TextUtils.isEmpty(location)) { in getDescription() 119 description = context.getString(R.string.printer_description, host, location); in getDescription() 134 if (!TextUtils.isEmpty(location)) { in write() 135 writer.name("location").value(location); in write() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
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 | 21 import android.location.Location; 28 import com.google.android.gms.location.LocationListener; 67 public void onLocationChanged(Location location) { in onLocationChanged() argument 69 updateLocation(location, false); in onLocationChanged() 72 private void updateLocation(Location location, boolean forceUpdate) { in updateLocation() argument 73 LogUtil.i("LocationPresenter.updateLocation", "location: " + location); in updateLocation() 74 if (forceUpdate || !Objects.equals(mLastLocation, location)) { in updateLocation() 75 mLastLocation = location; in updateLocation() 76 int status = LocationHelper.checkLocation(location); in updateLocation() 79 mDownloadMapTask = new DownloadMapImageTask(new WeakReference<>(ui)).execute(location); in updateLocation() [all …]
|
D | LocationHelper.java | 20 import android.location.Location; 36 import com.google.android.gms.location.LocationListener; 37 import com.google.android.gms.location.LocationRequest; 38 import com.google.android.gms.location.LocationServices; 101 static @LocationStatus int checkLocation(Location location) { in checkLocation() argument 102 if (location == null) { in checkLocation() 107 long locationTimeMs = location.getTime(); in checkLocation() 114 if (location.getAccuracy() > LOCATION_ACCURACY_THRESHOLD_METERS) { in checkLocation() 115 LogUtil.i("LocationHelper.checkLocation", "poor accuracy: " + location.getAccuracy()); in checkLocation() 146 void onLocationChanged(Location location, boolean isConnected) { in onLocationChanged() argument [all …]
|
D | LocationFragment.java | 22 import android.location.Location; 60 private Location location; field in LocationFragment 148 public void setLocation(Location location) { in setLocation() argument 149 LogUtil.i("LocationFragment.setLocation", String.valueOf(location)); in setLocation() 151 this.location = location; in setLocation() 153 if (location != null) { in setLocation() 158 R.string.lat_long_format, location.getLatitude(), location.getLongitude())); in setLocation() 189 if (location != null) { in launchMap() 192 location, addressLine1.getText(), addressLine2.getText())); in launchMap()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | LocationUtils.java | 20 import android.location.Address; 21 import android.location.Geocoder; 22 import android.location.Location; 23 import android.location.LocationListener; 24 import android.location.LocationManager; 62 private static void updateAddress(Location location) { in updateAddress() argument 63 if (DEBUG) Log.d(TAG, "Updating address with " + location); in updateAddress() 64 if (location == null) { in updateAddress() 70 location.getLatitude(), location.getLongitude(), 1); in updateAddress() 89 public void onLocationChanged(Location location) { [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/location/ |
D | UpdateCountryService.java | 17 package com.android.contacts.common.location; 24 import android.location.Address; 25 import android.location.Geocoder; 26 import android.location.Location; 48 public static void updateCountry(Context context, Location location) { in updateCountry() argument 51 serviceIntent.putExtra(UpdateCountryService.KEY_INTENT_LOCATION, location); in updateCountry() 62 final Location location = intent.getParcelableExtra(KEY_INTENT_LOCATION); in onHandleIntent() local 63 final String country = getCountryFromLocation(getApplicationContext(), location); in onHandleIntent() 84 private String getCountryFromLocation(Context context, Location location) { in getCountryFromLocation() argument 88 double latitude = location.getLatitude(); in getCountryFromLocation() [all …]
|
D | CountryDetector.java | 17 package com.android.contacts.common.location; 24 import android.location.Geocoder; 25 import android.location.Location; 26 import android.location.LocationManager; 215 final Location location = in onReceive() local 218 UpdateCountryService.updateCountry(context, location); in onReceive()
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
D | CarSensorsProxy.java | 25 import android.location.GpsSatellite; 26 import android.location.GpsStatus; 27 import android.location.Location; 28 import android.location.LocationListener; 29 import android.location.LocationManager; 102 public void onLocationChanged(Location location) { 104 mLastLocation = location; 376 private void populateLocationCarSensorEvent(CarSensorEvent event, Location location) { in populateLocationCarSensorEvent() argument 377 if (location == null) { in populateLocationCarSensorEvent() 383 (int) (location.getLongitude() * 1E7); in populateLocationCarSensorEvent() [all …]
|
D | CarSensorEvent.java | 19 import android.location.GpsSatellite; 20 import android.location.Location; 701 public Location getLocation(Location location) { in getLocation() argument 703 if (location == null) { in getLocation() 704 location = new Location("Car-GPS"); in getLocation() 710 location.setLatitude(latE7 * 1e-7); in getLocation() 714 location.setLongitude(longE7 * 1e-7); in getLocation() 717 location.setAccuracy(floatValues[INDEX_LOCATION_ACCURACY]); in getLocation() 720 location.setAltitude(floatValues[INDEX_LOCATION_ALTITUDE]); in getLocation() 723 location.setSpeed(floatValues[INDEX_LOCATION_SPEED]); in getLocation() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 17 package com.android.dialer.location; 23 import android.location.Address; 24 import android.location.Geocoder; 25 import android.location.Location; 26 import android.location.LocationManager; 207 final Location location = in onReceive() local 213 processLocationUpdate(context, CountryDetector.getInstance(context).geocoder, location); in onReceive() 218 Context appContext, Geocoder geocoder, Location location) { in processLocationUpdate() argument 239 .executeParallel(location); in processLocationUpdate() 253 public String doInBackground(@Nullable Location location) throws Throwable { in doInBackground() argument [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/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/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/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/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 …]
|
/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/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 50 final String location = "Location"; field in CalendarAppWidgetServiceTest 106 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event() 115 eventInfo.where = location; in testGetAppWidgetModel_1Event() 142 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater() 145 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater() 164 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater() 167 cursor.addRow(getRow(1, start, end, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater() 176 private Object[] getRow(int allDay, long begin, long end, String title, String location, in getRow() argument 183 row[CalendarAppWidgetService.INDEX_EVENT_LOCATION] = new String(location); in getRow()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 23 import android.location.Location; 346 Location location = event.getLocation(null); in getLocationString() local 347 lat = String.valueOf(location.getLatitude()); in getLocationString() 348 lon = String.valueOf(location.getLongitude()); in getLocationString() 349 accuracy = location.hasAccuracy() ? String.valueOf(location.getAccuracy()) : accuracy; in getLocationString() 350 alt = location.hasAltitude() ? String.valueOf(location.getAltitude()) : alt; in getLocationString() 351 speed = location.hasSpeed() ? String.valueOf(location.getSpeed()) : speed; in getLocationString() 352 bearing = location.hasBearing() ? String.valueOf(location.getBearing()) : bearing; in getLocationString()
|
/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/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/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/Calendar/src/com/android/calendar/ |
D | Event.java | 123 public CharSequence location; field in Event 163 e.location = location; in clone() 184 dest.location = location; in copyTo() 205 e.location = null; in newInstance() 378 e.location = cEvents.getString(PROJECTION_LOCATION_INDEX); in generateEventFromCursor() 544 Log.e("Cal", "+ location = " + location); in dump() 597 if (location != null) { in getTitleAndLocation() 598 String locationString = location.toString(); in getTitleAndLocation()
|
/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()
|