Commit Graph

67110 Commits

Author SHA1 Message Date
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
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
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
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
Treehugger Robot
6c7d5ded29 Merge "Convert hardware/interfaces/compatibility_matrices/Android.mk to soong" into main 2024-08-15 09:07:38 +00:00
Yi Kong
2c5a8716cd graphics: Remove unnecessary std::move
Moving a temporary object prevents copy elision, and could reduce
performance.

This fixes -Wpessimizing-move compiler warning.

Test: presubmit
Bug: 154270751
Change-Id: I26d488fb92bf3a9accc20d688da0408e6e19ca93
2024-08-15 14:41:03 +08:00
yangbill
a1d5770c37 Convert hardware/interfaces/compatibility_matrices/Android.mk to soong
Add a new attribute type which value could only be device_fcm and
product_fcm if set to the vintf_compatibility_matrix module type which
could be used to generate framework_compatibility_matrix.device.xml and
product_compatibility_matrix.xml in soong to convert the original Android.mk

Bug: 352234038
Bug: 344445679

Test: lunch aosp_cheetah-trunk_staging-userdebug
      m framework_compatibility_matrix.device.xml \
        product_compatibility_matrix.xml

Test: lunch aosp_trout_x86_64-trunk_staging-userdebug
      m framework_compatibility_matrix.device.xml \
        product_compatibility_matrix.xml

Test: lunch aosp_cf_x86_64_phone-trunk_staging-userdebug
      m framework_compatibility_matrix.device.xml \
        product_compatibility_matrix.xml
      diff $ANDROID_PRODUCT_OUT/system/etc/vintf/compatibility_matrix.device.xml \
           device/google/cuttlefish/system_image/compatibility_matrix.device.xml

Change-Id: I1690cf29462c91f5ab80f7a78f6df9cdb6abbf2f
2024-08-15 03:30:53 +00:00
Sally Qi
420a72f7c3 [Lut HAL] change func name to takeDisplayLut instead.
- also fix some build warnings.

Bug: 329472100
Test: builds
Change-Id: I8b6e25e150c00bdef0606b380bdaeb228cc7ba35
2024-08-14 09:49:40 -07:00
Xin Li
abda996e89 [automerger skipped] Mark 24Q3 (ab/AP3A.240905.015) as merged am: 1b8cf8c845 -s ours
am skip reason: Merged-In I22393acc260d200d2e472d276c64af005a75ab6b with SHA-1 c07973b7b2 is already in history

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

Change-Id: I071abf24fafa337c1f002e5085e7cb0a8c62ca28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-14 00:44:36 +00:00
Xin Li
1b8cf8c845 Mark 24Q3 (ab/AP3A.240905.015) as merged
Bug: 347831320
Merged-In: I22393acc260d200d2e472d276c64af005a75ab6b
Change-Id: I02b9538e760df889e18fb507c100e0b84973b0e8
2024-08-13 15:41:16 -07:00
Treehugger Robot
a6d259a6dc Merge "audio: Remove unnecessary std::move" into main am: 6883d48156 am: 2fb82209e0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3217976

Change-Id: Ia84390fe6b3f841410668a12c35c7a3d89ce7b71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-13 21:22:25 +00:00
Treehugger Robot
2fb82209e0 Merge "audio: Remove unnecessary std::move" into main am: 6883d48156
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3217976

Change-Id: Id3a73ba5fa3f4483b13036eb80af9afdcc6df714
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-13 21:04:34 +00:00
Treehugger Robot
6883d48156 Merge "audio: Remove unnecessary std::move" into main 2024-08-13 20:48:53 +00:00
Treehugger Robot
857e69d515 Merge "automotive: Remove unnecessary std::move" into main am: c9777e83a1 am: bd4f0e7ad3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3217719

Change-Id: Ia610e32846f69730d3ed095bbef6d508e55ea3e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-13 20:46:50 +00:00
Treehugger Robot
bd4f0e7ad3 Merge "automotive: Remove unnecessary std::move" into main am: c9777e83a1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3217719

Change-Id: I609dd3e678ffd7bd84922b3feccbfa3ea38ef8a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-13 20:33:11 +00:00
Treehugger Robot
c9777e83a1 Merge "automotive: Remove unnecessary std::move" into main 2024-08-13 20:07:37 +00:00
Yi Kong
9af4fc9bbd security: Remove unnecessary std::move am: 99df7ced5d am: 859efb0a90
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3217977

Change-Id: I9dd30fab9ac429bbc7d9b6ed398e8e3e14156375
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-13 19:43:14 +00:00
Yi Kong
859efb0a90 security: Remove unnecessary std::move am: 99df7ced5d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3217977

Change-Id: I8cdfdc8174083145f314630c57b3d11a45a59ea7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-13 19:22:09 +00:00
Sally Qi
18e4f4b30c Merge "[Aidl] Add LUT HAL" into main 2024-08-13 18:22:43 +00:00
Jim Shargo
fd15ec9d6b Merge "vts: ConsumerBase-based classes now create their own BufferQueues" into main 2024-08-13 17:57:22 +00:00
Yi Kong
99df7ced5d security: Remove unnecessary std::move
Moving a temporary object prevents copy elision, and could reduce
performance.

This fixes -Wpessimizing-move compiler warning.

Test: presubmit
Bug: 154270751
Change-Id: I378f1b9029f1a0711728ff14e4071263ad330504
2024-08-14 01:56:18 +08:00
Yi Kong
e62f97fb5b audio: Remove unnecessary std::move
Moving a temporary object prevents copy elision, and could reduce
performance.

This fixes -Wpessimizing-move compiler warning.

Test: presubmit
Bug: 154270751
Change-Id: Idb1a4abf4da9eb6dbe1e9a8fd66461d60985c8e1
2024-08-14 01:52:25 +08:00
Yi Kong
301f5e0d61 automotive: Remove unnecessary std::move
Moving a temporary object prevents copy elision, and could reduce
performance.

This fixes -Wpessimizing-move compiler warning.

Test: presubmit
Bug: 154270751
Change-Id: Ia2ffdb8addde27a67d2e2382bef1d45d5261f3ca
2024-08-14 01:50:44 +08:00
Yunke Cao
f9cb9d0e16 Merge "Enable Rust for camera HAL" into main 2024-08-13 01:31:51 +00:00
Sally Qi
ac6824fb33 [Aidl] Add LUT HAL
A Look-Up Table(LUT) provides either the platform or apps ways to
control tonemapping for specific content, more specifically HDR
contents.

LutProperties HAL is also exposed to OverlayProperties API.

Bug: 329472100
Test: builds
Change-Id: Ia25fb21b57c924a9f5a6b4424661a4e152db96f4
2024-08-12 13:42:53 -07:00
Jim Shargo
3942f9c632 vts: ConsumerBase-based classes now create their own BufferQueues
Using ConsumerBase-based classes is now the recommended way to create
BufferQueues.

This is an important step for go/warren-buffers, because it consolidates
usages of BufferQueues to supported APIs and reduces the libgui API
surface that exposes IGBP/IGBC.

BYPASS_IGBP_IGBC_API_REASON: this CL is part of the migration.

Bug: 340933754
Flag: com.android.graphics.libgui.flags.wb_consumer_base_owns_bq
Test: atest, presubmit, compiles

Change-Id: Ie424a300f4d391fcb5c73fadcea9d19fdae27c8b
2024-08-12 16:39:56 +00:00
Wei Li
1dc35bc341 Merge "Remove unused LOCAL_ variables and related logic in hardware/interfaces/compatibility_matrices/compatibility_matrix.mk." into main am: fc8d55a0bf am: 0c487a312b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3212254

Change-Id: I71b7588e47ba4dd2e7cca73a1abc46b7d1095972
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 21:01:24 +00:00
Leon Scroggins
15a2c17d43 Merge "Assert the errors size to 1 for case SetDisplayBrightness" into main am: 9e65f0a00d am: 2647200f4c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3174319

Change-Id: I74c2be26ae1cc26ace79e6a603a7c2bf936410e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 21:01:09 +00:00
Wei Li
0c487a312b Merge "Remove unused LOCAL_ variables and related logic in hardware/interfaces/compatibility_matrices/compatibility_matrix.mk." into main am: fc8d55a0bf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3212254

Change-Id: I63c575b32d45b9838915103b5d03b59319108d90
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 20:43:24 +00:00
Leon Scroggins
2647200f4c Merge "Assert the errors size to 1 for case SetDisplayBrightness" into main am: 9e65f0a00d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3174319

Change-Id: Id3d13c4a18c46e5170cfc9336ae40ec64cc6998b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-09 20:42:53 +00:00
Wei Li
fc8d55a0bf Merge "Remove unused LOCAL_ variables and related logic in hardware/interfaces/compatibility_matrices/compatibility_matrix.mk." into main 2024-08-09 20:30:59 +00:00
Leon Scroggins
9e65f0a00d Merge "Assert the errors size to 1 for case SetDisplayBrightness" into main 2024-08-09 20:26:37 +00:00
Yunke Cao
3715c79286 Enable Rust for camera HAL
Add Rust to camera device and camera provider aidl.

Bug: 347882226
Test: build
Change-Id: Idda1a54584e6710ee72717ad7ad5024cc8b37c52
2024-08-09 06:43:52 +00:00
Wei Li
fd11739a60 Remove unused LOCAL_ variables and related logic in hardware/interfaces/compatibility_matrices/compatibility_matrix.mk.
After most compatibility_matrices Make modules have been moved to Android.bp there are some unused variables and logic, so remove them to reduce the complexity which helps conversion to Android.bp and reviewing.

Bug: 352234038
Test: CIs
Change-Id: Ic2f4538b3e50cc1ca573634cd46eb64c4013420a
2024-08-08 20:38:59 -07:00
Roshan Pius
f02779e068 nfc: Change EXPECT_TRUE to ASSERT_TRUE am: 0f39c73d6e am: 2b4d90723f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3214235

Change-Id: I2c337c0242b90d1ea142d0fe20feb97ba6a613b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-08 20:49:31 +00:00
Roshan Pius
2b4d90723f nfc: Change EXPECT_TRUE to ASSERT_TRUE am: 0f39c73d6e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3214235

Change-Id: Ic2d100bac2ab73a458a83aff27c676a1e6903b47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-08-08 20:28:02 +00:00