Audio VTS: Do not constrain implementation frameCount
authorKevin Rocard <krocard@google.com>
Thu, 20 Sep 2018 21:28:46 +0000 (14:28 -0700)
committerKevin Rocard <krocard@google.com>
Tue, 2 Oct 2018 22:07:39 +0000 (22:07 +0000)
commit069bc4504485711a8c8b7bfd47ffcf2c6c43ae0d
treee4f91041367f17d7a3a886902033689e607c3c53
parenta0eb7e415c231b90a507e7758b55075019871b94
Audio VTS: Do not constrain implementation frameCount

The test was assuming Stream::getFrameCount() would return the
AudioConfig::frameCount used to create the stream, similarly
to the sampleRate or the channelMask.

Nevertheless this is not the case as the AudioConfig::frameCount
field is not to used by Stream::openOutputStream (nor Input) as
the buffer size is chosen by the HAL, not the framework.

Thus the test can not assume the frameCount chosen by the HAL and
must not test for a particular value.

Test: atest VtsHalAudioV4_0TargetTest
Bug: 116169974
Change-Id: Ibbf0825f540957e01e7c512d851cb9628991f4c4
Signed-off-by: Kevin Rocard <krocard@google.com>
audio/core/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp
audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp