Commit graph

5814 commits

Author SHA1 Message Date
Devin Moore
878d3d1c7e Merge "Add a LINT.IfChange to sensors_event_t" 2022-12-01 22:57:09 +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
Devin Moore
65d6174bbc Merge "Make libhardware host_supported" 2022-11-22 17:37:49 +00:00
Devin Moore
690e02aa2c Make libhardware host_supported
This requires dropping a header file and avoiding a missing strlcpy API.
Required for host_supported fuzzers that include this lib.

Test: libsensorserviceaidl_fuzzer
Bug: 205764765

Change-Id: Ib1d2851e915ed87ef2936a044e7a72bab3077f40
2022-11-17 17:47:52 +00:00
Christopher Ferris
8e965d90de Merge "Modify a data structure into a union." 2022-11-03 01:20:03 +00:00
Christopher Ferris
8b0619b47d Modify a data structure into a union.
The new 6.0 kernel headers changed all variable length
structures from [0] to []. This causes a clang warning to
trigger, so rewrite the affected data structure using a
union to avoid having a variable sized array in the middle
of the structure.

Test: Builds.
Change-Id: I60c6d31a93566c4aa9f7501f39f88543ee76ce91
2022-10-13 12:39:44 -07:00
Treehugger Robot
dcbe8650b6 Merge "[dynamic_sensor] correctly interpret HID data" 2022-09-09 20:08:06 +00:00
Manish Kushwaha
d4085b7193 [dynamic_sensor] correctly interpret HID data
specifically, interpret HID data value as unsigned if minValue is
positive

Fix: 238391386
Test: See "Testing Done" in comments in ag/19889364
Change-Id: I715c2189ad90ee71e022ae131354354157694556
2022-09-09 16:50:00 +00:00
Treehugger Robot
4d919104dd Merge "Clarify and clean up dynamic_sensor documentation" 2022-08-25 18:14:47 +00:00
Brian Duddie
f4def6edb5 Clarify and clean up dynamic_sensor documentation
Test: n/a
Change-Id: I0b0226b1fce940bd37b8d8a1f72123948ff1fe0a
2022-08-24 23:21:45 +00:00
Treehugger Robot
5c5651cf2c Merge "[Bluetooth apex] Use new apex name" 2022-08-24 00:13:29 +00:00
William Escande
4db625386f [Bluetooth apex] Use new apex name
The Bluetooth apex name is now called com.android.btservices

Bug: 243054261
Test: Build
Change-Id: Ie016fa354f5c9516b2f9a671f2235787f92da37d
2022-08-22 11:27:59 -07:00
Xin Li
e6ba398cb2 Merge "DO NOT MERGE - Merge Android 13" 2022-08-16 19:08:18 +00:00
Xin Li
7bc1119b8a DO NOT MERGE - Merge Android 13
Bug: 242648940
Merged-In: I4bc1a7cb4af2c49d6f1343843cf86c436294bed7
Change-Id: I1ea69ee0fb89d079bbd712ea8f13717ceb2fb6e6
2022-08-15 22:03:53 -07:00
Treehugger Robot
db72a6dfe4 Merge "Remove explicit dependency on libdl" am: 2cac8b9f81
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2123559

Change-Id: Ib0c0faf87d987634a7923be276033cc1b5eb13a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 20:17:48 +00:00
Xin Li
7c0bc319e9 Merge tm-dev-plus-aosp-without-vendor@8763363
Bug: 236760014
Merged-In: If82a5bf302cb68a2c5b486006e4679fbfc8ee545
Change-Id: I9f63475a68f386bbb8ad768a8f2075e6c3c55eaa
2022-06-27 23:38:54 +00:00
Treehugger Robot
2cac8b9f81 Merge "Remove explicit dependency on libdl" 2022-06-17 00:18:40 +00:00
Xin Li
97dbb73578 [automerger skipped] Merge "Merge Android 12 QPR 3" am: b0eb536590 -s ours am: 7c9cf4930a -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

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

Change-Id: Iac40bb50d65ba3b7ec38d8e1e551fc4524a2f8e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-17 00:15:19 +00:00
Xin Li
4c81cb72ef [automerger skipped] Merge Android 12 QPR 3 am: 9e5c95612b -s ours am: be6d94e0dd -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

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

Change-Id: I43e9f699fb6fb876f992530a5c5bf22184afe3d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-17 00:14:13 +00:00
Xin Li
7c9cf4930a [automerger skipped] Merge "Merge Android 12 QPR 3" am: b0eb536590 -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

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

Change-Id: I7e76b76be8e6b011c5ad8fdc2bb6499b555bb018
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 19:58:19 +00:00
Xin Li
be6d94e0dd [automerger skipped] Merge Android 12 QPR 3 am: 9e5c95612b -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

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

Change-Id: Ice06d9e2407d1f617c7e95744b3e8d9513c724b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 19:57:06 +00:00
Xin Li
b0eb536590 Merge "Merge Android 12 QPR 3" 2022-06-16 18:51:54 +00:00
Xin Li
9e5c95612b Merge Android 12 QPR 3
Bug: 236045730
Merged-In: I36e233dc5b59feec9354f9aef6f231babbbcec6f
Change-Id: Ie3de5c4a7566ae5ed6bc2e3549029d7d42cfc27c
2022-06-14 16:48:12 -07:00
Liz Kammer
3e805478fb Remove explicit dependency on libdl
A dependency to libdl is added by default by the build system based on
system_dynamic_libs property.

Test: m libhardware
Change-Id: I4bc1a7cb4af2c49d6f1343843cf86c436294bed7
2022-06-13 17:52:48 +00:00
Erik Staats
3493565708 Add /dev permissions to dynamic sensor README.md .
Bug: 228879057
Test: Verified in gitiles.
Change-Id: If82a5bf302cb68a2c5b486006e4679fbfc8ee545
2022-04-20 11:16:52 -07:00
Erik Staats
fdb42f78cd dynamic_sensor: Fix HID min/max sample rate computation.
Bug: 228369656
Test: Used uhid-sample to add a dynamic sensor and verified correct
 min/max sample rate.
Change-Id: I88a1bec26a03a97ee7a3c590d2601151b89ee545
2022-04-06 15:30:02 -07:00
Erik Staats
9b8bc0f7c1 dynamic_sensor: Support timing out sensor operations.
Bug: 226012902
Test: Used uhid-sample to add a dynamic sensor and verified it can be
 sampled.
Test: Simulated start sampling ioctl timeout and verified operation
 completes with a timeout and eventually cleans up.
Test: Simulated start sampling ioctl timeout with device removal before
 completion and verified operation completes with a timeout and
 eventually cleans up.
Change-Id: I9a957bc1e4000b2c587278146ecbe6e903010616
2022-04-06 12:42:06 +00:00
Xin Li
97fa686b5d [automerger skipped] Merge Android 12 QPR3 ab/8391262 am: c86c769102 -s ours am: c41d9de876 -s ours
am skip reason: Merged-In I11cfdae56524722afd33ee3c01fdb3c1559d8c85 with SHA-1 edfcd7d421 is already in history

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

Change-Id: Iaf074ba904bcb417005de1f7bec88c228f63828f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 07:43:37 +00:00
Xin Li
c41d9de876 [automerger skipped] Merge Android 12 QPR3 ab/8391262 am: c86c769102 -s ours
am skip reason: Merged-In I11cfdae56524722afd33ee3c01fdb3c1559d8c85 with SHA-1 edfcd7d421 is already in history

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

Change-Id: I36e233dc5b59feec9354f9aef6f231babbbcec6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 07:11:36 +00:00
Xin Li
c86c769102 Merge Android 12 QPR3 ab/8391262
Bug: 226662282
Merged-In: I11cfdae56524722afd33ee3c01fdb3c1559d8c85
Change-Id: I517f7a7454372f79f959df33c13b26202080e33c
2022-04-01 20:32:38 +00:00
Brian Duddie
b9769d799c Change dynamic sensors handle base to 1
Fixes: 227766975
Test: load on device, confirm handle number changed
Change-Id: I0466784d7e468bd785f2525f1ab7cd02cc5436e8
2022-04-01 17:22:31 +00:00
Xin Li
4c996b4015 [automerger skipped] Merge "Merge Android 12L" am: c2b7fb4aad -s ours am: b8395c238a -s ours am: edfcd7d421 -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

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

Change-Id: Ibc96dbb712bf69d6d4577df69def914354347b5e
2022-03-09 10:05:02 +00:00
Xin Li
6929b605f6 [automerger skipped] Merge Android 12L am: ebebf51c4f -s ours am: a111192091 -s ours am: 7e3e6a3a82 -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

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

Change-Id: I365d0a49970bbda7acc8833f9fc0b80088fb9942
2022-03-09 10:02:18 +00:00
Xin Li
edfcd7d421 [automerger skipped] Merge "Merge Android 12L" am: c2b7fb4aad -s ours am: b8395c238a -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

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

Change-Id: I11cfdae56524722afd33ee3c01fdb3c1559d8c85
2022-03-08 11:06:32 +00:00
Xin Li
7e3e6a3a82 [automerger skipped] Merge Android 12L am: ebebf51c4f -s ours am: a111192091 -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

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

Change-Id: I947d662b436195b55bbf32c98110046ea56131ab
2022-03-08 11:03:47 +00:00
Xin Li
b8395c238a [automerger skipped] Merge "Merge Android 12L" am: c2b7fb4aad -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

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

Change-Id: I6bb2fd8bd268fd95b7513288ceb74758335dd242
2022-03-08 10:21:44 +00:00
Xin Li
a111192091 [automerger skipped] Merge Android 12L am: ebebf51c4f -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

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

Change-Id: I0a2e1695d50a97fd80985594bfbd722edeb0749a
2022-03-08 10:18:57 +00:00
Xin Li
c2b7fb4aad Merge "Merge Android 12L" 2022-03-08 06:51:51 +00:00
Xin Li
ebebf51c4f Merge Android 12L
Bug: 222710654
Merged-In: Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4
Change-Id: Ie2b319c7d588f5044c694e85795eef0bc9d14b75
2022-03-08 00:18:38 +00:00
Ray Essick
dd45428ffa drop no-longer-needed apex_available clause on libhardware
codec2/vndk referenced, but did not use, libhardware. Now that
the reference is cleaned, we don't need to to export to apex's.

Bug: 221444002
Test: build, boot
Change-Id: I43bff5cab71d53d8c7422c13265f129b26ca0430
2022-03-01 15:45:33 -08:00
Xin Li
a95b600c5a [automerger skipped] Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master am: d2adcd79f8 -s ours am: 5a80ca8ae8 -s ours
am skip reason: Merged-In I975390f8f495267ef0cd24dc8e73db859e541146 with SHA-1 16699d13ec is already in history

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

Change-Id: I4fef372e22b9c1302e1d2f4d49bc3d28267646fc
2022-02-14 18:20:53 +00:00
Xin Li
5a80ca8ae8 [automerger skipped] Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master am: d2adcd79f8 -s ours
am skip reason: Merged-In I975390f8f495267ef0cd24dc8e73db859e541146 with SHA-1 16699d13ec is already in history

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

Change-Id: I34d543a1395a507b8fdf8fbcb797d0d2a124de4a
2022-02-14 18:03:29 +00:00
Xin Li
d2adcd79f8 Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master 2022-02-14 17:30:14 +00:00
Treehugger Robot
32091b4dcc [automerger skipped] Merge "Add audio_hw_device.set_device_connected_state_v7 method" am: ac977b6016 am: 466b596cc5 am: 9ab5ad944a -s ours
am skip reason: Merged-In I0868cdfdbe46d1399071967653372b55713843e4 with SHA-1 521310bc26 is already in history

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

Change-Id: I888f2469d4410eb791aa64216d8cc3fa389522df
2022-02-11 19:18:11 +00:00
Treehugger Robot
9ab5ad944a Merge "Add audio_hw_device.set_device_connected_state_v7 method" am: ac977b6016 am: 466b596cc5
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1978754

Change-Id: Ic66bd494ef59ce98cc856470a28379cbcc399552
2022-02-11 19:06:35 +00:00
Treehugger Robot
466b596cc5 Merge "Add audio_hw_device.set_device_connected_state_v7 method" am: ac977b6016
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1978754

Change-Id: Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4
2022-02-11 18:45:17 +00:00
Treehugger Robot
ac977b6016 Merge "Add audio_hw_device.set_device_connected_state_v7 method" 2022-02-11 18:19:22 +00:00
Xin Li
f911d3a70d Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I975390f8f495267ef0cd24dc8e73db859e541146
Change-Id: Ia540313ff7bb064b9de8a8655b59fed8c40a8aaa
2022-02-11 06:57:38 +00:00
Mikhail Naganov
f912141956 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
(cherry picked from commit 521310bc26)
Merged-In: I0868cdfdbe46d1399071967653372b55713843e4
2022-02-09 19:29:39 +00:00
Ray Essick
0a0dd5f489 Make apex_available explicit
Move the implicit allowing by modules from a list in the build
tools to explicit lines in the relevant module's Android.bp

Bug: 215589022
Test: build
Change-Id: I17f93210f027cb8189e92b19a46b6d64faef7ed8
2022-02-09 10:14:29 -08:00