Commit graph

55253 commits

Author SHA1 Message Date
Devin Moore
a6e336cc5f Add CtsStrictJavaPackagesTestCases to TEST_MAPPING presubmits
This test will catch when the same types are duplicated in the
framework.jar or services.jar which is helpful to know in presubmits.

Recent case causing P0 bug and reverts: b/316620445

Test: none
Bug: 316620445
Change-Id: I260e85acaabc81e8bac03702951873a21f7ae236
2023-12-16 00:33:37 +00:00
Antoine Soulier
8024b94e6d Merge changes from topic "codec_extensibility" into main
* changes:
  Codec Extensibility A2DP HAL Reference Implementation
  Codec Extensibility A2DP Specific AIDL
2023-12-07 23:51:48 +00:00
Hongguang Chen
13c04c29cc Merge "Allow non-zero HCI interface numbers" into main 2023-12-07 23:29:23 +00:00
Seth Moore
40f1230a1d Merge "Change the way rkp tool obtains serial number" into main 2023-12-07 19:14:37 +00:00
Antoine SOULIER
4e34d05b7b Codec Extensibility A2DP HAL Reference Implementation
Test: m
Bug: 297037759
Change-Id: I84b32c2ef22da8c3e920e497501b9f16feaf803c
2023-12-07 16:51:57 +00:00
Antoine SOULIER
33c4e5a629 Codec Extensibility A2DP Specific AIDL
Test: m
Bug: 297037759
Change-Id: If9a73d2791781ad948ce76b55b9d29f7eba655e4
2023-12-07 16:51:01 +00:00
Alice Kuo
f3531c57ea Merge changes from topic "HFP-SCO-management" into main
* changes:
  Add VTS for HFP sessions
  Add HFP to BluetoothAudioSession
  Add HFP default implementation
  Add HFP AIDL design
2023-12-07 16:20:16 +00:00
chuanchuan.gao
18a9fa99a8 Change the way rkp tool obtains serial number
[Description]
1.Add patch to modify rkp_factory_extraction_tool, so
 that it can meet TV customer's factory product line.
2.Change the method for
rkp_factory_extraction_tool to get the serial number.
3.Introduce a new input parameter, serialno_prop,
to the function jsonEncodeCsrWithBuild.
4.Use the new property of serialno_prop if it is set,
otherwise defaults to "ro.serialno".

Test:
1.build pass
2.AC on/off pass
3.run "rkp_factory_extraction_tool
--output_format build+csr
--serialno_prop $(customer_prop) > csr.json" pass
4.run "rkp_factory_extraction_tool
--output_format build+csr > csr.json" pass
5.VtsHalRemotelyProvisionedComponentTargetTest pass
6.libkeymint_remote_prov_support_test pass
7.VtsAidlKeyMintTargetTest pass

Bug: 313811996
Change-Id: I8aa83bacab22f0a28bc54aea9e816f75a382ffde
2023-12-07 18:23:15 +08:00
David Drysdale
986e92e098 Merge "Secretkeeper: add AuthGraph key exchange" into main 2023-12-07 06:56:12 +00:00
Bao Do
7239943cb5 Add VTS for HFP sessions
Contains VTS tests for HFP software encoding / decoding
and HFP hardware sessions.

Bug: 265057196
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I4bbdc07a0afa0a889a8cf34019c6685ebd4fa0a0
2023-12-07 05:57:26 +00:00
Yuyang Huang
aa70c11126 Add HFP to BluetoothAudioSession
Test: m .
Bug: 265057196
Change-Id: I0e2e9d0f34ebf3f732c4f2da799c4c30f52bdeef
2023-12-07 05:54:59 +00:00
Yuyang Huang
91d7f8b916 Add HFP default implementation
Bug: 265057196
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I712eb4db0d776b465436ae54730ad883ecaf40a0
2023-12-07 05:54:59 +00:00
Yuyang Huang
e50be86fd4 Add HFP AIDL design
Bug: 265057196
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I066c8c0db7516da8709c32558fe3b21ddbd91054
2023-12-07 05:54:58 +00:00
Tom Huang
2a824c99f5 Merge "Bluetooth Finder: fix typo android.hardware.bluetooth.finder-service.default" into main 2023-12-07 04:15:37 +00:00
yanggang.yang
c59d2d80ee Allow non-zero HCI interface numbers
[Description]
when driver re-register hci device, it may register hci 1
[Root Cause]
In the kernel mechanism, there may be a timing issue. when driver re-register hci device,kernel may not completely unregister hci 0.But aidl only open hci 0.
[Solution]
assign a value to the hci interface based on the device node found by AIDL

[Test Report]
Insert the bt chip into the usb 2.0 port, and then suspend the TV. The bt chip will be disconnected due to the USB power outage. And then quickly resume the TV,check whether the Bluetooth state is on. Suspend and resume for several times, check for bt state.

Change-Id: I57fd4a22c956e0cf2b4a516247c258493163e51a
BUG: 314149416
2023-12-07 02:07:58 +00:00
Seth Moore
0293d63b50 Fix incorrect link rendering.
The MD format was wrong for some RKP-VM links.

Change-Id: I03c9b4c394cbfc9c85b6c5cb3ea3625da2eb09a3
2023-12-06 15:53:19 +00:00
kuanyuhuang
81e941fef5 Bluetooth Finder: fix typo android.hardware.bluetooth.finder-service.default
Bug: 314360499
Test: atest vts_treble_vintf_vendor_test
Change-Id: I4de7d83a4fad133d1471ffd17d5a41b3db413ff2
2023-12-06 11:23:09 +00:00
David Drysdale
8898d2ec57 Secretkeeper: add AuthGraph key exchange
Add `ISecretkeeper::getAuthGraphKe()` method to the Secretkeeper HAL.

Align the AIDL targets between AuthGraph and Secretkeeper, and add
some defaults that automatically link to the current version of the
Secretkeeper AIDL targets.

Move the non-secure implementation of AuthGraph to run the TA in a
separate thread.

Alter the nonsecure implementation of Secretkeeper so that it no longer
directly implements Secretkeeper functionality, but instead re-uses
common code from the Secretkeeper reference implementation.  This
involves re-using the common implementation of the HAL service (from
`authgraph_hal`), but also involves using the reference implementation
of the the TA code that would normally run in a separate secure
environment.  The latter code expects to run in a single-threaded
environment, so run it in a single local thread.

Note that the negotiated session keys emitted by AuthGraph are not yet
used by Secretkeeper (coming in a subsequent CL).

Extend the Secretkeeper VTS tests to invoke the AuthGraph VTS inner
tests on the returned IAuthGraphKeyExchange instance, exercising the
instance as an AuthGraph sink.

Bug: 291228560
Test: VtsSecretkeeperTargetTest
Change-Id: Ia2c97976edc4530b2c902d95a74f3c340d342174
2023-12-06 06:50:19 +00:00
Yi Kong
810d41a774 Fix -Wunused-variable compiler warning
Test: presubmit
Change-Id: I146d3435fe76da7f300452a14b62ce430c38ae36
2023-12-06 14:03:58 +09:00
Jooyung Han
577cc0ac9b Merge "Create secretkeeper HAL APEX" into main 2023-12-06 01:45:22 +00:00
Nagendra Prasad Nagarle Basavaraju
965b7e570b [automerger skipped] [DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response am: 378bd90e66 -s ours am: 7ab862b625 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7a9ed2b7d70f4ccc204eafcda198ab8cac60032d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 00:41:38 +00:00
Shunkai Yao
ab269e2fc7 Merge "DownmixProcess: Add tests to validate the downmix process." into main 2023-12-06 00:35:39 +00:00
Nagendra Prasad Nagarle Basavaraju
7ab862b625 [automerger skipped] [DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response am: 378bd90e66 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie5356d995f91acf3ffe0f3b59a291fe2ec1d41e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 00:06:35 +00:00
Nagendra Prasad Nagarle Basavaraju
378bd90e66 [DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response
Handle RIL reporting response for getAllowedNetworkTypesBitmap() with
"LTE_CA" responses until Android T.

Bug: 308538353
Test: atest VtsHalRadioTargetTest , Device test @ b/308538353#comment29
Change-Id: I1916422c88ac6dad4a9d0777b32182b599e9c30c
2023-12-05 21:26:05 +00:00
Antoine Soulier
9820d5d5ad Merge changes I3f440a75,I5566a1ef into main
* changes:
  Codec Extensibility Base AIDL
  Upgrade VNDK version to 4
2023-12-05 17:51:38 +00:00
Mikhail Naganov
a0df73110e Merge "audio: Adjust after "bus" device type change" into main 2023-12-05 17:32:02 +00:00
Sneha Patil
f533b50925 DownmixProcess: Add tests to validate the downmix process.
Added methods to set and validate parameters.
Added test to verify multichannel to stereo conversion for STRIP type.
Added test to verify multichannel to stereo conversion for FOLD type.

Bug:314953788
Test: atest VtsHalDownmixTargetTest
Change-Id: I31ee4df3eac6ae42e3e3cabebd1622e860581eab
2023-12-05 22:09:05 +05:30
Mikhail Naganov
43269bc713 audio: Adjust after "bus" device type change
The `CONNECTION_BUS` constant is deprecated.
`{IN|OUT}_BUS` should be used instead of `{IN|OUT}_DEVICE`
for clarity.

Bug: 303926380
Test: m
Change-Id: I73365abbcc16550875cf307eafa46b1200698df4
2023-12-04 14:51:49 -08:00
Antoine SOULIER
8c90f1f7b5 Codec Extensibility Base AIDL
Test: m
Bug: 297037759
Change-Id: I3f440a75aeada6c8739b89f89a6d942488c8ce77
2023-12-04 18:51:16 +00:00
Jakub Rotkiewicz
e70014de66 Upgrade VNDK version to 4
Change-Id: I5566a1ef857f7db6c1dc04fcf16aa16fb6e1063a
2023-12-04 17:52:18 +00:00
William McVicker
1ba87c3848 Merge "Update Android V compatibility matrix" into main 2023-12-04 17:48:03 +00:00
Mikhail Naganov
5260337cbb Merge "audio: Fix remote submix module I/O timing and atomicity" into main 2023-12-04 04:48:42 +00:00
Treehugger Robot
db3d24bb3f Merge "CEC Fuzzer Fix" into main 2023-12-04 04:34:53 +00:00
Henri Chataing
57f52da3c8 Merge "bluetooth/audio: Apply android.hardware.bluetooth.audio-update-api" into main 2023-12-02 20:35:04 +00:00
Treehugger Robot
a35b13c3a3 Merge "Remove symlink to audio_effects_conf.xsd" into main 2023-12-02 06:30:35 +00:00
Mikhail Naganov
0608545377 audio: Fix remote submix module I/O timing and atomicity
Similar to the primary module implementation, align the time
spent in the transfer operation with the duration of audio.

Change the read operation to ingest as much data as possible
during the audio burst duration.

Ensure that checking the existence of a SubmixRoute and adding
a new one is an atomic operation.

Minor improvements to avoid extra synchronization.

In the configuration, change the limit of max open streams to 10
to match the legacy implementation.

Bug: 302132812
Test: atest CtsMediaAudioTestCases --test-filter=".*AudioPlaybackCaptureTest#testPlaybackCaptureDoS"
Change-Id: Iccb6aaac46c039551c3d5f7760b1459168d9cfe5
2023-12-01 16:39:52 -08:00
Shunkai Yao
4181e7db41 Merge "Effect AIDL: add AudioTrack metadata as a common parameter for effects" into main 2023-12-01 18:29:21 +00:00
Ted Wang
2865f1ec72 Merge changes from topic "bluetooth_finder_hal" into main
* changes:
  Bluetooth Finder: Add Vts and AIDL default implement
  Bluetooth Finder: Interface for Bluetooth Finder
2023-12-01 17:41:04 +00:00
Ted Wang
198746f6bd Bluetooth Finder: Add Vts and AIDL default implement
Bug: 307897345
Bug: 310790725
Test: atest VtsHalBluetoothFinderTargetTest
Change-Id: I20eba31695627cde2fdb212657c952f74615ea46
2023-12-01 03:51:45 +00:00
Ted Wang
36556927b1 Bluetooth Finder: Interface for Bluetooth Finder
Bug: 307897939
Test: m android.hardware.bluetooth.finder-update-api
Change-Id: I111b9e20831c094dcb42432e9d83f9fd326ff953
2023-12-01 03:49:04 +00:00
Will McVicker
01c01c11a4 Update Android V compatibility matrix
...to drop 5.15 and add 6.6.

Bug: 311450232
Change-Id: I5743f9fb403c3d1aa2d97f74f37d7ea61fe8b359
2023-11-30 18:14:38 -08:00
Cole Faust
85b661ae19 Remove symlink to audio_effects_conf.xsd
A change is being made so that sandboxed actions need to add a
dependency on the targets of the symlinks they use. All xsd_config
modules use sandboxing by default.

In this case, the symlink isn't necessary, and we can just depend
on the audio_effects_conf_V2_0 genrule instead.

Bug: 307824623
Test: Presubmits
Change-Id: Ia3c2e8adced78b39881d8c0390c881c0d28ecde4
2023-11-30 14:13:28 -08:00
Henri Chataing
d1dc2e1283 bluetooth/audio: Apply android.hardware.bluetooth.audio-update-api
Test: TreeHugger
Change-Id: Ie80345adf1723bc9044c2065b9c4ddb95b7e3ea4
2023-11-30 18:25:56 +00:00
Treehugger Robot
3cf2309b7b Merge "Add new CertificateType for the RKP VM" into main 2023-11-30 17:00:20 +00:00
Seth Moore
690571283b Add new CertificateType for the RKP VM
The RKP VM is part of the Android Virtualization Framework. It will be
uniquely authenticated by the RKP server, and therefore needs its own
certificate type.

Bug: 300624493
Change-Id: Ice586ad85ae43235dd80a5d220603e7394c1c49b
2023-11-30 15:55:54 +00:00
Venkatarama Avadhani
e017878151 CEC Fuzzer Fix
Ensure that the mock CEC exits cleanly when the service that created it
dies.

Bug: 293249165
Test: android.hardware.tv.hdmi.cec-service_fuzzer

Change-Id: Ic7b69ddb10414cbdf6570056144b8013f497e7dc
2023-11-30 16:37:32 +05:30
Treehugger Robot
f75750965f Merge "Remove symlink to audio_effects_conf.xsd" into main 2023-11-30 02:15:49 +00:00
Cole Faust
36efc06267 Remove symlink to audio_effects_conf.xsd
A change is being made so that sandboxed genrules need to add a
dependency on the targets of the symlinks they use.

In this case, the symlink isn't necessary, and we can just depend
on the audio_effects_conf_V2_0 genrule instead.

Bug: 307824623
Test: m audio_effects_conf_V4_0
Change-Id: I6ddaa81e08d7c4a9c29412b11a08f1d6b88689b5
2023-11-29 13:49:21 -08:00
Devin Moore
6504238fd7 Merge "Register bluetooth.audio in the audioservice AIDL example" into main 2023-11-29 18:15:31 +00:00
Shunkai Yao
421ca19c14 Effect AIDL: add AudioTrack metadata as a common parameter for effects
Bug: 307368176
Test: m android.hardware.audio.effect-update-api
Test: atest --test-mapping hardware/interfaces/audio/aidl
Change-Id: I5affc96c09445a425361f326f728b8ef9b04daee
2023-11-29 17:04:58 +00:00