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
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
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
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
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
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
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
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
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
Mikhail Naganov
b97c363366
audio: Do not use A2DP/LE status when populating device port am: df65834372
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3008396
Change-Id: I590b44430ed1c9f7b589c75ac2a118750cfd565f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 17:50:41 +00:00
Mikhail Naganov
df65834372
audio: Do not use A2DP/LE status when populating device port
...
The events about the status of A2DP and LE are sent by
the framework asynchronously with attempts to connect
an external device. As a result, the connection attempt
may be rejected by the bluetooth HAL module.
Bug: 327711955
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a46d52771a3e4a7816ea722088153ee6b65f59c3 )
Merged-In: Iecef0ee6a66cd290237fdcccd6a7016e9622c4b0
Change-Id: Iecef0ee6a66cd290237fdcccd6a7016e9622c4b0
2024-03-20 16:48:08 +00:00
Treehugger Robot
e65a042921
Merge "Update owners for sensor interfaces" into main am: 8127a59cb2
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3001428
Change-Id: I9d4444c00dbcb19aa72be0a18973fea774f79ade
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 13:41:06 +00:00
Treehugger Robot
8127a59cb2
Merge "Update owners for sensor interfaces" into main
2024-03-20 12:51:11 +00:00
Treehugger Robot
2b16275c92
Merge "Fix annotation in doc" into main am: 2116f9c807
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3002168
Change-Id: Ifad839be9e7199fc52cc40178dd5b109bc6b97e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 01:05:51 +00:00
Treehugger Robot
2116f9c807
Merge "Fix annotation in doc" into main
2024-03-20 00:41:09 +00:00
Ady Abraham
f151e33065
composer: vts: add support for batched create/destroy layers am: 530024ea4a
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3006622
Change-Id: Iba369e89f29e7982654e2c40bb10ed3b210957b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 00:26:57 +00:00
Ady Abraham
530024ea4a
composer: vts: add support for batched create/destroy layers
...
Bug: 315517904
Fixes: 329461909
Test: atest VtsHalGraphicsComposer3_TargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a00d246f2725b22d32b2908230de7620238827ba )
Merged-In: Ic3c0415612b1387671ab8efa0ec95ed727f6bf68
Change-Id: Ic3c0415612b1387671ab8efa0ec95ed727f6bf68
2024-03-19 23:11:56 +00:00
Yuyang Huang
641f0aed53
Adapt CheckApfIsSupported for VSR-15 compatibility
...
This commit updates CheckApfIsSupported to align with VSR-15
requirements. APF should have minimum of 2000 bytes usable memory.
Bug: 303356901
Test: TH
Change-Id: I2a2dbc22e1532fcb11ab256830cecba9f6c54446
2024-03-19 11:13:08 +09:00
Yuyang Huang
fe83a98b3e
Update APF VTS for VSR-14 compliance
...
Modified the VTS to check the APF version is 4 (or higher) as mandated
by VSR-14.
Test: TH
Change-Id: I28f6579bf426e5338880fcc6afff33c769f29634
2024-03-19 11:01:26 +09:00
Treehugger Robot
0c1cd789e2
Merge "Remove the default implementation for NFC aidl HAL" into main am: 4372ea1bd1
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3003421
Change-Id: If96925ae0fd9299dc44f0351fb5bf066aedb3aad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 01:47:06 +00:00
Treehugger Robot
4372ea1bd1
Merge "Remove the default implementation for NFC aidl HAL" into main
2024-03-19 01:33:35 +00:00
Bhakthavatsala Raghavendra
2ad3630302
uwb: Keep VTS timeout to be consistent with UWB stack
...
Change-Id: I17367f955ced5ea3d109af06122678f8e6e8cda1
2024-03-16 19:58:31 -07:00
Shunkai Yao
e9732fcc29
Audio effect aidl log reduce and level adjust am: bb35effe0d
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3005322
Change-Id: Ic48b870fcc15c7297dce6f56741b6e5f289d234c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-16 01:35:35 +00:00
Shunkai Yao
bb35effe0d
Audio effect aidl log reduce and level adjust
...
Bug: 329334917
Test: atest AudioEffectTest
Test: atest CtsMediaAudioTestCases
Test: atest CtsEffectTestCases
Test: audio use cases on pixel AIDL audio hal
Change-Id: I49876924b230f2ac834d3b0e494a03b814c4bb6e
Merged-In: I49876924b230f2ac834d3b0e494a03b814c4bb6e
2024-03-16 00:00:12 +00:00
Henri Chataing
963a78b8a6
Merge changes I422445af,I9c995127 into main am: 8954a83c93
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3004551
Change-Id: Icb032396f7a49c38093eed869342c0fd249c1221
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-15 16:05:59 +00:00
Henri Chataing
8954a83c93
Merge changes I422445af,I9c995127 into main
...
* changes:
uwb/aidl/default: Use write_all instead of write in sendUciMessage
uwb/aidl/default: Log incoming and outgoing packet bytes
2024-03-15 15:28:07 +00:00
Henri Chataing
cd3a3402b5
uwb/aidl/default: Use write_all instead of write in sendUciMessage
...
write_all ensures that the full buffer is being written.
Bug: 329316454
Test: TreeHugger
Change-Id: I422445aff32cdeba8fba9497a4296e6eda2e60ce
2024-03-15 15:26:17 +00:00
Henri Chataing
67b4c13cf7
uwb/aidl/default: Log incoming and outgoing packet bytes
...
Bug: 329316454
Test: TreeHugger
Change-Id: I9c9951273ed593a2090d199830a973f013b3da68
2024-03-15 15:26:17 +00:00
Shunkai Yao
4b469e5e51
Merge changes I95f19d20,Ic720e74c into main am: 49800ab894
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3004391
Change-Id: I25f64a7a514c4e521c576597690a301795764cea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-14 22:47:21 +00:00
Shunkai Yao
bdac767c4f
Effect AIDL VTS: skip data path testing for offloading effects am: 50e478ba73
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3004390
Change-Id: I6237747615254d4cf69ec8827d84449d9fe33e09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-14 22:47:17 +00:00
Shunkai Yao
49800ab894
Merge changes I95f19d20,Ic720e74c into main
...
* changes:
minor improvements for VtsHalAudioEffectFactoryTargetTest
Effect AIDL VTS: skip data path testing for offloading effects
2024-03-14 22:29:46 +00:00
Charlie Boutier
dded06518c
Merge "uwb_hal: handle data_packet parsing" into main am: 4e2937b460
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3001538
Change-Id: I38544917b24005c0c2333baa1b77eacae95c9033
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-14 19:11:03 +00:00
Charlie Boutier
4e2937b460
Merge "uwb_hal: handle data_packet parsing" into main
2024-03-14 18:35:35 +00:00
Shunkai Yao
e0c1f31ff6
minor improvements for VtsHalAudioEffectFactoryTargetTest
...
Bug: 327678656
Test: atest VtsHalAudioEffectFactoryTargetTest
Change-Id: I95f19d20883142cd500c552966bd8f02256a1be5
Merged-In: I95f19d20883142cd500c552966bd8f02256a1be5
2024-03-14 17:32:07 +00:00
Shunkai Yao
50e478ba73
Effect AIDL VTS: skip data path testing for offloading effects
...
Bug: 328330990
Test: atest VtsHalBassBoostTargetTest
Test: atest VtsHalDownmixTargetTest
Test: atest VtsHalLoudnessEnhancerTargetTest
Test: atest VtsHalVolumeTargetTest
Change-Id: Ic720e74cf25f5282dfa52dca354a5eccf9071f61
Merged-In: Ic720e74cf25f5282dfa52dca354a5eccf9071f61
2024-03-14 17:10:37 +00:00
Henri Chataing
60cd14a576
Remove the default implementation for NFC aidl HAL
...
The HAL android.hardware.nfc-service.example
is not used anywhere; cuttlefish is using the implementation
in /device/google/cuttlefish/guest/hals/nfc instead
(android.hardware.nfc-service.cuttlefish)
Test: NA
Change-Id: I76dd12624e0e3eb4bb4c7ebf33c33a7781bf9836
2024-03-14 16:27:22 +00:00
Tri Vo
a1e3ba1cbd
Tests for imported wrapped RSA and EC keys am: b02ff886be
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2769758
Change-Id: I037c1653ba5780c2edb10477ce3a9b5ce0467458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-14 15:43:44 +00:00
David Drysdale
5f4493d75b
Secretkeeper: more VTS tests
...
Add tests for:
- large number of session creations
- also use a bigger identity, to better simulate real use
- attempt to retrieve a secret with an incorrect identity
Test: VtsSecretkeeperTargetTest (shiba)
Bug: 327526008
Change-Id: I8dddf643d03a8fb679511564cb03c2248477c116
2024-03-14 15:00:37 +00:00
Tri Vo
b02ff886be
Tests for imported wrapped RSA and EC keys
...
Only applies for devices on VSR API level 35 and above, so that existing
devices which previously passed VTS should not need to pass the new
tests.
Bug: 292534977
Test: VtsAidlKeyMintTargetTest
Change-Id: I8281c3cebf05795e3f9a1ed2b112fc149d8a104c
2024-03-14 13:04:16 +00:00
Treehugger Robot
811105bec0
Merge "automotive aidl: Add required @RustDerive annotations" into main am: 31f8d6e36b
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2962597
Change-Id: Ide03818f2d691feb863a1762c978ea4296139669
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-14 08:20:06 +00:00
Treehugger Robot
31f8d6e36b
Merge "automotive aidl: Add required @RustDerive annotations" into main
2024-03-14 08:05:54 +00:00