Commit Graph

27034 Commits

Author SHA1 Message Date
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
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
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
Treehugger Robot
0d59cbdb1d Merge "Add limited use keys related tag into KeyMint aidl. And add vts test to verify the tag appears in the key characteristics. also if the tag is enforced in the hardware, afer the usage of the key is exhausted, the key blob should be invalidated from the secure storage (such as RPMB partition)." 2021-01-26 23:05:51 +00:00
Daniel Bright
8e3a2bfdcd Add S-NSSAI
* Added support for S-NSSAI within HAL
* Created struct SliceInfo that represents a S-NSSAI as defined
  in 3GPP TS 24.501.
* Added slice info to setupDataCall and SetupDataCallResult

Bug: 169960538
Test: made ims phone call
Change-Id: I8d2c55bece07c599cb7d1ac0d16ad85c0acdeae5
Merged-In: I8d2c55bece07c599cb7d1ac0d16ad85c0acdeae5
2021-01-26 14:29:28 -08:00
David Zeuthen
df543ea006 Merge "KeyMint: Add support for key agreement operation and use it for ECDH." 2021-01-26 22:05:24 +00:00
Treehugger Robot
dd2f6251c9 Merge "libaidlcommonsupport_test: static libs" 2021-01-26 21:01:04 +00:00
Steven Moreland
2ca1e9ad88 libaidlcommonsupport_test: static libs
In case devices don't have them.

I've also changed the version of these libraries which are used to be
explicit.

Fixes: 178483563
Test: libaidlcommonsupport_test
Change-Id: I4ebbbc84f8cb383b99d1e9a1ecc5ad6b28b8549e
2021-01-26 19:37:22 +00:00
Mikhail Naganov
84be95b671 Merge "Add AUDIO_FORMAT_MAT to the list of formats in XSD" 2021-01-26 18:57:25 +00:00
Treehugger Robot
251efb3fe4 Merge "Update Memtrack HAL VTS Requirements" 2021-01-26 18:39:57 +00:00
David Zeuthen
e0c4089f06 KeyMint: Add support for key agreement operation and use it for ECDH.
Test: VtsAidlKeyMintTargetTest
Bug: 171847641
Change-Id: Id9dc0ee3c69d9c2421ce7b0f228580a90411169e
2021-01-26 12:09:17 -05:00
Kalesh Singh
11fdc97211 Update Memtrack HAL VTS Requirements
Only devices with 5.10 or later kernel are required to
implement getGpuDeviceInfo().

At least one non-empty device name must be returned by
getGpuDeviceInfo().

Test: atest VtsHalMemtrackTargetTest
Bug: 176477627
Change-Id: I8c7121f4bed0e674407a22f0a772e95475243568
2021-01-26 11:22:27 -05:00
David Zeuthen
ef90842503 Merge "Identity Credential changes for Android 12" 2021-01-26 14:50:27 +00:00
Peter Collingbourne
9883e2fc46 Merge "Import wifi_channel_stat into legacy_hal namespace." 2021-01-26 06:04:41 +00:00
bohu
17b4bcfcfa drm: allow to build on 64bit only guest
Change-Id: If13e87b61c8e5efa447f494ff527478cf97175ff
2021-01-25 21:51:00 -08:00
Mikhail Naganov
fe638b0646 Add AUDIO_FORMAT_MAT to the list of formats in XSD V6
This format is known to the framework since Android Q, and its lack
from the XSD was an issue, which only got fixed in
Audio HAL V7.

Bug: 176536594
Test: atest VtsHalAudioV6_0Target
Change-Id: I6c312a72e50e6547bd7f206d18ba7548b7bf8556
2021-01-26 01:51:57 +00:00
Janis Danisevskis
6bb888fecf Keymint/secureclock: Add Rust derives to some of the types.
This adds rust derive stanzas to TimeStamp, TimeStampToken, and
HardwareAuthToken.

Also removes an unused import from IKeyMintDevice.

Test: Compiles.
Change-Id: If41248f5cda8015ecb07bec5d1bc75317b803492
2021-01-25 10:51:54 -08:00
Devin Moore
1f00c21c28 Merge "Use NativeHandle in MQDescriptor instead of ParcelFileDescriptor" 2021-01-25 18:20:54 +00:00
Peter Collingbourne
0c4836f418 Import wifi_channel_stat into legacy_hal namespace.
Fixes android.hardware.wifi@1.0-service-tests build failure.

Change-Id: I067106c4db8a9c9c358ec287409cc1b93c50c926
2021-01-25 10:19:51 -08:00
Treehugger Robot
ec203cf2fb Merge "Instead of including wifi_hal.h in the legacy_hal namespace, import the types." 2021-01-25 16:46:20 +00:00
David Zeuthen
49f2d2558a Identity Credential changes for Android 12
- Add IIdentityCredential.deleteCredentialWithChallenge()
- Deprecate IIdentityCredential.deleteCredential()
- Add IIdentityCredential.proveOwership()
- Add IIdentityCredential.updateCredential()
- Add ProofOfBinding CBOR to AuthenticationKey X.509 certificate
- Document which API versions new methods/features appeared in.
- Mention need to declare android.hardware.identity_credential system
  feature (w/ feature version number) and do this for the default
  implementation.

Bug: 170146643
Test: atest VtsHalIdentityTargetTest
Change-Id: Ib47c7caa5f3d6fff6919f019eee44a735dba9cf8
2021-01-23 13:35:57 -05:00
Mikhail Naganov
d338aebc38 Add AUDIO_FORMAT_MAT to the list of formats in XSD
This format is known to the framework since Android Q, and its lack
from the XSD was an issue, which only got fixed in
Audio HAL V7.

Bug: 176536594
Test: atest VtsHalAudioV5_0Target
Change-Id: I32ccb926b5ad9202a5a6329d7069db37563ff45b
2021-01-22 23:12:36 +00:00
Devin Moore
17365e56a2 Use NativeHandle in MQDescriptor instead of ParcelFileDescriptor
android.hardware.common.fmq.MQDescriptor needs to handle multiple file
descriptors, so changing from ParcelFileDescriptor to
android.hardware.common.NativeHandle.
android.hardware.common.fmq.GrantorDescriptor needs to keep track of the
fdIndex as well.

Bug: 176912570
Test: atest fmq_unit_tests fmq_test

Change-Id: I15f2393e6c420ae5394322b28c4523fa80f7dcc7
2021-01-22 13:30:19 -08:00
Xusong Wang
eafa06164d Merge "Increase NNAPI VTS single-test timeout to 20m." 2021-01-22 21:20:57 +00:00