summaryrefslogtreecommitdiff
path: root/location/java
diff options
context:
space:
mode:
author Svet Ganov <svetoslavganov@google.com> 2020-04-30 23:45:15 -0700
committer Svet Ganov <svetoslavganov@google.com> 2020-05-01 15:25:51 -0700
commitea8a2145c915d9597f0f0db9f1f94cd3797efe9f (patch)
tree7fb6a276125d9d5fbe909495f13afcacc6e01d07 /location/java
parented460aa1868e969880dd88a1ecef483de21ea34e (diff)
Revert an API breaking changes
bug:150281259 Test: N/A Change-Id: Ie30286456af15dd7b81bceb0547ffe8bfac422d2
Diffstat (limited to 'location/java')
-rw-r--r--location/java/android/location/GnssAntennaInfo.java41
1 files changed, 8 insertions, 33 deletions
diff --git a/location/java/android/location/GnssAntennaInfo.java b/location/java/android/location/GnssAntennaInfo.java
index 88bf36879262..b2f9a0f41b7e 100644
--- a/location/java/android/location/GnssAntennaInfo.java
+++ b/location/java/android/location/GnssAntennaInfo.java
@@ -95,55 +95,31 @@ public final class GnssAntennaInfo implements Parcelable {
}
};
- /**
- * Returns the x-axis offset of the phase center from the origin of the Android sensor
- * coordinate system, in millimeters.
- */
@FloatRange()
public double getXOffsetMm() {
return mOffsetXMm;
}
- /**
- * Returns the 1-sigma uncertainty of the x-axis offset of the phase center from the origin
- * of the Android sensor coordinate system, in millimeters.
- */
@FloatRange()
public double getXOffsetUncertaintyMm() {
return mOffsetXUncertaintyMm;
}
- /**
- * Returns the y-axis offset of the phase center from the origin of the Android sensor
- * coordinate system, in millimeters.
- */
@FloatRange()
public double getYOffsetMm() {
return mOffsetYMm;
}
- /**
- * Returns the 1-sigma uncertainty of the y-axis offset of the phase center from the origin
- * of the Android sensor coordinate system, in millimeters.
- */
@FloatRange()
public double getYOffsetUncertaintyMm() {
return mOffsetYUncertaintyMm;
}
- /**
- * Returns the z-axis offset of the phase center from the origin of the Android sensor
- * coordinate system, in millimeters.
- */
@FloatRange()
public double getZOffsetMm() {
return mOffsetZMm;
}
- /**
- * Returns the 1-sigma uncertainty of the z-axis offset of the phase center from the origin
- * of the Android sensor coordinate system, in millimeters.
- */
@FloatRange()
public double getZOffsetUncertaintyMm() {
return mOffsetZUncertaintyMm;
@@ -178,8 +154,7 @@ public final class GnssAntennaInfo implements Parcelable {
* Represents corrections on a spherical mapping. Corrections are added to measurements to
* obtain the corrected values.
*
- * The corrections and associated (1-sigma) uncertainties are represented by respective 2D
- * matrices.
+ * The corrections and associated (1-sigma) uncertainties are represented by respect 2D arrays.
*
* Each row (major indices) represents a fixed theta. The first row corresponds to a
* theta angle of 0 degrees. The last row corresponds to a theta angle of (360 - deltaTheta)
@@ -202,18 +177,18 @@ public final class GnssAntennaInfo implements Parcelable {
@NonNull double[][] correctionUncertainties) {
if (corrections.length != correctionUncertainties.length
|| corrections[0].length != correctionUncertainties[0].length) {
- throw new IllegalArgumentException("Correction and correction uncertainty matrices "
+ throw new IllegalArgumentException("Correction and correction uncertainty arrays "
+ "must have the same dimensions.");
}
mNumRows = corrections.length;
if (mNumRows < 1) {
- throw new IllegalArgumentException("Matrix must have at least one row.");
+ throw new IllegalArgumentException("Arrays must have at least one row.");
}
mNumColumns = corrections[0].length;
if (mNumColumns < 2) {
- throw new IllegalArgumentException("Matrix must have at least two columns.");
+ throw new IllegalArgumentException("Arrays must have at least two columns.");
}
mCorrections = corrections;
@@ -248,7 +223,7 @@ public final class GnssAntennaInfo implements Parcelable {
}
/**
- * Matrix representing corrections on a spherical mapping. Corrections are added to
+ * Array representing corrections on a spherical mapping. Corrections are added to
* measurements to obtain the corrected values.
*
* Each row (major indices) represents a fixed theta. The first row corresponds to a
@@ -261,12 +236,12 @@ public final class GnssAntennaInfo implements Parcelable {
* angles, i.e., deltaPhi = 180 / (number of columns - 1).
*/
@NonNull
- public double[][] getCorrectionsMatrix() {
+ public double[][] getCorrectionsArray() {
return mCorrections;
}
/**
- * Matrix representing uncertainty on corrections on a spherical mapping.
+ * Array representing uncertainty on corrections on a spherical mapping.
*
* Each row (major indices) represents a fixed theta. The first row corresponds to a
* theta angle of 0 degrees. The last row corresponds to a theta angle of (360 - deltaTheta)
@@ -278,7 +253,7 @@ public final class GnssAntennaInfo implements Parcelable {
* angles, i.e., deltaPhi = 180 / (number of columns - 1).
*/
@NonNull
- public double[][] getCorrectionUncertaintiesMatrix() {
+ public double[][] getCorrectionUncertaintiesArray() {
return mCorrectionUncertainties;
}