diff options
| author | 2021-08-12 07:30:54 +0000 | |
|---|---|---|
| committer | 2021-08-12 07:30:54 +0000 | |
| commit | da458457e11862070ca079e4ae10a302f952340d (patch) | |
| tree | 84068f94feb80589d9603696705c805ae55db59f /location/java/android | |
| parent | 2e6888a1e09ac9df864af09c60c49c00f04d4f23 (diff) | |
| parent | a5117ca3b4ec35ea10ec705ea627ce25abb3abb2 (diff) | |
Merge "Allow negative value for CorrelationVector#samplingStartM" into sc-dev am: a5117ca3b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15515230
Change-Id: I4a8066b7b318b86898c9be3c10792f869c3363a4
Diffstat (limited to 'location/java/android')
| -rw-r--r-- | location/java/android/location/CorrelationVector.java | 2 |
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; |