Allow negative value for CorrelationVector#samplingStartM

Bug: 195934893
Test: atest ctsLocationPrivilegedTestCases
Change-Id: I255e118cabf274811b57e88a35faf8c9e697d8ae
This commit is contained in:
Shinru Han 2021-08-10 18:27:25 +08:00
parent 49c8cdb84d
commit e19a11cf6f

View File

@ -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;