Commit Graph

5 Commits

Author SHA1 Message Date
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
19a32b6270 Add VTS tests for measurementInterval, stopSvStatus, and stopNmea
Bug: 206670536
Test: atest VtsHalGnssTargetTest

Change-Id: Id597c772fbe63789cb394b2aa14faeb755196f64
2022-05-11 20:28:03 +00:00
Sam Dubey
160e4a1dee Revert "Fix use-after-free in GnssMesaurementInterface"
This reverts commit b6686e725a.

Reason for revert: Broke LocationManagerFineTest

Bug: 230085457
Change-Id: Ic699cf1583dd9b858cb5dcd2545ca448a17def6e
2022-04-22 13:35:08 +00:00
Yu-Han Yang
b6686e725a Fix use-after-free in GnssMesaurementInterface
Bug: 228639296
Test: on Cuttlefish
Change-Id: Ibd36d23f2059ae994132099dd67d8fd10f84cd72
2022-04-13 17:06:26 -07:00
Yu-Han Yang
10cf736cef Add GnssNavigationMessage AIDL HAL (hardware/interfaces)
Bug: 201253590
Test: atest VtsHalGnssTargetTest
Change-Id: I3a12b69c2d03293d07c977eefdc6995323cb802b
2021-11-24 11:14:21 -08:00