Commit Graph

27020 Commits

Author SHA1 Message Date
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
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
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
Daniel Bright
64f69904ff Merge "Introduce Radio Hal Device Capabilities" 2021-01-22 19:08:21 +00:00
Qi Wu
d22ec8418b 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).

Bug: b/174140443
Test: atest VtsHalKeyMintV1_0TargetTest

Change-Id: Ic65b855c5a8692ab8d1281dd46562ad0844ab1b0
2021-01-22 15:58:52 +08:00
ChengYou Ho
10f8a48b64 Add weaver aidl interface
Bug: 176107318
Change-Id: I4dd064843e3e630b878ff08f89100e1b4303a02c
2021-01-22 06:34:31 +00:00
Amos Bianchi
0bc3543c86 Merge "Rename interface method name." 2021-01-22 01:26:46 +00:00
Daniel Bright
44653cea41 Introduce Radio Hal Device Capabilities
* Asks the device what set of capabilities are supported on the device
  with respect to the Radio Hal
* The capabilities struct is left empty and will be filled
  in once the first set of radio hal capabilities are nailed down later
  in Android S

Test: Added cts, ran cts, and std tests
Bug: 163085807
Merged-In: I867f26bc649005e89ebf7a0b74f6fbeb2f44ac93
Change-Id: I837d82592e8ddfef5b1ff5eb0dd983a0d13383ed
2021-01-21 14:28:51 -08:00
Yifan Hong
ddb407f12e Merge "Remove health 1.0 IHealth." 2021-01-21 22:19:18 +00:00
Yifan Hong
83a5d54dfc Merge "Deprecate HIDL health storage HAL." 2021-01-21 19:34:10 +00:00
Tomasz Wasilczyk
2af96f7e50 Merge "broadcastradio@2.0 VTS uses FM frequency invalid in some regions" 2021-01-21 16:13:44 +00:00
Shawn Willden
1ddde5e97e Merge "Add basic testing for KeyMint certs." 2021-01-21 13:42:35 +00:00
Jan Kowal
4e04150188 broadcastradio@2.0 VTS uses FM frequency invalid in some regions
In Japan FM frequency range is 76-95MHz thus FmTune test using
hardcoded 101.1MHz fails on devices preconfigured for this
region when TunerSession::tune returns INVALID_PARAMETER.
Proposed new frequency is valid in all regions.

Test: run VtsHalBroadcastradioV2_0TargetTest on hardware units
configured for Europe, US, Japan (and preferably other) analog
tuner regions

Bug: b/177916339

Change-Id: I86081fc3e1c0e0959039d5a00d96873fca454da6
2021-01-21 12:44:44 +01:00
Chengyou Ho
4cd0571bd6 Merge "Add OWNERS file for oemlock" 2021-01-21 06:37:45 +00:00
Jiyong Park
4b97bd3b64 Turn aidl_format on
Bug: 144540481
Test: N/A
Change-Id: I721252d3b725ec094d7cb9fa3230b749ad0ae210
2021-01-21 15:06:51 +09:00
Shawn Willden
0e80b5d108 Add basic testing for KeyMint certs.
This is by no means complete, but it validates basic functionality.
More is coming.

Test: VtsAidlKeyMintTargetTest
Change-Id: I0727a9f5b137b58b9a2f0aaf9935bfdc6525df8f
2021-01-20 22:45:40 -07:00
Yifan Hong
da86cdbf03 Deprecate HIDL health storage HAL.
If a device launching with S VINTF uses health storage HAL,
it must use AIDL. If HIDL health storage HAL is used,
a build error will occur to complain about deprecated HALs.

Test: manual test that if the HIDL HAL is served on cuttlefish, then
      `m check-vintf-all` shows the following error:

android.hardware.health.storage@1.0::IStorage/default is deprecated
in compatibility matrix at FCM Version 6; it should not be served.

Bug: 177470478
Change-Id: I3c28352f5f8d491ed0e1f9292b80d2083699f829
2021-01-20 20:38:12 -08:00