No description
Find a file
Kevin Rocard 195205b323 Audio HAL VTS: Sanitize prepareFor{Writing,Reading} input size
Return an error if framesCount or frameSize are null to avoid a division
by zero when calculating the buffer size.

The message queues are allocated with a buffer size but if two big they will
assert not return an error.
Thus take some margin on the buffer size check.

Note that both function should be refactored as 99% identical.

Test: vts-tradefed run vts --module VtsHalAudioV2_0Target
Test: call/play music/record/video...
Bug: 36311550
Change-Id: I0576e9016ef2e567c8d4e171c6237883d9865db9
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-05-08 14:43:02 -07:00
audio Audio HAL VTS: Sanitize prepareFor{Writing,Reading} input size 2017-05-08 14:43:02 -07:00
automotive Add YUV support in EVS VTS tests 2017-05-02 10:09:33 -07:00
biometrics Add onAcquired log back 2017-04-25 15:05:32 -07:00
bluetooth Merge "stop bluetooth service while VTS test is running" into oc-dev 2017-04-26 23:25:38 +00:00
boot Change bootHAL to early_hal class 2017-04-24 18:17:18 +00:00
broadcastradio Update makefiles (2/2). 2017-04-11 09:58:03 -07:00
camera Merge "Camera: use framework header for VideoNativeHandleMetadata" into oc-dev 2017-04-28 08:01:49 +00:00
configstore Write VTS target test for Configstore HAL 2017-04-17 13:10:36 +09:00
contexthub Merge "Remove dependency of libhardware_legacy from HAL services" into oc-dev 2017-04-18 00:26:33 +00:00
drm Prefix ENABLE_MEDIADRM_64 with TARGET_ 2017-04-27 18:50:05 -07:00
dumpstate dumpstate hal: use vendor toybox 2017-04-14 19:14:42 -07:00
gatekeeper Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
gnss Renamed enums in IGnssNavigationMessageCallback.hal from GNSS prefix to 2017-05-05 20:08:47 +00:00
graphics Merge "Avoid crash when setting buffer on deleted layer" into oc-dev 2017-05-02 17:47:24 +00:00
health Add functional vts test for Health HAL 2017-05-02 16:33:25 -07:00
ir Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
keymaster Merge "Add missing application ID tag to AES/HMAC attestation calls" into oc-dev 2017-05-05 17:29:21 +00:00
light Merge "Remove dependency of libhardware_legacy from HAL services" into oc-dev 2017-04-18 00:26:33 +00:00
media Omx VTS tests 2017-05-02 23:44:26 -07:00
memtrack Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
nfc Merge "Remove dependency of libhardware_legacy" into oc-dev 2017-04-17 03:05:10 +00:00
power Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
radio VTS: Fix IRadio.setAllowedCarriers and IRadio.nvResetConfig 2017-05-04 17:01:27 -07:00
renderscript Merge "Added missing RenderScript HIDL API call to VTS test." into oc-dev 2017-04-14 15:45:43 +00:00
sensors Move sensor hal service to class 'hal' from main. 2017-04-27 19:28:40 +00:00
soundtrigger soundtrigger: Use "default" instance name for HAL service 2017-04-14 15:52:11 +00:00
tests Add IScheduleTest for VTS libhwbinder scheduler test 2017-04-17 14:34:34 +08:00
thermal Merge "Remove dependency of libhardware_legacy from HAL services" into oc-dev 2017-04-18 00:26:33 +00:00
tv Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
usb Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
vibrator Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
vr Changed the naming scheme for Treble java libraries (both static and dynamic) 2017-04-13 15:23:46 -07:00
wifi Merge "Expect SUCCESS for tdls vts tests" into oc-dev 2017-05-05 17:34:37 +00:00
.clang-format Enable the clang-format pre-submit hook 2017-03-30 13:30:21 -07:00
Android.bp Add hidl_default and make modules use hidl_default. 2017-03-08 16:22:00 -08:00
CleanSpec.mk Bluetooth: move to vendor partition. 2017-02-27 15:41:04 -08:00
compatibility_matrix.xml Set omx and configstore as optional. 2017-05-04 14:49:12 -07:00
current.txt Renamed enums in IGnssNavigationMessageCallback.hal from GNSS prefix to 2017-05-05 20:08:47 +00: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
PREUPLOAD.cfg Enable the clang-format pre-submit hook 2017-03-30 13:30:21 -07:00
update-base-files.sh Add annotations to create gnss-base.h 2017-01-23 08:41:15 -08:00
update-makefiles.sh Use simplified update-makefiles.sh script. 2017-03-20 04:26:20 -07:00