summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinru Han <shinruhan@google.com>2021-08-10 18:27:25 +0800
committerShinru Han <shinruhan@google.com>2021-12-27 12:23:09 +0800
commit9e57f07b4eb2e196bfeeaf52d020dd8b693b9ee1 (patch)
tree89f604e9b877bdb4ac9fcc7a2019c763850533ff
parent3ba80f4033aa54ca057506d2889859172dbe996b (diff)
downloadbase-9e57f07b4eb2e196bfeeaf52d020dd8b693b9ee1.tar.gz
Allow negative value for CorrelationVector#samplingStartM
Bug: 195934893 Test: atest ctsLocationPrivilegedTestCases Change-Id: I255e118cabf274811b57e88a35faf8c9e697d8ae
-rw-r--r--location/java/android/location/CorrelationVector.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/location/java/android/location/CorrelationVector.java b/location/java/android/location/CorrelationVector.java
index 718977ff4296..5493e2579225 100644
--- a/location/java/android/location/CorrelationVector.java
+++ b/location/java/android/location/CorrelationVector.java
@@ -94,8 +94,6 @@ public final class CorrelationVector implements Parcelable {
"FrequencyOffsetMetersPerSecond must be non-negative (greater than or equal to 0)");
Preconditions.checkArgument(builder.mSamplingWidthMeters > 0.0,
"SamplingWidthMeters must be positive (greater than 0)");
- Preconditions.checkArgument(builder.mSamplingStartMeters >= 0.0,
- "SamplingStartMeters must be non-negative (greater than or equal to 0)");
mMagnitude = builder.mMagnitude;
mFrequencyOffsetMetersPerSecond = builder.mFrequencyOffsetMetersPerSecond;
mSamplingWidthMeters = builder.mSamplingWidthMeters;