Commit Graph

27086 Commits

Author SHA1 Message Date
Lev Proleev
c185e88ccf Implement VTS tests for NNAPI AIDL interface
The tests are copied from HIDL 1.0-3 VTS tests and updated to use AIDL.

Bug: 172922059
Test: VtsHalNeuralnetworksTargetTest
Change-Id: Ife08409e9b46420685a1ccb0b3256286c973dbf5
Merged-In: Ife08409e9b46420685a1ccb0b3256286c973dbf5
(cherry picked from commit b38bb4f12a)
2021-02-09 15:28:25 +00:00
Lev Proleev
6b6dfcd439 Add utils for AIDL types conversions
Add conversions between canonical types and NNAPI AIDL interface types
that are needed for AIDL sample driver implementation.

Bug: 172922059
Test: VtsNeuralnetworksTargetTest
Change-Id: I02803302e02457e52c752114b47b94239eff20e9
Merged-In: I02803302e02457e52c752114b47b94239eff20e9
(cherry picked from commit 532136b9d4)
2021-02-09 15:28:23 +00:00
Lev Proleev
bfd12c66e4 Create first version of NNAPI AIDL interface
Bug: 161428342
Test: m android.hardware.neuralnetworks-update-api && m
Change-Id: Icf8123746def6f4c654dc3e413e5169ab020c8b4
Merged-In: Icf8123746def6f4c654dc3e413e5169ab020c8b4
(cherry picked from commit 8090245174)
2021-02-09 15:28:19 +00:00
Michael Butler
e5e67024c6 Add dynamic interface casting to NN utility code
Prior to this CL, the NN utility code would always use the type of
IPreparedModel provided by IPreparedModeCallback::notify*. This means
that an IPreparedModel returned as a dynamic type of V1_X but static
type of V1_Y would be used by the utility code as V1_Y. This CL adds
dynamic casting, such that an IPreparedModel returned as a dynamic type
of V1_X but static type V1_Y will be dynamically cast to V1_X and used
as a V1_X::IPreparedModel.

This CL also adds the utility functions
V1_[0123]::convertFromNonCanonical to convert from a non-canonical type
to another non-canonical type by using canonical types as an
intermediate conversion "hop."

Bug: 178180472
Test: mma
Change-Id: I709b2a8944af2cc78b089aade55df1e2ab7b40cc
Merged-In: I709b2a8944af2cc78b089aade55df1e2ab7b40cc
(cherry picked from commit 49b5e4ebea)
2021-02-09 15:28:15 +00:00
Treehugger Robot
b755e019fd Merge "audio: Fix SourceMetadata spec in HAL V7 VTS" 2021-02-09 08:02:29 +00:00
Shuo Qian
0c5fec28d2 Merge "Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock" 2021-02-08 23:00:41 +00:00
Mikhail Naganov
44fa2dd00a audio: Fix SourceMetadata spec in HAL V7 VTS
This was missed in aosp/1576846.

Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I96952b7e17b4098f16c3dc889e36d316a6673213
2021-02-08 13:49:50 -08:00
Jakub Pawlowski
ce1e0c72bd Merge "One libbluetooth_audio_session" 2021-02-08 21:23:14 +00:00
Jakub Pawlowski
f83049be6b Merge "Move libbluetooth_audio_session out of v2.0 folder" 2021-02-08 20:38:07 +00:00
Mikhail Naganov
f45a71d1c1 Merge "Add IEC60958 audio format" 2021-02-08 16:59:13 +00:00
Janis Danisevskis
2679ad6f24 Merge "Keymint: Add CERTIFICATE_* tags required for certificate generation." 2021-02-08 16:52:16 +00:00
Treehugger Robot
6a1a60e220 Merge changes I8ae16870,Ic0eb09df
* changes:
  audio: Allow using vendor extensions in surround formats (V6)
  audio: Allow using vendor extensions in surround formats (V5)
2021-02-08 08:32:21 +00:00
Jakub Pawlowski
3c8dc61462 One libbluetooth_audio_session
libbluetooth_audio_session must be version agnostic, and support both
2.0 and 2.1 bluetooth.audio vendor libraries

Test: compilation
Bug: 150670922
Change-Id: I6a4a10b37201da9a5fb289262530f9d9cd5041ac
2021-02-06 18:33:09 +01:00
Jakub Pawlowski
964f323023 Move libbluetooth_audio_session out of v2.0 folder
libbluetooth_audio_session must be version agnostic, and support both
2.0 and 2.1 bluetooth.audio vendor libraries

Test: compilation
Bug: 150670922
Change-Id: I487022b28a471960e669b9794808dd53b1bdca17
2021-02-06 18:33:09 +01:00
Treehugger Robot
4a0dcd9722 Merge "ISap has version 1.2." 2021-02-06 01:54:48 +00:00
Ady Abraham
04f36f9465 Merge "Remove stoza@ from OWNERS" 2021-02-06 00:49:16 +00:00
Treehugger Robot
a3b2ea24c4 Merge changes from topic "fix-b-142480271-xml-deserializer"
* changes:
  audio: Fix SourceMetadata spec in HAL V7 VTS
  Default Audio HAL service: add V7, remove V2
  audio: Update audioPolicyConfiguration version
2021-02-05 22:17:08 +00:00
Dean Wheatley
4a645c3f97 Add IEC60958 audio format
This format refers to the IEC 60958 specification. It can be used when
patching HDMI inputs. IEC 60958 can transport PCM and compressed audio.

Test: m
Change-Id: Idfafb3e2dc73ffb26529d797dce86f8419e5f75d
2021-02-05 22:13:30 +00:00
Zoey Chen
fb3fa529b2 Add dtmSupported into 1.6 HAL for 2G network
Bug: 178328574
Test: make, VTS
Change-Id: Iba230acda8302df90e77d93701d9b0ba74196fc0
Merged-In: Iba230acda8302df90e77d93701d9b0ba74196fc0
2021-02-05 11:46:02 +08:00
Mikhail Naganov
c32b8584e9 audio: Fix SourceMetadata spec in HAL V7 VTS
Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: Idb1130c9b0d32a41f22c49fa1d14ffe8ec2a3f3c
2021-02-05 02:03:19 +00:00
Mikhail Naganov
b4443504f1 Default Audio HAL service: add V7, remove V2
Modify the list of supported audio HAL versions in
android.hardware.audio.service: add V7, remove V2.

Bug: 171260360
Test: m
Change-Id: I7ecdac0b9a30e51e2b1b54d7a56dfc9d62649fb4
2021-02-05 02:01:56 +00:00
Mikhail Naganov
8a52581b09 audio: Update audioPolicyConfiguration version
HAL V7 uses spaces instead of ',' and '|' for delimiting
elements in channel masks, sample rates, and flags lists
in the Audio Policy Manager configuration XML.
The version specified in the APM XML has been updated
from '1.0' to '7.0' in order to reflect this.

The migration script has been updated to change the
version in the XML on update.

Bug: 142480271
Test: m
Change-Id: I92c206dddee6964fc2019fed80435cb8d69dbfe9
2021-02-05 02:01:43 +00:00
Treehugger Robot
371265231c Merge "Camera: Set arbitrary dataspace for RAW streams" 2021-02-05 00:07:57 +00:00
Mikhail Naganov
14fa6ee5b1 audio: Allow using vendor extensions in surround formats (V6)
The 'surroundFormats' section must allow specifying
vendor-provided formats (vendor extensions). This has been
fixed in Audio HAL V7. Backporting to earlier versions.

Bug: 173647783
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I8ae1687087bab3f1c9020f351bdf7b81b9e74e50
2021-02-04 16:04:56 -08:00
Mikhail Naganov
8844e5b92d audio: Allow using vendor extensions in surround formats (V5)
The 'surroundFormats' section must allow specifying
vendor-provided formats (vendor extensions). This has been
fixed in Audio HAL V7. Backporting to earlier versions.

Bug: 173647783
Test: atest VtsHalAudioV5_0TargetTest
Change-Id: Ic0eb09df927af243d56038a8a102f0607bbaafaf
2021-02-04 16:04:56 -08:00
Treehugger Robot
9db73647a3 Merge "FCM exclude: update comment for deprecated health 1.0 HAL" 2021-02-04 22:32:58 +00:00
Shuo Qian
3f86533c3e Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock
Change-Id: Ib604c93513c80c649ceefb84543c55bdc74afbe7
Merged-In: I6d495199af4d2abbf22cf6dded4ee4ecf1407f3a
Test: vts
Bug: 171235919
2021-02-04 22:32:13 +00:00
Emilian Peev
2bb7e8a59b Camera: Set arbitrary dataspace for RAW streams
Use 'arbitrary' dataspace when trying to configure RAW
streams.

Bug: 179158925
Test: run vts -m VtsHalCameraProviderV2_4TargetTest
Change-Id: I1faa29bea3df91a34ba87ec2c7ecb9a17bd7a4e2
2021-02-04 22:10:02 +00:00
Treehugger Robot
1df025e5f4 Merge "audio: Create libraries for data types in core and effect" 2021-02-04 20:47:13 +00:00
Dan Stoza
fab392342d Remove stoza@ from OWNERS
Removing stoza@ (and other stale entries) from OWNERS since he's leaving

Bug: N/A
Test: N/A
BYPASS_INCLUSIVE_LANGUAGE_REASON=Correct pronouns for stoza@
Change-Id: Ic372a1ce4f27fdf8a1faf9b6f66792d729acbe99
2021-02-04 20:10:14 +00:00
jiabin
66e55bfd1e Add MPEG-H enum.
MPEG-H is a new surround audio codec. Add new enum format for MPEG-H in
the HIDL interface. Though MPEG-H has different profiles and audio
levels, only low complexity and baseline with audio level as 3 and 4 is
defined in this CL as they are relevant for the current and upcoming
commercial services.

Bug: 178619392
Test: make
Change-Id: I5672f3874f6cffe31a83b6d7e351d0bf56bfd038
Merged-In: I5672f3874f6cffe31a83b6d7e351d0bf56bfd038
2021-02-04 19:18:42 +00:00
Treehugger Robot
49ad4f04d8 Merge "Add more vts tests related to limited use key. 1. Fix test case for usage count limit tag = 1 case, when hardware cannot enforce it, the tag should by enforced by keystore. 2. Add test case for usage count limit tag > 1. 3. Add test case to verify the usage count limit tag appears correctly in the attestation certificate for asymmetic key." 2021-02-03 17:38:05 +00:00
Treehugger Robot
81eef45d64 Merge "Remove TV CEC HAL v2.0 definitions" 2021-02-03 16:55:28 +00:00
Treehugger Robot
67555a295f Merge "Remove TV CEC HAL v2.0 from compatibility matrices" 2021-02-03 14:39:09 +00:00
Jaegeuk Kim
356c8371ca Flush writebooster along with manual_gc
If WB has lots of data, we should flush them by IdleMaint.

Bug: 179030981
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ib04a8c5f8b7153f2afe88b636415accbbf27c4f8
2021-02-03 02:41:13 +00:00
Yifan Hong
4213f692b4 Merge "matrix: Add version 1 to AIDL HALs (AOSP)" 2021-02-03 02:25:41 +00:00
Hsin-Yi Chen
ab636a46ec Merge "Increase min delay of default gyro sensor" 2021-02-03 02:18:03 +00:00
Kalesh Singh
2af4c0663c Merge "VTS: Require memtrack::GetGpuDeviceInfo() on 5.4 kernels" 2021-02-03 01:37:03 +00:00
Mikhail Naganov
a9ac889b96 audio: Create libraries for data types in core and effect
Add 'CoreUtils' library similar to 'HidlUtils' for the types
specific to the core HAL. Add 'EffectUtils' library similar to
'HidlUtils' for the types specific to the effects HAL.  Move into
them and de-duplicate code previously scattered across the
default HAL implementation and libaudiohal. Add unit tests.

Removed 'AUDIO_{INPUT|OUTPUT}_FLAG_NONE' from the list of
values in the XSD file to avoid additional complexity due to
equivalence of this value to an empty list of flags.

Bug: 142480271
Test: m android.hardware.audio@X.0-impl
Test: m android.hardware.audio.effect@X.0-impl
Test: atest android.hardware.audio@7.0-util_tests
Test: atest android.hardware.audio.common@7.0-util_tests
Test: atest android.hardware.audio.effect@7.0-util_tests
Change-Id: I71a95cbe07fcc162dc6d74ff9665747a17ce5a80
Merged-In: I71a95cbe07fcc162dc6d74ff9665747a17ce5a80
2021-02-03 01:28:38 +00:00
Marvin Ramin
a106772aea Remove TV CEC HAL v2.0 definitions
This HAL version is not supported by the framework. Remove the code to
avoid confusion.

Bug: 178772241
Test: make
Change-Id: I278415d1945fbf5010539840efdc9e9502957f3f
2021-02-02 21:47:49 +00:00
Kalesh Singh
a259c59189 VTS: Require memtrack::GetGpuDeviceInfo() on 5.4 kernels
Per buffer dmabuf changes can be backported to the 5.4 kernel.
Require the GetGpuDeviceInfo() to allow de-dupping imported dmabuf
memory form the total GPU memory for lost RAM calculation.

Test: atest VtsHalMemtrackTargetTest
Bug: 176477627
Change-Id: Ibaf48c84928b39d62f8552d1674c98d635e834f5
2021-02-02 15:44:01 -05:00
Treehugger Robot
962fcbfb73 Merge "Address leftover comments on aosp/1212191" 2021-02-02 16:32:36 +00:00
Qi Wu
beefae4790 Add more vts tests related to limited use key.
1. Fix test case for usage count limit tag = 1 case, when
  hardware cannot enforce it, the tag should by enforced by keystore.
2. Add test case for usage count limit tag > 1.
3. Add test case to verify the usage count limit tag appears
  correctly in the attestation certificate for asymmetic key.

Test: atest -c VtsAidlKeyMintTargetTest

Change-Id: I01df278b42a91a78c8888c13c4f81b7ec70cfa22
2021-02-02 20:47:30 +08:00
junyulai
0dab2bf10a Address leftover comments on aosp/1212191
Test: TH
Bug: 149467454
Change-Id: Id19456693c0b4173cc4065463c037f01733c7a56
2021-02-02 11:21:25 +00:00
Janis Danisevskis
e2ccb19399 Keymint: Add CERTIFICATE_* tags required for certificate generation.
Also fixes some formatting.

Test: N/A
Change-Id: I27e9dcfa638b544ab49befa208b294e55a04f2c1
2021-02-01 23:34:55 -08:00
Marvin Ramin
1e6de22b79 Remove TV CEC HAL v2.0 from compatibility matrices
This HAL is not supported by the framework. It was confirmed that
no devices were using this HAL version and it will be removed
following this change.

Bug: 178772241
Test: make
Change-Id: Ie73e78ffde79345331753eb9ed4616653616ddf3
2021-02-02 07:10:04 +00:00
Treehugger Robot
06e5b50fc3 Merge "Add new SecurityLevel::KEYSTORE" 2021-02-02 06:13:07 +00:00
Yifan Hong
20fd7b1d11 ISap has version 1.2.
There's no 1.3 ISap.

Test: m check-vintf-all
Bug: 179099519
Change-Id: I4d495946c6d884f167491be261052613f4533212
2021-02-01 19:44:00 -08:00
Yifan Hong
5061cb62b4 matrix: ISurroundView -> ISurroundViewService
Test: none
Change-Id: I7103917ef8e48cec41d6673d825a3e5d858e9d03
2021-02-02 03:42:22 +00:00
Yifan Hong
fcd565628c matrix: Add version 1 to AIDL HALs (AOSP)
AIDL HALs declare version 1 by default when it is
missing. Make it explicit

Test: TH
Change-Id: Ia5020600eb6ee07cdcdbced16dc80da52d736269
2021-02-01 17:59:20 -08:00