Merge "Throw away initial measurements before interval tests" into android13-tests-dev am: 86206d71ca

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

Change-Id: If4e8ab003e754b4e9d0b4d507659049989941b51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-03-29 02:15:57 +00:00 committed by Automerger Merge Worker
commit ee40587951

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;