Commit graph

34688 commits

Author SHA1 Message Date
Chen Chen
0a68a920cc SpatialAudio: Init codec and buffer size from startStream()
Bug: 214615268
Test: build
Tag: #feature
Change-Id: I26d82da0dfc82fcb6cab6b879bced8e892e8cf44
2022-02-24 18:40:27 +00:00
Treehugger Robot
07011d9e09 Merge "Provide alternate SE RoT provisioning path." 2022-02-23 18:13:01 +00:00
Alice Kuo
53b601d590 Merge "Set bluetooth.audio AIDL HAL to mandatory for Android T" 2022-02-23 10:53:32 +00:00
Shawn Willden
0cc617cab0 Provide alternate SE RoT provisioning path.
On some devices it is infeasible to provision the KeyMint RoT bits in
the Android Bootloader.  This provides an alternate path to provision
them from the TEE during early boot.

Bug: 219076736
Test: VtsAidlKeyMintTargetTest
Change-Id: If69f7e25e58edbf4d2190084e2c0a03a94bfa5d6
Merged-In: If69f7e25e58edbf4d2190084e2c0a03a94bfa5d6
2022-02-22 23:52:18 -07:00
Treehugger Robot
4965e27b86 Merge "Add @PropagateAllowBlocking tag to supplicant methods that return an interface." 2022-02-22 17:07:12 +00:00
Alice Kuo
da125c608b Set bluetooth.audio AIDL HAL to mandatory for Android T
Bug: 203490261
Test: make
Change-Id: Ic975290fb3b43ffa3eadc2902f76ee43e8215619
2022-02-21 10:53:18 +08:00
Alice Kuo
921760d9a7 Remove bluetooth.audio@2.2 default implementation and utils handles
Bug: 204585486
Test: a2dp software/offload, le audio software/offload verified pass
Change-Id: I7c8f32dd294562052ff5af73e6f3c48642c03fe4
2022-02-21 10:52:39 +08:00
Alice Kuo
13c3701537 Remove bluetooth.audio@2.2 interface
Bug: 204585486
Test: A2dp software/offload, le audio software offload verified pass
Change-Id: Icca0d0e0f5f074fc3f68742722a8c268e8289558
2022-02-21 10:52:20 +08:00
Robert Shih
29988fd22f Merge "Add drm aidl owners" 2022-02-19 20:23:24 +00:00
Michael Butler
82d36078b9 Merge "Remove isUpdatable query from NNAPI -- hal" 2022-02-18 20:23:29 +00:00
Josh Wu
3202eab88a BtAudio: Enable LE Audio software encoding VTS
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: I0ef572dbc7983e2c9939e1b6a3540d88a21743d9
2022-02-17 18:09:05 -08:00
Robert Shih
9f86aafaa2 Add drm aidl owners
Bug: 219528925
Change-Id: I6b630c4e40083f98a00f9337ffee52fb22cae06c
2022-02-17 17:47:06 -08:00
Treehugger Robot
bade4d7bd2 Merge "broadcastradio 2.0: uses correct interface tag." 2022-02-17 09:45:21 +00:00
Chen Chen
7f07e369c9 Merge "SpatialAudio: Fix VTS for the new parameter in AIDL. 2 more VTS functions was added while the AIDL was changed so they are not included in the CL of changing AIDL" 2022-02-17 00:25:18 +00:00
Treehugger Robot
9938caf08b Merge "Audio: Load Bluetooth AIDL HAL" 2022-02-17 00:07:23 +00:00
Chen Chen
60d52e48fa SpatialAudio: Fix VTS for the new parameter in AIDL. 2 more VTS
functions was added while the AIDL was changed so they are not included
in the CL of changing AIDL

Bug: 214615268
Bug: 219977932
Test: Build
Change-Id: Ifbbfe2f9091367609b63fbb6ee118c44d447ec98
2022-02-16 12:19:17 -08:00
Josh Wu
3f8f5997ad Audio: Load Bluetooth AIDL HAL
Test: m android.hardware.audio.service
Bug: 203490261
Change-Id: If518ed69331489bd9aeb2a0c58e17c2917e3c0cf
2022-02-16 12:01:59 -08:00
Chen Chen
5cde687f02 Merge "SpatialAudio: Set low latency allowed signal at startSession The logic is that to send FREE and LOW_LATENCY to audio at startSession, if bt receives setLowLatencyModeAllowed(true) before start session. If the parameter false, or bt doesn't receive the signal at all, then bt sends FREE to audio." 2022-02-16 19:38:24 +00:00
Treehugger Robot
0f7d419136 Merge "Fixed vts tests cases which do not support factory attestation. Test: Run keymint Vts tests." 2022-02-16 15:50:30 +00:00
Gary Jian
c8407c2a5d Merge "Add VTS test for VoNR apis on IRadio aidl" 2022-02-16 08:21:46 +00:00
Treehugger Robot
76adba3e27 Merge "BtAudio: Iterate reference in VTS helper" 2022-02-16 07:22:55 +00:00
Treehugger Robot
687ffed8f6 Merge changes I3642c6eb,I0cf9c1ce
* changes:
  Minor fix for the session type in the comments
  Add LE audio broadcast offload vts test cases
2022-02-16 06:47:35 +00:00
Treehugger Robot
3a6d0f8d75 Merge "BtAudio: Handle dataInterval in LeAudioSW VTS" 2022-02-16 06:09:15 +00:00
Treehugger Robot
6497c3ec2c Merge "BtAudio: Handle bcast hw offloading codecs" 2022-02-16 06:07:56 +00:00
Jasmine Cha
d90c47420a audio: use binder threadpool
Support to communicate with other service with AIDL interface.

Bug: 215463744
Test: build pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I13da2121623779b0ba21d29cf39c11abc7b96dd9
2022-02-16 10:07:57 +08:00
Alice Kuo
04a399a9e0 Minor fix for the session type in the comments
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: I3642c6eba3024fd1959e82057a4fdd108a09aa56
2022-02-16 09:22:16 +08:00
Alice Kuo
336d90c84f Add LE audio broadcast offload vts test cases
Bug: 219668925
Bug: 203490261
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I0cf9c1cefa6caa9437492d116641bbfcca976d9e
2022-02-16 09:22:09 +08:00
Chen Chen
c92270e1d6 SpatialAudio: Set low latency allowed signal at startSession
The logic is that to send FREE and LOW_LATENCY to audio at startSession,
if bt receives setLowLatencyModeAllowed(true) before start session. If
the parameter false, or bt doesn't receive the signal at all, then bt
sends FREE to audio.

Test: build
Bug: 214615268
Tag: #feature
Change-Id: I895a7fc6dd5d1567dce64ddcf967550f5cac882b
2022-02-15 15:20:29 -08:00
Michael Butler
b66f1308ac Merge "Clamp NNAPI HAL Version to runtime version -- hal" 2022-02-15 19:17:40 +00:00
Josh Wu
8a1be763b6 BtAudio: Handle dataInterval in LeAudioSW VTS
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: I447d0e74b6b1af2959cc133437e0dd7216814369
2022-02-15 09:37:29 -08:00
Josh Wu
4d2938f3b6 BtAudio: Iterate reference in VTS helper
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: Ie640c2444e523984a04378b96916d0a3e63f49cd
2022-02-15 09:21:17 -08:00
Josh Wu
5d50dc098d BtAudio: Handle bcast hw offloading codecs
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: I0631838b4cc0462e3aadc581226d43f43a446d29
2022-02-15 09:19:05 -08:00
Treehugger Robot
fd4d63ff51 Merge "Add Bluetooth Audio AIDL HAL VTS" 2022-02-15 16:41:05 +00:00
Josh Wu
049e2cd327 Add Bluetooth Audio AIDL HAL VTS
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: I1583cec9eacb18cfb285b3d12ca876def61342bd
2022-02-15 01:09:40 -08:00
Treehugger Robot
243be18aa1 Merge "Declare license metadata for copied files." 2022-02-15 08:09:18 +00:00
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
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
fc81d2e4aa Merge "Generate constants from the audio HAL V7.1 enums" 2022-02-15 02:58:32 +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
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
13eaedcaec Merge "Allow CompOS to use DICE from C++" 2022-02-14 09:31:21 +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
dfdcdaf09d Merge "Use parens to fix output" 2022-02-12 07:46: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