Commit graph

1927 commits

Author SHA1 Message Date
David Drysdale
635b706889 Add new KeyMint curve enum
Bug: 194358913
Test: VtsAidlKeyMintTargetTest
Change-Id: I6fb21c0662f2c810a086c5146fa3caa51be9464e
2021-12-15 14:56:19 +00:00
Jim Blackler
6b834a3b75 Revert "Delete KM1"
Revert submission 1844016-delkm1

Reason for revert: b/202675261
Reverted Changes:
Iba996962b:Delete KM1
Ia4c5359cd:Delete KM1
Iee6ec9816:Delete KM1
I6058e4d86:Delete KM1
I8abb9c570:Delete KM1
I9c4dc5c9e:Delete KM1

Change-Id: If89a96dab30e85c9e9c3b4bf67d8aab20a273a54
2021-10-11 13:38:59 +00:00
Shawn Willden
9bba111014 Delete KM1
Test: Build
Change-Id: I8abb9c570db05599e3d062810427859ea784d47f
2021-10-06 13:08:40 -06:00
Martin Brabham
44e1aaab15 add is_valid to oob data
Bug: 178007935
Test: manual, test app
Tag: #feature
Change-Id: I9ba3639904471a4c34d8f5df753c416e149749c7
2021-06-18 10:18:31 -07:00
Martin Brabham
7094c89e5c Update oob data struct
Bug: 178007935
Test: compiles and runs
Tag: #feature
Change-Id: Ia06b8c65cac45694a3a9f01ca73bf6e0b3010d06
Merged-In: Ia06b8c65cac45694a3a9f01ca73bf6e0b3010d06
2021-03-15 19:29:22 +00:00
Paul Crowley
1f4800f20a Add MAX_BOOT_LEVEL tag, BOOT_LEVEL_EXCEEDED error
Test: Treehugger
Bug: 176450483
Change-Id: Ibfc838496fec507dbe4831e86b933666296a4b35
2021-02-18 09:50:56 -08:00
Shawn Willden
46c5244839 Add ATTEST_KEY
Bug: 171845787
Test: Build
Change-Id: I41451eb35dd0992c049525782e7afb5228ed6b3f
2021-02-11 07:50:39 -07:00
Janis Danisevskis
06cd71d88a Keymint: Add CERTIFICATE_* tags
Add CERTIFICATE_NOT_BEFORE/AFTER and change CERTIFICATE_SERIAL to bignum
type.

Test: N/A
Change-Id: I5b1ed20a9babe8425e98a03637cdc14be842872c
2021-01-31 22:08:17 -08:00
Kuowei Li
96374df243 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: Id89dd151797723dbb58a44db48ff05bff3f20e04
Change-Id: Id89dd151797723dbb58a44db48ff05bff3f20e04
2021-01-27 19:24:54 -08:00
Treehugger Robot
3cd53f9f9d Merge "Add limited use key tag defination." 2021-01-26 23:05:51 +00:00
David Zeuthen
3107e47dfc Add KM_PURPOSE_AGREE_KEY constant.
Test: VtsAidlKeyMintTargetTest
Bug: 171847641
Change-Id: I9e3128652767509911445491248c01953359cb67
2021-01-25 13:23:51 -05:00
Qi Wu
ba765a66c1 Add limited use key tag defination.
Test: none
Change-Id: I5464f6411b8bce94a3736cd033d064e75d313fe1
2021-01-13 22:37:19 +08:00
Eric Laurent
bc512ab977 audio HAL: new track metadata version
Add channel mask and audio attributes tags to playback
and record track metadata sent to audio HAL.
Add new HAL methods and structs for use with HALs version 3.2
and above to provide backwards compatibility with old HALs.

Bug: 168751366
Test: make
Change-Id: I30cc3d35f97bb1bc5f80983f6ae85f3e820bf414
Merged-In: I30cc3d35f97bb1bc5f80983f6ae85f3e820bf414
2021-01-05 12:50:59 -08:00
Chirag Pathak
39fd306e43 Add libhardware support for RSA OAEP MGF1.
Test: atest VtsAidlKeyMintV1_0TargetTest
Bug: 160968519
Change-Id: I2c534d2a9ad401a48451ca392ebf6e0039345de4
2020-12-21 18:45:35 -05:00
Tianjie Xu
c4b24df2ef Merge "Add a function pointer to get active boot slot" 2020-12-11 21:57:24 +00:00
jiabin
31d6646e63 Add a new API for getting audio_port_v7.
Add a function to audio HAL interface for retrieving audio_port_v7
structure directly. The legacy audio_port structure can always be
converted into audio_port_v7, however the latter may contain more
information.

This function must be supported from legacy HAL version 3.2.

Bug: 160352965
Test: make
Change-Id: I60f2615791c19aed37fdb91328e8bc420bc3419d
Merged-In: I60f2615791c19aed37fdb91328e8bc420bc3419d
2020-12-09 01:57:58 +00:00
Tianjie
a40c2001fa Add a function pointer to get active boot slot
bootcontrol 1.2 adds a new function to get the active boot slot
on the next boot. Since the getter is closely related to the gpt
implementation of bootcontrol, we add the header here and expose
to clients of libhardware. Devices with an old HAL should never
call this new getter function.

Bug: 173808057
Test: Vts tests for bootcontrol

Change-Id: I19135ed16bf0ba546e0a8d9cb2d521ec0a9c5bbc
2020-12-08 14:29:11 -08:00
Shawn Willden
937d61c8c4 Delete keymaster0
Test: Build
Change-Id: I55f713587ccd91a9ec76cc10f84ecb0109aad7ac
2020-12-04 11:52:34 -07:00
Selene Huang
d7dcd78f01 Add new certificate tags defination for KeyMint V1.
Test: n/a
Change-Id: I05f629feec5cd2bd01f03b88cd5d830bb1f22623
2020-11-18 18:14:50 -08:00
Selene Huang
5d3c1ec971 keymaster_defs: Add missing tags added in KM 4.1 and earlier.
Test: N/A
Change-Id: Ie01cbc50d9bc77150adc46962d06cda2a7c1544a
Merged-In: Ie01cbc50d9bc77150adc46962d06cda2a7c1544a
2020-11-03 03:23:13 +00:00
Rahul Sabnis
4be5facf6d Update the signature of init function to include whether the device is am: 247c646824 am: 14511f6722 am: 99d5aba8ec am: 28ce79352a am: 1751a06b9f am: db07ea5953
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I61f2c9dc76f20b44c3efe84ddc00a8184a099da5
2020-08-05 22:51:57 +00:00
Rahul Sabnis
1751a06b9f Update the signature of init function to include whether the device is am: 247c646824 am: 14511f6722 am: 99d5aba8ec am: 28ce79352a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I443edd62865ca64aaeeee749818430cd41cf160c
2020-08-05 22:20:56 +00:00
Rahul Sabnis
99d5aba8ec Update the signature of init function to include whether the device is am: 247c646824 am: 14511f6722
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I9962c4c765f16fdffaac17f24ca62fac6eb0bf31
2020-08-05 21:37:24 +00:00
Rahul Sabnis
14511f6722 Update the signature of init function to include whether the device is am: 247c646824
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I787e5077a29653ecb551f4176fcfa0b2a054f7a5
2020-08-05 21:17:00 +00:00
Rahul Sabnis
247c646824 Update the signature of init function to include whether the device is
an ATV

Bug: 157038281
Test: Manual
Change-Id: I1685c4318c27e8dcca5f7a696fe9e1f8bf594b9d
2020-08-04 14:17:15 -07:00
Andy Hung
bb2bf2d62d Merge "audio_alsaops: fix format conversion error handling bug" am: 9a2cf9a818 am: 53ead60966
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1323975

Change-Id: If3b86f025a61e3151da8e45c6dac1d221c8f3a5c
2020-06-08 17:17:51 +00:00
Jindong
8681eabddf audio_alsaops: fix format conversion error handling bug
Returns a invalid format after fatal error,
instead of "0", which equals to PCM_FORMAT_S16_LE or
AUDIO_FORMAT_DEFAULT.

Also fix below build error:
hardware/libhardware/include/hardware/audio_alsaops.h:63:16:
error: cannot initialize return object of type 'enum pcm_format' with an rvalue of type 'int'
        return 0;
hardware/libhardware/include/hardware/audio_alsaops.h:97:16:
error: cannot initialize return object of type 'audio_format_t' with an rvalue of type 'int'
        return 0;

Signed-off-by: Jindong <jindong.yue@nxp.com>
Change-Id: Iabf5ae106d9c371c00ad5236326c6f38d1a9f116
2020-06-05 11:11:07 +08:00
Selene Huang
de4d82fc16 Added identity credential key to keymaster tag set.
Bug: 149908474

Test: atest android.security.identity.cts.AttestationTest
Test: atest VtsHalIdentityCredentialTarge
Merged-In: I5a0336692f894580a46d6e70a5b2e2b6d54508e5
Change-Id: I4c1cf2cc5112ccae2151958c65025d9e225bdeed
2020-03-09 12:28:05 -04:00
Automerger Merge Worker
c320973058 Add a callback for codec format changed. am: 3b4b33f479
Change-Id: Idb2e22016e4a58cc1315d8f1355830512fb58ffb
2020-02-26 18:54:15 +00:00
Automerger Merge Worker
0f30f984e8 Merge "Added identity credential key to keymaster tag set." am: 0f6a221b62 am: 353924555e
Change-Id: I8b9be13d5928f2a9221c08a5801b8a3b4f7f4fe0
2020-02-25 21:41:46 +00:00
jiabin
3b4b33f479 Add a callback for codec format changed.
Bug: 133526565
Test: Manually
Change-Id: Ie7d17c7d9b49394601b4788aa44a8407ebb6f72e
2020-02-24 20:49:23 +00:00
Selene Huang
79a5bd607d Added identity credential key to keymaster tag set.
Bug: 149908474

Test: atest android.security.identity.cts.AttestationTest
Test: atest VtsHalIdentityCredentialTarge
Change-Id: I5a0336692f894580a46d6e70a5b2e2b6d54508e5
2020-02-21 15:58:10 -08:00
Automerger Merge Worker
220ed7063e Merge "Add Keymaster4.1 definitions." am: 09b2f93ab9 am: bf3974f323 am: 7dcc835097
Change-Id: I99eded133e22ce7235d85a8ccb24c903b29c9c3e
2020-02-12 01:24:06 +00:00
Shawn Willden
e59d5b1e2e Add Keymaster4.1 definitions.
Test: VtsHalKeymasterV4_1TargetTest
Change-Id: I501e63a577368d78c609f868e452603b4110a970
2020-02-11 15:51:03 -07:00
TreeHugger Robot
fadd886ad2 Merge "Update new values for latest sensor HAL changes" 2020-01-24 18:45:02 +00:00
Dan Stoza
d5f2f67cd2 [hwc2] Add generic layer metadata (Composer 2.4)
Bug: 139747351
Test: VtsHalGraphicsComposerV2_4TargetTest
Test: Manual verification with a modified Composer implementation
Change-Id: Id3ac89612f41ef1d4d03552cc7b0851f6aba1f77
2020-01-22 15:18:30 -08:00
Matthew Maurer
df2f2301a3 Add ROLLBACK_RESISTANCE definition to for KM4
* Add ROLLBACK_RESISTANCE tag
* Add ROLLBACK_RESISTANCE_UNAVAILABLE error code

Test: m libkeymaster_messages
Change-Id: Ib69a0c0f179f894b488da8608e6005e68450453a
2020-01-20 21:11:01 -07:00
Peiyong Lin
7190983117 Merge "Add getClientTargetProperty API entry." 2020-01-18 01:08:19 +00:00
Anthony Stange
e2a118aafb Update new values for latest sensor HAL changes
A hinge angle sensor type has been added to the sensor HAL which
requires updating sensor.h and sensor-base.h.

Bug: 144139857
Test: N/A
Change-Id: I0d8e7d028cc1b2e05a8ec74b7ab3da9ffff5dbde
2020-01-16 19:39:06 -05:00
Peiyong Lin
f777542fd8 Add getClientTargetProperty API entry.
getClientTargetProperty will give hardware composer the ability to request some
properties of the client target that hardware composer wants. Prior to this
API, the client will does its best to produce the client target of which the
properties are pretty much fixed.

BUG: b/145968912
Test: boot
Change-Id: Ib8ba44d274a0c8a86c3fde1d09b72f592445ee91
2020-01-14 14:38:19 -08:00
Nicholas Ambur
430cc25a7c Merge "add start_recognition_exteded soundtrigger api" 2020-01-11 16:39:55 +00:00
Ady Abraham
fbdca5fdaa Merge "hwcomposer2: add seamlessPossible callback" 2020-01-11 00:29:58 +00:00
Nicholas Ambur
dc10826841 add start_recognition_exteded soundtrigger api
Bug: 146363190
Test: atest VtsHalSoundtriggerV2_3TargetTest
&& Assist GTS test suite and manual testing

Change-Id: I6a1ac196cb7f5ad1c0b60f0adfb67680bb18568b
2020-01-10 14:01:10 -08:00
Peiyong Lin
ae5e8ab33e Merge "[composer] Make Auto low latency mode APIs optional." 2020-01-10 19:24:50 +00:00
Eric Laurent
70a7b39f68 Audio HAL: Add API to attach an effect to a device
Add a function to audio HAL interface allowing the attachement of an
audio effect to an audio device.
This is used when an audio effect is implemented below the HAL (e.g by an audio DSP)
and is attached/enabled when a particular sink(e.g speaker) or source(e.g mic) device
is selected.
This function must be supported from legacy HAL version 3.1.

Bug: 136294538
Test: make
Change-Id: Id63c83403fef580579c52d92758a552d67c3faec
Merged-In: Id63c83403fef580579c52d92758a552d67c3faec
2020-01-10 11:17:36 -08:00
Eric Laurent
647165d396 Audio effect HAL: Add create effect API with device ID
Add the possibility to specify a target audio device when
creating an audio effect by passing its audio port handle
to createEffect API.

Add new create_effect_3_1() function to audio_effect_library_t
interface for interface version to 3.1.

Bug: 136294538
Test: make
Change-Id: Ia84eaf32f2a7c0cc73a43075c84902a395bafe58
Merged-In: Ia84eaf32f2a7c0cc73a43075c84902a395bafe58
2020-01-10 11:17:18 -08:00
Peiyong Lin
b923ad03cf [composer] Make Auto low latency mode APIs optional.
BUG: b/147365206
Test: boot
Change-Id: I54e21cbbf3b69813d8c58bd33b0c1d1e5f7a8fd8
2020-01-10 09:40:00 -08:00
Ady Abraham
c1b2f0753e hwcomposer2: add seamlessPossible callback
Add a callback to notify the client it should retry a
setActiveConfigWithConstraints call in case of SEAMLESS_NOT_POSSIBLE error.

Test: rev up composer to 2.4
Bug: 141329414
Change-Id: I102bedc9cb89f9d1886a431f8804897bb838eb8f
2020-01-07 22:35:57 +00:00
Nicholas Ambur
581c67326f add get_properties_extended soundtrigger api
Bug: 142414689
Test: GTS assist test suite and manual testing
Change-Id: I86c78e46bfee5072619d38784c29cd871ede731c
2020-01-07 14:03:20 -08:00
Galia Peycheva
038dfb1b1c Add ALLM and Content types in hwc2
Bug:132731049

Test: make -j$(nproc)
Change-Id: I652244d1934bef1472b7980ff7f4736b0460c53f
2019-12-17 13:51:11 +01:00