OSDN Git Service

Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits
authorMikhail Naganov <mnaganov@google.com>
Tue, 10 Oct 2017 17:31:07 +0000 (10:31 -0700)
committerMikhail Naganov <mnaganov@google.com>
Tue, 10 Oct 2017 21:30:00 +0000 (14:30 -0700)
commitce607879baf84d5b3a8df95a609ad06204c56711
tree8b8e559c12d0884455b7a2f5e7d113b9a839b763
parent926a8e7440a0c85d39dbf7143bfe03964363ddec
Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits

Because on oc-dev the runtime image can not be modified and that this is
not a bug but a test and implementation misalignment,
allow prepareForWrite/Read(UINT32_MAX, UINT32_MAX) to succeed on oc-dev.

MR1 will have a better fix where the HAL will always reject > 1GiB
buffers independently of the architecture.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
Bug: 67030516
Change-Id: I10a5ee3868c67c45ed5297d9c5c89129d762c7cd
Merged-In: I4cc3efda9bb66e6dae8b4e6785f52d9e51440aee
Signed-off-by: Kevin Rocard <krocard@google.com>
audio/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp