Commit graph

1943 commits

Author SHA1 Message Date
Eran Messeri
9e34eae550 Merge "Add the second IMEI tag" 2022-12-05 17:16:16 +00:00
Devin Moore
894dd49d68 Add a LINT.IfChange to sensors_event_t
If that is changed, ASensorEvent also needs to be changed.

Test: na
Bug: 259711109
Change-Id: If1fdedba6a73d46b64f47490a7946954c47a3b79
2022-11-29 19:13:56 +00:00
Eran Messeri
bd9dcfcf4f Add the second IMEI tag
This CL keeps keymaster_defs.h in sync with the changes to
KeymasterDefs.java.

Bug: 244732345
Test: n/a
Change-Id: I3dbed2c077d74ffd276ea007c165309a61f90992
2022-11-28 12:07:41 +00:00
Mikhail Naganov
5c789ae9e7 Merge "Add audio_hw_device.set_device_connected_state_v7 method" 2022-02-01 20:52:49 +00:00
Mikhail Naganov
521310bc26 Add audio_hw_device.set_device_connected_state_v7 method
Add an interface method for providing extra information
about the connected device.

Bug: 211601178
Test: m
Change-Id: I0868cdfdbe46d1399071967653372b55713843e4
2022-01-31 22:52:21 +00:00
Eric Laurent
b0bcbf421f Merge "Audio HAL: Add latency mode APIs" 2022-01-31 19:24:27 +00:00
TreeHugger Robot
7af95ea02d Merge "Add heading to sensors_event_t" 2022-01-27 18:43:08 +00:00
Eric Laurent
e689139808 Audio HAL: Add latency mode APIs
Add APis for controlling the latency mode on an output stream.
Latency mode control is optional but mandated if spatial audio with
head tracking is supported over Bluetooth classic audio link.

Bug: 187446271
Test: make
Change-Id: I30a7f34a265ddac69b283c803b5729770426ebf1
2022-01-27 15:59:06 +01:00
Tyler Trephan
3d9af7ccfd Add heading to sensors_event_t
Bug: 189983308
Test: compile (definitions only)
Change-Id: I01b75ecae37755bf43321d99e465a9dc42e2e318
2022-01-26 18:27:43 +00:00
Eva Chen
544076be9c Add TYPE_HEADING sensor type definitions.
Bug: 189983308
Test: Presubmits
Change-Id: I74186ac6685a376158101f65d2687f1905c09814
2022-01-25 17:10:44 -08:00
Eva Chen
f4e1d6a272 Merge "Add limited axes imu types to sensors_event_t" 2022-01-26 00:15:26 +00:00
Eva Chen
8681aa977e Merge "Add limited axes imu sensor type definitions." 2022-01-26 00:15:26 +00:00
Tyler Trephan
6515145f9c Add limited axes imu types to sensors_event_t
Bug: 187342209
Test: compile (definitions only)
Change-Id: Ifa89e45f24a4b4647b4c36b72b5d033397252ee1
2022-01-21 22:22:01 +00:00
Brian Duddie
373a1b9fe9 Add head tracker to sensors_event_t
Bug: 210156629
Test: compile (definitions only)
Change-Id: Ic76e8b957a4e1660dd975fd3195b7b2aa31035b4
2022-01-19 16:06:13 -08:00
Eva Chen
2588d75554 Add limited axes imu sensor type definitions.
Included sensors:
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED

These changes will enable support for automotive style IMUs that have
more limited axes for accelerometers (x-axis and y-axis) and gyroscopes
(z-axis).

Bug: 187342209
Test: N/A
Change-Id: Iff0553c88f62e4b5693a72116173063f35b914e9
2022-01-18 20:38:28 -08:00
Brian Duddie
d3e67d55ac Add definitions for new head tracker sensor type
Bug: 210156629
Test: n/a
Change-Id: If267401f059fe1377e495a91776b2eb4448fd1ef
2022-01-10 16:13:14 -08:00
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