Commit Graph

24774 Commits

Author SHA1 Message Date
Yifan Hong
00df90125c Add audio V7 to compatility matrix.
All HIDL HALs defined in the source tree must be specified
in some framework compatibility matrix.

Bug: 110261831
Test: builds
Change-Id: I98a0798cc08761e8aa6a9ca920c67aa6f8155de4
Merged-In: I98a0798cc08761e8aa6a9ca920c67aa6f8155de4
2020-10-27 15:24:36 +01:00
Mikhail Naganov
a8814e51be Audio: Build file updates
Add target for the library with code generated by xsdc.

Temporarily disable default implementation and VTS targets.

Bug: 142480271
Test: m
Change-Id: I6c891893398617a36f4748f185e189064ba4d4ee
Merged-In: I6c891893398617a36f4748f185e189064ba4d4ee
2020-10-27 15:24:36 +01:00
Mikhail Naganov
60ced768f3 Audio: Copy HAL V6 into V7
This is an automated copy performed using copyHAL.sh script.

Bug: 142480271
Test: m
Change-Id: Ifd91cc0bb59608cd92d1d8e4e76c3abea0a8da5e
Merged-In: Ifd91cc0bb59608cd92d1d8e4e76c3abea0a8da5e
2020-10-27 15:24:36 +01:00
Mikhail Naganov
3b1172dfe4 Audio: Update and fix copyHAL script
Make necessary updates and fixes to produce HAL V7 and VTS.

Bug: 142480271
Test: audio/common/all-versions/copyHAL.sh 6.0 7.0 &&
      atest --rebuild-module-info -b VtsHalAudioV7_0TargetTest &&
      m
Change-Id: I5bc2344dae611fbf7e3e0fef185deee999c4aefa
Merged-In: I5bc2344dae611fbf7e3e0fef185deee999c4aefa
2020-10-27 15:24:36 +01:00
stevensd
2d82c11b0f Merge "graphics: fix use-after-free in mapper 2.0 passthrough" 2020-10-27 00:35:56 +00:00
Baligh Uddin
cc1d613e76 Merge "Switch "system/core/base" ref to "system/libbase"" 2020-10-24 01:40:47 +00:00
Treehugger Robot
ada6d347a2 Merge "android.hardware.common: support Java" 2020-10-24 00:20:10 +00:00
Baligh Uddin
797c509c69 Switch "system/core/base" ref to "system/libbase"
BUG: 148941208
Test: TH
Change-Id: I49184ac6e4d73172ddc066683dbd1ad3f2fc8429
2020-10-23 05:52:26 +00:00
Tim Lin
e29df60bdc add new RadioError
Support RadioError:RF_HARDWARE_ISSUE and RadioError:NO_RF_CALIBRATION_INFO for
setRadioPowerResponse_1_6().

Bug: 170938075
Test: build. VTS on Cuttlefish.
Change-Id: Iaf582c31f439810db34693c61e58ff1f4dfd19fd
2020-10-23 00:59:16 +00:00
Daniel Bright
f8e858b478 Merge "Add Handover Failure Mode to Radio Hal" 2020-10-22 21:38:58 +00:00
Yifan Hong
a53f69e158 Merge "Reland "Remove legacy/O/O-MR1 matrices."" 2020-10-22 17:24:50 +00:00
David Stevens
be8f52e8b0 graphics: fix use-after-free in mapper 2.0 passthrough
The mapper 2.0 gralloc passthrough keeps a set of the native_handle_t
pointers of all imported buffers. This change ensures that the
underlying HAL wrapper freeing the native_handle_t is performed
atomically with respect to accesses to the passthrough's native_handle_t
pointer set.

This fixes a race where a native_handle_t could be reallocated between
being freed by the HAL wrapper and removed from the passthrough's set,
which could then cause the import which happened to reallocate that
native_handle_t to spuriously fail.

Bug: 170798776
Test: Manually very no more spurious import failures in ARCVM's decoder.
Change-Id: I654a44e94adb319f54fb462f4484db414ca1b154
2020-10-22 09:45:09 +09:00
Steven Moreland
d9a93ca476 android.hardware.common: support Java
The handle type here is needed in some HALs now (specifically in order
to encode a Surface, which is backed by a handle). This previously
wasn't in Java simply because handles are more common in native code,
and so it wasn't expected to be used.

Fixes: 171087128
Test: build
Change-Id: Ie1eaf50cc8e62932cc553b80c02be434bfbaf3b3
2020-10-21 22:59:12 +00:00
Treehugger Robot
f3d65e5278 Merge "Modify VTS NoStaleEvents test to omit on-change sensors" 2020-10-21 22:07:51 +00:00
Daniel Bright
64c8da6fa0 Add Handover Failure Mode to Radio Hal
On a handover request failure, the modem can now determine
whether or not to fallback.  There is also the option to revert
to the legacy logic.  Following the legacy logic is the default
behavior.

Test: FrameworkTelephonyTests
Bug: 161572465
Change-Id: Iad778e83ffc264ee25f57f54ff58532d6a8c5cbf
Merged-In: Iad778e83ffc264ee25f57f54ff58532d6a8c5cbf
2020-10-21 13:44:26 -07:00
Treehugger Robot
61c62c6b56 Merge "Update VNDK version for common graphics HALs." 2020-10-20 23:56:51 +00:00
Yifan Hong
6777f8aede Reland "Remove legacy/O/O-MR1 matrices."
This reverts commit 540dc2771a.

Reason for revert: reland because target-level 2 are fixed

Bug: 163419744
Change-Id: I293852d50de9a4eeaeec6ccf4c0290f1c1b0012d
2020-10-20 19:28:34 +00:00
Yifan Hong
305fa1d5fe Merge "Revert "Remove legacy/O/O-MR1 matrices."" 2020-10-20 19:26:59 +00:00
Yifan Hong
540dc2771a Revert "Remove legacy/O/O-MR1 matrices."
Revert "Remove O/O-MR1 kernel configs."

Revert submission 1465685-remove_o_vintf

Reason for revert: target-level 2 devices aren't properly cleaned up

Bug: 171317032

Reverted Changes:
I5a08d616e:Remove O/O-MR1 kernel configs.
I2a65f5a24:Remove legacy/O/O-MR1 matrices.

Change-Id: I47670918183b3f419c6976ab922b87c97c9644cf
2020-10-20 18:59:13 +00:00
Yifan Hong
0d7adccb53 Merge "Remove legacy/O/O-MR1 matrices." 2020-10-20 17:07:23 +00:00
Yifan Hong
0b5c62fd79 Remove legacy/O/O-MR1 matrices.
Devices with legacy/O/O-MR1 VINTF won't be able to
update to Android S. Devices launching with pre-O,
O, or O-MR1 will need to update its VINTF to P and
above to work with Android S.

Test: builds
Bug: 163419744
Bug: 171260360
Bug: 171260613
Bug: 171260670
Bug: 171260715
Change-Id: I2a65f5a24c0731df9c4247bf9dd2616c2279042f
2020-10-19 17:37:11 -07:00
Treehugger Robot
cdf176e17b Merge "Merge redfin/bramble support." 2020-10-19 23:20:08 +00:00
Steven Moreland
67f5d0f838 Update VNDK version for common graphics HALs.
We are adding things to them, and in order for core libraries like libui
to use them, the newer versions need to be in the VNDK.

Bug: 170435409
Test: build
Change-Id: I4094240656f357b5ae52194befd0e10627b9fe23
Merged-In: I4094240656f357b5ae52194befd0e10627b9fe23
2020-10-19 21:04:14 +00:00
Eric Hefner
812d9b50f6 Modify VTS NoStaleEvents test to omit on-change sensors
- add utility function to select non one-shot, non on-change and
  non special-report sensors
- apply to NoStaleEvents test case
- remove unnecessary checks related to on-change sensors

b/170315229

Change-Id: I349fe8be35fd1fa6f9ff1e0844b09815006a18b8
2020-10-19 13:34:16 -05:00
Xin Li
625bfc25bb Merge redfin/bramble support.
Bug: 171218636
Merged-In: Ib4f79f13505061c294b0f9b120765d866aad38cc
Change-Id: I13240f1a052fe887219e5ecf30e86a2a6b294528
2020-10-19 10:08:21 -07:00
allenwtsu
1c3dcd3289 [SMS] Define new SMS error code in HAL 1.6
Define 3 SMS failure causes.
SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWD
ACCESS_BARRED
BLOCKED_DUE_TO_CALL

Test: build pass
Bug: 162364146
Change-Id: I3b8b3f238821f2a516f8590f90cba4d603d3783b
Merged-In: I3b8b3f238821f2a516f8590f90cba4d603d3783b
2020-10-16 14:03:03 +08:00
Subbaraman Narayanamurthy
9d0e9cb921 health: Add CAP_BLOCK_SUSPEND am: 9ac41106d8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1461242

Change-Id: Ib4f79f13505061c294b0f9b120765d866aad38cc
2020-10-15 00:16:19 +00:00
Subbaraman Narayanamurthy
9ac41106d8 health: Add CAP_BLOCK_SUSPEND
Add CAP_BLOCK_SUSPEND to android.hardware.health@1.0 and
android.hardware.health@2.1 service so that when epoll_wait()
is waiting on uevents and timer_fd events it can block suspend
to take the necessary action. Without this permission, eventpoll
is going to ignore the flags EPOLLWAKEUP used in health HAL or
healthloop.

Bug: 169873088
Change-Id: If9b0e1f60e47d7bf54942f589acbfbb883b9bac8
2020-10-14 12:35:23 -07:00
Devin Moore
1af8658a9b Merge changes from topic "move_fmq" am: 1fa07549e1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1456140

Change-Id: I6e299ec1a9e5ea564ff0b752c96d16eab754a472
2020-10-13 15:08:08 +00:00
Devin Moore
1fa07549e1 Merge changes from topic "move_fmq"
* changes:
  Add android.hardware.common.fmq to fcm_exclude
  Move AIDL FMQ types from android.hardware.common
2020-10-13 14:58:08 +00:00
TreeHugger Robot
251697bd9b Merge "Merge ab/6749736 in stage." into stage-aosp-master 2020-10-13 03:31:34 +00:00
Steven Moreland
8e69ad680f Merge "camera 2.4: conditionally disable memory init" am: 6c6fd401a8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1449141

Change-Id: I0ca8708661ca5834fc311d14a29adb1a17509aa3
2020-10-12 17:22:07 +00:00
Steven Moreland
6c6fd401a8 Merge "camera 2.4: conditionally disable memory init" 2020-10-12 16:59:23 +00:00
Devin Moore
23a52ecdb9 Add android.hardware.common.fmq to fcm_exclude
There is no top level interface in this package.

Test: m
Bug: 142326204
Change-Id: I895561ba265ea534b2da1f29f1d3056d0a9e452d
2020-10-09 13:37:12 -07:00
Devin Moore
14b2cbe96d Move AIDL FMQ types from android.hardware.common
Moved the types to andrdoid.hardware.common.fmq.
This allows modules to depend on the unstable version of the library
without conflicting with modules that depend on the stable version of
android.hardware.common.

Test: atest fmq_unit_tests fmq_test
Bug: 142326204
Change-Id: I3091f52c4e763a15fd9a1b7451a1455a06fb4c30
2020-10-09 13:00:16 -07:00
Grzegorz Kolodziejczyk
a1663edb70 Introduce LE Audio software provider for bluetooth audio 2.1 am: b5f2d23e26
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1404810

Change-Id: I65a6147393994eafa71fbfcd152ef24586cb1bb5
2020-10-09 18:07:48 +00:00
Grzegorz Kolodziejczyk
b5f2d23e26 Introduce LE Audio software provider for bluetooth audio 2.1
Patch introduces LE Audio software encoding provider for bluetooth audio 2.1.

Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Sponsor: jpawlowski@
Change-Id: If668593be7a46c9abcc45d21c5bdb9b493864cc1
2020-10-09 17:54:44 +00:00
Xin Li
50393137ed Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: I6756cad681e4cfa01868450214da0d7b2d5261e4
Change-Id: Ia529ecf4f48248d5af63673f359916486f71bc35
2020-10-08 23:22:52 -07:00
Treehugger Robot
4e7d50fe01 Merge "doc: DEVICE_*_MATRIX_FILE specifies absolute paths" am: cc6279316f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1455056

Change-Id: Idc8ef4e5fed0d6a328f4d905cb6af211302f6801
2020-10-08 22:35:36 +00:00
Treehugger Robot
cc6279316f Merge "doc: DEVICE_*_MATRIX_FILE specifies absolute paths" 2020-10-08 22:33:11 +00:00
Blair Prescott
bd7b0bceee wifi: Fix VTS error for non-p2p devices am: 230e96521d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: I24c7f0abc78d065d0fec4f0c158501295603a9dc
2020-10-08 22:16:21 +00:00
Steven Moreland
3aa4754785 doc: DEVICE_*_MATRIX_FILE specifies absolute paths
The fact that these variables are 'FILE' instead of 'FILES' is due to
historical changes, but updating comment to reflect this to avoid
confusion.

Bug: N/A
Test: N/A
Change-Id: I92b685eceaab99c7786384c08076dcf3bd087326
2020-10-08 17:16:32 +00:00
Blair Prescott
230e96521d wifi: Fix VTS error for non-p2p devices
Fix VtsHalWifiSupplicantP2pV1_0TargetTest to skip tests
in such a way that VTS reports the module as complete on
devices that don't support Wifi Direct.

Bug: 170326147
Test: run vts -m VtsHalWifiSupplicantP2pV1_0TargetTest
Change-Id: Ia418c4bb72f4772422d724636453395c4ba9fb2d
2020-10-07 19:54:39 +00:00
Michael Butler
b175b10734 Merge "Create conversions to/from NNAPI canonical types" am: f77f02bf50
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1449138

Change-Id: Ic1a7e29d28a9c6ac3213a2fe95b5732206a0da85
2020-10-06 21:49:31 +00:00
Michael Butler
f77f02bf50 Merge "Create conversions to/from NNAPI canonical types" 2020-10-06 21:22:49 +00:00
Treehugger Robot
06640f702b Merge "Remove vts10 reference vts_target_tests_defaults" am: c576a3ccba
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1449815

Change-Id: I372939a9814fb5f93a2178f695d0c8253b291fd2
2020-10-05 23:46:34 +00:00
Steven Moreland
590f44eeed camera 2.4: conditionally disable memory init
This needs to be disabled on Pixel 3, but this is the only place w/
source code visible in AOSP. So, it is implemented as a mechanism.

Bug: 166675194
Test: atest android.hardware.camera2.cts.PerformanceTest
Change-Id: I0d91389432906a917696d27d27b4d6d96e64d09f
2020-10-05 23:45:34 +00:00
Treehugger Robot
c576a3ccba Merge "Remove vts10 reference vts_target_tests_defaults" 2020-10-05 23:34:35 +00:00
Treehugger Robot
60ce011e2f Merge "wifi: Deprecate older versions of wifi HAL" am: 3d2cde64ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1448439

Change-Id: I73569302fbf6af2bc53e438e8558caf5a704993f
2020-10-05 20:49:10 +00:00
Treehugger Robot
3d2cde64ee Merge "wifi: Deprecate older versions of wifi HAL" 2020-10-05 20:30:20 +00:00