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

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

Change-Id: I1c9612e4d9b542cd6975302fcc2b7740c2f3b1c3
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:56:22 +00:00 committed by Automerger Merge Worker
commit 4e76223023

View file

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