Merge "Throw away initial measurements before interval tests" into android13-tests-dev

This commit is contained in:
Treehugger Robot 2023-03-29 01:48:26 +00:00 committed by Gerrit Code Review
commit 86206d71ca

View file

@ -447,6 +447,7 @@ void GnssHalTest::collectMeasurementIntervals(const sp<GnssMeasurementCallbackAi
const int numMeasurementEvents,
const int timeoutSeconds,
std::vector<int>& deltasMs) {
callback->gnss_data_cbq_.reset(); // throw away the initial measurements if any
int64_t lastElapsedRealtimeMillis = 0;
for (int i = 0; i < numMeasurementEvents; i++) {
GnssData lastGnssData;