Commit graph

65584 commits

Author SHA1 Message Date
Satish Yalla
8aa5d8a57b Revert "Fix fmq_test when HIDL is not supported"
Revert submission 26722372-nomo_hidl

Reason for revert: <Reason for revert: Potential culprit for b/332395670- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.>

Reverted changes: /q/submissionid:26722372-nomo_hidl

Change-Id: I65174dd90ce94bc7d39d7bbafa2dd51886a89eee
2024-04-02 06:46:15 +00:00
Devin Moore
85b7f66b77 Fix fmq_test when HIDL is not supported
If HIDL is not supported on the device, don't expect to be able to
register the HIDL service.

Test: atest fmq_test
Bug: 218588089
Change-Id: I1764b26f06ef8f280f719d8ab44db2ebfe562944
2024-03-28 20:08:30 +00:00
Doug Ferraz
f51a196bae Merge "Bluetooth HCI: Add VTS requirement for HCI 4.2 - Annotations" into main am: cfa68a1fbb am: ddf020e313
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3012536

Change-Id: If10905b5df19105d52a5aada03c966ff0d98b714
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 14:49:50 +00:00
Doug Ferraz
ddf020e313 Merge "Bluetooth HCI: Add VTS requirement for HCI 4.2 - Annotations" into main am: cfa68a1fbb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3012536

Change-Id: If13ac662e4ef1c803ccec068b91bf412e152b19d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 14:32:57 +00:00
Doug Ferraz
cfa68a1fbb Merge "Bluetooth HCI: Add VTS requirement for HCI 4.2 - Annotations" into main 2024-03-26 14:02:54 +00:00
Shrikar Amirisetty
844a04c078 Merge "Updated EV_CHARGE_STATE HAL docs with behavior on reaching user target" into main 2024-03-26 00:27:47 +00:00
Treehugger Robot
bb3b5cb58f [automerger skipped] Merge "ExternalCameraHAL: dup fd when creating AIDL NativeHandle" into main am: dc543a304b am: f1b6d2b424 -s ours
am skip reason: Merged-In Ic406634de6f22a290abb414e80a7747927368b68 with SHA-1 31437d0f3c is already in history

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

Change-Id: I215620d042e97bb44941b54115e2b9ef5418caf1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 00:19:26 +00:00
Doug Ferraz
eff7b9102f Bluetooth HCI: Add VTS requirement for HCI 4.2 - Annotations
Bug: 285456310
Test: atest VtsHalBluetoothV1_1TargetTest
Test: atest VtsHalBluetoothV1_0TargetTest
Test: atest VtsHalBluetoothTargetTest
Change-Id: I5a910d2a7d778b2e64a524d0a389b911c080e189
2024-03-25 20:04:19 -04:00
Treehugger Robot
f1b6d2b424 Merge "ExternalCameraHAL: dup fd when creating AIDL NativeHandle" into main am: dc543a304b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3011694

Change-Id: I6e3a394f5eb9b99b64feedf442c5e99bafb41ec3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 00:04:17 +00:00
Treehugger Robot
dc543a304b Merge "ExternalCameraHAL: dup fd when creating AIDL NativeHandle" into main 2024-03-25 23:54:31 +00:00
Doug Ferraz
5c49b6b07a Merge "Bluetooth HCI: Add VTS requirement for HCI 4.2 - HIDL version" into main am: 7229b6bacc am: 1c7042ebee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3011696

Change-Id: I6a24b7a0ffb8717cfd8cffb89750682505f10693
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 22:56:32 +00:00
Doug Ferraz
1c7042ebee Merge "Bluetooth HCI: Add VTS requirement for HCI 4.2 - HIDL version" into main am: 7229b6bacc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3011696

Change-Id: If0d876bc013d660d2fc7ac1ab81f4e19ca7d68bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 22:39:57 +00:00
Doug Ferraz
7229b6bacc Merge "Bluetooth HCI: Add VTS requirement for HCI 4.2 - HIDL version" into main 2024-03-25 22:24:41 +00:00
Avichal Rakesh
ea30826bf3 ExternalCameraHAL: dup fd when creating AIDL NativeHandle
AIDL's NativeHandle do not have a concept of unowned file
descriptors. If a NativeHandle object is created with an
fd, NativeHandle implicitly assumes ownership of the fd.
When passing fds over binder, ExternalCameraHAL used
makeToAidl which which accidentally transferred ownership
to the AIDL objects. Additionally, NativeHandles close
owned fds on destruction, which led to multiple closure
of fences.

This CL changes the logic to use dupToAidl to ensure that
NativeHandle objects are given ownership of a duped fds
and don't interfere with any of the fds used for internal
bookkeeping.

Bug: 313115623
Test: Verified by partner that ExternalCameraHAL no longer double closes fds.
Merged-In: Ic406634de6f22a290abb414e80a7747927368b68
Change-Id: Ic406634de6f22a290abb414e80a7747927368b68
2024-03-25 21:59:11 +00:00
Andrew Scull
f50a2e1c2d Merge "Require proper DICE if StrongBox is present" into main am: 6cb40f35b6 am: ce5c85e2c3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3009660

Change-Id: I6966aa039553123f5ce9bc8cc1f665d19f853f9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 21:32:35 +00:00
Doug Ferraz
b6553785e6 Bluetooth HCI: Add VTS requirement for HCI 4.2 am: 83b2267b78 am: 9b6cbb058d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3011716

Change-Id: Ib9cc327b427160b1ecd89c6d0f8fbd4a56804653
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 21:32:03 +00:00
Andrew Scull
ce5c85e2c3 Merge "Require proper DICE if StrongBox is present" into main am: 6cb40f35b6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3009660

Change-Id: Id057617d4fe5c10448f02a6aa8c4c316ec9e32aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 21:15:10 +00:00
Doug Ferraz
9b6cbb058d Bluetooth HCI: Add VTS requirement for HCI 4.2 am: 83b2267b78
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3011716

Change-Id: I54691feca15b77de2a0ccf5b10306f6aeb84bb02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 21:14:58 +00:00
Andrew Scull
6cb40f35b6 Merge "Require proper DICE if StrongBox is present" into main 2024-03-25 20:57:47 +00:00
Doug Ferraz
2984a75096 Bluetooth HCI: Add VTS requirement for HCI 4.2 - HIDL version
Bug: 285456310
Test: atest VtsHalBluetoothV1_1TargetTest
Change-Id: I0af583e35428f8ec8c9c360d9e28c1c909ad9001
2024-03-25 16:37:29 -04:00
Doug Ferraz
83b2267b78 Bluetooth HCI: Add VTS requirement for HCI 4.2
Bug: 285456310
Test: atest VtsHalBluetoothTargetTest
Change-Id: I056b924543ac349beb9b0eddaf039b0aa9187821
2024-03-25 14:52:55 -04:00
Treehugger Robot
6b96e8ec9b Merge "Specified in INFO_MAKE and INFO_MODEL HAL docs to use public names" into main 2024-03-25 18:47:10 +00:00
Andrew Scull
2146152db9 Require proper DICE if StrongBox is present
If a decice provides a StrongBox KeyMint instance then the default IRPC
instance is required to use a proper, non-degenerate DICE chain.

Expose a function to check whether the CSR contains a proper DICE chain
and use that from VTS to implement the test.

Bug: 302204396
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I90cf070bc2279fc52e0a8e7fd0039d3fdb68c1d7
2024-03-25 18:16:24 +00:00
Mikhail Naganov
50f477ad6a [automerger skipped] audio: Implement blocking in remote submix when there is no sink am: a41ff5134d am: f682e02ff2 -s ours
am skip reason: Merged-In Ia66cb7b4567d42a41bf4715b7d725d36510ac50c with SHA-1 6507376fb9 is already in history

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

Change-Id: Id4f6888bb717c880ec331728bb478aef103d57e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 18:10:51 +00:00
Mikhail Naganov
f682e02ff2 audio: Implement blocking in remote submix when there is no sink am: a41ff5134d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3009658

Change-Id: Ie71efa7ec303bb311b546e28db3d71b428c46c76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 17:56:26 +00:00
Mikhail Naganov
41e1e9e50c audio: Implement blocking in remote submix when there is no sink am: 6507376fb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/26684914

Change-Id: I6a4a1b6c0eab6808db990e3bc341e9945812a1b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 16:14:25 +00:00
Mikhail Naganov
a41ff5134d audio: Implement blocking in remote submix when there is no sink
The HIDL implementation blocked for the audio buffer duration
when the output side of the remote submix pipe does not have
the sink connected. This behavior was accidentally removed
when fixing b/327220024.

Also, limit the amount of the debug messages displayed when
the sink is shutdown to avoid spamming the syslog.

Bug: 328347445
Test: repro steps from the bug
Test: atest VtsHalAudioCoreTargetTest
Test: atest --test-filter=".*AudioPlaybackCaptureTest.*" CtsMediaAudioTestCases
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6507376fb940198e8c39ad6d5345d132b1dd7219)
Merged-In: Ia66cb7b4567d42a41bf4715b7d725d36510ac50c
Change-Id: Ia66cb7b4567d42a41bf4715b7d725d36510ac50c
2024-03-25 16:04:27 +00:00
Yuyang Huang
8b3add91f9 Merge "Adapt CheckApfIsSupported for VSR-15 compatibility" into main am: b959192690 am: 0e8bea62dd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2968205

Change-Id: Ibd8f85dd63176654c2bc2d031a980011ec3deccf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 07:24:24 +00:00
Yuyang Huang
0e8bea62dd Merge "Adapt CheckApfIsSupported for VSR-15 compatibility" into main am: b959192690
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2968205

Change-Id: I13f2bb0fda3faa75ca5fd1b2249babbd671c3b04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 07:10:03 +00:00
Yuyang Huang
b959192690 Merge "Adapt CheckApfIsSupported for VSR-15 compatibility" into main 2024-03-25 06:51:10 +00:00
Treehugger Robot
dfaf902393 Merge "Update APF VTS for VSR-14 compliance" into main am: f3f6e5b2cd am: 46836057e0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3005171

Change-Id: I1834a81572bddebcc35ccd227aaa6409fc54ee61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-23 02:08:00 +00:00
Treehugger Robot
46836057e0 Merge "Update APF VTS for VSR-14 compliance" into main am: f3f6e5b2cd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3005171

Change-Id: Ib7fe2edeedb641e13ef1efcd842b1d502397f1fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-23 01:50:19 +00:00
Treehugger Robot
f3f6e5b2cd Merge "Update APF VTS for VSR-14 compliance" into main 2024-03-23 01:26:24 +00:00
Mikhail Naganov
6507376fb9 audio: Implement blocking in remote submix when there is no sink
The HIDL implementation blocked for the audio buffer duration
when the output side of the remote submix pipe does not have
the sink connected. This behavior was accidentally removed
when fixing b/327220024.

Also, limit the amount of the debug messages displayed when
the sink is shutdown to avoid spamming the syslog.

Bug: 328347445
Test: repro steps from the bug
Test: atest VtsHalAudioCoreTargetTest
Test: atest --test-filter=".*AudioPlaybackCaptureTest.*" CtsMediaAudioTestCases
Change-Id: Ia66cb7b4567d42a41bf4715b7d725d36510ac50c
2024-03-22 13:05:48 -07:00
Mikhail Naganov
7f50205333 Merge "audio: Adjust stream buffer size calculation" into main am: 222d034461 am: a5855a1592
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3008508

Change-Id: I8484832349e3af69cec9ca2a56f315f225b83427
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-22 04:08:11 +00:00
Mikhail Naganov
a5855a1592 Merge "audio: Adjust stream buffer size calculation" into main am: 222d034461
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3008508

Change-Id: I47bd8717653bc48d3fde37c139f373e6d7bce517
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-22 03:53:32 +00:00
Mikhail Naganov
222d034461 Merge "audio: Adjust stream buffer size calculation" into main 2024-03-22 03:36:44 +00:00
Mikhail Naganov
cbb2976223 audio: Adjust stream buffer size calculation
When calculating buffer size, use powers of two
for "large" buffers only on SRs >= 44100 Hz.
With lower SRs, sizes rounded up to a multiple
of 2 give too high latency.

Bug: 328432688
Test: repro steps from b/328432688#comment3
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I605ef8507fef030d349e85c33ed0229c9566ddb5
2024-03-21 16:40:30 -07:00
Jeff Pu
012679e371 Merge "Added Fingerprint Virtual HAL AIDL extension" into main 2024-03-21 21:24:25 +00:00
shrikar
2f2f97ccb1 Updated EV_CHARGE_STATE HAL docs with behavior on reaching user target
Bug: 324447986
Test: presubmit
Change-Id: I33250f4a78a048a90f3f06ed66553e83200dd87b
2024-03-21 18:23:52 +00:00
shrikar
9b8607e503 Specified in INFO_MAKE and INFO_MODEL HAL docs to use public names
Bug: 316921360
Bug: 316922545
Test: presubmit
Change-Id: I3f3956ba59381ce4580d92814cfcb096ebd35c17
2024-03-21 17:40:33 +00:00
Ayush Jain
0202146ae5 Merge "uwb: Keep VTS timeout to be consistent with UWB stack" into main am: e63e865777 am: c809659a6c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3002136

Change-Id: I4b5bb783c5b04d4f9613014c7e604b22c5ffa504
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 17:27:55 +00:00
Ayush Jain
c809659a6c Merge "uwb: Keep VTS timeout to be consistent with UWB stack" into main am: e63e865777
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3002136

Change-Id: Ie6a31d883b629fe94ad2adba35a2b82c68abf8fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 16:45:22 +00:00
Ayush Jain
e63e865777 Merge "uwb: Keep VTS timeout to be consistent with UWB stack" into main 2024-03-21 16:33:18 +00:00
Jimmy Shiu
379d7c1e65 [automerger skipped] VTSHalPowerTarget.FMQAidl: Make sure session status OK before running test am: d594e608c3 -s ours
am skip reason: Merged-In I0f757ab825020ded02c31231969e13f3375e47f3 with SHA-1 a18a54d5ae is already in history

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

Change-Id: I9bc26eb8b63030f0cdb716ca06d77a1bbb4637a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 06:36:18 +00:00
jimmyshiu
7850a7fff1 [automerger skipped] VTSHalPowerTarget: Add condition check for FMQAidl teardown am: 7371e370dc -s ours
am skip reason: Merged-In I83081cbef66da1d74d87e191f266cb16fb559b85 with SHA-1 d3753ec91d is already in history

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

Change-Id: I6b4d394f952877d366fe993d9385473dafbad6e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 06:36:14 +00:00
jimmyshiu
305e32d18e [automerger skipped] VTSHalPowerTarget: check if HintSession supported am: d53f5f3ad4 -s ours
am skip reason: Merged-In Ia1161aeafcd541745e7e0da1bd4c1781dc535460 with SHA-1 8191575b67 is already in history

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

Change-Id: I2dcc2c4f9fd2bf45d2454e3f8246f7d42bd8a202
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 06:36:09 +00:00
Wei Wang
36ecd96c2d Merge "VTSHalPowerTarget.FMQAidl: Make sure session status OK before running test" into main 2024-03-21 05:10:50 +00:00
Jimmy Shiu
d594e608c3 VTSHalPowerTarget.FMQAidl: Make sure session status OK before running test
While PowerHal version >= 5 but devices didn't support HintSession. We should skip the test. Otherwise, it would fail.

Merged-In: I0f757ab825020ded02c31231969e13f3375e47f3
Change-Id: I0f757ab825020ded02c31231969e13f3375e47f3
Test: atest VTSHalPowerTarget
Bug: 328330332
2024-03-21 02:09:33 +00:00
jimmyshiu
7371e370dc VTSHalPowerTarget: Add condition check for FMQAidl teardown
While FMQAidl Setup() was skipped, some uninitialized objects would be
used in FMQAidl Teardown() which caused the test failed.
Add some condition check to prevent from using uninitialized objects.

Test: atest VTSHalPowerTarget
Bug: 328330332
Merged-In: I83081cbef66da1d74d87e191f266cb16fb559b85
Change-Id: I83081cbef66da1d74d87e191f266cb16fb559b85
(cherry picked from commit d3753ec91d)
2024-03-21 02:07:58 +00:00