Commit graph

34632 commits

Author SHA1 Message Date
Michael Butler
77414ebf5a Fix NNAPI HIDL 1.3 VTS MemoryDomainExecutionTest
MemoryDomainTests.cpp#1131 in aosp/13591469 fixed a problem with
VtsHalNeuralnetworksTargetTest's MemoryDomainExecutionTest's
InvalidDimensions test where a dimension was doubled but the number of
bytes and size of shared memory did not double, but this change was not
ported to VtsHalNeuralnetworksV1_3TargetTest. This CL ports that fix to
VtsHalNeuralnetworksV1_3TargetTest.

Bug: 213197824
Test: mma
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Ib7323e584c17ab230bde71487c0b94349701ec57
2022-01-04 21:21:17 +00:00
Steven Moreland
a049eb0faf Remove separate_platform_variant entries.
This no longer does anything.

Bug: 161456198
Test: build
Change-Id: If7ca08cc1d7a829c637e1ea8254eed6361be0490
2022-01-04 18:22:44 +00:00
Michael Butler
fb43bf28c9 Update NNAPI owners file
This change includes the NNAPI_OWNERS file from
packages/modules/NeuralNetworks instead of unnecessarily duplicating the
OWNERS file here.

Bug: N/A
Test: mma
Change-Id: I52daeb8f6ba91e0ec19b18fa9a6b2eda2fcb124e
2022-01-04 09:45:05 -08:00
Sarah Chin
3d7d0d2926 Merge "Add TrafficDescriptor to DataProfileInfo" 2022-01-04 17:27:40 +00:00
Alice Kuo
4831b6ac72 Cleanup: remove LE audio hardware offload supported by openProvider_2_1
LE audio hardware offload would be supported after the temporal bluetooth.audio@2.2 or bluetooth.audio aidl version. The workable audio configuration and capabilities format do not exist in bluetooth.audio@2.1. Remove the support in the 2.1 HAL default implementation.

Bug: 197296692
Bug: 150670922
Test: make build
Change-Id: I6ff3f6ada43474cadb026bf8b58d64adaf5ea477
2022-01-04 05:21:20 +00:00
Alice Kuo
3f9f41f3c8 Add audio configuration API and the callback function for bluetooth.audo@2.2
For LE audio hardware offload
1. Add the function to update audio configuration without session
restart
2. Add a callback to notify the audio HAL the audio configuration
changed

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call

Change-Id: I8b01ec8dfc9d9cd552770c8c734319a685ee626b
2022-01-03 14:31:00 +00:00
Nathan Harold
5dad8ffb50 UsageSetting Compat Stubs
Bug: 210023167
Test: make android.hardware.radio-library.compat
Merged-In: Iea5e016878f375608a167ad0fdc232fd2e743fa6
Change-Id: Iea5e016878f375608a167ad0fdc232fd2e743fa6
(cherry picked from commit 055c02fcfb)
2021-12-29 09:43:13 -08:00
Nathan Harold
ead01a029d Add UsageSetting to IRadioNetwork
Add usage setting to IRadioNetwork(Response) and the associated
enum.

Expose the cellular usage setting to Android to be able to query and
set the modem to operate in a data-centric mode or a voice-centric
mode.
This facilitates "companion" subscriptions that might be data-only and
allows voice-centric devices to operate in data-centric mode on networks
that do not support voice service.

Bug: 210023167
Test: compilation
Merged-In: I61b559589a51d139374dc52599201b6412d93da5
Change-Id: I61b559589a51d139374dc52599201b6412d93da5
(cherry picked from commit 3e777942d8)
2021-12-29 09:43:02 -08:00
Sarah Chin
02d2df7135 Merge "Add new fields to DataProfile" 2021-12-28 23:06:10 +00:00
Treehugger Robot
d563e5bc9e Merge "Get default provider codec from HAL" 2021-12-28 05:44:17 +00:00
Sarah Chin
d2a4119e2a VTS for IRadio AIDL
Test: build
Bug: 1932997
Change-Id: Ia2fa0df840ff26b4e58d9e44567909815fb5edf5
Merged-In: I4ee665519bfd2fc818fb68beee1f158b10e46176
2021-12-23 17:33:03 -08:00
Sarah Chin
e98dd0e943 Add TrafficDescriptor to DataProfileInfo
Test: build
Bug: 208651109
Change-Id: Ic5e5edab9be1087044e1a303735a59a4cef8ee89
Merged-In: Ic5e5edab9be1087044e1a303735a59a4cef8ee89
2021-12-23 17:30:36 -08:00
Sarah Chin
c7b6c928a0 Add new fields to DataProfile
Test: build
Bug: 198822816
Change-Id: I6c756d42616149a2eed0ba705ffaaeb17d7a014f
Merged-In: I6c756d42616149a2eed0ba705ffaaeb17d7a014f
2021-12-23 17:30:09 -08:00
Sarah Chin
3a16f8fe50 Merge "Revert "VTS for IRadio AIDL"" 2021-12-24 01:20:09 +00:00
Sarah Chin
128849dcff Revert "VTS for IRadio AIDL"
This reverts commit 90c6bf5616.

Reason for revert: broken build due to ag/16428798 not merged into AOSP

Change-Id: Id418e4de248968db17f7ddc711c2137d41ffd0d7
2021-12-24 00:26:08 +00:00
Sarah Chin
eec392805b Merge "VTS for IRadio AIDL" 2021-12-23 23:54:42 +00:00
Josh Gao
2d91b225ec Enable MS OS descriptors for adb.
This change ported from
https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1116495

Bug: 68993980
Test: check_ms_os_desc
Change-Id: Ifb758f796e58ee648987a71c3aa6f2b4b8004273
2021-12-23 14:36:15 -08:00
Sarah Chin
90c6bf5616 VTS for IRadio AIDL
Test: build
Bug: 210712359
Change-Id: I4ee665519bfd2fc818fb68beee1f158b10e46176
Merged-In: I4ee665519bfd2fc818fb68beee1f158b10e46176
2021-12-23 14:35:33 -08:00
Treehugger Robot
4959dded71 Merge "Add OWNERS for VTS module VtsHalIrV1_0TargetTest." 2021-12-23 22:06:57 +00:00
Treehugger Robot
302854716c Merge "Add OWNERS for VTS module VtsHalMemtrack test." 2021-12-23 21:59:13 +00:00
Yiming Pan
e9640e00ae Add OWNERS for VTS module VtsHalIrV1_0TargetTest.
Test: Tree Hugger
Bug: 143903671
Change-Id: I7377cfcf11b87f346c546fd794e9da83d02085f5
2021-12-23 09:51:01 -08:00
Yiming Pan
74948b8ac3 Add OWNERS for VTS module VtsHalMemtrack test.
Test: Tree Hugger
Bug: 143903671
Change-Id: I1fa7a1246d83fd59997b7c15d6535111dacf3fcb
2021-12-23 09:48:09 -08:00
Patty
784e443350 Get default provider codec from HAL
1. Add function getProviderCapabilities_2_2
    to return audio capability
 2. Add function GetLeAudioOffloadCodecCapabilities
    to get le audio offload capability
 3. Add LeAudioCapability in HAL 2.2

Tag: #feature
Bug: 203535499
Bug: 150670922
Test: atest BluetoothInstrumentationTests

Change-Id: Ied2d0c8c0bdaa4b8d0c149b5164ba346e4df5ae1
2021-12-23 16:50:42 +08:00
Devin Moore
ba51f773dc Merge "Convert IR interface to AIDL" 2021-12-22 21:44:17 +00:00
Treehugger Robot
c8b8ec2983 Merge "health: Add AIDL VTS to general-tests." 2021-12-22 21:23:27 +00:00
Yifan Hong
199b85ed07 Merge "health: AIDL HAL may replace HIDL HAL." 2021-12-21 23:50:21 +00:00
Alice Kuo
f33cea94ce Add onSessionEnded handle for HIDL 2.2
1. The audio driver need to get the session status callback as the
sessionEnded
2. Update the invalid audio configuration based on the session type

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call
Test: Turn on/off bluetooth to make sure the onSessionEnded work well

Change-Id: Id758b556e8f5c9b63052a408154f02082515091c
2021-12-21 02:19:05 +00:00
Yifan Hong
9a3de3ccc0 health: AIDL HAL may replace HIDL HAL.
Relax the requirement on compatibility matrices
that HIDL health HAL must exist on devices with
target level 3~6, because they may have the AIDL
health HAL instead. Use DeviceManifestTest.HealthHal
to enforce the requirement.

Test: TH
Bug: 211518384
Change-Id: I9f82278bd10e2bd775705041630bcb6f421df8b8
2021-12-20 18:00:07 -08:00
Tomasz Wasilczyk
ceb3a960ed Merge "Add OWNERS file for AIDL-HIDL compat shim layer" 2021-12-20 22:24:48 +00:00
Tomasz Wasilczyk
0675bafd42 Add OWNERS file for AIDL-HIDL compat shim layer
Bug: 203699028
Test: N/A
Change-Id: I02650c8d1f0af58df7094a7316d65599bf0512f1
2021-12-20 12:33:30 -08:00
Treehugger Robot
d2645ae70c Merge "Add support LE audio offload for HIDL 2.2" 2021-12-20 14:14:41 +00:00
Treehugger Robot
81c9e603ea Merge "fix VtsHalGraphicsComposerV2_2TargetTest timeout failed" 2021-12-16 20:17:04 +00:00
Etienne Ruffieux
c07fb30b8f Merge "Renamed bluetooth apex name to com.android.bluetooth" 2021-12-16 18:10:44 +00:00
David Drysdale
17393cbb40 Merge "KeyMint: new version number in attestation" 2021-12-16 09:37:15 +00:00
Kui1 Wu
ada2850cfb fix VtsHalGraphicsComposerV2_2TargetTest timeout failed
run VtsHalGraphicsComposerV2_2TargetTest will timeout failed
when there is dual displays. use `std::unordered_set` Display type,
`std::vector<Display>(mDisplays.begin(), mDisplays.end())` as
getDisplays return value, mDisplays elements order may not be
same as the order of hotplug events during boot matters.
We should store `mDisplays` as `std::vector`, since the order of
hotplug events during boot matters in determining the primary display.

Bug: 209409863
Test: run vts -m VtsHalGraphicsComposerV2_2TargetTest

Signed-off-by: Kui1 Wu <wukui1@xiaomi.com>
Change-Id: I628ad593640f28fb8a916822a91ac2c578cc299d
2021-12-16 08:18:15 +00:00
Alice Kuo
79c02160ef Add support LE audio offload for HIDL 2.2
1. Clean up the LE offlload path for HIDL 2.1
2. Add support offload path start/suspend/stop function with HIDL 2.2

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call

Change-Id: I2295b62fc2255d247f18f0852de2b40e6280d282
2021-12-16 15:00:23 +08:00
Devin Moore
0de7ad674e Convert IR interface to AIDL
Add new default that implements/serves the AIDL interface.
Add new VTS test to test the interface implementation.

Test: atest ConsumerIrTest VtsHalIrTargetTest hal_implementation_test
Bug: 205000342

Change-Id: I52c4b3a70341cf91efc2fd187794e3fd60b9000c
2021-12-16 00:25:59 +00:00
Treehugger Robot
b05a7c1376 Merge "Add android.hardware.security.dice HAL interface." 2021-12-16 00:16:45 +00:00
Gabriel Biren
a798cf2c63 Merge "Add Wifi HAL supplicant AIDL interface definitions." 2021-12-15 21:13:41 +00:00
Janis Danisevskis
c3cc5a0b21 Add android.hardware.security.dice HAL interface.
The dice HAL provides access to the Dice artifacts of the running Android
instance.

Bug: 198197213
Test: VTS test comming in two ...
Change-Id: I6e84f9a9c7153e7a96c06d1d451e658b3f222586
2021-12-15 08:52:07 -08:00
Etienne Ruffieux
f58147b712 Renamed bluetooth apex name to com.android.bluetooth
Tag: #feature
Bug: 206614050
Test: Compiles
Change-Id: I1118409952f16001b1144c91be1e9c81b0c489f0
2021-12-15 15:46:05 +00:00
David Drysdale
7dff4fc9b7 KeyMint: new version number in attestation
For the time being, allow the version number in the attestation record
to be 100 even if the AIDL version is 2, so that implementations don't
have to update both versions simultaneously.

Bug: 194358913
Test: TreeHugger, VtsAidlKeyMintTargetTest
Change-Id: I9aae69327a62014e286ce30ca2a4d91c4c280714
2021-12-15 14:31:19 +00:00
David Drysdale
a67b0441fe Merge "KeyMint VTS: ATTEST_KEY has no other purpose" 2021-12-15 06:25:35 +00:00
Gabriel Biren
28a4812752 Add Wifi HAL supplicant AIDL interface definitions.
Converted from android.hardware.wifi.supplicant@1.4 HIDL interface.

Bug: 196235436
Test: m android.hardware.wifi.supplicant-update-api
BYPASS_INCLUSIVE_LANGUAGE_REASON=HE refers to High Efficiency

Change-Id: I9872f297450457c347fb5fe8cf4005b01d3ab1f6
2021-12-14 23:45:07 +00:00
Yifan Hong
8469276466 health: Add AIDL VTS to general-tests.
This allows it to run on forrest.

Test: pass
Bug: 203245778
Change-Id: I78481d5bd7185cd660243e44440982f50c9f07ca
2021-12-14 20:31:28 +00:00
Xin Li
b16c246ddc Merge "Merge Android 12 QPR1" 2021-12-14 20:25:22 +00:00
Seth Moore
0834ba697f Merge "Revert^2 "KeyMint HAL: add curve 25519, bump version"" 2021-12-14 18:49:58 +00:00
Steven Moreland
a8138bfbf6 Merge "CHECK -> CHECK_EQ copy pasta" 2021-12-14 17:37:00 +00:00
Xin Li
f28c9c1699 Merge Android 12 QPR1
Bug: 210511427
Merged-In: I66e5209ddfba025f43ca0beb7067e6e0e29f9e46
Change-Id: Ie3a9dfd72939b5b876a25dfe87fb6d28314b08dc
2021-12-14 08:39:09 -08:00
Steven Moreland
ffb03995e6 CHECK -> CHECK_EQ copy pasta
Hey did I start this? We can take a little bit better errors. :)

Bug: N/A
Test: N/A
Change-Id: I0e96f7f49dae9968904333da9b8269694058c11c
2021-12-14 01:45:47 +00:00