Commit graph

35073 commits

Author SHA1 Message Date
Mikhail Naganov
4993240b9c audio VTS: Update SetConnectedStateInvalidDeviceAddress
Allow IDevice.setConnectedState to return NOT_SUPPORTED
when invalid device address is passed in.

Bug: 214426419
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I5084cbeedc10696e215c8decc235433849c3bfce
2022-01-25 02:29:15 +00:00
Treehugger Robot
3ab4cb982d Merge "health: support Dock charging" am: a366ec1a33
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1946230

Change-Id: I32ff8498b1a0209220d5e8bee5e8c6703c065847
2022-01-25 02:09:02 +00:00
Treehugger Robot
a366ec1a33 Merge "health: support Dock charging" 2022-01-25 01:55:20 +00:00
Seth Moore
b5b69f0e00 Add remote key provisioning to the IC HAL
The IIdentityCredentialStore can now advertise the correct
IRemotelyProvisionedComponent that is used for getting remotely
provisioned attestation keys.

IWritableIdentityCredential has a new method so it can accept remotely
provisioned keys.

Update the VTS tests to check the new RKP functionality.

Support RKP in the default identity cred service

Test: VtsHalIdentityTargetTest
Bug: 194696876
Change-Id: I96dcf3027e0f21790c35900ddf8cc0953bd3b1ca
2022-01-24 16:19:21 -08:00
Seth Moore
3200496e75 Refactor IC support for RKP
Remote key provisioning means that attestation keys and certs are
passed in, and not pulled directly from the factory-provisioned data.

In anticipation of RKP support, parameterize/refactor some existing
functions so that we can pass keys to them. Also new extern functions
for generating an RKP-attested key as well as keypair/cert for testing.

Test: VtsHalIdentityTargetTest
Bug: 194696876
Change-Id: I7d2906de04835906682455952ebe238c3fa57321
2022-01-24 16:19:21 -08:00
Seth Moore
51efd9e0e4 Log to logd in the default identity service
This allows us to see logs in logcat for the default service.

Test: VtsHalIdentityTargetTest
Bug: 194696876
Change-Id: Ib368a2a0021f72b457fc5e4717e34bb696dfb0fb
2022-01-24 16:19:21 -08:00
Seth Moore
3b9abd3b9a Fix formatting of identity credential aidl
Fix formatting errors to keep file in compliance with the aidl style.
This allows the aidl to pass the presubmit hook.

Test: n/a
Change-Id: Iae0f14f1c0662c862d658b38465467f7f8e036ec
2022-01-24 16:19:21 -08:00
Seth Moore
fc86bf4d5f Add uniqueId to IRemotelyProvisionedComponent
This id is used to differentiate between implementations of the
IRemotelyProvisionedComponent interface. This is required to track
certificates and keys for each implementation. Without an implementation
id, we would have no way to associate persisted, remote provisioning
data with the appropriate IRemotelyProvisionedComponent.

Include VTS tests for compliance.

Test: VtsHalRemotelyProvisionedComponentTargetTest
Bug: 194696876

Change-Id: Id8bca26d71ecf9e389e68a269f782a9dc5ee6f01
2022-01-24 16:19:21 -08:00
Treehugger Robot
bf1243dc01 Merge "Add OWNERS file for android/hardware/graphics/common" am: 5afd5eba36 am: 262e40b9ef
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1912556

Change-Id: Ia136f02be302af2abc1affa4a294999472084813
2022-01-24 22:28:29 +00:00
Treehugger Robot
262e40b9ef Merge "Add OWNERS file for android/hardware/graphics/common" am: 5afd5eba36
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1912556

Change-Id: Ib6572b52936e6d7fb4135337dbccc5f25e464bec
2022-01-24 22:12:18 +00:00
Treehugger Robot
5afd5eba36 Merge "Add OWNERS file for android/hardware/graphics/common" 2022-01-24 21:55:59 +00:00
Leon Scroggins III
38c446f3b7 Add OWNERS file for android/hardware/graphics/common
Suggested in I6f6b7f22e76609151a413ca6a6dbf55bd91911dd.

Bug: NA
Test: NA
Change-Id: Ifc55e56ee912d822adb458818da30b737a89ef5a
2022-01-24 19:58:39 +00:00
Greg Kaiser
358a2bbedb Remove never-reached 'return' statements
We style Nfc::open() to be similar to Nfc::close(), allowing us to
remove two never-reached 'return' statements, and help avoid
potential confusion with future readers of the code.

Test: TreeHugger
Bug: 204868826
Change-Id: Ieabdfbb95540cafaf00a16955f26344c92d2d482
2022-01-24 10:40:33 -08:00
Treehugger Robot
e37cf3e025 Merge "VTSHalAudio: Increase test timeout for V6 and V7" am: 11a4d832fe am: d968376429
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1957459

Change-Id: I15de98523b6a1d79f12aeafe9c9f41fca56e4f24
2022-01-24 18:22:49 +00:00
Treehugger Robot
d968376429 Merge "VTSHalAudio: Increase test timeout for V6 and V7" am: 11a4d832fe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1957459

Change-Id: I0a3bb2db4aaa66fc075478d95e5f9574d52ac904
2022-01-24 18:10:40 +00:00
Treehugger Robot
11a4d832fe Merge "VTSHalAudio: Increase test timeout for V6 and V7" 2022-01-24 17:56:50 +00:00
David Drysdale
b6b6d6151c Merge changes Ibfb6a54c,Ifa0f95fd am: 4af9762ef7 am: 1eb867fc2f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1939114

Change-Id: Icd89e45859b574d8cd300241d6c4f45541cb5cb8
2022-01-24 09:43:18 +00:00
David Drysdale
1eb867fc2f Merge changes Ibfb6a54c,Ifa0f95fd am: 4af9762ef7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1939114

Change-Id: I0b8fe87e85f26ef54865792cceded06ba68f7218
2022-01-24 09:26:40 +00:00
David Drysdale
4af9762ef7 Merge changes Ibfb6a54c,Ifa0f95fd
* changes:
  KeyMint VTS: police Ed25519 msg size limit
  KeyMint VTS: test curve 25519 functionality
2022-01-24 09:06:17 +00:00
Treehugger Robot
3f7517f57f Merge "BtAudio: Remove sample_rate_to_hidl_2_0_map" am: 1c7c6b6980 am: b4dd764868
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955934

Change-Id: I20603e281c7b2315c2dfa92b1390f50a659c7d7f
2022-01-24 04:42:18 +00:00
Treehugger Robot
de5f3502dc Merge "BtAudio: Add InReadPcmData to middleware" am: 4909c203d1 am: 07333f4d70
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955932

Change-Id: I356a019e942ec1983e4c47297572d5a0df3798b3
2022-01-24 04:42:09 +00:00
Treehugger Robot
27f45eee60 Merge "BtAudio: Improve LE offload compatability" am: 62ae860671 am: ac87b223ff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955933

Change-Id: I46588f89a40c4000b035cda86681e8d77e2d8e92
2022-01-24 04:41:59 +00:00
Treehugger Robot
b4dd764868 Merge "BtAudio: Remove sample_rate_to_hidl_2_0_map" am: 1c7c6b6980
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955934

Change-Id: Ifdc701ac7f36c00d595e0cc971c868d0a488f8e1
2022-01-24 04:31:05 +00:00
Treehugger Robot
07333f4d70 Merge "BtAudio: Add InReadPcmData to middleware" am: 4909c203d1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955932

Change-Id: Id02876054b439aa22acbbcaaf0f477e2fd9d147b
2022-01-24 04:30:56 +00:00
Treehugger Robot
1c7c6b6980 Merge "BtAudio: Remove sample_rate_to_hidl_2_0_map" 2022-01-24 04:28:27 +00:00
Treehugger Robot
4909c203d1 Merge "BtAudio: Add InReadPcmData to middleware" 2022-01-24 04:26:48 +00:00
Treehugger Robot
ac87b223ff Merge "BtAudio: Improve LE offload compatability" am: 62ae860671
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955933

Change-Id: I1217377214ad50425fe44734d185dd69a5aecd7e
2022-01-24 04:24:28 +00:00
Treehugger Robot
62ae860671 Merge "BtAudio: Improve LE offload compatability" 2022-01-24 04:03:48 +00:00
Josh Wu
75462aafb5 BtAudio: Improve LE offload compatability
Bug: 203490261
Test: m android.hardware.bluetooth.audio-V1-impl
Change-Id: I7dd37cb697b03bb5fe0bdc467f8e190575e0e2e1
2022-01-23 08:30:13 -08:00
Treehugger Robot
59b38ef7b0 Merge "composer: 2.4: vts: Add missing COMPOSER_OVERLAY allocation flag" am: 283a876e5a am: 0bda60d835
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1954544

Change-Id: I9759a8667e85c1702464efb4736dbeab352c9e6b
2022-01-23 14:29:09 +00:00
Treehugger Robot
0bda60d835 Merge "composer: 2.4: vts: Add missing COMPOSER_OVERLAY allocation flag" am: 283a876e5a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1954544

Change-Id: Iedc586355cc11ee38a7e88eb8903a7c87666d3b5
2022-01-23 14:18:11 +00:00
Treehugger Robot
283a876e5a Merge "composer: 2.4: vts: Add missing COMPOSER_OVERLAY allocation flag" 2022-01-23 14:02:43 +00:00
Treehugger Robot
a7f54880cd Merge "BtAudio: Fix SessionType mapping" am: b1ab40b8d6 am: 3d22fa1d32
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955928

Change-Id: Icb8629524a39007480014dcbd0349a5288332723
2022-01-22 06:41:17 +00:00
Josh Wu
653108cc56 BtAudio: Remove sample_rate_to_hidl_2_0_map
Bug: 203490261
Test: m android.hardware.bluetooth.audio-V1-impl
Change-Id: Ie19f808e304ea6f293c611d99a810a97a7e1fd94
2022-01-21 22:33:43 -08:00
Treehugger Robot
3d22fa1d32 Merge "BtAudio: Fix SessionType mapping" am: b1ab40b8d6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955928

Change-Id: I9e56f33eed65d1120036cae10bc8338038e8791c
2022-01-22 06:22:54 +00:00
Treehugger Robot
b1ab40b8d6 Merge "BtAudio: Fix SessionType mapping" 2022-01-22 06:09:44 +00:00
Josh Wu
9880f6bb3c BtAudio: Add InReadPcmData to middleware
Bug: 203490261
Test: m android.hardware.bluetooth.audio-V1-impl
Change-Id: I330226ecc38368b3838c01a191b66b700a2338a7
2022-01-21 22:03:48 -08:00
George Chang
ddebafd43c Merge "Add new aidl interface for android.hardware.nfc" am: d4dcde3bc1 am: 0252bda2b0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1878145

Change-Id: Ic9da15d1a266a6c34bdc47b5cc88ae746a546b20
2022-01-22 02:27:55 +00:00
George Chang
0252bda2b0 Merge "Add new aidl interface for android.hardware.nfc" am: d4dcde3bc1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1878145

Change-Id: Ifb4d9937f380d957fbbd8ee03e6146afaf5a4b68
2022-01-22 01:59:52 +00:00
George Chang
d4dcde3bc1 Merge "Add new aidl interface for android.hardware.nfc" 2022-01-22 01:46:41 +00:00
Michael Butler
c5699bca62 Merge "Make VtsHalNeuralnetworksTargetTest run on the host" am: 8f255182ec am: ca13a2b719
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1946651

Change-Id: I7b5b16726fadee33cd83520fe001b925e1cc22ab
2022-01-22 00:01:32 +00:00
Treehugger Robot
1a2c9ab210 Merge "Add a2dp vendor codec extension" am: 82d991db1e am: 529c0812ae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955924

Change-Id: Ic1b97ee442c2d92f9ad876d79be0d8e1ab8e2bd3
2022-01-22 00:01:23 +00:00
Michael Butler
ca13a2b719 Merge "Make VtsHalNeuralnetworksTargetTest run on the host" am: 8f255182ec
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1946651

Change-Id: I019c48fb6e0b11d6a5226cd4f4c4f08b1f0764fb
2022-01-21 23:50:21 +00:00
Treehugger Robot
529c0812ae Merge "Add a2dp vendor codec extension" am: 82d991db1e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955924

Change-Id: I968ebef8f0d872c24601bfe916b1791d9dc8ed1c
2022-01-21 23:49:41 +00:00
Michael Butler
8f255182ec Merge "Make VtsHalNeuralnetworksTargetTest run on the host" 2022-01-21 23:32:10 +00:00
Treehugger Robot
82d991db1e Merge "Add a2dp vendor codec extension" 2022-01-21 23:27:34 +00:00
Mikhail Naganov
57633e5a78 VTSHalAudio: Increase test timeout for V6 and V7
V6 and V7 use actual device audio configuration
when testing I/O streams functionality. On low-end
TV devices this can cause the test to run for
significant time due to lower CPU speed and the
amount of multichannel configurations.

From testing on real devices, the timeout value
of 5 minutes seems to be adequate.

Bug: 211945822
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Ie233e014f9f3650f58319c4d5f5a836cfdea87ba
2022-01-21 21:27:34 +00:00
Michael Butler
d0d9a7abac Make VtsHalNeuralnetworksTargetTest run on the host
This change adds a host build of VtsHalNeuralnetworksTargetTest. In the
existing device build of VtsHalNeuralnetworksTargetTest, the drivers run
out-of-process. In the host build of VtsHalNeuralnetworkaTargetTest, the
driver runs in-process.

The in-process driver that runs on the host is the canonical sample
driver (which is just the CPU "driver", located in
packages/modules/NeuralNetworks/driver/sample) adapted to an AIDL
interface (by the adapter code in
hardware/interfaces/neuralnetworks/utils/adapter/aidl).

Bug: N/A
Test: mma
Test: VtsHalNeuralnetworksTargetTest on host
Change-Id: Ia30dd3a7db8e0592b9f13d69c9831f8ffe10c371
2022-01-21 21:04:50 +00:00
Treehugger Robot
7d670606d3 Merge "BtAudio: Add OWNERS to aidl implmentation and VTS, hidl 2.2 handling" am: c96879a0ce am: ca55bc6bf1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955931

Change-Id: I4992faad0cd42a91df14ed5e44c1f384731c303a
2022-01-21 20:52:23 +00:00
Treehugger Robot
ca55bc6bf1 Merge "BtAudio: Add OWNERS to aidl implmentation and VTS, hidl 2.2 handling" am: c96879a0ce
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955931

Change-Id: I79ece7e6ce8c695b65dc4775e650453d14017e8f
2022-01-21 20:34:29 +00:00