Commit graph

36252 commits

Author SHA1 Message Date
Gary Jian
66db5dd070 Add VTS test for VoNR apis on IRadio aidl
Bug: 217987026
Test: atest VtsHalRadioTargetTest
Change-Id: Id9e36f41d95e7b4000c33a00a9c5e1b48b108427
2022-02-15 05:29:55 +00:00
Treehugger Robot
a16e677d82 Merge "Run SAP tests on slots based on configs" am: ef8b4bee56
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1968993

Change-Id: Iee991178792841a72e3f48e68a1734d3181e8945
2022-02-15 04:48:44 +00:00
Treehugger Robot
ef8b4bee56 Merge "Run SAP tests on slots based on configs" 2022-02-15 04:34:04 +00:00
Michael Butler
73e470235d Remove isUpdatable query from NNAPI -- hal
The NNAPI originally planned to have updated platform drivers delivered
through GMSCore. These updatable drivers would be retrieved through the
NN sAIDL utility code, and were known to be updatable through
Manager.cpp's Device::isUpdatable query.

However, the NNAPI ultimately did not move forward with its updatability
plans. This CL removes the updatability check in the NN AIDL utility
code.

Bug: N/A
Test: mma
Test: CtsNNAPITestCases
Test: NeuralNetworksTest_static
Change-Id: I6f9c1eac3af8cb54565bfaaeab7ddd382a85e3bd
2022-02-14 19:21:38 -08:00
Michael Butler
6f497d1833 Clamp NNAPI HAL Version to runtime version -- hal
The NNAPI is a Mainline Module, and its runtime version is determined by
an Android Feature Flag to remotely rollout and rollback Feature Levels
as needed. This change propagates the maximum feature level version
allowed by the runtime to the HAL utility code, and clamps the utility
code's version to the version allowed by the runtime.

Bug: N/A
Test: mma
Test: CtsNNAPITestCases
Test: NeuralNetworksTest_static
Test: logged driver version, set current_feature_level, and verified the
      driver version was clamped by current_feature_level
Change-Id: Ibaa895f8e35d36b2ddf9432b3ef9468e5886075f
2022-02-14 19:21:09 -08:00
Treehugger Robot
930b7fa5c9 Merge "Generate constants from the audio HAL V7.1 enums" am: fc81d2e4aa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1985168

Change-Id: Ibc53803f3416206777f55b55628b3465666fcf40
2022-02-15 03:12:37 +00:00
Treehugger Robot
fc81d2e4aa Merge "Generate constants from the audio HAL V7.1 enums" 2022-02-15 02:58:32 +00:00
Prashant Patil
6c1adf0aa1 KeyMint: Test generation of asymmetric keys fails with missing parameters
A VTS testcase is added to validate Asymmetric key generation fails if TAG_CERTIFICATE_NOT_(BEFORE/AFTER) is missing.

Also updated DeviceUniqueAttestationTest to set validity in
AuthorizationSetBuilder using .SetDefaultValidity().

Bug: 205679495
Test: run vts -m VtsAidlKeyMintTargetTest
Change-Id: Ibf63a6c8e173326502c7bf1b8f3af8666ecb1caf
2022-02-14 21:29:31 +00:00
Chen Chen
d32943e46c Merge "SpatialAudio: Remove codec interface from audio HAL. Codec switch logic will be inside Bluetooth" am: 585dc0b0b2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1982798

Change-Id: Ia2119934a26200e3b50f86bbf6fa591ee05656c5
2022-02-14 19:46:33 +00:00
Chen Chen
585dc0b0b2 Merge "SpatialAudio: Remove codec interface from audio HAL. Codec switch logic will be inside Bluetooth" 2022-02-14 19:26:29 +00:00
Mikhail Naganov
42bbd27a48 Generate constants from the audio HAL V7.1 enums
Generate using dedicated file for each minor uprev.

Bug: 214426419
Test: m
Change-Id: I23954e427a4df37b20e392a7c7dc85f2513485f9
2022-02-14 19:08:09 +00:00
Mikhail Naganov
991c01efc3 Merge changes from topic "upstream-hal-v7_1-p4" am: 7ed70a8033
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1983829

Change-Id: Ia4fcb46866d63f3b96f66507473c86d50aa65b60
2022-02-14 17:50:49 +00:00
Mikhail Naganov
783f8f14e2 Make AUDIO_USAGE_NOTIFICATION_EVENT available to HALs am: a85cebb63e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1983828

Change-Id: I504cde4ada1bfad2194cf094ebed3c11600fb598
2022-02-14 17:50:46 +00:00
Mikhail Naganov
b105faaa74 audio: Add android.hardware.audio[.common]@7.1-util modules am: ec8ef38ad9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1983827

Change-Id: Icc048416563b33e5dbe27af6ff920ee271027afc
2022-02-14 17:50:44 +00:00
Carter Hsu
84a54dfc28 audio: add Ultrasound materials to 7.1 am: ff62b259f8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1983826

Change-Id: Ic2984c4d4f9e1498f6d572df5446ffc2e3d43c13
2022-02-14 17:50:42 +00:00
Xin Li
3125505251 Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master 2022-02-14 17:30:11 +00:00
Mikhail Naganov
7ed70a8033 Merge changes from topic "upstream-hal-v7_1-p4"
* changes:
  audio VTS: Fix HAL device management
  Make AUDIO_USAGE_NOTIFICATION_EVENT available to HALs
  audio: Add android.hardware.audio[.common]@7.1-util modules
  audio: add Ultrasound materials to 7.1
2022-02-14 17:26:17 +00:00
Alan Stokes
66c0e03f0e Merge "Allow CompOS to use DICE from C++" am: 13eaedcaec
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1979471

Change-Id: Ic152b638cc742fb11074231dfb2415c86af7567b
2022-02-14 09:45:55 +00:00
Alan Stokes
13eaedcaec Merge "Allow CompOS to use DICE from C++" 2022-02-14 09:31:21 +00:00
Treehugger Robot
91d9437235 Merge "vibrator: aidl: update OWNERS file" am: e4f19ced34
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1984586

Change-Id: I992e61f77f5bfb46aacfe3def38c7696bf5dd1fd
2022-02-14 08:41:43 +00:00
Treehugger Robot
e4f19ced34 Merge "vibrator: aidl: update OWNERS file" 2022-02-14 08:15:24 +00:00
yidong zhang
f31ae8d496 broadcastradio 2.0: uses correct interface tag.
Served and Declared should be the same.
android.hardware.broadcastradio@2.0::IBroadcastRadio/amfm
android.hardware.broadcastradio@2.0::IBroadcastRadio/dab

Test: run vts -m vts_ibase_test
Change-Id: Iff8e4c562d8cf6492f3c88c2bfe9fccf19906a95
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2022-02-14 14:59:28 +08:00
Tai Kuo
a90257463d vibrator: aidl: update OWNERS file
Remove leungv@ and add taikuo@ into the OWNERS file.

Bug: 219384042
Test: Presubmit
Change-Id: I191fdf2500a1bec54f2f55671c99b7b1120aee74
2022-02-14 12:33:12 +08:00
Bob Badour
c00f8ad8f0 Declare license metadata for copied files.
Bug: 151177513

Test: m all dist reportmissinglicenses
Change-Id: I9efbffb3f38dc700f4a569d74baada37e491bc25
2022-02-13 15:46:33 -08:00
Treehugger Robot
0b907b4638 Merge "Use parens to fix output" am: dfdcdaf09d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1982346

Change-Id: I7e71c207cf2eca19ccde62efcdf2360e9ba2ec4d
2022-02-12 08:00:30 +00:00
Treehugger Robot
dfdcdaf09d Merge "Use parens to fix output" 2022-02-12 07:46:37 +00:00
Treehugger Robot
cb27f8cccb Merge "libhealthloop: Remove the POWER_SUPPLY_SUBSYSTEM macro" am: 652b89bd0a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1864853

Change-Id: I2c45525ca90771643cee2396f0c8e6a0c2768be0
2022-02-12 00:36:37 +00:00
Mikhail Naganov
e6214078ba audio VTS: Fix HAL device management
Straighten out logic in DeviceManager for proper handling
of IPrimaryDevice and IDevice instances across all supported
HAL versions.

This fixes a recently introduced bug which was causing
the same HAL device to be opened twice in a row, and then closed
twice.

Bug: 218610286
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I415cbadae9d325ac63160e49e5e638906c8c63fd
(cherry picked from commit 285c0a041c)
Merged-In: I415cbadae9d325ac63160e49e5e638906c8c63fd
2022-02-12 00:35:19 +00:00
Treehugger Robot
652b89bd0a Merge "libhealthloop: Remove the POWER_SUPPLY_SUBSYSTEM macro" 2022-02-12 00:23:15 +00:00
Mikhail Naganov
a85cebb63e Make AUDIO_USAGE_NOTIFICATION_EVENT available to HALs
This aligns the list of usages between the framework
and HALs

Bug: 199193042
Test: atest android.hardware.audio@7.1-util_tests
Test: atest android.hardware.audio.common@7.1-util_tests
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I4d7fdbacff87eebcbc8d68dd6ed8cefdd52aa84e
2022-02-12 00:03:49 +00:00
Mikhail Naganov
ec8ef38ad9 audio: Add android.hardware.audio[.common]@7.1-util modules
android.hardware.audio.common@7.1-util and
android.hardware.audio@7.1-util utilize the 7.1 XSD enums
conversion library and thus can work with the new
enum strings added in 7.1

Bug: 218504031
Test: atest VtsHalAudioV7_1TargetTest
Test: atest android.hardware.audio.common@7.0-util_tests
Test: atest android.hardware.audio.common@7.1-util_tests
Test: atest android.hardware.audio@7.0-util_tests
Test: atest android.hardware.audio@7.1-util_tests
Change-Id: Icc5a354cdc2e377a2a2424c28377bcb0ba05bf4e
(cherry picked from commit fa4a4f8da7)
Merged-In: Icc5a354cdc2e377a2a2424c28377bcb0ba05bf4e
2022-02-12 00:03:49 +00:00
Carter Hsu
ff62b259f8 audio: add Ultrasound materials to 7.1
Bug: 200256985
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I50ba1272c0b29e482532010f1aca0b6ec83e925c
(cherry picked from commit bb2fe3f4d5)
Merged-In: I50ba1272c0b29e482532010f1aca0b6ec83e925c
2022-02-11 23:16:53 +00:00
Chen Chen
359bf32091 SpatialAudio: Remove codec interface from audio HAL. Codec switch logic will be inside Bluetooth
Bug: 214615268
Test: Build
Tag: #feature
Change-Id: Ic2a997614e16abfd745c80dc87ecf5d340497691
2022-02-11 12:25:27 -08:00
Treehugger Robot
5eeb9fe016 Merge changes from topic "upstream-hal-v7_1-p3" am: 4673d5ab25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978753

Change-Id: I55e6af1f9812f1810f74f55498535238fe488ca1
2022-02-11 18:45:25 +00:00
Mikhail Naganov
4ae88c53da audio: Add IDevice.setConnectedState_7_1 method am: 9307992466
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978752

Change-Id: I7125e7275651d5a0dc3d00c9276e6a4a4cdf1c04
2022-02-11 18:45:22 +00:00
Mikhail Naganov
f8548b969c audio: Add recommended mute duration attribute to APM XSD am: 22dc9b9aa4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978751

Change-Id: I8bc454c0386a8d02410b417fcf9137b743260549
2022-02-11 18:45:20 +00:00
Andy Hung
551853c305 Audio: Add memory leak checking for HAL am: 87edc66e1f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1979748

Change-Id: Ib177da71868d9b6d84f6181ceff6ef3513a21acc
2022-02-11 18:45:18 +00:00
Treehugger Robot
4673d5ab25 Merge changes from topic "upstream-hal-v7_1-p3"
* changes:
  audio: Remove IStreamIn@7.1
  audio: Add IDevice.setConnectedState_7_1 method
  audio: Add recommended mute duration attribute to APM XSD
  Audio: Add memory leak checking for HAL
2022-02-11 18:19:22 +00:00
Greg Kaiser
42d931a271 Use parens to fix output
We want our ternary conditional to evaluate before the << operator,
so we use parenthesis to make this happen.

Bug: 214615268
Test: TreeHugger
Change-Id: I0efb22487d0cf3778f8a12d2391a0f1a7a87995d
2022-02-11 06:45:43 -08:00
Xin Li
0bf8f21279 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: Id9e06f88539b59480d5cf57a4ba67cef4676c1d5
Change-Id: Id6b1ea4f8700446b044255e80f21c137aeb7acf1
2022-02-11 07:27:13 +00:00
Chen Chen
b55027e757 Merge "Spatial Audio: Implement setLowLatencyAllowed functions in BluetoothAudioSession" am: 9e09eec46b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978294

Change-Id: I2502dfebc73bffa57342039e0d3cd32234abe4ea
2022-02-11 01:06:36 +00:00
Chen Chen
9e09eec46b Merge "Spatial Audio: Implement setLowLatencyAllowed functions in BluetoothAudioSession" 2022-02-11 00:53:24 +00:00
Keun-young Park
f7d14cbe47 Merge "Adding AIDL version 2 of AudioControl HAL" am: 3e8d4a1e8e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1967405

Change-Id: I1c6e256976b7f37920f2194f8e80436b5429d287
2022-02-10 22:32:13 +00:00
Keun-young Park
3e8d4a1e8e Merge "Adding AIDL version 2 of AudioControl HAL" 2022-02-10 22:15:12 +00:00
Chen Chen
81f38e55c1 Spatial Audio: Implement setLowLatencyAllowed functions in BluetoothAudioSession
Bug: 214615268
Test: Build:
Tag: #feature
Change-Id: I01c182b46fe72ee8f7c8e12e59ea2413c423b061
2022-02-10 22:10:56 +00:00
Chih-hung Hsieh
2f22222a1c Merge "Fix cert-dcl16-c warnings" am: 2d028894c7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978297

Change-Id: I52d5d846d5192c711a6c129aa1867f2f83facaad
2022-02-10 18:46:42 +00:00
Chih-hung Hsieh
2d028894c7 Merge "Fix cert-dcl16-c warnings" 2022-02-10 18:30:38 +00:00
Mikhail Naganov
4a016add95 audio: Remove IStreamIn@7.1
This has turned out to be an empty interface. By removing
it we save about 100 kB in the interface code.

Bug: 217752112
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I2522653600a254ddcf2c4eac8bed1df69ac11d3d
(cherry picked from commit 893ea21681)
Merged-In: I2522653600a254ddcf2c4eac8bed1df69ac11d3d
2022-02-10 17:45:31 +00:00
Mikhail Naganov
9307992466 audio: Add IDevice.setConnectedState_7_1 method
This is an updated version of IDevice.setConnectedState which
accepts a full AudioPort so that additional data like extra
audio descriptors can be passed to the audio HAL.

Bug: 211601178
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Id746caa32122dabfb83feb5b515bed7717bcb67c
(cherry picked from commit 533f78f411)
Merged-In: Id746caa32122dabfb83feb5b515bed7717bcb67c
2022-02-10 17:45:21 +00:00
Mikhail Naganov
22dc9b9aa4 audio: Add recommended mute duration attribute to APM XSD
Add 'recommendedMuteDurationMs' optional attribute to 'mixPort'
element. This attribute specifies customized mute duration while
switching device's audio path to avoid truncated sound at the
beginning.

The framework is already aware of this attribute, only need
to allow it in the XSD.

Bug: 183344508
Bug: 197823000
Test: m
CTS-Coverage-bug: 215647214
Change-Id: I3be36009d1b5db218c846efe96f078e858283992
(cherry picked from commit b6800fc715)
Merged-In: I3be36009d1b5db218c846efe96f078e858283992
2022-02-10 17:45:13 +00:00