Commit graph

159 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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