No description
Find a file
Kevin Rocard 46cba442d2 Legacy wrapper: Use arbitrary limit on buffer size
The legacy HAL wrapper prepareForWrite and prepareForRead used
to return INVALID_ARGUMENTS if the computed buffer size just
under SIZE_MAX.

This meant that the limitation depended on the architecture (32 vs 64
bit size_t). This caused VTS test failure on 64 bits.

Instead of dynamically calculating an arbitrary max size,
choose a fixed one. This max buffer size has been chosen at 1GiB.
It should be enough for the foreseeable future and not too close
from the 4GiB max on 32 bit.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
Bug: 67030516
Change-Id: I4cc3efda9bb66e6dae8b4e6785f52d9e51440aee
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-10-10 09:22:02 -07:00
audio Legacy wrapper: Use arbitrary limit on buffer size 2017-10-10 09:22:02 -07:00
automotive Do not write initial empty values for the diagnostic properties. 2017-09-11 15:06:40 -07:00
biometrics biometrics: fingerprint: add locking to default impl 2017-08-18 17:14:53 +00:00
bluetooth Bluetooth: Remove credit check from Loopback tests 2017-09-07 13:41:58 +00:00
boot VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
broadcastradio Merge "Adjust AM/FM region ranges." into oc-mr1-dev 2017-09-13 15:36:09 +00:00
camera Camera: Update VTS for new camera@3.3 interfaces 2017-10-02 12:35:32 -07:00
cas Added VTS tests for MediaCas - II 2017-10-05 19:47:31 +00:00
configstore Allow clock_gettime syscall for logging 2017-09-13 07:54:45 -07:00
contexthub contexthub: Pass target API version in new fields 2017-08-23 00:26:23 +00:00
drm Fix VtsHalDrmV1_0Target clearkey tests. 2017-10-04 03:31:27 +00:00
dumpstate VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
gatekeeper VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
gnss Merge "Adding owners for gnss hardware interfaces" into oc-mr1-dev 2017-08-30 23:57:23 +00:00
graphics graphics: discard stale data from message queue 2017-09-08 11:51:57 -07:00
health VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
ir Merge "Update makefiles for vndk enabled." into oc-mr1-dev 2017-08-04 00:52:06 +00:00
keymaster Merge "Don't send more than 2K to addRngEntropy" into oc-dev am: 7eeb6b5079 2017-09-12 16:34:52 +00:00
light VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
media omxvts: exit gracefully during fatal fails 2017-10-05 00:41:43 -07:00
memtrack VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
minijail configstore: sandbox with seccomp filter 2017-08-10 10:34:08 -07:00
neuralnetworks Corrected performanceInfo documentation 2017-10-05 12:06:36 -07:00
nfc NFC: Add OWNERS file for default/ 2017-08-10 00:38:46 +00:00
oemlock VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
power Remove default implementation for PowerHal 1.1 2017-09-12 16:05:50 +00:00
radio Fix docstrings for RIL_CellIdentity 2017-09-12 10:17:53 -07:00
renderscript Load libRS_internal.so from the rs namespace 2017-08-16 23:35:57 +09:00
sensors Add capability for sensor hal to use wakelock 2017-09-14 20:58:45 +00:00
soundtrigger VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
tests Merge "Move android.hardware.tests.libhwbinder@1.0-impl to system.img" into oc-mr1-dev 2017-10-04 13:41:00 +00:00
tetheroffload More tetheroffload VTS fixes for over-specified tests. 2017-09-29 18:09:14 +09:00
thermal Thermal 1.1 test statically links to hal def libs. 2017-08-31 13:35:05 -07:00
tv VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
usb VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
vibrator VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
vr VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
weaver VTS tests now static link to HAL def libs. #2 2017-08-10 17:44:57 +00:00
wifi wifi(implementation): Increase stop timeout 2017-09-29 15:10:21 -07:00
.clang-format .clang-format: 100 lines 2017-05-02 16:45:27 -07:00
Android.bp Update comments for VtsHalTargetTestDefaults. 2017-08-03 16:44:29 -07:00
CleanSpec.mk HAL interface libs for testing are now built as test lib 2017-09-01 09:54:16 +09:00
compatibility_matrix.26.xml Finalize O-MR1 compat matrix. 2017-08-31 16:04:08 -07:00
compatibility_matrix.27.xml Remove media.cas requirement. 2017-09-05 22:59:21 +00:00
compatibility_matrix.current.xml Remove media.cas requirement. 2017-09-05 22:59:21 +00:00
compatibility_matrix.legacy.xml Finalize O-MR1 compat matrix. 2017-08-31 16:04:08 -07:00
current.txt Add neuralnetworks HAL to the current.txt 2017-10-05 15:22:23 -07:00
MODULE_LICENSE_APACHE2 Apache2 module license. 2016-08-30 11:28:36 -07:00
NOTICE Apache2 module license. 2016-08-30 11:28:36 -07:00
OWNERS Add OWNERS in hardware/interfaces 2017-06-12 13:20:12 -07:00
PREUPLOAD.cfg Enable the clang-format pre-submit hook 2017-03-30 13:26:49 -07:00
update-base-files.sh Add annotations to create gnss-base.h 2017-01-23 08:41:15 -08:00
update-makefiles.sh Update makefiles from anywhere. 2017-05-11 15:42:32 -07:00