Commit graph

602 commits

Author SHA1 Message Date
Treehugger Robot
5f9df41740 Merge "Merge OWNERS files for gnss" into main am: 21d519cc71
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2746940

Change-Id: Iff1caa26a37bb938f00c2dcce424058245c251d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 17:18:50 +00:00
Devin Moore
d7c510bc10 Merge OWNERS files for gnss
Test: none
Bug: 296950573
Change-Id: I21b25e417f5a7eb1992289112b628ebf86826f50
2023-09-08 21:18:52 +00:00
Treehugger Robot
2673e0ab17 Merge "Adding bug component per http://go/xts-owners-policy" am: 827ca53e4e am: f9257b36c2 am: f22e72229a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2573050

Change-Id: Ia3e979289f77a6033eb39284ea71f9fc8006dbae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 21:46:31 +00:00
Treehugger Robot
f9257b36c2 Merge "Adding bug component per http://go/xts-owners-policy" am: 827ca53e4e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2573050

Change-Id: Id0bd6ab28741908606d6ee6672fb9b25f0f6c95e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 20:13:48 +00:00
Wyatt Riley
96d835a892 Adding bug component per http://go/xts-owners-policy
Bug: 278494314
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:890bdd52fd3b406e750fffe40e9c5f3b331c0358)

Change-Id: I36a1781f1cf47d2b8177762b28a3d717484f0089
2023-04-28 20:08:30 +00:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
TreeHugger Robot
057caf229f Merge "GnssStatus for GnssMeasurement-only VTS test" into udc-dev 2023-03-31 22:51:24 +00:00
Zhanghao
d32f378405 GnssStatus for GnssMeasurement-only VTS test
Update VTS test case: GnssStatus should be reported when only
measurement is registered.

Test: atest VtsHalGnssTargetTest
Bug: 274653052
Change-Id: I53c741d2cee7a4c36ad0a2744ccb8b3e917b7996
2023-03-31 19:57:02 +00:00
Shinru Han
9336eacc6d Add AIDL version check for injectNiSuplMessageData()
Test: atest VtsHalGnssTargetTest
Bug: 242105192
Change-Id: Ic05990c94e81d3f303dfa4b3fd397a9e2ef749d6
2023-03-31 16:53:45 +08:00
Treehugger Robot
a49dca7c1a Merge "Throw away initial measurements before interval tests" into android13-tests-dev am: 86206d71ca am: ee40587951 am: 4e76223023
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2506037

Change-Id: I3c7d3dd68ab1dc4a6683c0a294598d7b88546a7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29 03:24:38 +00:00
Treehugger Robot
ee40587951 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>
2023-03-29 02:15:57 +00:00
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
Zhanghao Wen
d9d9e71b8a Merge "Update cuttlefish mock gnssMeasurement value" into udc-dev 2023-03-12 00:27:20 +00:00
TreeHugger Robot
a5ba6002b2 Merge "Update HAL comment of getReceivedSvTimeNs" into udc-dev 2023-03-12 00:24:35 +00:00
Zhanghao
c6b69e7ada Update cuttlefish mock gnssMeasurement value
Update pseudorangeRateUncertaintyMps value to pass GnssMeasurementValuesTest.

Bug: 264786442
Test: atest GnssMeasurementValuesTest
Change-Id: I125e5db42a39573d123c3f9f16be59b957c0fbda
2023-03-11 23:24:52 +00:00
Yuchen He
50ec1d7d4e Fix epoll leaks: clean up file descriptor and epoll instance properly am: 6dddd6f43a am: 6d9af6585c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/21914922

Change-Id: Icfc77589a28717cf9b742a7255f522ee71406631
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 02:12:22 +00:00
Yuchen He
6d9af6585c Fix epoll leaks: clean up file descriptor and epoll instance properly am: 6dddd6f43a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/21914922

Change-Id: Icecac5bd27e6b9b7c15b62d54df506762ed87244
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 01:38:30 +00:00
Zhanghao Wen
39c78ffecf Update HAL comment of getReceivedSvTimeNs
Added GPS L1C(P), BDS B1C(P) with value: CODE_LOCK(10 ms), STATE_2ND_CODE_LOCK(18000 ms), TOW_KNOWN(1 week).
Added BDS B2AQ: Same as E5AQ
Added IRNSS: Same as GPS L1 C/A

Bug: 264588057
Test: comment only
Change-Id: Ia452beb129b791116bf33a8feed6bb0d04238dd2
2023-03-08 22:23:07 +00:00
Yuchen He
6dddd6f43a Fix epoll leaks: clean up file descriptor and epoll instance properly
Bug: 262762412
Test: manual test

Change-Id: Ia587f8ba0ce44234a7c00cd820db73258dba19b0
(cherry picked from commit 9af806fe06)
2023-03-08 21:07:49 +00:00
Yu-Han Yang
712d132e08 Update measurement interval VTS tests
Bug: 253453668
Test: atest VtsHalGnssTargetTest
Change-Id: I2fe394d0ee9f620e93068219a3f73d110120289b
2023-03-08 00:44:49 +00:00
Neil Fuller
387d3ce0df Merge "Improve docs around "on demand time" capability" 2023-02-08 10:46:25 +00:00
TreeHugger Robot
46b8c3747d Merge "Throw away initial measurements before interval tests" 2023-02-08 02:40:16 +00:00
Yu-Han Yang
dbab0de442 Throw away initial measurements before interval tests
Bug: 264597734
Test: atest VtsHalGnssTargetTest
Change-Id: I1064807adf3264f13c1ef6678df37cff350503c5
2023-02-07 19:02:43 +00:00
Neil Fuller
379ee87f1a Improve docs around "on demand time" capability
Update the docs to record how the behavior differs from the name.

current.txt has been updated by hand using information from:
hidl-gen -L hash -r android.hardware:hardware/interfaces \
  android.hardware.gnss@1.0::IGnssCallback

As per instructions at
https://source.android.com/docs/core/architecture/hidl/hashing

This is acceptable because it's just a docs change that documents
existing, historic behavior. Previous docs were misleading.

Test: hidl-gen -L check -r android.hardware:hardware/interfaces android.hardware.gnss@1.0::IGnssCallback
Bug: 222295093
Bug: 73893222
Change-Id: I935354be52239482d559962e9a9ee1faaf73f4b1
2023-02-07 15:16:41 +00:00
Yu-Han Yang
1a28a9ff7a Fix a comment
Bug: 244325461
Test: doc update only
Change-Id: I55d9445eea9c6b8626a5a8eaaf83eaf318b354ca
2023-02-03 04:25:12 +00:00
Yu-Han Yang
ea19540d02 Skip TestGnssPowerIndication if capability is not supported am: 5da610c660
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2397741

Change-Id: I435aef2d1ef9c28a998563ee6a0630a913c30eef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-25 18:51:56 +00:00
Yu-Han Yang
1a4e774b8b Skip TestGnssPowerIndication if capability is not supported am: 5da610c660 am: e0b0a8c2a7 am: f72b412a07 am: e6e546b9fb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2397741

Change-Id: I620cbe51a472625b0b4e0ac1c9143c9698a1b795
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 23:14:26 +00:00
Yu-Han Yang
f72b412a07 Skip TestGnssPowerIndication if capability is not supported am: 5da610c660 am: e0b0a8c2a7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2397741

Change-Id: Ie26bcec33070bc82310231947497fee944e4e819
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 19:47:36 +00:00
Yu-Han Yang
e0b0a8c2a7 Skip TestGnssPowerIndication if capability is not supported am: 5da610c660
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2397741

Change-Id: I874c8f080db515cb36d3a0c5bf288b34d0fa0a9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 19:07:48 +00:00
Yu-Han Yang
5da610c660 Skip TestGnssPowerIndication if capability is not supported
Bug: 263354944
Test: atest VtsHalGnssTargetTest
Change-Id: I372ca2f2fb4cb5d4cafbacc1bde1cc0f0f2077dd
2023-01-20 22:08:53 +00:00
Samip Garg
5a1bde04ae Merge "Snap tm-dev to android13-tests-dev" into tm-dev 2023-01-10 20:21:40 +00:00
TreeHugger Robot
f274c1fbd1 Merge "Clarify HAL doc of full tracking" 2023-01-05 22:11:06 +00:00
TreeHugger Robot
6c5ff2565f Merge "Update TestGnssMeasurementIsFullTracking" 2022-11-28 17:47:11 +00:00
Yu-Han Yang
5d0550c572 Clarify HAL doc of full tracking
Bug: 257549183
Test: doc update only
Change-Id: I35a0736c0939033a588aa28e77f9186e3d59ce6d
2022-11-22 21:30:28 +00:00
Zhanghao Wen
fb39edbd83 Fix a bug that did not check the status after it is assigned
Test: on Cuttlefish
Bug: 260002331
Change-Id: I7db69b19c3f29824970a5ae04aeae26e8bfd8447
2022-11-22 12:26:38 -08:00
Yu-Han Yang
584a4fcdd0 Update TestGnssMeasurementIsFullTracking
Bug: 257549183
Test: atest VtsHalGnssTargetTest
Change-Id: I49d91e40515384480508ba88bcb052bd4ee81ccd
2022-11-21 23:22:56 +00:00
Zhanghao Wen
28a8edfeb2 Add gnss capability - Accumulated Delta Range in AIDL HAL (hardware/interfaces)
Test: on Cuttlefish
Change-Id: I12307e21b1c574d76f3c0a834e8eb75f1b23e7a3
Bug: 260002331
2022-11-21 14:53:53 -08:00
TreeHugger Robot
da433e032f Merge "Add isFullTracking to GnssData" 2022-11-18 19:12:32 +00:00
Zhanghao Wen
48eb52cd38 Update Cuttlefish mock GNSS hardware model name am: 08e0d7dfb0 am: c4c5d1549e am: c2e719bbd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/20489237

Change-Id: Ie918d5361864f515892e4aa971b91b5708792fe8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17 20:18:48 +00:00
Zhanghao Wen
08e0d7dfb0 Update Cuttlefish mock GNSS hardware model name
Test: atest GnssHardwareInfoTest
Bug: 258680584

Change-Id: I17c877848aee4b607cd0d798e7c91a1987fd6286
Merged-In: I17c877848aee4b607cd0d798e7c91a1987fd6286
2022-11-16 20:01:34 +00:00
Zhanghao Wen
71c3d17fd8 Update Cuttlefish mock GNSS hardware model name
Test: atest GnssHardwareInfoTest
Bug: 258680584
Change-Id: I17c877848aee4b607cd0d798e7c91a1987fd6286
2022-11-15 11:33:57 -08:00
Yu-Han Yang
c5d4f36a4f Add isFullTracking to GnssData
Bug: 257549183
Test: atest VtsHalGnssTargetTest
Change-Id: Icd2ad1e6905fcc76370216fafe34174475497b5f
2022-11-08 00:03:00 +00:00
Shinru Han
a977bcc18b Add injectNiSuplMessageData()
Test: atest VtsHalGnssTargetTest
Bug: b/242105192
Change-Id: I32a87cbcad67fda032137ed5eb2181cd0266f171
2022-11-03 11:48:48 +08:00
Yu-Han Yang
8bba420d32 Reset gnss_data_cbq_ before the 2nd request
Bug: 254763910
Test: atest VtsHalGnssTargetTest
Change-Id: I96db90bbb99e17b2134d9b901a9dfcd80c7a0269
2022-10-24 22:49:38 +00:00
TreeHugger Robot
6f71eea54c Merge "Add gnssSetSignalTypeCapabilitiesCb()" 2022-10-21 00:27:39 +00:00
TreeHugger Robot
1fcce70811 Merge "Clarify setCallback() can be called without a previous close() call" 2022-10-21 00:26:53 +00:00
Yu-Han Yang
d2377447d5 Add gnssSetSignalTypeCapabilitiesCb()
Bug: 253319784
Test: atest VtsHalGnssTargetTest
Change-Id: Ib1485a2002bb3af01954698f490060da46331a5d
2022-10-20 22:29:18 +00:00
Yu-Han Yang
9a938d5977 Clarify setCallback() can be called without a previous close() call
Add a VTS test case to enforce this.

Bug: 253453668
Test: atest VtsHalGnssTargetTest
Change-Id: I1d1f9587e590360198274ef5583893c35051ef8e
2022-10-20 22:21:33 +00:00
Yu-Han Yang
d2c39621e8 Call close() in TearDown() am: 25cd9d67d5 am: 9fbde6a00d am: 84f98c0762 am: a63ea8b37a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2254818

Change-Id: I98c20caa02acca1b9f374b9a920a21afa1ab4824
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 22:17:31 +00:00
Yu-Han Yang
9fbde6a00d Call close() in TearDown() am: 25cd9d67d5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2254818

Change-Id: I9cc41bc3989788511d799ddaa6cf9b881f11c980
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 20:33:30 +00:00