Commit Graph

67153 Commits

Author SHA1 Message Date
Huihong Luo
be0551d9bc Merge "Separate hdcp levels into a base interface" into main 2024-08-23 01:43:22 +00:00
Terry Guan
2a7e994860 Merge "Add refreshPropertyConfigs to DumpResult proto" into main 2024-08-22 23:06:07 +00:00
Ahmad Khalil
7eacaad15e Update composePwleV2 VTS test
Updating composePwleV2 VTS test to verify cases where the PWLE V2 capability is not supported.

Bug: 347034419
Flag: TEST_ONLY
Test: vts-tradefed run vts -m VtsHalVibratorTargetTest
Change-Id: I73de882f6595e858cea922b5378e5e7da4719140
2024-08-22 12:26:15 +00:00
Ahmad Khalil
4deb197f2b Merge "Update HAL with new PWLE V2 APIs" into main 2024-08-22 00:37:24 +00:00
Treehugger Robot
01d76c7bbe Merge "Retroactively allow sounddose V3 in 202404 FCM" into main am: a7fffef352 am: ee926a6a70
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3236545

Change-Id: I7113fa742c08f0f0b0e67a1ad680e46945f3355a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-21 23:53:06 +00:00
Treehugger Robot
ee926a6a70 Merge "Retroactively allow sounddose V3 in 202404 FCM" into main am: a7fffef352
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3236545

Change-Id: I43d28b46f700588acfa9099cbf80164502a19058
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-21 23:48:33 +00:00
Treehugger Robot
a7fffef352 Merge "Retroactively allow sounddose V3 in 202404 FCM" into main 2024-08-21 23:38:48 +00:00
Devin Moore
845b0855f1 Retroactively allow sounddose V3 in 202404 FCM
There are changes in common audio libraries that force the sounddose
implementation to be bumped if any of the other audio implementations
are bumped.
Since we want to deprecate the sounddose interface and remove it from
FCMs > 202404, we need to retroactively allow the new sounddose version.
The other audio interfaces don't need this treatment because the newer
versions are added to the newer FCMs and we allow older devices to
implement them.

Test: m
Bug: 361383071
Change-Id: I195053bb6c5b6cb01584398eafc86f8fbcdd1148
2024-08-21 22:33:28 +00:00
Alec Mouri
863035d9a8 Merge "Support 10-bit VTS readback" into main 2024-08-21 22:04:22 +00:00
Treehugger Robot
4835bb4884 Merge "audio: Implement more accurate timing for the stub stream" into main am: 722afde62a am: e759910683
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3236976

Change-Id: Ifc5eb26584444f2f86883074c0a97e8a3e32776e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-21 20:33:19 +00:00
Treehugger Robot
e759910683 Merge "audio: Implement more accurate timing for the stub stream" into main am: 722afde62a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3236976

Change-Id: I05a2926c27382419d07e0d220e7b055644243a24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-21 20:25:19 +00:00
terryguan
465d8d7de2 Add refreshPropertyConfigs to DumpResult proto
refreshPropertyConfigs was not previously used in dumpresult proto
resulting in failing tests that require the argument.

Flag: EXEMPT test
Bug: 357135536
Test: atest android.car.apitest.CarPropertyManagerTest
Change-Id: I9c6dd3053aa54f37786edc3810a9342f5efb39cd
2024-08-21 13:20:16 -07:00
Treehugger Robot
722afde62a Merge "audio: Implement more accurate timing for the stub stream" into main 2024-08-21 20:16:07 +00:00
Mikhail Naganov
10fc96386e audio: Implement more accurate timing for the stub stream
Stub output stream is like a /dev/null audio device, however
for synchronous transfers it must block for the duration of
the audio chunk being transferred. Implement more accurate
accounting for the blocking time using the same approach as
employed by the remote submix stream implementation.

Bug: 356719263
Test: atest CtsNativeMediaAAudioTestCases
      on aosp_cf_x86_64_auto target
Change-Id: I137aed397246bcf2b5ef6789aa4d2d27ead64467
2024-08-21 11:34:05 -07:00
Vlad Popa
cafd7cb21f Remove the ISoundDoseFactory HAL library am: e2a71fb696 am: d8b231b4b2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3233984

Change-Id: I55045466f47d7ded99f7e3f65a8f6c273f86a2d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-21 18:31:27 +00:00
Vlad Popa
d8b231b4b2 Remove the ISoundDoseFactory HAL library am: e2a71fb696
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3233984

Change-Id: I74d070b0a7b2e7e4b3efc0f19cc98b451a08660f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-21 18:26:20 +00:00
Vlad Popa
e2a71fb696 Remove the ISoundDoseFactory HAL library
When supporting the audio AIDL HAL, we do not use the ISoundDoseFactory
anymore. Removing it from the compatibility matrix.

Flag: EXEMPT bugfix
Test: trivial
Bug: 356641174
Change-Id: I241c4b93ea6aa4e5499bc9e924d6df4f4bd464a7
2024-08-21 10:09:52 -07:00
Ahmad Khalil
a788bedcb9 Update HAL with new PWLE V2 APIs
Updating IVibrator.aidl to introduce APIs for PWLE V2 support. The updated interface now enables retrieval of minimum and maximum PWLE durations, maximum composition size, and facilitates the composition of PWLE effects using points.

Bug: 347034419
Flag: EXEMPT HAL interface change
Test: vts-tradefed run vts -m VtsHalVibratorTargetTest
Change-Id: Id0a93e4f8678622bdb698cddc2b39f46e0283fdd
2024-08-21 14:50:05 +00:00
Alec Mouri
6a000228f7 Support 10-bit VTS readback
Some devices require this for VTS

Bug: 329526845
Test: builds
Test: VtsHalGraphicsComposer3_TargetTest
Change-Id: I94d9611c9ec64be867ade6933a07ae9e97b459a1
2024-08-21 00:37:54 +00:00
Treehugger Robot
690c0824e6 Merge "codec2: BufferPoolClient: fix NPE in fetchBufferHandle if connection is null" into main am: c818adc8d4 am: 8b0e74abf9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3222209

Change-Id: I36d05354dd800496431a8a4de220f377760ad148
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-20 21:59:17 +00:00
Treehugger Robot
9fe75fa4ee Merge "audio: Start Binder pool thread explicitly" into main am: 08c7c29c11 am: 14483ffaf0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3228808

Change-Id: Ie5dd7f6aed666eb75592779290592ce441eda56d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-20 21:56:07 +00:00
Xin Li
2c18bd7401 [automerger skipped] Merge "Merge aosp-24Q3-ts-dev" into aosp-main-future am: 86e299ea54 -s ours
am skip reason: Merged-In I48189896138da4efacbe1ce8e46f4267e956771f with SHA-1 864c904897 is already in history

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

Change-Id: Ia96b5d5fcab098b5f0adb9347a877a887395d6b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-20 21:40:20 +00:00
Xin Li
d7865632c0 [automerger skipped] Merge aosp-24Q3-ts-dev am: 53b6fae571 -s ours
am skip reason: Merged-In I48189896138da4efacbe1ce8e46f4267e956771f with SHA-1 864c904897 is already in history

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

Change-Id: I203b1da4312eb71f68274dad88b2226e05f59208
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-20 21:40:00 +00:00
Treehugger Robot
8b0e74abf9 Merge "codec2: BufferPoolClient: fix NPE in fetchBufferHandle if connection is null" into main am: c818adc8d4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3222209

Change-Id: I92a78610de73a54bdda14ee447b46bd43a2af659
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-20 20:20:32 +00:00
Treehugger Robot
c818adc8d4 Merge "codec2: BufferPoolClient: fix NPE in fetchBufferHandle if connection is null" into main 2024-08-20 20:16:45 +00:00
Treehugger Robot
5a457d81e5 Merge "Add scale factor fields to HapticGenerator AIDL" into main 2024-08-20 17:28:17 +00:00
Chan Wang
d69c4d66ad Merge "Add Rust target for VehicleHalProtos" into main 2024-08-20 12:24:33 +00:00
Treehugger Robot
a0791ae5f0 Merge "Unfreezed aidl interface for aidl v3" into main 2024-08-20 06:21:18 +00:00
Treehugger Robot
14483ffaf0 Merge "audio: Start Binder pool thread explicitly" into main am: 08c7c29c11
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3228808

Change-Id: If5ba5e367257abd83244f2f6eb7c4f65cec96281
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-19 23:02:05 +00:00
Treehugger Robot
08c7c29c11 Merge "audio: Start Binder pool thread explicitly" into main 2024-08-19 22:46:05 +00:00
Xin Li
86e299ea54 Merge "Merge aosp-24Q3-ts-dev" into aosp-main-future 2024-08-19 22:39:21 +00:00
Mikhail Naganov
1840d35645 audio: Start Binder pool thread explicitly
It was noted that calling 'ABinderProcess_startThreadPool'
results in the audio HAL service having more Binder pool
threads than without it. This is preferred to having
just one thread via 'ABinderProcess_joinThreadPool'
as in the latter case clients may seemingly be blocked
instead of being served by a newly spawned thread from
the pool.

Bug: 357669241
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ia8ed52b3c5a95cea12d063a0e75ac908af9260f8
2024-08-19 14:48:28 -07:00
Mikhail Naganov
43b8ae854f Merge "audio: Fix stream cleanup sequence" into main am: a6c2d43c79 am: 3f32ed237a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3221028

Change-Id: I94b81380322e68fefcbd33f9ec31df31ffdbe40f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-19 17:34:07 +00:00
Mikhail Naganov
3f32ed237a Merge "audio: Fix stream cleanup sequence" into main am: a6c2d43c79
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3221028

Change-Id: I43ade00b1877f7d0ce16edcfaa3cd02cda7aacbe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-19 16:54:40 +00:00
Mikhail Naganov
a6c2d43c79 Merge "audio: Fix stream cleanup sequence" into main 2024-08-19 16:30:45 +00:00
Huihong Luo
e5e76c734e Separate hdcp levels into a base interface
Both media drm and HWC can share this common base code.
Run the following commands to freeze the aidl:
(1) m android.hardware.drm.common-update-api && m android.hardware.drm.common-freeze-api
(2) system/tools/aidl/build/hash_gen.sh hardware/interfaces/drm/aidl/aidl_api/android.hardware.drm/1 latest-version hardware/interfaces/drm/aidl/aidl_api/android.hardware.drm/1/.hash

Bug: 293945485
Test: manual

Change-Id: I9e90ada03144b49245dc6b55a0fb2fa2eb6f3893
2024-08-16 18:16:38 +00:00
Xin Li
53b6fae571 Merge aosp-24Q3-ts-dev
Bug: 358400644
Merged-In: I48189896138da4efacbe1ce8e46f4267e956771f
Change-Id: Ibb687d6d3e2237bc152e41fcac7ded38be3aabbb
2024-08-16 10:15:18 -07:00
Lais Andrade
90381a3df4 Add scale factor fields to HapticGenerator AIDL
Add support for haptic scale factors introduced to the HapticScale
parcelable defined at HapticGenerator.aidl. These fields are used by the
platform to scale the haptic channel data before it's sent to the vibrator
motor.

The fields have a default negative value which will be interpreted as
undefined by the scale function and ignored. The VibratorScale enum will
still be supported by the platform when the scale factors are undefined.

Fix: 356406324
Fix: 356406686
Flag: EXEMPT HAL interface change
Test: VtsHalHapticGeneratorTargetTest
Change-Id: I9da0f6f2573722089efadb78ff96fc265bdad164
2024-08-16 11:10:12 +01:00
Chan Wang
17f10e302d Add Rust target for VehicleHalProtos
In our project we integrate vehicle properties definition and reused some of the existing message types (`VehiclePropConfig` and `VehicleAreaConfig`), so we need to depend on a Rust target of the protos.

Bug: 346786677

Test: m
Change-Id: If99f1763e38a9f8bb0ac4dd9ba5e1bee22cc54a7
2024-08-16 04:16:29 +00:00
Treehugger Robot
9415a2f3ef Merge "Update vendor VibrationEffect to support scale factor" into main 2024-08-15 23:58:46 +00:00
Mikhail Naganov
0413d077f7 audio: Fix stream cleanup sequence
Move the cleanup of the stream worker thread from '~StreamCommonImpl'
up to concrete stream implementations. This is because when
the worker thread is stopping, it calls 'DriverInterface::shutdown'
method of the stream. At the time when '~StreamCommonImpl' is
running, the concrete stream class has already been destroyed.

The cleanup actually only happens in the case when the client
did not close the stream properly via 'IStreamCommon.close', or
when the stream creation has failed in the middle.

Bug: 355804294
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ie86f682af202976ed48d24338b2dffcfd20d9a76
2024-08-15 14:18:51 -07:00
mtk28629
6652cc6ad5 codec2: BufferPoolClient: fix NPE in fetchBufferHandle if connection is null
Do a null pointer check before connection->fetch().

Bug: 344846184
Flag: EXEMPT bugfix
Test:
1.atest android.media.decoder.cts.AdaptivePlaybackTest
2.atest android.media.decoder.cts.DecoderTest

Change-Id: I30031b4abf46f920b708320ffa3fa9d1598027b4
2024-08-15 13:47:17 -07:00
Ted Bauer
5a4c88aca0 [automerger skipped] Add new aconfig dependencies am: 922c032573 am: 9003e94bda -s ours
am skip reason: Merged-In I412df2b36f49215a8b2ffe156641720c14218ba0 with SHA-1 a99ec3073f is already in history

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

Change-Id: I89beddae134fb7522938aa52b5cf349608ac576b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-15 18:28:22 +00:00
Sally Qi
a712e4fc98 Merge "[Lut HAL] change func name to takeDisplayLut instead." into main 2024-08-15 18:23:52 +00:00
Ted Bauer
9003e94bda Add new aconfig dependencies am: 922c032573
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3218562

Change-Id: Ia2ac63d4290e0d0e1e5924fa085f23cba99f8e2a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-15 17:43:31 +00:00
Leon Scroggins
5c0e63c06b Merge "graphics: Remove unnecessary std::move" into main 2024-08-15 15:24:24 +00:00
Lais Andrade
4526faf7e8 Update vendor VibrationEffect to support scale factor
Update VendorEffect.aidl to support 2 continuous float scale parameters,
one that reflects the user intensity settings for that effect and a
second that is forwarded from the vendor vibrator controller service for
that vibration usage.

This allows vendors to apply the 2-tier scaling function to the
vibrations, one reflecting the user settings and a second reflecting the
vendor parameter sent to the platform based on the device current
state.

Bug: 345409060
Test: VtsHalVibratorTargetTest
Flag: EXEMPT HAL interface changes
Change-Id: Ic88f90fd0ff1eae8797a7fe7d84d5b11f6c2f6bf
2024-08-15 15:47:51 +01:00
Ted Bauer
922c032573 Add new aconfig dependencies
Aconfig flagging is undergoing an internal storage migration. Add the
new dependencies required for it.

Bug: 347701310
Test: m
Flag: build.RELEASE_READ_FROM_NEW_STORAGE
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a99ec3073fb95840d965d3acbaee5c9aeabeba49)
Merged-In: I412df2b36f49215a8b2ffe156641720c14218ba0
Change-Id: I412df2b36f49215a8b2ffe156641720c14218ba0
2024-08-15 13:39:17 +00:00
Treehugger Robot
248fee9ee8 Merge "Convert hardware/interfaces/compatibility_matrices/Android.mk to soong" into main am: 6c7d5ded29 am: 61ef7ac739
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3195743

Change-Id: I8e3ce6ca3801a72475cdc0b57ce674ff52234448
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-15 09:55:31 +00:00
Treehugger Robot
61ef7ac739 Merge "Convert hardware/interfaces/compatibility_matrices/Android.mk to soong" into main am: 6c7d5ded29
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3195743

Change-Id: I85c16131c55cb9b2921bf025f7e8e6a7dd9f39d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-15 09:35:44 +00:00