Commit graph

42925 commits

Author SHA1 Message Date
Steven Moreland
b5e0adbeb2 easy vib. instance name
Bug: 257537714
Test: vts_treble_vintf_vendor_test after using this
Change-Id: Id0c56b2df59eb854a5f62d8adc65d0a6b38fcd3c
2022-12-01 01:25:15 +00:00
Treehugger Robot
3777e1cb44 Merge "a.h.graphics.common frozen true" 2022-11-19 00:51:08 +00:00
Shunkai Yao
efb45b2672 Merge "AIDL effect vts test cases refinement" 2022-11-18 23:17:59 +00:00
Steven Moreland
3bc7a4937d a.h.graphics.common frozen true
magic -> explicit

Bug: 259465531
Test: build
Merged-In: I080bee98df6d4ad8799dd60c5090c2e79244ce2f
Change-Id: I3223d33c296c73e7c14e8ed87806ba6ed8ff3392
2022-11-18 20:11:02 +00:00
Shunkai Yao
812d5b4ce0 AIDL effect vts test cases refinement
Bug: 255361653
Test: atest VtsHalAudioEffectTargetTest
atest VtsHalAudioEffectFactoryTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: I4d4c4de97a73d4ea6dedd9c9e1733da03860430b
2022-11-18 19:50:24 +00:00
Treehugger Robot
77b9374f01 Merge "Add a new capability to indcate min slot duration." 2022-11-18 19:27:51 +00:00
Devin Moore
3259213a9e Merge changes from topics "sensor_conver", "sensorservice_aidl"
* changes:
  Add a convert library for sensor AIDL
  Add host_supported to sensors AIDL interface
2022-11-18 19:21:47 +00:00
Chih-hung Hsieh
66808f0c5e Merge "Fix array-parameter warning" 2022-11-18 19:21:20 +00:00
ziyiw
b922b6b215 Add a new capability to indcate min slot duration.
Test: compile
Bug: 254655623
Merged-In: Icac53069ddc61bbd60049880119973f1b4b0286d
Change-Id: Icac53069ddc61bbd60049880119973f1b4b0286d
2022-11-18 18:25:47 +00:00
Devin Moore
00721dc031 Add a convert library for sensor AIDL
This is moving the conversion functions from
frameworks/native/services/sensorservice/AidlSensorHalWrapper.cpp.
This conversion code needs to be shared between sensorservice, a new
libsensorserviceaidl, and the new VTS tests for AIDL sensorservice.
It will likely also be used by vendors interacting with the new AIDL
sensorservice.

Test: VtsHalSensorManagerV1_0TargetTest
Bug: 205764765
Change-Id: Iabb0bcf0770672671e51fd304f79e14ca94a2d15
2022-11-18 00:58:35 +00:00
Devin Moore
9ef0c60a25 Add host_supported to sensors AIDL interface
Useful for host fuzzing. Needed to make the new sensorservice AIDL
host_supported.

Test: m
Bug: 205764765
Change-Id: I3fb0786fe27274d91c05a0598bf9d96c20062edf
2022-11-18 00:58:28 +00:00
Treehugger Robot
a335badc22 Merge changes I2dfd304c,I978432e2
* changes:
  LoudnessEnhancer: Add AIDL implementation and its unit test
  Audio AIDL Effect VTS : Extract all common parameters to defaults
2022-11-17 22:00:44 +00:00
Chih-Hung Hsieh
494ef7f133 Fix array-parameter warning
Bug: 241941550
Test: presubmit
Change-Id: I03ede7721fbbe027598e0491b405faee8029fadc
2022-11-17 18:41:21 +00:00
Shraddha Basantwani
68041cab61 LoudnessEnhancer: Add AIDL implementation and its unit test
Added AIDL implementation for LoudnessEnhancer audio effect
parameters and its unit test.

Bug: 258124419
Test: atest VtsHalLoudnessEnhancerTargetTest

Change-Id: I2dfd304ca9f72383572fd1f762d41864dd73e39d
2022-11-17 10:24:06 +05:30
Shraddha Basantwani
5a2577cad6 Audio AIDL Effect VTS : Extract all common parameters to defaults
Bug: 258124419
Test: atest VtsHalAudioEffectTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: I978432e2efcdcbb7341000b39b5f39e0e5d82eb7
2022-11-17 10:23:58 +05:30
Jooyung Han
00c47d2e15 Merge "USB APEX with AIDL implementation" 2022-11-17 04:05:28 +00:00
Steven Moreland
00ba1e951d android.hardware.graphics.allocator - VNDK - use V1
Breaking SDK finalization.

Bug: 259146177
Change-Id: I637ab649cbd1d0c886c91859398888f22025b963
Test: N/A
2022-11-17 00:07:44 +00:00
Shunkai Yao
f0c263b547 Use AIDL effect bundle in effectserviceexampleimpl.
Bug: 255361653
Test: atest VtsHalAudioEffectTargetTest
atest VtsHalAudioEffectFactoryTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: Ia50ff5066e007f6a8569114e36f0e4565a6100ea
2022-11-16 18:09:17 +00:00
Tri Vo
2ac5066335 Merge "Add an implementation defined limit on number of keys in CSR" 2022-11-16 03:44:22 +00:00
Treehugger Robot
38bd71130e Merge "Preemptive minimal import" 2022-11-16 03:09:04 +00:00
Jooyung Han
c2a204e4bb USB APEX with AIDL implementation
The previous USB APEX was bundling HIDL 1.0 default implemetation.
Migrating the USB APEX to use AIDL implementation.

Bug: 227791019
Test: tbd
Change-Id: I99aa16fa36215ff296f8194717381efdcf3e8ed8
2022-11-16 10:27:56 +09:00
Treehugger Robot
41b932f43e Merge "audio: Add missing GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST" 2022-11-15 23:44:20 +00:00
Tri Vo
9cab73c8bd Add an implementation defined limit on number of keys in CSR
Rationale here is that many IRPC implementations are memory constrained.
We add a way for implementations to report the maximum number of
supported keys. This way we can guarantee consistent behavior across
different devices.

For implementation of IRPC version 3 and later we define the lowest
number of keys supported to be 20. This specific value was chosen
because the current implementation of RemoteProvisioner already combines
keys into batches of exactly 20.

Bug: 254137722
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: Ib6fb6d6ec7c74004524a5505a37aa82c9e44ef91
2022-11-15 14:19:55 -08:00
Mikhail Naganov
88cb2f4662 audio: Add missing GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST
This fixes test error when on devices that do not have
AIDL HAL.

Bug: 205884982
Bug: 259294358
Test: m
Change-Id: I6cec10f35cd42eb06947bf483555287257a6a58e
2022-11-15 22:11:17 +00:00
John Reck
1dd64b4f83 Preemptive minimal import
Just to handle conflicts from internal

Test: make
Merged-In: I6fbc22272ba95b44aa09ff08f9d9a7adbb9ae8be
Change-Id: Ibe3ca5c654057b60fa9f045e6fc1f39d14463b44
2022-11-15 16:27:54 -05:00
Treehugger Robot
c1bd610345 Merge "Implement oemlock AIDL default" 2022-11-15 19:53:03 +00:00
Devin Moore
204599a398 Implement oemlock AIDL default
Test: atest OemLockAidlTest
Bug: 233850220
Change-Id: Icec67b5c46e35468ad98b94017ac373b5583c1af
2022-11-15 17:37:08 +00:00
Treehugger Robot
1b038bc69c Merge "Set android.hardware.camera.provider as updatable" 2022-11-15 07:31:42 +00:00
Steven Moreland
f856184c02 Merge "switch identity back to V4" 2022-11-15 01:32:47 +00:00
Treehugger Robot
373425a141 Merge "audio: Fix HAL reply handling in CompressedOffloadOutputStreamTest" into android13-tests-dev am: e37ff34514
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2295710

Change-Id: Id09c46e4900b260baa0773e06de294800edbe447
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 00:52:37 +00:00
Treehugger Robot
e37ff34514 Merge "audio: Fix HAL reply handling in CompressedOffloadOutputStreamTest" into android13-tests-dev 2022-11-15 00:29:39 +00:00
Steven Moreland
48b194d550 switch identity back to V4
V5 was a temporary version, to handle mismatched import versions,
but now that the temporary version (and differences) are removed,
it's causing an error.

Bug: 259146177
Change-Id: I0595c4e414701918a6f51128bbbb596633330c4c
Test: N/A
2022-11-14 23:47:46 +00:00
Jooyung Han
59ab6bb6ff Set android.hardware.camera.provider as updatable
android.hardware.camera.provider has been updatable since Android S. In
Android U, HALs updatable via APEX should declare the updatability.

Bug: 248142818
Test: checkvintf with updated DM
Merged-In: I51ddb9d141c71d22b7c7909b33ebfc8a0a703431
Change-Id: I51ddb9d141c71d22b7c7909b33ebfc8a0a703431
2022-11-14 23:24:11 +00:00
Andrew Scull
5eeb73beb7 Merge changes from topic "rkp-csrv3-updates"
* changes:
  Update the VTS test for CSRv3 updates
  Adjust CSRv3 CDDL after implementation experience
2022-11-14 22:01:53 +00:00
Treehugger Robot
14762528b0 Merge "Add pointer to default AIDL Camera HAL Implementation in README.md" 2022-11-14 16:32:20 +00:00
Shunkai Yao
6c04ef2c55 Merge changes from topic "aidl_audio_effect_8_config"
* changes:
  Add effect config xml parser in AIDL effect factory
  Support effect config parser in effect AIDL
2022-11-14 15:24:01 +00:00
Tommy Chiu
7d22f60924 KeyMint VTS: Police key validity from v2 HAL
The key validity can be ignored when generatKey on Android-12 (S).

Bug: 257445538
Test: Pass on S builds
Change-Id: Iafd8d080f324c7d8d6affbb9d28d4f265f13e2ab
2022-11-14 21:03:44 +08:00
Jayant Chowdhary
752fc7d851 Add pointer to default AIDL Camera HAL Implementation in README.md
Bug: 258543462

Test: N/A

Change-Id: Iec00fd6ffa9422ccc5a664d419e658dcb01bfbcc
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-11-13 04:29:49 +00:00
Andrew Scull
fb49ad2f3c Update the VTS test for CSRv3 updates
Conform to the latest CDDL changes. Organize parsing to observe the
AuthenticatedRequest structure.

Return the deserialized CSR payload rather than the DICE chain keys
because it simplified the return types.  The return value is only used
by one VTS test that checks sequential CSRs consist of the same request.
The test was incomplete before and it now only looks as the CSR payload
whereas it previously only look at the DICE chain keys.

Bug: 250910137
Test: atest libkeymint_remote_prov_support_test librkp_factory_extraction_test
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I1ba2e0cec22e25312fb890923a4c93043e9046cd
2022-11-11 15:24:38 +00:00
Mikhail Naganov
2b68543625 Merge "audio: Make StreamDescriptor::Command a union" 2022-11-11 04:34:04 +00:00
Shunkai Yao
60b34b78a4 Add effect config xml parser in AIDL effect factory
Bug: 255361653
Test: parse an example audio_effects.xml
atest VtsHalAudioEffectFactoryTargetTest
atest VtsHalAudioEffectTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: I566aaf814470342f1ef55414889bbd3aea462f9a
2022-11-11 00:14:50 +00:00
Shunkai Yao
52abf0a662 Support effect config parser in effect AIDL
Bug: 255361653
Test: parse an example audio_effects.xml
atest VtsHalAudioEffectFactoryTargetTest
atest VtsHalAudioEffectTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: I086905bcbe113a56767cae45102c84f5250d348e
2022-11-10 22:38:55 +00:00
Treehugger Robot
c6eb5c9104 Merge "audio: Add volume/mute, audio mode, and screen state to IModule" 2022-11-10 22:12:41 +00:00
Andrew Scull
9aa150cee7 Adjust CSRv3 CDDL after implementation experience
Rename from AuthenticatedMessage to AuthenticatedRequest in order to
make the direction of the message clear.

Move the challenge out of the endpoint-specific message and up into the
common authentication wrapper as it is uesd in the authentication
protocol.

Simplify the versioning by having the CSR version continue sequentially,
making the current version 3. Have the AuthenticatedMessage version
start from 1 as it's value isn't used to distinguish v2 and v3 CSRs
anyway and it will avoid confusion with the CSR version which has
already moved beyond this value.

Bug: 250910137
Test: n/a -- comments only
Change-Id: I13836e90fa76b1b22cb6627f3d987828ffeb0adc
2022-11-10 21:50:55 +00:00
Mikhail Naganov
98334439d5 audio: Make StreamDescriptor::Command a union
Previously StreamDescriptor::Command used to be a parcelable
holding a command code (enum) + a command argument which was
used for one command only. This got replaced with an equivalent
union, where each command w/o arguments is represented by a
'Void' variant, and the command with an argument with a variant
of a corresponding type.

This has the following benefits:

  - the union guarantees that the argument is only set for
    commands that actually use it, thus all related comments
    and validations can be removed;

  - the command dispatch can be turned into an exhaustive
    switch.

To be able to use an exhaustive switch, the 'exit' command
has been exposed at the interface, but marked as 'hal_reserved'.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3f2c27a48e4d0b7cfce1171244b2eddc1637005f
2022-11-10 21:37:19 +00:00
Tri Vo
85ee679e2e Merge "Add VtsAidlKeyMintTargetTest to presubmit" 2022-11-10 20:41:55 +00:00
Seth Moore
75dd6a15d2 Merge changes from topic "cherry-pick-rkp-hal-split"
* changes:
  Update the RKP aidl dependency
  Update README and CHANGELOG for RKP
  Split rkp from keymint
2022-11-10 19:32:31 +00:00
Seth Moore
20b3262727 Merge changes from topic "cherry-pick-rkp-hal-split"
* changes:
  Add missing dependency on RKP HAL
  ID attestation: Define tag for a second IMEI
2022-11-10 19:32:31 +00:00
Sandeep Dhavale
f4756ff0f1 Merge "Fastboot AIDL additional changes" 2022-11-10 18:29:00 +00:00
Treehugger Robot
9d99ac49a1 Merge "Fix a couple of regular expressions." 2022-11-10 07:12:12 +00:00