Commit graph

624 commits

Author SHA1 Message Date
Devin Moore
9eec1433fa Merge "Vendor API level 202404 is now frozen" into main 2024-02-29 17:14:40 +00:00
Yu-Han Yang
379e3c3593 Allow multiple registered GNSS HALs am: 3344506a78 am: 653221fa8e am: 7bff0ebe01 am: 351165c1c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2962603

Change-Id: I5e3235c80ec3870a2bb4c74aadde2e3423cee542
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-22 23:35:49 +00:00
Yu-Han Yang
351165c1c5 Allow multiple registered GNSS HALs am: 3344506a78 am: 653221fa8e am: 7bff0ebe01
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2962603

Change-Id: I4fd6195c4b01c5e07940d8a9a1182d4c3d07427b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-22 22:52:05 +00:00
Yu-Han Yang
7bff0ebe01 Allow multiple registered GNSS HALs am: 3344506a78 am: 653221fa8e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2962603

Change-Id: I4279f2bd795a31deb55a1ff68a8242be480518e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-22 22:10:33 +00:00
Yu-Han Yang
653221fa8e Allow multiple registered GNSS HALs am: 3344506a78
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2962603

Change-Id: Ib6d0d5bd134ac5b2f7992637fb1495544853db1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-22 21:47:19 +00:00
Devin Moore
a8efdb127e Vendor API level 202404 is now frozen
Ignore-AOSP-First: VINTF 202404 Finalization
Bug: 279809333
Test: build
Change-Id: Ie6d38d27a287e258c30516e0030ad8c931d06432
2024-02-20 21:05:23 +00:00
Yu-Han Yang
3344506a78 Allow multiple registered GNSS HALs
Bug: 325210998
Change-Id: I1c5e4e37059b6159ffaff310d2d0dd588d35fd7c
Test: atest VtsHalGnssV1_1TargetTest
2024-02-14 22:11:23 +00:00
Yu-Han Yang
0787585764 Update GnssStatus svid range
Bug: 323694631
Test: doc update only
Change-Id: I87443f1b5b3c9a5da65f8c02e396b3b9c0b6f515
2024-02-05 19:04:24 +00:00
Yu-Han Yang
e0d9e7cbb6 Clarify setPositionMode doc
Bug: 306874828
Test: doc update only
Change-Id: I5fc99039ef44c2a1ceb398ad00d38ea179d181ea
2023-11-22 23:01:25 +00:00
Treehugger Robot
507ab7b376 Merge "Add gnss HAL APEX" into main am: 6a4d763060 am: fb5f35b7ad am: 183d89c0a1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2749884

Change-Id: I7ef9ec8444fc2954cb7766b5ef8da1cd02bff726
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-06 05:31:41 +00:00
Treehugger Robot
fb5f35b7ad Merge "Add gnss HAL APEX" into main am: 6a4d763060
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2749884

Change-Id: I6341e6181dc9377a7f53c2301311b8bdb7706e09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-06 04:16:56 +00:00
Jooyung Han
78c24f8854 Add gnss HAL APEX
Bug: 297467836
Test: VtsHalGnssTargetTest
Change-Id: I193ad310cfeabd21fc6beefeaef460487754c7c2
2023-11-03 23:52:37 +00:00
Yu-Han Yang
bf5189cb2f Add SvStatus interval tests
Bug: 298260386
Test: atest VtsHalGnssTargetTest
Change-Id: I2a592147641c143c6d33435e60a79fc5f8424f3f
2023-10-30 22:15:51 +00:00
Zhanghao
4ec54ec6f9 Update Javadocs for RINEX 4.01
IRNSS L1 is added in RINEX 4.01.

Test: Change Javadocs only.
Bug: 307991559
Change-Id: Ie5ab95d5924947ac45bb3f838d90729964040a75
2023-10-26 20:35:08 -04:00
Yu-Han Yang
7d21c7df17 Merge "Fix a deadlock in emulator HAL implementation" into main 2023-10-24 16:26:36 +00:00
Yu-Han Yang
e28dd7900d Fix a deadlock in emulator HAL implementation
Before this change, a start() call will wait for previous threads to
finish. However, in ListenerMultiplexer.java in the framework, start(),
stop(), and deliverListener() calls are contending for the same lock.
Therefore, if a waiting start() is holding the lock, while the
almost-finishing thread is also going to hold that lock for calling
deliverListener(), a deadlock will happen.

This CL moves the waiting logic into the new thread of the start() call,
so that start() will return immediately. The new thread will wait for
the old thread to finish, and then start the actual work.

Bug: 299563185
Test: atest CtsLocationGnssTestCases
Change-Id: Ic2993a6d82c24688fa98d26d336c85518c683cf6
2023-10-20 21:53:38 +00:00
Yu-Han Yang
87800e609a Add NavIC L1 support in GnssNavigationMessage (hardware/interfaces)
Bug: 302199306
Test: atest GnssNavigationMessageTest
Change-Id: I0c7fec9e537e7348d05cb5a9468abc9eefda73b8
2023-10-16 18:13:00 +00:00
Treehugger Robot
04b92abe74 Merge "Merge OWNERS files for gnss" into main am: 21d519cc71 am: 5f9df41740 am: 7eab97c2c1 am: ca7af37da2 am: 6cb08b9d4a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2746940

Change-Id: Ieb614d06300c0d0feb511e2952346538fc574549
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 19:53:34 +00:00
Treehugger Robot
6cb08b9d4a Merge "Merge OWNERS files for gnss" into main am: 21d519cc71 am: 5f9df41740 am: 7eab97c2c1 am: ca7af37da2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2746940

Change-Id: I59a0011535b98016eca9547bf48ab04400c687e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 18:49:05 +00:00
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
Zhanghao
8cb81f70ec Update javadocs for RINEX4.0
Update the Javadocs based on doc:https://docs.google.com/document/d/1SliduwZ8TlV5kMDZpxM5CUg-Txsw3IxBe8JTnr_ZOl0/edit?resourcekey=0-HTfqV3iJLkQtaMp_lsy3Vg

Test: Change Javadoc only.
Bug: 277260039
Change-Id: Idb0f83885b3183812d54f6ec79da590c03c05b10
2023-08-29 16:44:59 +00:00
TreeHugger Robot
bd2d52583a Merge "Remove unnecessary assert to fix flaky test" into udc-qpr-dev am: fc45cfd9e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23797225

Change-Id: If751f77013f308f245ca597ad7f54f640abf5f70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-26 18:28:48 +00:00
Yu-Han Yang
8687b2a585 Remove unnecessary assert to fix flaky test
Bug: 285214482
Test: atest VtsHalGnssTargetTest --iterations=100  -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=*TestGnssMeasurementIntervals_WithoutLocation*"

Change-Id: Ib6aa8e5be17c50d00faea5096e7cee481acb8584
2023-06-23 23:54:32 +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