No description
Find a file
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
apexkey Add OWNERS file for apexkey 2023-09-13 21:18:46 +00:00
atrace Merge OWNERS files for atrace 2023-09-08 20:25:29 +00:00
audio Merge "audio: Allow "dynamic" profiles for device ports" into main am: e3dcd057d9 am: e8825cf308 am: b6d0d44db3 am: caaf15aa74 am: b099febcb5 2023-10-11 20:20:42 +00:00
authsecret Merge OWNERS files for authsecret 2023-09-08 20:31:20 +00:00
automotive Merge "Generated EnumForVehicleProperty.java from VehicleProeprty.aidl" into main 2023-10-12 04:03:56 +00:00
biometrics Cleanup: use shared apex_key 2023-10-10 15:28:38 +09:00
bluetooth Move APTX_ADAPTIVE_LE and APTX_ADAPTVIE_LEX to configurable am: f850de6732 2023-10-04 06:51:09 +00:00
boot Merge "Revert^2 "Add bootcontrol HAL APEX"" into main 2023-10-11 04:20:38 +00:00
broadcastradio Merge "Merge OWNERS files for broadcastradio" into main am: a7b29b6338 am: 9cc1248e47 am: daf86b6795 am: d168e5471b am: 59a177ff78 2023-09-09 02:59:27 +00:00
camera Merge "Bump android.hardware.graphics.common V4->V5" into main 2023-10-09 08:27:26 +00:00
cas Merge "Revert^2 "Add CAS HAL APEX"" into main am: d67ffc4b89 2023-09-19 01:50:45 +00:00
common Enable Rust build of android.hardware.media.bufferpool2. 2023-09-15 15:24:05 +01:00
compatibility_matrices Merge "Revert^3 "Remove HIDL graphics.mapper service from V+"" into main 2023-10-12 01:18:32 +00:00
configstore Merge OWNERS files for configstore 2023-09-08 20:56:04 +00:00
confirmationui
contexthub Merge "Add contexthub HAL APEX" into main am: cf81ef375b am: 1e0aac1ae6 am: 60ea692592 am: d8357cfe77 am: 6f17c319c3 2023-09-21 07:03:26 +00:00
drm Merge "Don't depend on String8 cast to C string [drm]" into main am: 15272cf28e am: 19f00f8964 am: da306554c5 am: cc11251fe4 2023-10-05 21:13:47 +00:00
dumpstate Add dumpstate HAL APEX 2023-09-19 23:48:35 +09:00
fastboot
gatekeeper Merge Android U (ab/10368041) 2023-08-25 13:29:30 -07:00
gnss Fix a deadlock in emulator HAL implementation 2023-10-20 21:53:38 +00:00
graphics Merge "Ensure AIMapper and underlying IMPL outlive IMapperProvider" into main am: b8c23a8a7d am: 4c11b51986 am: 8dcf909435 am: f5dbe8113a am: ba4b850b8a 2023-10-11 02:14:30 +00:00
health Merge "Don't depend on String8 cast to C string [health]" into main am: d937584b22 am: 69f5242fba am: bd44ec07a2 am: 4d79351da6 am: e23e5c94bb 2023-09-26 23:26:00 +00:00
identity Merge "identity: Set testMode to false for RKP." am: 087b29d75a am: 8ff617bdd0 am: 6c1c507c6b 2023-05-25 00:52:17 +00:00
input Enable rust backend for input common types 2023-06-15 23:57:59 +00:00
ir Add apex_defaults for consumerir HAL APEX 2023-09-26 19:09:39 +09:00
keymaster Merge "Fix nonce uniqueness tests" into main am: 8d333ff410 2023-09-22 20:51:37 +00:00
light Merge OWNERS files for light 2023-09-11 16:21:52 +00:00
media Merge "Update media OWNERS file" into main am: 9c93cbe987 am: 049ca157b4 am: 681a1f6668 am: 526b46444a am: 1d9eff22fe 2023-10-12 02:32:35 +00:00
memtrack Add memtrack HAL APEX 2023-09-15 13:16:28 +09:00
neuralnetworks Bump android.hardware.graphics.common V4->V5 2023-10-03 16:14:03 +00:00
nfc Enable Rust backend for NFC AIDL HAL 2023-07-17 04:17:08 +00:00
oemlock Merge OWNERS files for oemlock 2023-09-08 21:06:03 +00:00
power Cleanup: move VINTF fragments into VAPEX am: cadd26dbe7 am: 02de97ef48 am: bfd81c90d6 am: 9f3776cece am: f286928491 2023-10-10 10:23:46 +00:00
radio Clarify IRadioNetwork also applies to satellite-based cellular connections. 2023-10-05 20:17:33 +00:00
rebootescrow Merge OWNERS files for rebootescrow 2023-09-08 23:27:43 +00:00
renderscript Merge OWNERS files for renderscript 2023-09-08 22:50:08 +00:00
scripts Add OWNERS files to support dirs 2023-09-11 17:03:06 +00:00
secure_element Merge "Temporary disable one of the transmit checks" into main am: 59107ad386 2023-09-21 00:46:48 +00:00
security Merge "Skip known VTS failures on vendor code till U" into main am: 87e6b60eb3 2023-09-25 19:58:54 +00:00
sensors Merge "Cleanup: use shared apex_key" into main am: 6693205f17 am: 70338b35b9 am: 8ac3c1c801 am: 3e3b89fd74 am: be711c3a9b 2023-10-11 07:09:07 +00:00
soundtrigger Fix crash in SthalCli 2023-09-14 21:55:14 +00:00
staging Merge "Add OWNERS files to support dirs" into main am: ab20a682ca 2023-09-13 19:39:24 +00:00
tests Add OWNERS files to support dirs 2023-09-11 17:03:06 +00:00
tetheroffload Add tetheroffload HAL APEX am: d254e37e32 2023-09-14 04:06:03 +00:00
thermal Merge changes from topics "tetheroffload-hal-apex", "thermal-hal-apex" into main am: 1f05f9d3a1 am: 49122f7ddf am: 288693a585 am: d1abd7897c am: 2308e77104 2023-09-14 06:41:19 +00:00
threadnetwork Merge "Rename threadnetwork-service-sim.rc to threadnetwork-service.rc" into main 2023-09-13 14:20:36 +00:00
tv Update TV owners 2023-10-11 17:47:56 +00:00
usb Merge "Test: Don't check results when no type-c ports" am: 7e9eece7b3 am: 8cf1bf3f00 am: 9912848327 2023-06-21 07:13:54 +00:00
uwb Cleanup: use shared apex_key 2023-10-10 13:46:47 +09:00
vibrator Update haptics framework owners file 2023-10-09 11:55:22 +00:00
vr Merge OWNERS files for vr 2023-09-11 16:32:19 +00:00
weaver IWeaver.aidl: document that throttling must be per-slot 2023-09-13 22:12:23 +00:00
wifi Merge "Disable Wi-Fi framework during VTS" into stage-aosp-udc-ts-dev am: 2a7fc95f69 am: 90bb1142d6 am: 95a394109f 2023-09-29 19:35:49 +00:00
.clang-format
.gitignore
Android.bp
CleanSpec.mk Clean up android.hardware.automotive.vehicle intermediates. 2023-08-25 13:29:36 -07:00
current.txt
METADATA
NOTICE
OWNERS
PREUPLOAD.cfg Add generate_vehicle_property_enums repo hook. 2023-06-08 18:34:57 +00:00
TEST_MAPPING
update-base-files.sh
update-makefiles.sh