platform_hardware_interfaces/gnss
Yu-Han Yang 41c5b4efe3 Throw away initial measurements before interval tests
Bug: 264597734
Test: atest VtsHalGnssTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dbab0de442246a78c42acf5ca7c4f7c94fd82651)
Merged-In: I1064807adf3264f13c1ef6678df37cff350503c5
Change-Id: I1064807adf3264f13c1ef6678df37cff350503c5

NOTE FOR REVIEWERS - original patch and result patch are not identical.
PLEASE REVIEW CAREFULLY.
Diffs between the patches:
47,6 +447,7 @@
                                               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;

Original patch:
From dbab0de442 Mon Sep 17 00:00:00 2001
From: Yu-Han Yang <yuhany@google.com>
Date: Tue, 07 Feb 2023 19:01:56 +0000
Subject: [PATCH] Throw away initial measurements before interval tests

Bug: 264597734
Test: atest VtsHalGnssTargetTest
Change-Id: I1064807adf3264f13c1ef6678df37cff350503c5
---
2023-03-23 20:52:08 +00:00
..
1.0 Merge "Add OWNERS for VTS module VtsHalGnssV1_0TargetTest" am: 8fe4685a13 2021-08-24 22:01:52 +00:00
1.1 Add MeasurementCorrections AIDL HAL (hardware/interfaces) 2022-01-19 16:50:58 +08:00
2.0 Add MeasurementCorrections AIDL HAL (hardware/interfaces) 2022-01-19 16:50:58 +08:00
2.1 Add MeasurementCorrections AIDL HAL (hardware/interfaces) 2022-01-19 16:50:58 +08:00
aidl Throw away initial measurements before interval tests 2023-03-23 20:52:08 +00:00
common Add VTS tests for measurementInterval, stopSvStatus, and stopNmea 2022-05-11 20:28:03 +00:00
measurement_corrections [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces 2021-02-23 14:26:20 -08:00
visibility_control/1.0 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces 2021-02-23 14:26:20 -08:00