Commit Graph

67135 Commits

Author SHA1 Message Date
Treehugger Robot
78b668e4a9 Merge "Add frozen: true|false to all AOSP HALs that don't have frozen" into main 2024-10-14 22:55:12 +00:00
Treehugger Robot
0de4aa3c22 Merge "Remove Android.mk from bump.py" into main 2024-10-12 01:02:43 +00:00
Devin Moore
3227acc073 Remove Android.mk from bump.py
The file no longer exists and everything is handled in the Android.bp
file instead. The script was previously modified to handle the
Android.bp file.

Test: build/make/tools/finalization/build-step-0-and-m.sh cf_x86_64_phone
Bug: 331696132
Change-Id: I08bd6d40fd4b003d9c5f927e06288922c5e16202
2024-10-11 23:15:40 +00:00
Mikhail Naganov
05fc6aa383 audio: Fix AudioRecordTest#testTimestamp CTS on CF
After experimenting, it seems that the input poll
is more stable after the PCM input on CF has just
been opened. Since calling 'flush' on an input
stream puts it into the 'STANDBY' state, explicitly
call 'StreamAlsa::standby' after 'flush' in the
primary input stream implementation.

Bug: 340899868
Bug: 362852052
Bug: 372951987
Test: atest CtsMediaAudioTestCases
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ic1df6835ce00323ca3f0905ea46d3bc151e05fc4
2024-10-11 14:09:40 -07:00
David Drysdale
25876eb8d1 Merge "KeyMint: coalesce device ID failure code" into main 2024-10-11 07:46:16 +00:00
David Drysdale
7b05efd13f KeyMint: coalesce device ID failure code
Test: VtsAidlKeyMintTargetTest
Change-Id: I7c94af96010f5c5f708f54bf02e0f85a96cece3f
2024-10-10 18:19:51 +01:00
Daniel Zheng
cba986107b boot_control: use overrides
BootControlClientAIDL and BootControlClientHIDL are child classes of BootControlClient. We should
use proper inheritance and override the base class methods.

Test: th
Change-Id: Ia741f28bc463b55dc075a17901a024566324564a
2024-10-10 09:57:38 -07:00
Treehugger Robot
3f4c251a00 Merge "audio: Deprecate StreamSwitcher" into main 2024-10-10 16:08:26 +00:00
Mikhail Naganov
92166144a2 audio: Deprecate StreamSwitcher
Use of StreamSwitcher causes threading issues with the FMQ due to
using it in a way which is not anticipated by the FMQ design.

Stream implementations that need to change its behavior depending
on connected devices must do it without changing the I/O thread.
For example implementations please refer to PrimaryStream and
RemoteSubmixStream.

The class code has been moved to 'deprecated' directory and
namespace, and will be removed in the future. Any classes which
currently depend on StreamSwitcher should be updated mechanically
to use the new name and the include file location. Such classes
need to be planned to be overhauled as soon as possible to remove
the dependency on StreamSwitcher.

Bug: 300130515
Test: m
Change-Id: I6b0d20274013826360ca5efa69a01df9457db9c6
2024-10-09 18:19:27 -07:00
Daniel Zheng
c15d064c4a Merge "boot_control death recipient" into main 2024-10-10 01:10:11 +00:00
Daniel Zheng
28b6b2b1b6 boot_control death recipient
When boot control service dies, we should log that it is no longer
available. To do this, we should register a death recipient in the
client.

Bug: 369289491
Test: kill bootctl service while running OTA
Change-Id: If766451cafe939725e7a88b1ca23b2a4af0d1a80
2024-10-09 21:19:44 +00:00
Treehugger Robot
70c35c3986 Merge "ExternalCameraHAL: Get old image if taking picture without preview" into main 2024-10-09 17:28:50 +00:00
jimmyshiu
8c8c1c1215 [automerger skipped] VTSHalPowerTarget: check if HintSession supported am: f5a213c5ed -s ours am: afeb6bbb8c -s ours
am skip reason: Merged-In Ia1161aeafcd541745e7e0da1bd4c1781dc535460 with SHA-1 92e08f9387 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3269678

Change-Id: I1b3e273f9a01abf0f83304abb081320756ce5bef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-09 07:54:56 +00:00
Tomasz Wasilczyk
0b06be49cc Remove unused global const variable am: 6dc643db27 am: 16e747fe60
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3298493

Change-Id: Ie8fc6494c582e305e91e84383e7e7f46b0b81e78
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-09 07:54:54 +00:00
Matt Buckley
4562fbb120 [automerger skipped] Refactor Power VTS in terms of AIDL version am: 87f9c220b5 -s ours am: b2c1536da9 -s ours
am skip reason: Merged-In I3cef31fa8dc6341a47d173a13d07521bafe4a1e5 with SHA-1 42027e0ee7 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3298492

Change-Id: Ia6030e58c30837ad386cb5e52dbdbdfda4ae4e76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-09 07:54:51 +00:00
jimmyshiu
afeb6bbb8c [automerger skipped] VTSHalPowerTarget: check if HintSession supported am: f5a213c5ed -s ours
am skip reason: Merged-In Ia1161aeafcd541745e7e0da1bd4c1781dc535460 with SHA-1 92e08f9387 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3269678

Change-Id: I92fcf31cad3022e32292717a874039be69666660
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-09 07:40:50 +00:00
Tomasz Wasilczyk
16e747fe60 Remove unused global const variable am: 6dc643db27
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3298493

Change-Id: I881c63488eee3a8dbe796f0d0d5912b929391b08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-09 07:40:42 +00:00
Matt Buckley
b2c1536da9 [automerger skipped] Refactor Power VTS in terms of AIDL version am: 87f9c220b5 -s ours
am skip reason: Merged-In I3cef31fa8dc6341a47d173a13d07521bafe4a1e5 with SHA-1 42027e0ee7 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3298492

Change-Id: I304305f50a7449495bf97b6920cc31c2b771846f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-09 07:40:38 +00:00
jimmyshiu
f5a213c5ed VTSHalPowerTarget: check if HintSession supported
Igore HintSession testcases while HintSession isn't supported.

Test: atest Power/PowerAidl
Bug: 322112957
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8191575b6717e99d00b247c6a21b29cda7eb3a52)
Merged-In: Ia1161aeafcd541745e7e0da1bd4c1781dc535460

Change-Id: Ia1161aeafcd541745e7e0da1bd4c1781dc535460
2024-10-08 09:24:03 +00:00
Tomasz Wasilczyk
6dc643db27 Remove unused global const variable
Bug: 175635923
Test: MODULES-IN-hardware-interfaces-power
Change-Id: Ie73f48df62a17b309c774b2f446db3ee53b3863b
2024-10-08 09:23:54 +00:00
Matt Buckley
87f9c220b5 Refactor Power VTS in terms of AIDL version
Rewrite Power VTS check support using AIDL versions instead of
API versions, and change hint session tests to use a common test
fixture.

Bug: 294917526
Test: atest VtsHalPowerTargetTest
Merged-In: I3cef31fa8dc6341a47d173a13d07521bafe4a1e5
Change-Id: I3cef31fa8dc6341a47d173a13d07521bafe4a1e5
2024-10-08 09:23:23 +00:00
Treehugger Robot
0a2b52b3e4 Merge "Add VTS for setAudioPortConfig with invalid gain" into main 2024-10-07 22:34:42 +00:00
Weilin Xu
349aea2127 Add VTS for setAudioPortConfig with invalid gain
Added test for setAudioPortConfig with invalid gain input in audio HAL
VTS. Also added HAL version check in audio HAL VTS.

Bug: 336370745
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from commit 7f1ab0c33c)
Merged-In: I0f14c203c253de56ca0c3711927b2dcafa1b0ea7
Change-Id: Ib0b0d7266e249359f2750412f3fbabe1b2be958e
2024-10-07 14:57:24 -07:00
Mikhail Naganov
ee843ed4a2 Merge "audio: Add AC-4 level 4 audio format to schema" into main 2024-10-07 21:29:15 +00:00
Mikhail Naganov
ea4241bda3 Merge "audio: Do not use StreamSwitcher for StreamRemoteSubmix" into main 2024-10-07 17:01:08 +00:00
Fang Hui
8c428d7ad2 ExternalCameraHAL: Get old image if taking picture without preview
The root cause is that the dequeue/queue v4l2 buffers is driven by requests.

The potential issue is already noticed and commented in commented in OutputThread::threadLoop().
But setup a sensor thread may need change in architecture.

The patch fix the issue by dropping too old buffers.

Bug: 368087676

Change-Id: I5d6711bc3a73d0bc043b596aee6ce4af4c1841da
Signed-off-by: Fang Hui <hui.fang@nxp.com>
2024-10-05 17:50:49 +08:00
Mikhail Naganov
e976625a49 audio: Do not use StreamSwitcher for StreamRemoteSubmix
Since use of StreamSwitcher causes the worker thread to be changed
during connected device change, its use must be avoided. We intend
to remove StreamSwitcher completely in future.

Bug: 300130515
Bug: 338974476
Bug: 368723297
Bug: 369272078
Bug: 369289912
Bug: 369964381
Test: atest CtsMediaAudioTestCases
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I4f6fd35f69d73641a86e1102f1d30d5e8f626e8f
2024-10-04 18:51:46 -07:00
Yu Shan
51d6329919 Fix unknown VehicleApPowerStateReport ON.
Fix an incorrect error message for VehicleApPowerStateReport ON.

Flag: EXEMPT HAL fix
Test: Manual test
Bug: 371614400
Change-Id: I81406931d27e2f8b174b52720d4f502e0e32fdd4
2024-10-04 14:20:08 -07:00
Treehugger Robot
50956bd1cf Merge "audio: Do not use StreamSwitcher for StreamPrimary" into main 2024-10-03 21:48:38 +00:00
Mikhail Naganov
f5ec73e546 audio: Do not use StreamSwitcher for StreamPrimary
Since use of StreamSwitcher causes the worker thread to be changed
during connected device change, its use for the primary HAL streams
must be avoided. The reason is that switching of the FMQ reader thread
accompanied with simultaneous writes from two writers: one on the
framework side, another on the HAL side sending the "exit" command,
violates threading assumptions of blocking FMQ and causes spurious
races that eventually make FMQ non-functional.

Bug: 300130515
Bug: 368723297
Bug: 369272078
Bug: 369289912
Bug: 369964381
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I14dc6fc08ae9e8aaaf3cd80e96b20dd1df54f633
2024-10-02 17:11:43 -07:00
Devin Moore
34a3c0bdc9 [automerger skipped] Add a new known hash to drm am: 8fc1714797 -s ours
am skip reason: Merged-In I9e90ada03144b49245dc6b55a0fb2fa2eb6f3893 with SHA-1 2ae7fb6e55 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3291162

Change-Id: Ic761e2a46814ba2f0ed4cd289ae45f7f87d11ec3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-02 23:51:04 +00:00
Devin Moore
8fc1714797 Add a new known hash to drm
The types were split into another package so some newer devices are
using this new package.

The topic was cherry-picked but the branch configs made a mess. So we
are only cherry-picking this new hash for tests.

The new hash is added first, because the last hash in the file is
expected to the be current hash.

Bug: 293945485
Bug: 364817993
Test: build cuttlefish on this branch

Merged-In: I9e90ada03144b49245dc6b55a0fb2fa2eb6f3893
Change-Id: I6d3ef12301532d8b3fb8729abbbe6bd2dde86c91
2024-10-02 22:51:27 +00:00
Weilin Xu
21c8770923 Enable bus device audio in default audio HAL
Bug: 336370745
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e9f7cf5a8495d11d92760bac5238eedb9dd5ea72)
Merged-In: I7d9ab165f3208f401a9889623050374ed6aea691
Change-Id: I7d9ab165f3208f401a9889623050374ed6aea691
2024-10-02 19:35:32 +00:00
Ryan Prichard
649bddba90 Merge "VtsHalMediaOmx: avoid std::set and std::vector of const T" into main 2024-10-02 19:11:38 +00:00
Treehugger Robot
81d86fcd51 Merge "Implement volume control on default audio HAL" into main 2024-10-02 18:48:11 +00:00
Treehugger Robot
09b66d053e Merge "Support multiple output devices in refrence audio HAL" into main 2024-10-02 18:48:11 +00:00
Andy Hung
cb609a748c Merge "Revert "Add a new known hash to drm"" into main 2024-10-02 18:44:02 +00:00
Liana Kazanova
68ece3fac6 Revert "Add a new known hash to drm"
This reverts commit 992d978c20.

Reason for revert: DroidMonitor: Potential culprit for http://b/370983825.
(cherry picked from https://android-review.googlesource.com/q/commit:7268c9aec139e7bdb559983eb18483645ef3c451)
Merged-In: I743bf52b5b25109913fab101f9c0990d8dcd3ee9
Change-Id: I491a5366d92ffdd1f417b80b0de828482ed340c7
2024-10-02 18:31:05 +00:00
Liana Kazanova
4ca206abd7 [automerger skipped] Revert "Add a new known hash to drm" am: 7268c9aec1 -s ours
am skip reason: Merged-In I9e90ada03144b49245dc6b55a0fb2fa2eb6f3893 with SHA-1 2ae7fb6e55 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3290723

Change-Id: I1e3622309b52ea641766313a152ecdbbabe73ea0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-02 18:02:43 +00:00
Weilin Xu
a33bb5eaf5 Implement volume control on default audio HAL
Implemented volume control based on setting audio port config.

Bug: 336370745
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:122597a5e96c873239540a53523caf67fe806d90)
Merged-In: Ia590974e61aa3a1c3f70afdb54ce87c85e9a1b3c
Change-Id: Ia590974e61aa3a1c3f70afdb54ce87c85e9a1b3c
2024-10-02 17:16:42 +00:00
Weilin Xu
29e51689d8 Support multiple output devices in refrence audio HAL
Parsed card id and device id from output bus device address,
and used them to write output data into corresponding PCM
devices in stream alsa.

Bug: 336370745
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4d71bd736be6f52a9e954dd518be0b6ece3ddc1b)
Merged-In: I18efa2d1aea233375906efc0aa9c93c8f3b464e8
Change-Id: I18efa2d1aea233375906efc0aa9c93c8f3b464e8
2024-10-02 17:16:32 +00:00
Liana Kazanova
7268c9aec1 Revert "Add a new known hash to drm"
This reverts commit 992d978c20.

Reason for revert: DroidMonitor: Potential culprit for http://b/370983825.

Merged-In: I9e90ada03144b49245dc6b55a0fb2fa2eb6f3893
Change-Id: I491a5366d92ffdd1f417b80b0de828482ed340c7
2024-10-02 16:57:29 +00:00
Jason Macnak
ad6288c8bc Merge "Avoid leaking RenderEngine" into main 2024-10-02 16:35:34 +00:00
Devin Moore
27aa72d6be Add a new known hash to drm am: 992d978c20
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3288228

Change-Id: I75c5bc09d463e1d0697ef9368c48185fdafafed2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-02 16:23:19 +00:00
Mikhail Naganov
459c3a51c6 Merge "Support 192kHz sample rate in AIDL remote submix" into main 2024-10-02 16:05:04 +00:00
Treehugger Robot
481d4c59a3 Merge "audio: Update TEST_MAPPING after ag/24152024" into main 2024-10-02 00:34:15 +00:00
Ryan Prichard
d3e4d3a3e0 VtsHalMediaOmx: avoid std::set and std::vector of const T
These containers use std::allocator<const T>, which is an undocumented
libc++ extension to the C++ standard library. The extension was removed
in llvm.org/PR96319. Use an ordinary non-const T instead.

Bug: http://b/349681543
Test: m VtsHalMediaOmxV1_0TargetStoreTest
Flag: EXEMPT, refactor to fix build failure
Change-Id: I5b5ceed1d2618b7ce1f979242f33f6bc92df0545
2024-10-01 16:09:05 -07:00
Mikhail Naganov
8903aea973 audio: Update TEST_MAPPING after ag/24152024
The CtsVirtualDevicesTestCases suite was split into
tests per sub-system, need to update our mapping.

Bug: 316017930
Test: atest CtsVirtualDevicesAudioTestCases
Change-Id: I27457a499916fd1e3e1db2e0e6ad3374d02c0a11
2024-10-01 15:58:20 -07:00
Jason Macnak
64f73a4c5f Avoid leaking RenderEngine
... as this might allow an underlying `RenderEngineThreaded` thread
to race against the process shutdown.

Bug: b/361574971
Test: ATP cuttlefish_gfxstream_guest_angle_graphics_vts_tests
Change-Id: Ief71d8931ec3560780a850d8bb8bc727bbff5c52
2024-10-01 15:40:33 -07:00
Eric Biggers
fb4482b35f Merge "Remove the used_slots assertion from VtsHalWeaverTargetTest" into main 2024-10-01 19:33:06 +00:00