summaryrefslogtreecommitdiff
path: root/location/java
diff options
context:
space:
mode:
author Brian Julian <bjj@google.com> 2022-12-07 15:58:53 +0000
committer Brian Julian <bjj@google.com> 2022-12-07 20:44:28 +0000
commitbe73c90d7bed293283eabd890cd9214b9dbd1b4a (patch)
treeeb5ba0493c0767e061812a11ea72c1b8268f4263 /location/java
parent21f141047b9508f6f950f8b3f2da47693ebd444b (diff)
Renames addMslAltitude method in AltitudeConverter to addMslAltitudeToLocation, and updates Javadoc to use @throws.
Relnote: N/A Bug: 261696975 Test: atest CtsLocationNoneTestCases Change-Id: I01c9c640eba6ab49b364f3aadcf86701f8aefb95
Diffstat (limited to 'location/java')
-rw-r--r--location/java/android/location/altitude/AltitudeConverter.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/location/java/android/location/altitude/AltitudeConverter.java b/location/java/android/location/altitude/AltitudeConverter.java
index 506128e17740..d46b4d2c3be3 100644
--- a/location/java/android/location/altitude/AltitudeConverter.java
+++ b/location/java/android/location/altitude/AltitudeConverter.java
@@ -151,20 +151,17 @@ public final class AltitudeConverter {
* altitude accuracy if the {@code location} has a finite and non-negative vertical accuracy;
* otherwise, does not add a corresponding accuracy.
*
- * <p>Must be called off the main thread as data may be loaded from raw assets. Throws an
- * {@link IOException} if an I/O error occurs when loading data.
+ * <p>Must be called off the main thread as data may be loaded from raw assets.
*
- * <p>Throws an {@link IllegalArgumentException} if the {@code location} has an invalid
- * latitude, longitude, or altitude above WGS84. Specifically:
- *
- * <ul>
- * <li>The latitude must be between -90 and 90, both inclusive.
- * <li>The longitude must be between -180 and 180, both inclusive.
- * <li>The altitude above WGS84 must be finite.
- * </ul>
+ * @throws IOException if an I/O error occurs when loading data from raw assets.
+ * @throws IllegalArgumentException if the {@code location} has an invalid latitude, longitude,
+ * or altitude above WGS84. Specifically, the latitude must be
+ * between -90 and 90 (both inclusive), the longitude must be
+ * between -180 and 180 (both inclusive), and the altitude
+ * above WGS84 must be finite.
*/
@WorkerThread
- public void addMslAltitude(@NonNull Context context, @NonNull Location location)
+ public void addMslAltitudeToLocation(@NonNull Context context, @NonNull Location location)
throws IOException {
validate(location);
MapParamsProto params = GeoidHeightMap.getParams(context);