Merge "Allow negative value for CorrelationVector#samplingStartM" into sc-dev am: 97f4447645

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15515071

Change-Id: Ie8182d1f63918c953bbcb245bf055faa859edd5b
This commit is contained in:
TreeHugger Robot 2021-08-12 07:31:34 +00:00 committed by Automerger Merge Worker
commit abdba20c53
2 changed files with 1 additions and 2 deletions

View file

@ -252,7 +252,6 @@ TEST_P(GnssHalTest, TestCorrelationVector) {
for (const auto& correlationVector : measurement.correlationVectors) {
ASSERT_GE(correlationVector.frequencyOffsetMps, 0);
ASSERT_GT(correlationVector.samplingWidthM, 0);
ASSERT_GE(correlationVector.samplingStartM, 0);
ASSERT_TRUE(correlationVector.magnitude.size() > 0);
for (const auto& magnitude : correlationVector.magnitude) {
ASSERT_TRUE(magnitude >= -32768 && magnitude <= 32767);

View file

@ -221,7 +221,7 @@ GnssData Utils::getMockMeasurement(const bool enableCorrVecOutputs) {
aidl::android::hardware::gnss::CorrelationVector correlationVector2 = {
.frequencyOffsetMps = 20,
.samplingWidthM = 30,
.samplingStartM = 0,
.samplingStartM = -10,
.magnitude = {0, 3000, 5000, 3000, 0, 0, 1000, 0}};
measurement.correlationVectors = {correlationVector1, correlationVector2};
measurement.flags |= GnssMeasurement::HAS_CORRELATION_VECTOR;