mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 02:12:46 +00:00
Audio HAL VTS: Some methods are not optional
Some mandatory methods were allowed to return NOT_SUPPORTED although their implementations is mandatory. Test: vts-tradefed run vts --module VtsHalAudioV2_0Target Test: call/play music/record/video... Bug: 36311550 Change-Id: Ibe4b3cf73257309975ed11269a38315051fa9064 Signed-off-by: Kevin Rocard <krocard@google.com>
This commit is contained in:
@@ -1076,7 +1076,7 @@ static void testPrepareForReading(IStreamIn* stream, uint32_t frameSize,
|
||||
ASSERT_OK(stream->prepareForReading(
|
||||
frameSize, framesCount,
|
||||
[&res](auto r, auto&, auto&, auto&, auto&) { res = r; }));
|
||||
EXPECT_RESULT(invalidArgsOrNotSupported, res);
|
||||
EXPECT_RESULT(Result::INVALID_ARGUMENTS, res);
|
||||
}
|
||||
|
||||
TEST_P(InputStreamTest, PrepareForReadingWithZeroBuffer) {
|
||||
@@ -1144,7 +1144,7 @@ static void testPrepareForWriting(IStreamOut* stream, uint32_t frameSize,
|
||||
ASSERT_OK(stream->prepareForWriting(
|
||||
frameSize, framesCount,
|
||||
[&res](auto r, auto&, auto&, auto&, auto&) { res = r; }));
|
||||
EXPECT_RESULT(invalidArgsOrNotSupported, res);
|
||||
EXPECT_RESULT(Result::INVALID_ARGUMENTS, res);
|
||||
}
|
||||
|
||||
TEST_P(OutputStreamTest, PrepareForWriteWithZeroBuffer) {
|
||||
|
||||
Reference in New Issue
Block a user