Commit Graph

27055 Commits

Author SHA1 Message Date
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
1df025e5f4 Merge "audio: Create libraries for data types in core and effect" 2021-02-04 20:47:13 +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
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
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
Shawn Willden
a5ec08abec Add new SecurityLevel::KEYSTORE
We need a way to distinguish between tags that are enforced by KeyMint
with security level "SOFTWARE" and tags that are not enforced by
KeyMint but are expected to be enforced by KEYSTORE.

Test: VtsAidlKeyMintTargetTest
Change-Id: I9f414bec43959577a50d49146029c9edb031be56
2021-02-01 16:57:39 -07:00
Linus Nilsson
88139a65c2 Merge "Revert "Add emergencyDial_1_6 in the HAL to modify the multisim ..."" 2021-02-01 23:57:20 +00:00
Mitch Phillips
5daa3ab5e0 Merge "[MemInit] Use new MemInit API." 2021-02-01 23:32:24 +00:00
Shuo Qian
45582eba48 Revert "Add emergencyDial_1_6 in the HAL to modify the multisim ..."
Revert "Add cuttilefish implementation for emergencyDial_1_6"

Revert submission 1548864-cp-edial-1-6

Reason for revert: some build use some vendor ril_service.cpp
Reverted Changes:
I515ea7381:Add cuttilefish implementation for emergencyDial_1...
I94319ab34:Add emergencyDial_1_6 in the HAL to modify the mul...

Change-Id: I83aedc19bb8eade10c330c2bca625495b9e359e9
2021-02-01 23:21:09 +00:00
Daniel Bright
00337a76b7 Merge "Partial hal support for secondary link bandwidth" 2021-02-01 22:48:44 +00:00
Janis Danisevskis
768cec42b5 Merge "Keymint: Add rust derives to KeyMintHardwareInfo" 2021-02-01 22:19:45 +00:00
Shuo Qian
2f292b8453 Merge "Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock" 2021-02-01 21:22:07 +00:00
Janis Danisevskis
736d935157 Merge "Keymint Support: Fix keymint_tags.h" 2021-02-01 16:15:33 +00:00
Hsin-Yi Chen
1909098d4a Increase min delay of default gyro sensor
The gyro sensor is simulated by CPU. The min delay was too short in
comparison with CPU time slice, which might result in CTS failure.
This commit increases the min delay so as to decrease the relative error
of time intervals.

Test: atest CtsSensorTestCases:android.hardware.cts.SingleSensorTests#testGyroscope_fastest
Bug: 177871363
Change-Id: I58bc08d30633250cacc5f7dddc6cd836c796475b
2021-02-01 15:20:11 +08:00
Janis Danisevskis
2d5868b4e0 Keymint Support: Fix keymint_tags.h
authorizationValue checked the uion value tag twice instead of checking
the actual tag value.

Test: N/A
Change-Id: I348b5ac06801a04ca7243088d758374148910d39
2021-01-31 21:05:41 -08:00
Janis Danisevskis
233e36943e Keymint: Add rust derives to KeyMintHardwareInfo
Test: N/A
Change-Id: I3dee43dc85d465123e2cc36f2640fe3fd49b9838
2021-01-30 08:45:48 -08:00
Treehugger Robot
39059ed17f Merge "audio: Update common types to better match legacy structs" 2021-01-29 23:07:34 +00:00
Daniel Bright
c1f7f98109 Partial hal support for secondary link bandwidth
* Added modemReducedFeatureSet1 flag to HalDeviceCapabilities
* Applied flag to secondary link bandwidth getters in carrier bandwidth

Test: cts
Bug: 173806995
Merged-In: Icfca599607e02a6c3e258c11dc9eb7701b7afd3f
Change-Id: Icfca599607e02a6c3e258c11dc9eb7701b7afd3f
2021-01-29 11:28:34 -08:00
Mitch Phillips
13df2fafda [MemInit] Use new MemInit API.
The system property will only disable heap memory initialization. If you
want to disable MTE (which I don't think was the subject of the original
patch), you can use the MTE sysprops: 'arm64.memtag.process.<pname> =
"off"'.

Bug: 135772972
Test: Device boots.
Change-Id: I180be76ff2f776f1ec1a607de848ff6c81da852d
2021-01-29 10:19:48 -08:00
Shuo Qian
dd17b2ed53 Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock
Test: vts
Bug: 171235919
Change-Id: I94319ab345dabae040792b14b2f8bd8bc64839c0
2021-01-29 18:08:36 +00:00
Treehugger Robot
45a8fe6521 Merge "Specify version for aidl_interface explicitly" 2021-01-29 02:23:01 +00:00
Junyu Lai
d202400f63 Merge changes from topic "sp14-ipahal"
* changes:
  Update VTS tests for setDataWarningAndLimit
  Add VTS tests for setDataWarningAndLimit HAL interface
  Create VTS folder and put necessary setup code
  [SP14] Add HAL to set warning quota to tehtering offload hardware
2021-01-29 00:57:56 +00:00
Mikhail Naganov
ff611980f3 audio: Update common types to better match legacy structs
HAL V7 types were updated to better match data structure
definitions from the legacy HAL:

 - Added 'AudioConfigBaseOptional' struct to match
   legacy structs that have 'mask' field to specify
   initialized fields.

 - All fields in 'AudioConfigBase' made mandatory.

 - Removed 'EffectConfigParameters' in favor of
   'AudioConfigBaseOptional' and safe_unions.

 - Added missing enum string values to ensure that round-trip
   conversions from the legacy HAL to HIDL and back to legacy
   preserve enum values.

Bug: 142480271
Test: atest android.hardware.audio.common@7.0-util_tests
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioEffectV7_0TargetTest
Change-Id: If02a81b3f6790a8eb315fa57123141aad2419132
2021-01-28 21:27:43 +00:00
Treehugger Robot
fa085b5a9e Merge "Add AUDIO_FORMAT_MAT to the list of formats in XSD V6" 2021-01-28 18:40:55 +00:00
Andy Hung
8e8fd18d8f Merge "audio: add implementation for TV related API" 2021-01-28 18:03:34 +00:00
Jeongik Cha
1674c1354e Specify version for aidl_interface explicitly
Bug: 150578172
Test: m
Change-Id: Ie7605c203c0f0eaf2c40f1e64ea45634b3aa54a5
Merged-In: I141de8ed6958fe42f727a0fa41473de4c1fb38de
2021-01-28 15:14:10 +00:00
Tyler Wear
36292630ed Update VTS tests for setDataWarningAndLimit
Test: atest VtsHalTetheroffloadControlV1_1TargetTest
Change-Id: I94db3de955cb9d8d7b7bec8834cafd3aa794b3cc
2021-01-28 14:22:19 +08:00
junyulai
0594eb4b15 Add VTS tests for setDataWarningAndLimit HAL interface
Test: atest VtsHalTetheroffloadControlV1_1TargetTest

Bug: 149467454
Bug: 170699770
Bug: 170179169

Change-Id: I57542cf5fceff360b4a53b3b150941f286de4355
2021-01-28 14:22:19 +08:00
junyulai
ba4f3fb16b Create VTS folder and put necessary setup code
This change contains minimal modifications to perform test for
1.1 HAL. Test cases that exercise 1.1 HAL will be provideded
in follow-up patches.

Test: atest VtsHalTetheroffloadControlV1_1TargetTest
Bug: 149467454
Bug: 170699770
Bug: 170179169

Change-Id: I1df5b8d1241e9fd21930f0def395f98a8bbf3076
2021-01-28 14:22:19 +08:00
junyulai
4011f47ad6 [SP14] Add HAL to set warning quota to tehtering offload hardware
With current setDataLimit API, tethering offload hardware will
stop offload and trigger callback when the given limit bytes is
reached.

However, for data usage warning to work, an API that allows
tethering offload hardware to report event without stopping
offload hardware is needed.

Test: hidl-gen -Lformat android.hardware.tetheroffload.control@1.1
Bug: 149467454
Bug: 170699770
Bug: 170179169
Change-Id: I804d15f92251ef902dd2e1ff1c31ba157fa91067
2021-01-28 14:21:42 +08:00
Kuowei Li
b2d3eaeb3f audio: add implementation for TV related API
1. AudioDescriptionMixLevel getter/setter.
2. DualMonoMode getter/setter.
3. PlaybackRate getter/setter.

Test: TIS player with instrumented HAL
Test: atest AudioTrackTest#testTunerConfiguration
Test: atest AudioTrackTest#testDualMonoMode
Test: atest AudioTrackTest#testAudioDescriptionMixLevel
Test: atest AudioManagerTest#testGetAdditionalOutputDeviceDelay
Bug: 173482792
Merged-In: I7e4f14387b45a5387ba2c4e8797edf18f373b936
Change-Id: I7e4f14387b45a5387ba2c4e8797edf18f373b936
2021-01-27 19:22:01 -08:00
Treehugger Robot
fa4fd90392 Merge "Turn aidl_format on" 2021-01-28 02:19:57 +00:00
Daniel Bright
31f2eb3791 Merge "Add S-NSSAI" 2021-01-27 18:48:54 +00:00
Janis Danisevskis
08ca885240 SecureClock/SharedSecret: Add owners files.
Test: N/A
Change-Id: Ie9a210d9ffb476168b0df55cacd261711adfcb1f
2021-01-26 16:33:21 -08:00
Bo Hu
82ae7eb4b5 Merge "drm: allow to build on 64bit only guest" 2021-01-26 23:35:30 +00:00