Commit Graph

1962 Commits

Author SHA1 Message Date
Steven Moreland
3f9cf8c393 libhardware: make local_time_hal vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: Ibd8be777cf6752054dda06e44b5d7c61197549f5
2023-07-28 19:36:18 +00:00
Treehugger Robot
8998161fc5 Merge "libhardware: make vr vendor only" into main 2023-07-27 17:54:03 +00:00
Mark White
5da3358328 Merge "Revert "libhardware: make memtrack vendor only"" into main 2023-07-26 09:01:12 +00:00
Mark White
6c793078d5 Revert "libhardware: make memtrack vendor only"
This reverts commit 09958b9a44.

Reason for revert: DroidMonitor-triggered revert due to broken build 10560044 on git_master-tv-dev on sabrina-userdebug, bug b/293234605

Bug: 293234605
Change-Id: I4c1bc018d783bb37ccabf0756c2d32dc1764b924
2023-07-26 09:00:22 +00:00
Treehugger Robot
5bac8ff2f4 Merge "libhardware: make radio vendor only" into main 2023-07-25 18:25:48 +00:00
Steven Moreland
050abc5f07 libhardware: make vr vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: Ia97aaa2c833edfd4db30cc0ec5c89033bb70cd76
2023-07-25 17:36:11 +00:00
Steven Moreland
c8bab1a63a libhardware: make thermal vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: I2a3db8ea03103e59ebfc84feaed6c527b8ad0e1e
2023-07-25 17:33:39 +00:00
Steven Moreland
77fed9244f Merge "libhardware: make lights vendor only" into main 2023-07-25 17:28:08 +00:00
Steven Moreland
09958b9a44 libhardware: make memtrack vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: I6b5d1e162c665b232e41e0b10cde6959ead1b548
2023-07-25 17:27:45 +00:00
Steven Moreland
a501414b02 libhardware: make lights vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: Ie5b69bb16c8b603f42ebf344cc8e126eb583d0d9
2023-07-25 01:15:06 +00:00
Steven Moreland
4ad656c972 libhardware: make radio vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: I677fb072beb8399a868690ef2a4da4f9c131cf1a
2023-07-22 02:16:10 +00:00
Steven Moreland
91dc9eaf22 libhardware: make consumerir vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: I9b5a140a4f80128668e62ce87d8578c3cc84fd7c
2023-07-18 20:56:46 +00:00
Steven Moreland
aee55ba4dc libhardware: make audio_alsaops vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: Id866d7efadb7081ced8f2c5c80c636c7f3e425dc
2023-07-18 20:56:46 +00:00
Steven Moreland
41964bc3ab libhardware: make activity_recognition vendor only
Limit AOSP usage of historical HAL implementation interface to
avoid mistakes.

Bug: 37280010
Test: build
Change-Id: Ia9ad20fb8c693c4efb3a10c8ead9a5a8132ada77
2023-07-18 20:56:46 +00:00
Steven Moreland
68990e5354 fused_location.h: vendor-only
This commit hides fused_location.h from the system.

- include - it is no longer in the global include
- include_all - it is no longer accessible to system things which
    use libhardware

Bug: 37280010
Test: boot/build
Change-Id: I12297f28d8d2330821f45c3a2caced026ea703ed
2023-06-02 23:01:56 +00:00
Steven Moreland
3556da3b4a Add include/hardware/*.h symlinks.
These are required to build. Separate CL to preserve blame history.

From running 'update-includes.sh' script here.

Bug: 37280010
Test: boot/build (sanity)
Change-Id: Id9c2dc37f674b27b947a9f823bd38a550d64d31b
2023-06-02 23:01:56 +00:00
Steven Moreland
d783cabd4d Split up headers.
This splits headers into three locations:
include - for backwards compatibility, the global include
include_all - for things system/vendor both use
include_vendor - for things that only vendors use

The goal is to gradually have system things stop referencing
(at least most) of these headers.

Bug: 37280010
Test: build (CL on top adds back in symlinks)

Change-Id: Ibf194276b7faa857e1e7605d7719f4e7d873ecba
2023-06-02 23:01:54 +00:00
Yichun Li
f8028b370d Revert "Delete bluetooth.h"
Revert submission 2517798-remove_bluetooth_h

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_tm-qpr-dev-plus-aosp&target=aosp_bramble-userdebug&lkgb=10164200&lkbb=10164726&fkbb=10164208

Reverted changes: /q/submissionid:2517798-remove_bluetooth_h

Bug: 10164208
Change-Id: I32d42ce282c82c4435ce071c8aa8969cceae2e68
2023-05-19 00:33:13 +00:00
David Duarte
3552b1c400 Delete bluetooth.h
hardware/bluetooth.h was copied into Bluetooth in https://r.android.com/513838

Change-Id: Ia7388b446bd37b3cbdf8276c8c4d11e8af17640c
2023-05-18 09:12:40 +00:00
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