Allow negative value for CorrelationVector#samplingStartM
Bug: 195934893
Test: atest ctsLocationPrivilegedTestCases
Change-Id: I255e118cabf274811b57e88a35faf8c9e697d8ae
(cherry picked from commit e19a11cf6f)
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
adee32324f
commit
cdbfb0f453
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user