Commit graph

5934 commits

Author SHA1 Message Date
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
0973a813ee Merge "libhardware: make thermal vendor only" into main 2023-07-25 18:25:46 +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
608609e2b2 Merge "libhardware: make memtrack vendor only" into main 2023-07-25 17:27:51 +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
82ed54410d Merge changes I9b5a140a,Id866d7ef,Ia9ad20fb,I9ffcb4db into main
* changes:
  libhardware: make consumerir vendor only
  libhardware: make audio_alsaops vendor only
  libhardware: make activity_recognition vendor only
  libhardware: tests/tools to vendor
2023-07-19 16:37:23 +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
c4abc9de35 libhardware: tests/tools to vendor
Since these are vendor interfaces, and we are
preventing system tools from using these.

Bug: 37280010
Test: build
Change-Id: I9ffcb4db015de498e1935c96a2866d26b3c936c4
2023-07-18 20:56:46 +00:00
Treehugger Robot
56edfbb13c Merge "Remove libbluetooth-types-header from libhardware" 2023-07-06 11:23:07 +00:00
David Duarte
57a7f462ef Remove libbluetooth-types-header from libhardware
Change-Id: Ia8e664f4c3abfaa2e421e28afdb543c530930f77
2023-07-06 02:04:34 +00:00
Steven Moreland
db3bbfcbf1 Merge changes from topic "b37280010"
* changes:
  fused_location.h: vendor-only
  Add include/hardware/*.h symlinks.
  Split up headers.
2023-06-22 23:48:23 +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
Treehugger Robot
17c0d514dc Merge "Use requested sample rate when it matches device sample rate." am: c0a81b9dc6
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2592208

Change-Id: I8e9afe8823aefcdef026d8cc6562713e0f6d8b8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-22 18:58:21 +00:00
Treehugger Robot
c0a81b9dc6 Merge "Use requested sample rate when it matches device sample rate." 2023-05-22 18:28:54 +00:00
Yichun Li
2ef70764b0 Merge "Revert "Delete bluetooth.h"" am: 0763f1b968
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2594895

Change-Id: I5f59a468538a090e0dcca5a3ab3b13e8a4f488bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-19 01:24:17 +00:00
Yichun Li
0763f1b968 Merge "Revert "Delete bluetooth.h"" 2023-05-19 00:45:21 +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
fd5c609420 Merge "Delete bluetooth.h" am: 33d6b957e5
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2517798

Change-Id: I83c10e84578d5d190d2b3e9fc9e09914f98a9f81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-18 22:04:43 +00:00
David Duarte
33d6b957e5 Merge "Delete bluetooth.h" 2023-05-18 21:50:50 +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
jiabin
abf24d3cc7 Use requested sample rate when it matches device sample rate.
For input stream, the sample rate should be set as requested one if it
matches the device sample rate and is valid.

Bug: 282816698
Test: TH
Change-Id: Iebee2b269062609ff7bcd460f48714ca64980e68
2023-05-16 23:20:17 +00:00
Mikhail Naganov
26748f3084 Merge "Add 'com.android.media' to apex_available of libhardware_headers" am: 3fe6921aff
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2585125

Change-Id: I7d5962e4a6ed76887174edefa87da6568cde8cba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 18:16:41 +00:00
Mikhail Naganov
3fe6921aff Merge "Add 'com.android.media' to apex_available of libhardware_headers" 2023-05-10 17:52:45 +00:00
Mikhail Naganov
c7bb2114e1 Add 'com.android.media' to apex_available of libhardware_headers
Due to adding a dependency of libmedia_helper on
libhardware_headers

Bug: 278976019
Test: m
Change-Id: I97df31b209630dc7fb6b46a0b0221c0d496e6375
Merged-In: I97df31b209630dc7fb6b46a0b0221c0d496e6375
2023-05-09 14:32:23 -07:00
Treehugger Robot
d71f056272 Merge changes I89798eee,Ic3dbab31 am: 14f321f5a7
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2550090

Change-Id: Iefb85b244cd7800dbf755e4715b81db49d15f4d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 18:46:48 +00:00
jiabin
3f274495a7 Set standby as false when the stream is started successfully. am: 041a7d90dd
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2572211

Change-Id: I7598ebc20335e4e92760a86bc5dc94877cca7a9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 18:46:47 +00:00
Treehugger Robot
14f321f5a7 Merge changes I89798eee,Ic3dbab31
* changes:
  Intermittently Audio is not heard in USB Head set, while disconnecting /connecting the usb audio headset.
  Set standby as false when the stream is started successfully.
2023-05-03 17:55:13 +00:00
weizd
5ad6d32f33 Intermittently Audio is not heard in USB Head set, while
disconnecting /connecting the usb audio headset.

In usb audio_hal.c, out-stream standby status was not aligned in
adev_create_audio_patch(), so that stream was considered being in
standby after open.

fix:    Align the standby status.
change: correct update for review comments.

Test: usb headset open works fine with huge times insert/remove.
Change-Id: I89798eeee33d8c5019e7510c23371cb18a00ed32
2023-04-28 11:01:15 -07:00
jiabin
041a7d90dd Set standby as false when the stream is started successfully.
When the audio patch is created and the stream is started, set the
standby as false. In that case, if there is a simultaneous request for
read or write data, it is no need to start the stream again.

Bug: 212509560
Test: repo steps in the bug
Change-Id: Ic3dbab3134bc761271b6b2ac8619135ef08075bc
Merged-In: Ic3dbab3134bc761271b6b2ac8619135ef08075bc
2023-04-28 10:58:50 -07:00
Andy Hung
512d8574c3 Merge "AudioParameter: Use for RemoteSubmix exiting" am: e8ab477900
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2562191

Change-Id: I2289b2030ee68207c12c3b60be051d9951f402e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 21:45:47 +00:00
Andy Hung
e8ab477900 Merge "AudioParameter: Use for RemoteSubmix exiting" 2023-04-25 20:53:00 +00:00
Andy Hung
c2992c7112 AudioParameter: Use for RemoteSubmix exiting
Test: compiles
Bug: 279106598
Merged-In: I50263a48584bac120c65123cd5bed09f60582089
Change-Id: I50263a48584bac120c65123cd5bed09f60582089
2023-04-25 10:45:59 -07:00
Xin Li
340d4ef692 [automerger skipped] Merge "Merge Android 13 QPR2" am: 728df4f5fc -s ours am: 44f5617ab8 -s ours
am skip reason: Merged-In I5fb5b9ff37a6f8a245678c87ee82e2032dc845f2 with SHA-1 9a056455f2 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2487236

Change-Id: I111c436ceaf553597f4002d0b494d21009c06b8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 23:07:50 +00:00
Xin Li
5d5660f121 [automerger skipped] Merge Android 13 QPR2 am: 90d5444233 -s ours am: d104ec269f -s ours
am skip reason: Merged-In I5fb5b9ff37a6f8a245678c87ee82e2032dc845f2 with SHA-1 9a056455f2 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2487236

Change-Id: I74a3d31b3d1a5ed80be6cdfc838757c504d849a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 23:06:00 +00:00
Xin Li
44f5617ab8 [automerger skipped] Merge "Merge Android 13 QPR2" am: 728df4f5fc -s ours
am skip reason: Merged-In I5fb5b9ff37a6f8a245678c87ee82e2032dc845f2 with SHA-1 9a056455f2 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2487236

Change-Id: Ia2418ac8c3766bfa9ca7326f2fdff8b92660d688
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 22:33:53 +00:00
Xin Li
d104ec269f [automerger skipped] Merge Android 13 QPR2 am: 90d5444233 -s ours
am skip reason: Merged-In I5fb5b9ff37a6f8a245678c87ee82e2032dc845f2 with SHA-1 9a056455f2 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2487236

Change-Id: Ieae65577f96e42434c05d204d060e683d5aa94d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 22:32:04 +00:00
Xin Li
728df4f5fc Merge "Merge Android 13 QPR2" 2023-03-14 21:40:43 +00:00
Xin Li
90d5444233 Merge Android 13 QPR2
Bug: 273316506
Merged-In: I5fb5b9ff37a6f8a245678c87ee82e2032dc845f2
Change-Id: Id186d8c8323c8783c479ce1c16941a674824cff4
2023-03-13 23:11:17 -07:00
Oystein Eftevaag
3a4985379c Merge "Enable Windows host compilation of libhardware-headers" am: 442dc965cc am: 583fab5811
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2417909

Change-Id: I51ca563dcf4c5f4703fbaddc77339b630a18e908
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 02:35:13 +00:00